Read Input Registers-Function Code 03; Write Input Register-Function Code 06 - Hach 9186 Instrument Manual

Oxygen scavenger analyzer
Table of Contents

Advertisement

Modbus Communication
8.3.1 Read Input Registers—Function Code 03
8.4 Write Input Register—Function Code 06
40
This command reads the binary contents of a holding register in the 4xxxx
address range. The query message specifies the starting register and quantity of
registers to be read. Registers are addressed starting at zero.
example that requests the value from register 40001.
Table 13 Read Input Register Query
Field Name
Slave address
Function
Starting address high byte
Starting address low byte
Number of registers high byte
Number of registers low byte
CRC high byte
CRC low byte
Assume that register 40001 contains the value 5 (see
Table 14 Read Input Register Response
Field Name
Slave address
Function
Byte count
Data high byte (register 40001)
Data low byte (register 40001)
CRC high byte
CRC low byte
This command writes the binary contents of a single holding register in the 4xxxx
address range. The query message specifies the register address and value to be
written. Registers are addressed starting at zero. The following message writes
the value 5 to register 40004 (see
Table 15 Write Input Register Query
Field Name
Slave address
Function
Starting address high byte
Starting address low byte
Data high byte
Data low byte
CRC high byte
CRC low byte
Table
Table
15).
Table 16
shows the response.
Table 13
is an
Hex Value
01
03
00
01
00
01
84
0A
14).
Hex Value
01
03
02
00
05
78
47
Hex Value
01
06
00
03
00
05
B9
C9

Advertisement

Table of Contents
loading

This manual is also suitable for:

621-691-086

Table of Contents