DKM-250 User Manual V-2.0
37
Error codes
Only 3 error codes are used:
01: illegal function code
02: illegal address
10: write protection (attempt to write a read_only register)
Data types
Each register consists of 16 bits (2 bytes)
If the data type is a byte, only the low byte will contain valid data. High byte is don’t care.
For data type longer than 16 bits, consecutive registers are used. The least significant
register comes first.
Commands to the unit are written to below addresses.
If the Modbus Write Password parameter
(
moDB WRIT
moDB WRIT
moDB WRIT
moDB WRIT
)”
is left 0 as in the factory settings,
then the unit will not ask any password for Modbus commands and Modbus writes.
If the Modbus Write Password parameter
(
moDB WRIT
moDB WRIT
moDB WRIT
moDB WRIT
)”
is set to a value other than 0, then
the unit will require a password for commands and data writes.
If the value recorded as Modbus Write Password parameter
(
moDB WRIT
moDB WRIT
moDB WRIT
moDB WRIT
)”
or 3271 is written
to the address 7168, then during next 10 minutes, Modbus area can be written and below
commands can be executed. All commands (other than the password) may be activated by
writing a value other than zero to the related register.
ADRESS
NAME
DESCRIPTION
LENGTH
R/W
DATA TYPE
COEFF
7168
Password
Programming password
16 BIT
W-O
unsigned word
1
7169
Reset
demand
Reset all demand registers
16 BIT
W-O
unsigned word
1
7170
Reset kWh
Reset all kWh counters
16 BIT
W-O
unsigned word
1
7171
Reset Ah
Reset all Ah counters
16 BIT
W-O
unsigned word
1
7172
Reset hour
Reset run counter
16 BIT
W-O
unsigned word
1
7173
Reset alarm
Reset all alarms
16 BIT
W-O
unsigned word
1
7174
Reset Min-
Max
Reset all min and max values
16 BIT
W-O
unsigned word
1
7175
Factory set
Return to factory settings
16 BIT
W-O
unsigned word
1
7176
Boot mode
The unit switches to the boot
mode for firmware download
through USB.
16 BIT
W-O
unsigned word
1
5.2. COMMANDS