SunSpec SunSpec Model 220 — Secure AC Meter Selected Readings Modbus TCP template

SunSpec Model 220 — Secure AC Meter Selected Readings

SunSpec Model 220 is a standardized AC meter information model defined by the SunSpec Alliance, used by any SunSpec-compliant energy meter that supports cryptographically signed readings. The template reads instantaneous measurements, including current, phase voltage, grid frequency, real power, apparent power, reactive power, and power factor, each paired with its scale factor. It also captures four-quadrant cumulative energy totals (active, apparent, and reactive), plus tamper-evident security fields: a Unix timestamp, millisecond offset, sequence number, cryptographic algorithm identifier, and signature block count. This template enables verifiable, audit-ready energy monitoring over Modbus TCP.

Protocol
Modbus TCP
Connection
Ethernet, Modbus TCP
Registers
33, read only
Brand
SunSpec
Last updated

Registers (33)

33 read, 0 write

NameUnitAccessAddress (Hidden until you enter your email)Function (hidden)Type (hidden)
idRead
lRead
aARead
a_sfRead
phvVRead
v_sfRead
hzHzRead
hz_sfRead
wWRead
w_sfRead
vaVARead
va_sfRead
varvarRead
var_sfRead
pfPctRead
pf_sfRead
totwhexpWhRead
totwhimpWhRead
totwh_sfRead
totvahexpVAhRead
totvahimpVAhRead
totvah_sfRead
totvarhimpq1varhRead
totvarhimpq2varhRead
totvarhexpq3varhRead
totvarhexpq4varhRead
totvarh_sfRead
evtRead
tsRead
msRead
seqRead
algRead
nRead

Loading registers…

Send your device list

If a device is not in the library yet, we build the template for free as soon as we have the register data.

Use cases

  • Verify grid frequency stays within tolerance using the hz register during commissioning.
  • Track totwhexp and totwhimp over time to produce accurate import/export energy reports.
  • Monitor the evt bitmask register to detect and alert on meter fault conditions in real time.
  • Compare totvarhimpq1 and totvarhexpq3 quadrant energy values to audit reactive power flows.
  • Use the ts and seq registers to confirm reading freshness and detect replayed or stale data.

Installation

  1. Enable Modbus TCP on the meter under its communication or network settings, and note the assigned IP address and TCP port (default 502).

  2. Connect the meter to the same LAN segment as the ModbusCloud Gateway, ensuring no firewall blocks port 502 between them.

  3. In the ModbusCloud portal, add a new device, import the SunSpec Model 220 template, and assign the correct Modbus unit ID configured on the meter.

  4. Verify the connection by spot-checking the w register for a live real power reading and confirming the ts register advances with each poll.

Things to watch for

Why do current or power readings appear to be off by a factor of ten?

SunSpec uses paired scale-factor registers. Read a_sf alongside a, then compute the real value as a * 10^a_sf. The same pattern applies to every measured quantity. If your client ignores scale factors, all readings will be systematically wrong.

The gateway connects but all registers return zero or NaN. What now?

Confirm the meter has Modbus TCP enabled and is actively measuring an energised circuit. Check that the Modbus unit ID in the portal matches the meter configuration. Some meters only expose SunSpec registers when the metered circuit carries live voltage.

Why does the ts register never change between polls?

The timestamp and seq registers are updated only when the meter generates a new signed snapshot. If the meter's signing interval is longer than your poll interval, ts will appear static. Check the meter's signing or logging period in its configuration interface.

What does the alg register value represent, and can I ignore it?

The alg register identifies the cryptographic algorithm the meter uses to sign the reading snapshot. It is informational for most monitoring setups, but if you are using the signature for compliance or billing verification, record it alongside the signature blocks and the ts value to reconstruct a verifiable audit trail.

Want to see how it works?

Electrician working in an open distribution board