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