PIR-130-AC/DC User Manual
Ver. 1.4.0, 2020/07/28
80/93
3.3
02 (0x02) Read Discrete Input
This function code is used to read the value at address 1xxxx.
Request
Byte
Description
Length
(in Bytes)
Value
00
Address
1
1 to 247
01
Function Code
1
0x02
02 - 03
Starting Address
2
0x0020 to 0x003F
04 - 05
Number of
Addresses
Requested
2
0x0001 to *N
*N = Number of addresses requested
Response
Byte
Description
Length
(in Bytes)
Value
00
Address
1
1 to 247
01
Function Code
1
0x02
02
Byte Count
1
*N
03
Value from the
Requested Address
*N
*N = (Number of addresses requested / 8)
Error Response
Byte
Description
Length
(in Bytes)
Value
00
Address
1
1 to 247
01
Function Code
1
0x82
02
Exception Code
1
Refer to the Modbus standard for more
details.