
LeveLine
®
Instruction Manual
10401-01026 Rev D
6.14.5. Write Holding Registers
This command writes a set of values to a contiguous block of Modbus holding registers
and has the format:
Field
Size
Content
<a>
1 byte
Slave address
<function-code>
1 byte
0x10
<start-address>
2 bytes
Base address of the block of registers to be
written (0x0000-0xFFFF)
<nr-registers>
2 bytes
The number of registers to be written (0x0001-
0x007B)
<values-size>
1 byte
Size in bytes of <values> field (equal to 2 x <nr-
registers>)
<values>
<values-
size> bytes
Block of data containing the values to be written
to the registers, 2 bytes per register, in order of
increasing address from <start-address>
onwards
<crc>
2 bytes
CRC
NOTE: The address in the <start-address> field is the register number – 1.
The LeveLine
®
will set the registers to the specified values and send a response with the
format:
Field
Size
Content
<a>
1 byte
Slave address
<function-code>
1 byte
0x10
<start-address>
2 bytes
Base address of the block of registers (0x0000-
0xFFFF)
<nr-registers>
2 bytes
The number of registers (0x0001-0x007B)
<crc>
2 bytes
CRC
6.14.6. Report Slave ID
This command allows the master to retrieve identification information from the slave, and
has the format:
Field
Size
Content
<a>
1 byte
Slave address
<function-code>
1 byte
0x11
<crc>
2 bytes
CRC
On reception of this command, the LeveLine
®
will return a response with the format:
Field
Size
Content
<a>
1 byte
Slave address
<function-code>
1 byte
0x11
<data-size>
1 byte
The size of the rest of the packet, from
<slave-id> to <data> inclusive (15 for format
v1)
<slave-id>
1 byte
0x01
<run-status-indicator> 1 byte
0xFF
<format-ver>
1 byte
Version number indicating the format of the
© 2019 Aquaread
®
Ltd.
www.aquaread.com
Page 80 of 90