16
(10
)
This function code is used to write a block of contiguous registers (1 to 20 regis-
dec
hex
ters) in a remote device. The requested written values are specified in the request
Write Multiple
data field. Data is packed as two bytes per register. The normal response returns
Register
the function code, the starting address, and the number of registers written.
Request
Function code
Starting address
Number of registers
Number of bytes
Register values
N* = number of registers to be written
Response
Function code
Starting address
Number of registers
Error
Error code
Exception code
Example
Example request for writing two registers (F00B
Request
Field Name
Transaction Identifier Hi
Transaction Identifier Lo
Protocol Identifier Hi
Protocol Identifier Lo
Length Hi
Length Lo
Unit Identifier
Function code
Starting Address Hi
Starting Address Lo
Quantity of Registers Hi
Quantity of Registers Lo
Byte Count
Register Value Hi
Register Value Lo
1 byte
10
hex
2 bytes
0000
hex
2 bytes
0001
hex
1 byte
2 x N*
N* x 2 bytes
Value
1 byte
10
hex
2 bytes
0000
hex
2 bytes
1 to 123 (7B
1 byte
90
hex
1 byte
01 or 02 or 03 or 04
Response
Hex
Field Name
00
Transaction Identifier Hi
01
Transaction Identifier Lo
00
Protocol Identifier Hi
00
Protocol Identifier Lo
00
Length Hi
11
Length Lo
00
Unit Identifier
10
Function code
00
Starting Address Hi
0B
Starting Address Lo
00
Quantity of Registers Hi
02
Quantity of Registers Lo
04
7F
FF
Englisch (US)
to FFFF
hex
or 0078
hex
to FFFF
hex
)
hex
– F00C
).
hex
hex
Hex
00
01
00
00
00
11
00
10
00
0B
00
02
71