7. MODBUS
IMS01J02-E2
118
7.2.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-bit first and low-order 8-bit 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
First holding register address
Number of holding registers
×
2
The setting must be between 1 (0001H)
and 100 (0064H).