
www.accuenergy.com
V: 1.10 Revised: January 2020
29
Chapter 9: Description of Modbus-TCP Protocol
5) Preset/Reset Multi-Register (Function Code 16)
Function Code 16
Query
This function code allows the user to modify the contents of a register. The example below is
a request to an Acuvim II series meter with device address 1 to preset the CT1(500) and CT2(5)
registers. The CT1 data address is 1008H and CT2 is at 1009H.
Transaction
identifier hi
Transaction
identifier lo
Protocol
identifier hi
Protocol
identifier lo
Length hi
Length lo
Unit
identifier
00H
00H
00H
00H
00H
0BH
01H
Fun
Data
start
reg hi
Data
start
reg lo
Data #of
reg hi
Data #of
reg lo
Byte
count
Value1
hi
Value1
lo
Value2
hi
Value2
lo
10H
10H
08H
00H
02H
04H
01H
F4H
00H
05H
Response
The normal response to a preset Multi-Register request including the MBAP Header, function
code, data start register and the number of registers is shown below.
Transaction
identifier hi
Transaction
identifier lo
Protoco-
lidentifier hi
Protocol
identifier lo
Length hi
Length lo
Unit
identifier
00H
00H
00H
00H
00H
06H
01H
Fun
Data start
reg hi
Data start
reg lo
Data #of
reg hi
Data #of
reg lo
10H
10H
08H
00H
02H