Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielcolceriu/de71b3349f6894610f5af0321ffd28a6 to your computer and use it in GitHub Desktop.
Save gabrielcolceriu/de71b3349f6894610f5af0321ffd28a6 to your computer and use it in GitHub Desktop.
Hiking DDS238-2 ZN/S energy meter: Modbus holding registers
Hiking DDS238-2 ZN/S energy meter: Modbus holding registers
register(s) word order data format meaning unit (symb.)
0000h-0001h hi-lo unsigned? total energy decawatt-hours (daW·h)
0008h-0009h hi-lo unsigned? export energy¹ decawatt-hours (daW·h)
000Ah-000Bh hi-lo unsigned? import energy¹ decawatt-hours (daW·h)
000Ch unsigned? voltage decivolts (dV)
000Dh unsigned? current centiamperes (cA)
000Eh two's compl. active power watts (W)
000Fh unsigned? reactive power¹ watts (W)
0010h unsigned? power factor
0011h unsigned? frequency centihertz (cHz)
0015h:hi octet unsigned station address <n/a>
0015h:lo octet ² baud rate baud (Bd)
0016h-0017h hi-lo? unsigned? trip energy¹ decawatt-hours? (daW·h)
¹ "special order function"
² unsigned, with value mapping:
1 = 9600 Bd
2 = 4800 Bd
3 = 2400 Bd
4 = 1200 Bd
(there may be more values)
Register 0015h is writable. The meter does not understand the 'write sigle regi-
ster' function code (6), only the 'write multiple registers' function code (16).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment