PIR-130-AC/DC User Manual
Ver. 1.4.0, 2020/07/28
79/93
3.2
01 (0x01) Read Coils
This function code is used to read the
values at addresses 0xxxx and 1xxxx.
Request
Byte
Description
Length
(in Bytes)
Value
00
Address
1
1 to 247
01
Function Code
1
0x01
02 - 03
Starting Address
2
Refer to the Modbus Address Mapping
Table for details.
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
0x01
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
0x81
02
Exception Code
1
Refer to the Modbus standard for more
details.