4. MODBUS COMMUNICATION PROTOCOL
IMR02F04-E1
35
4.6.2 Preset single register [06H]
The query message specifies data to be written into the designated holding register. The write data is
arranged in the query message with high-order 8-bit first and low-order 8-bit next. Only R/W holding
registers can be specified.
Example: Data is written into the holding register 00F4H [Alarm 1 set value] of slave address 1.
Query message
Slave address
01H
Function code
06H
Holding register number
High
00H
Low
F4H
Write data
High
00H
Low
32H
CRC-16 High
49H
Low
EDH
Normal response message
Slave address
01H
Function code
06H
Holding register number
High
00H
Low
F4H
Write data
High
00H
Low
32H
CRC-16 High
49H
Low
EDH
Error response message
Slave address
01H
80H
Function code
86H
Error code
02H
CRC-16 High
C3H
Low
A1H
Any data within the range
Contents will be the same as query message data.