41
02(0x02) Read Digital Input Value
Request
00 Address
1
Byte
1-247
01 Function
code 1
Byte
0x02
02~03 Starting channel
2 Bytes 0x0000~0x0003
04~05 Input channel
numbers
2 Bytes 0x0001~0x0004
Response
00 Address
1
Byte
1-247
01
Function code
1 Byte
0x02
02
Byte count
1 Byte
1
03 Input
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 Input response. if the bit
is 0 it denotes that the value of the channel
that was no Input response .
Error Response
00 Address
1
Byte
1-247
01
Function code
1 Byte
0x82
02 Exception
code 1
Byte
Refer
to the Modbus standard for more
details.