257
As the status of Y0 and Y1 is ON, the data contents are 03H (0000 0011).
(3)Function code 03H: read register
Eg. Read two register starting from03E8H (D1000, D1001).
RTU mode:
At this time, the data read fromD1000 and D1001 are 122EH (4654) and 04E8H (1256).
(4)Function code 05H: write single coil
Eg. Set on the coil address 6000H (Y0).
RTU mode:
Data contents
(low byte is before
high byte)
Note: when writing single coil, ON is 00FFH, OFF is 0000H; the low byte is before high
byte for the data contents.
(5)Function code0FH: write multiple coils
Eg. Write 16 coils start from address 6000H (Y0).
tudonghoatoancau.com