5.3
Write multiple registers
7854678 - v.01 - 15092023
Message Byte
read position
CRC-16
Lower
Upper
In this example, the registers are returned with the data of the follower.
The empty (xx) registers in the example will return with data of the
follower in a normal response. This example shows 3 registers as
response for the example, but a response can have more than
that
The function code 10 (Hexadecimal) allows the lead device to write
information on the follower device. The command message structure is
shown below. The command message format is read from top byte to
bottom, so the lag address comes first.
Tab.8
Write multiple registers command format
Message byte
Read position
Lag address
Function code
Starting register
Upper
Lower
Quantity
Upper
Lower
Byte count
Starting register value
Upper
Lower
Next register value
Upper
Lower
Next register value
Upper
Lower
Last register value
Upper
Lower
CRC-16
Lower
Upper
In the instances above, the command request will write from decimal
register 32 until decimal register 35.
The empty (xx) registers above will need to be set with values
from decimal register 32 until decimal register 35, before sending
a request.
Tab.9
Write multiple registers normal response messages
Message Byte
read position
Lag address
Function code
Starting register
Upper
Lower
Quantity
Upper
Lower
en
5 Configuration
Example hexadecimal
output
xx
xx
Example hexadecimal
output
64
10
00
20
00
04
08
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
Example hexadecimal
input
00
03
00
20
00
04
7