4 function 16: preset multiple registers, Function 16: preset multiple registers, Table 8.11 – RLE LD5100 User Manual
Page 57: Preset multiple registers packet structure
www.rletech.com
57
970.484.6510
8
Modbus Communication
8.2.4 Function 16: Preset Multiple Registers
To set multiple LD5100 parameter values, the master must send a Preset Multiple Registers
request packet. The Preset Multiple Register request packet specifies a starting register, the
number of registers, a byte count and the data to write to the registers. The register is
numbered from zero (40001 = zero, 40002 = one, etc).
Table 8.11 Preset Multiple Registers Packet Structure
Preset Registers Request Packet
Preset Registers Response Packet
Slave Address (1 byte)
Slave Address (1 byte)
16 (Function code) (1 byte)
16 (Function code) (1 byte)
Start Register (2 bytes)
Start Register (2 bytes)
# of registers to write (2 bytes)
# of registers (2 bytes)
Byte Count (1 byte)
Crc Checksum (2 bytes)
Data (2 bytes)
…
…
Crc Checksum (2 bytes)