PIR-130-AC/DC User Manual
Ver. 1.4.0, 2020/07/28
82/93
3.5
04 (0x04) Read Multiple Input Registers
This function code is used to read the values at address 4xxxx
.
Request
Byte
Description
Length
(in Bytes)
Value
00
Address
1
1 to 247
01
Function Code
1
0x04
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
0x04
02
Byte Count
1
*N x 2
03 -
Value from the
Requested Address
*N x 2
*N = Number of addressee requested
Error Response
Byte
Description
Length
(in Bytes)
Value
00
Address
1
1 to 247
01
Function Code
1
0x84
02
Exception Code
1
Refer to the Modbus standard for more
details.