40
01(0x01) Read Digital Input/Output Value
Request
00 Address
1
Byte
1-247
01 Function
code 1
Byte
0x01
02~03 Starting channel
2 Bytes 0x0000~0x0003 for DO readback value
0x0020~0x0023 for DI readback value
0x0040~0x0043 for DI Latch high value
0x0060~0x0063 for DI Latch low value
0x0080~0x0083 for DO safe value
0x00A0~0x00A3 for DO power-on value
04~05 Input/Output
channel numbers
2 Bytes Input: 0x0001~0x0004
Output: 0x0001~0x0004
Response
00 Address
1
Byte
1-247
01
Function code
1 Byte
0x01
02
Byte count
1 Byte
1
03 Input/Output
channel readback
value
1 Byte
0x00~0x0F
A bit corresponds to a channel. When the
bit is 1 it denotes that the value of the
channel that was set is ON. if the bit is 0 it
denotes that the value of the channel that
was set is OFF.
Error Response
00 Address
1
Byte
1-247
01
Function code
1 Byte
0x81
02 Exception
code 1
Byte
Refer
to the Modbus standard for more
details.