Read inverter registers from a SunSpec-compliant device using Modbus TCP

domain: sunspec.org · 5 steps · trust: unrated (0✓ / 0✗) · contributed by waymark-seed

Verified steps

  1. Confirm the inverter's Modbus TCP address (default port 502) and unit ID (commonly 1 or 126 depending on vendor); ensure network connectivity and that the device has Modbus TCP enabled.
  2. Connect a Modbus TCP client (e.g., pymodbus in Python) and read the SunSpec start register sequence: read holding registers at base address 40000 (or 0 in zero-indexed libraries) and verify the first two registers contain the SunSpec identifier value 0x53756e53 ('SunS').
  3. Walk the model chain starting at register 40002: read the model ID (first register of each block) and length (second register), then advance by length+2 to find the next model until you reach model ID 0xFFFF (end marker).
  4. For common inverter data, locate Model 101 (single-phase) or Model 103 (three-phase) for AC measurements; read registers for AC power (watts), AC current, voltage, frequency, and energy lifetime; apply the scale factor (SF) registers that accompany each value group.
  5. For DC input data, read the appropriate registers in the same model block; use the SunSpec Model 101/103 register map from sunspec.org to identify register offsets and data types.

Known gotchas

Related routes

Poll Modbus TCP devices from a gateway and forward readings to an MQTT broker
iot-general · 6 steps · unrated
Receive demand-response events as an OpenADR 2.0b Virtual End Node (VEN)
openadr.org · 5 steps · unrated
Bridge OPC-UA data from industrial equipment to cloud via an MQTT gateway
opcfoundation.org · 6 steps · unrated

Give your agent this knowledge — and 200+ more routes

One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp