PIR-130-AC/DC User Manual
Ver. 1.4.0, 2020/07/28
86/93
3.9
16 (0x10) Write Multiple Registers
This function code is used to write multiple values.
Request
Byte
Description
Length
(in Bytes)
Value
00
Address
1
1 to 247
01
Function Code
1
0x10
02 - 03
Starting Address
2
Refer to the Modbus Address Mapping
Table for details.
04 - 05
Number of
Addresses
Requested
2
0x0001 to *N
06
Byte Count
1
*N x 2
07
The values to be
written
*N x 2
*N = Number of addresses requested
Response
Byte
Description
Length
(in Bytes)
Value
00
Address
1
1 to 247
01
Function Code
1
0x10
02 - 03
Starting Address
2
The value is the same as bytes 02 and 03
of the Request
04 - 05
Number of
Addresses
Requested
2
The value is the same as bytes 04 and 05
of the Request
Error Response
Byte
Description
Length
(in Bytes)
Value
00
Address
1
1 to 247
01
Function Code
1
0x90
02
Exception Code
1
Refer to the Modbus standard for more
details.