Instruction manual
6. MODBUS COMMUNICATION PROTOCOL
IMR01H02-E3
52
6.6.4 Preset multiple registers [10H]
The query message specifies the starting register address and quantity of registers to be written.
The write data is arranged in the query message with high-order 8 bits first and low-order 8 bits next.
Only R/W holding registers can be specified.
Example: Data is written into the two holding registers from 00C8H to 00C9H of slave address 1.
Query message
Slave address 01H
Function code 10H
Starting number High 00H
Low C8H
Quantity High 00H
Low 02H
Number of data 04H
Data to first High 00H
register Low 64H
Data to next High 00H
register Low 64H
CRC-16 High BEH
Low 6DH
Normal response message
Slave address 01H
Function code 10H
Starting number High 00H
Low C8H
Quantity High 00H
Low 02H
CRC-16 High C0H
Low 36H
Error response message
Slave address 01H
80H + Function code 90H
Error code 02H
CRC-16 High CDH
Low C1H
Number of holding registers × 2
First holding register address
The setting must be between 1 (0001H) and
100 (0064H).
Any data within the range