3cky / mbusd

Open-source Modbus TCP to Modbus RTU (RS-232/485) gateway.
BSD 3-Clause "New" or "Revised" License
566 stars 216 forks source link

Inversed register order #15

Closed jonastim closed 4 years ago

jonastim commented 7 years ago

It seems that mbusd changes the register order for multi-register requests from what modpoll reads directly from RTU.

Modpoll reads 16bit (-t 4 flag) as register 57734: 6 register 57735: 0

32bit (-t:int flag) as register 57734: 6

inversed register 32bit (-t:int -i flags) "Slave operates on big-endian 32-bit integers" register 57734: 393216

With mbusd reading single registers results in the same values as with modpoll, but reading a 32bit word from register 57734 results in the register inversed value 393216.

Is there a way to retain the original register order / inverse the current order?

nickma82 commented 5 years ago

Isn't this a philosophy question (intel vs motorla) https://m.control.com/thread/1026161289 ?

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.