8.2.2 Preset (Write) Multiple Registers (Function 0x10)
The function code is used to write a block of contiguous registers (1 to 120 registers) in remote
device.
Query
The query message specified the register references to be preset. Registers are addressed starting at
zero: register 1 is addressed as 0. The requested preset values are specified in the query data field.
Data is packed as two bytes per register.
Here is an example of a request to preset two registers starting at 40001 to 00 0A and 01 02 hex in
slave device 1:
Response
The normal response returns the slave address, function code, starting address and quantity of
registers preset. Here is an example of a response to the query shown above:
8.2.3 Placing the CRC into message
When the 16 bit CRC (two 8 bit bytes) is transmitted in the message, the low order byte will be
transmitted first, followed by the high order byte.
For example, if the CRC value is 1241 hex: