![Hach 9186 Скачать руководство пользователя страница 41](http://html1.mh-extra.com/html/hach/9186/9186_instrument-manual_3179647041.webp)
Modbus Communication
41
8.4.1 Write Multiple Input Registers—Function Code 16 (10 Hex)
This command writes the binary contents of multiple holding registers in the 4xxxx
address range. The query message specifies the starting register address and
values to be written. Registers are addressed starting at zero. The following
message writes the value 1, 2, 3, and 4 to registers 40001, 40002, 40003, and
40004 respectively (see
).
shows the response.
Table 16 Write Input Register Response
Field Name
Hex Value
Slave address
01
Function
06
Starting address high byte
00
Starting address low byte
03
Data high byte
00
Data low byte
05
CRC high byte
B9
CRC low byte
C9
Table 17 Write Multiple Input Registers Query
Field Name
Hex Value
Slave address
01
Function
10
Starting address high byte
00
Starting address low byte
01
Data high byte
00
Data low byte
05
CRC high byte
B9
CRC low byte
C9
Table 18 Write Multiple Input Registers Response
Field Name
Hex Value
Slave address
01
Function
06
Starting address high byte
00
Starting address low byte
03
Number of registers high byte
00
Number of registers low byte
04
Byte count
08
Data high byte
00
Data low byte
01
Data high byte
00
Data low byte
02
Data high byte
00
Data low byte
03
Data high byte
00