question

Luke H avatar image
0 Likes"
Luke H asked Matt Long answered

what is the holding registers address

emulation properties.PNGim tryna connect an arduino uno as modbus master to my flexsim model which is the modbus slave via a RTU (serial connection) and when programming by arduino it says Modbus holding registers are from ox40001 and up but on flexsim it says registers go from 0-9999 so wondering how these flexsim registers worked in relation to standard modbus registers. does this mean register 1 is ox40001?

FlexSim 20.1.2
flexsim 20.1.2emulationmodbus communicationrtu
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Matt Long avatar image
0 Likes"
Matt Long answered

Modbus registers in FlexSim are defined from 0-9999 where each register type, Coil, Discrete Input, Input Register and Holding Register is written using these 4 digit addresses. For Input Registers, an address of 1 would refer to address 40001.

This is pretty old code and should be updated to use the latest modbus specification. I'll add this to the dev list to change in a future release. Thanks!

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.