SunSpec SunSpec Model 122 — Measurements_Status Modbus TCP template

SunSpec Model 122 — Measurements_Status

SunSpec Model 122 is a standardized extended measurements and status block defined by the SunSpec Alliance for grid-tied inverters supporting PV, storage, or combined DER installations. This Modbus TCP template reads connection status flags for PV, storage, and ECP grid coupling, lifetime accumulated energy across all four reactive power quadrants, available active and reactive power headroom, active control mode bitmasks, inverter timestamp, ride-through status, and isolation resistance. Integrators using the ModbusCloud Gateway can track both lifetime yield and real-time operational state across any SunSpec-compliant inverter without vendor-specific customization.

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

Registers (22)

22 read, 0 write

NameUnitAccessAddress (Hidden until you enter your email)Function (hidden)Type (hidden)
idRead
lRead
pvconnRead
storconnRead
ecpconnRead
actwhWhRead
actvahVAhRead
actvarhq1varhRead
actvarhq2varhRead
actvarhq3varhRead
actvarhq4varhRead
varavalvarRead
varaval_sfRead
wavalvarRead
waval_sfRead
stsetlimmskRead
stactctlRead
tmsrcRead
tmsSecsRead
rtstRead
risohmsRead
ris_sfRead

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

  • Monitor lifetime active energy output via actwh to verify yield against contractual guarantees over time.
  • Track per-quadrant reactive energy counters to audit grid code compliance for Q management programs.
  • Alert on changes in stsetlimmsk to detect when an inverter hits a power or reactive-power setpoint limit.
  • Verify ecpconn and pvconn status flags after maintenance to confirm full grid reconnection before leaving site.
  • Compare waval against rated capacity to spot inverter derating events caused by thermal or grid conditions.

Installation

  1. Enable Modbus TCP on the inverter under the communication or Modbus section of its web interface, and note the assigned unit ID (commonly 1 or 126 depending on manufacturer).

  2. Connect the inverter to the same LAN segment as the ModbusCloud Gateway, ensuring TCP port 502 is reachable and no firewall blocks the connection.

  3. In the ModbusCloud portal, add a new device, import the SunSpec Model 122 template, and enter the inverter IP address and unit ID.

  4. Read back registers id and l to confirm the model is present, then spot-check actwh to verify live data is flowing correctly.

Things to watch for

Why do actvarhq1 through actvarhq4 all read zero?

Many inverters only increment reactive energy quadrant counters when reactive power control is actively engaged. If the inverter runs at unity power factor with no Q setpoint active, all four quadrant accumulators will remain zero. Enable a reactive power mode in the inverter to confirm the registers respond.

The gateway connects but id and l return unexpected values. What now?

SunSpec models are discovered dynamically: the actual Modbus address of Model 122 is not fixed and depends on how many models precede it in the device map. The template uses relative offsets from the model header. If absolute addresses are used instead, reads will land in the wrong model. Confirm the template is configured for relative addressing starting at the model id register.

Isolation resistance register ris reads NaN or 65535. Is the sensor faulty?

A NaN value in ris is normal when the inverter does not support isolation resistance measurement or when the measurement is unavailable at night with no DC voltage present. Check the inverter datasheet to confirm whether Ris is implemented, and verify DC strings are energized before expecting a valid reading.

Timestamp register tms shows a value far in the past. What is wrong?

tms counts seconds since 2000-01-01 00:00 UTC. If the inverter clock has never been synchronized, it may report a very low count. Verify that the inverter time synchronization source shown in tmsrc is active and reachable. Correct timekeeping is important for aligning energy logs with external billing or monitoring systems.

Want to see how it works?

Electrician working in an open distribution board