258
RTU mode:
Data contents
(low byte is before
high byte)
The data contents are 0103H, the binary format is 0000 0001 0000 0011, write in
corresponding Y17~Y0, so Y0, Y1, Y10 are set ON.
Note: when writing the data contents, the low byte is before the high byte.
(6)Function code 10H: write multiple registers
Eg. Write 3 registers starting from address 0000H (D0).
RTU mode:
After executing, the value in D0, D1, D2 are 1, 2, 3.
Note: byte number = register number * 2.
Modbus-ASCII data structure
1. ASCII mode:
For Modbus ASCII(American Standard Code for Information Interchange)mode in serial
links, every 8-bit byte is sent as two ASCII characters. When communication links and
devices do not fit RTU mode timing monitor, we usually use the ASCII mode.
Note:One byte needs two characters, so ASCII mode has lower inefficiency than RTU mode.
tudonghoatoancau.com