Page 44 of 56
4.6.3 The modbus command for F2X16 IO& ADC:
Query digital Input
To read IO1 status(digital input)
Request: 01 02 00 00 00 01 B9 CA
Response:01 02 01 01 60 48 (IO1 is high level)
Response:01 02 01 00 A1 88 (IO1 is low level)
To read IO2 status(digital input)
Request: 01 02 00 01 00 01 E8 0A
Response:01 02 01 01 60 48 (IO2 is high level)
Response:01 02 01 00 A1 88 (IO2 is low level)
Notes of the modbus commands. Take the command 01 02 00 02 00 01 18 0A for example.
Response 01 02 01 01 60 48
Set digital output
To set IO1 status(digital output)
Request
:
01 05 00 00 FF 00 8C 3A(set IO1 high level
)
Response
:
01 05 00 00 FF 00 8C 3A
Request
:
01 05 00 00 00 00 CD CA(set IO1 low level
)
Response
:
01 05 00 00 00 00 CD CA
To set IO2 status(digital output)
Request
:
01 05 00 01 FF 00 9C 0A(set IO2 high level
)
Response
:
01 05 00 01 FF 00 9C 0A
Request
:
01 05 00 01 00 00 AC 0A(set IO2 low level
)
Response
:
01 05 00 01 00 00 AC 0A
Notes of the modbus commands. Take the commmand 01 05 00 00 FF 00 8C 3A for example.
Summary of Contents for F2816 V2
Page 52: ...Page 52 of 56 ...