How to set word order in the simulator #1593
-
I am completely new to pymodbus. I want to simulate a modbus slave with the simulator in order to test my software. The device has 32-bit integer with Little Endian. Is it possible to set the simulator like this? It seems that the uint32 are coded as Big Endian. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
The modbus protocol is pr definition big endian, so devices that are little endian convert before sending a message. The datastore simulator (which is used in pymodbus.simulator), does convert the configured number to big endian automatically. If you use pymodbus in your client big endian is also done automatically. |
Beta Was this translation helpful? Give feedback.
The modbus protocol is pr definition big endian, so devices that are little endian convert before sending a message.
The datastore simulator (which is used in pymodbus.simulator), does convert the configured number to big endian automatically.
If you use pymodbus in your client big endian is also done automatically.