Communication with Modbus
2CMC48001M0201 103 A43/A44
Revision: C User Manual
9.2.2 Function Code 16 (Write multiple registers)
General Function code 16 is used to modify settings in the meter, such as date/time, to
control output and to reset values, such as power fail counter. It is possible to write
up to 123 consecutive registers in a single request. This means that several
settings can be modified and/or several reset operations can be performed in a
single request.
Request frame A request frame has the following structure:
The following is an example of a request (set Date/Time to November 11, 2010,
No. of registers, high byte
No. of registers, low byte
Value of register 0x8A00, high byte
Value of register 0x8A00, low byte
Value of register 0x8A01, high byte
Value of register 0x8A01, low byte
Value of register 0x8A02, high byte
Value of register 0x8A02, low byte
Error check (CRC), high byte
Error check (CRC), low byte
In this example the master sends a write request to the slave that has the
Modbus address 1. The first register to write is 0x8A00 and the number of
registers to write is 0x03. This means that the registers 0x8A00 to 0x8A02 are
written. Register 0x8A00 is set to the value 0x0A0B, and so on.