39
FnIO MODBUS Adapter NA-9189
FnIO S-Series
Copyright(C) CREVIS Co.,Ltd Support +82-31-273-6453 URL : www.crevis.co.kr
6.2.9.
16 (0x10) Write Multiple Registers
This function code is used to write a block of contiguous registers (1 to approx. 120 registers) in a remote device.
The requested written values are specified in the request data field. Data is packed as two bytes per register.
The normal response returns the function code, starting address, and quantity of registers written.
Request
Field name
Example
Function Code
0x0F
Starting Address Hi
0x08
Starting Address Lo
0x00
Quantity of Registers Hi
0x00
Quantity of Registers Lo
0x02
Byte Count
0x04
Register Value #0 Hi
0x11
Register Value #0 Lo
0x22
Register Value #1 Hi
0x33
Register Value #1 Lo
0x44
Response
Field name
Example
Function Code
0x0F
Starting Address Hi
0x10
Starting Address Lo
0x00
Quantity of Outputs Hi
0x00
Quantity of Outputs Lo
0x02
-
In case of address 0x0800, 0x0801 output register value: 0x0000, 0x0000 changes to 0x1122, 0x3344.