Energy#SMA#Solar#Modbus#SunSpec#Energy

SMA Sunny Tripower KNX Integration via SunSpec Modbus for PV Yield Monitoring

SmartMāja Engineering Team·2027-05-21·7 min read

SMA Sunny Tripower inverters implement the SunSpec Alliance Modbus register model, providing a standardised Modbus TCP interface for photovoltaic monitoring. This article covers enabling Modbus TCP on the Sunny Tripower 15000TL and 25000TL, reading SunSpec registers for power and energy, using the SMA Energy Meter for grid import/export measurement, and configuring a complete KNX self-consumption control scheme via an Intesis IN701KNX gateway.

Enabling Modbus TCP on Sunny Tripower

Access the Sunny Tripower web interface at its DHCP-assigned IP address (default credentials: user = 'user', password = '0000' unless changed during commissioning). Navigate to Device > Settings > External Communication > Modbus. Enable: Modbus TCP = On, Port = 502, SunSpec Model = Enabled. After saving, allow 30 seconds for the Modbus server to initialise. The Sunny Tripower responds to Modbus function codes 3 (read holding registers) and 4 (read input registers). All SunSpec registers use function code 3.

SunSpec Register Map

The SunSpec Common Model starts at base address 40001 on most SMA implementations. Key registers: Register 40083 = AC Power output (int16, watts, instantaneous AC power at inverter output). Register 40093 = AC Energy total (uint32, watt-hours accumulated since installation, stored as two consecutive 16-bit registers). Register 40095 = DC Power input (int16, watts, total DC input from all strings). Register 40107 = Operating Status (uint16: 0=off, 1=sleeping/night, 2=starting, 4=MPPT active/producing, 5=throttled/derated/grid frequency response).

For multi-string inverters (Sunny Tripower with two MPPT trackers), individual string data is available in SunSpec Model 103 registers beginning at 40150. String 1 DC current: register 40158. String 2 DC current: register 40168. These are useful for shade analysis and soiling monitoring but are optional for KNX integration.

SMA Energy Meter

The SMA Energy Meter (order number EMETER-20-400V) is a 3-phase bidirectional energy meter that mounts on a standard DIN rail and communicates via Ethernet using its own SMA-proprietary Modbus TCP interface on port 9522. It measures grid import, grid export, and optionally PV generation (when installed at the PV output rather than the grid connection point).

SMA Energy Meter Modbus TCP registers at port 9522 (all read-only, function code 3): Register 512 = Active grid power total (int32, watts, two registers — positive = import from grid, negative = export to grid). Register 528 = Total import energy (uint32, watt-hours × 0.001, i.e. the raw register value in Wh must be divided by 1000 for kWh). Register 544 = Total export energy (uint32, watt-hours × 0.001).

Intesis IN701KNX Dual-Device Configuration

The Intesis IN701KNX200O000 supports up to four simultaneous Modbus TCP connections. In MAPS, create two Modbus TCP devices: Device 1 = Sunny Tripower (inverter IP, port 502, unit ID 3 — SMA default), Device 2 = Energy Meter (meter IP, port 9522, unit ID 1). Assign signal objects: from Device 1 — AC Power → GA 9/0/0, Status → GA 9/0/3, PV Energy → GA 9/0/2. From Device 2 — Grid Power signed → GA 9/0/1, Import Energy → GA 9/0/4, Export Energy → GA 9/0/5. DPT assignments: power values use DPT 9.001 (2-byte float, suitable for values up to ~6500 W) or DPT 14.056 (4-byte float) for large installations; energy values use DPT 13.010 (4-byte signed energy in Wh).

KNX GA Scheme and Self-Consumption Logic

Recommended GA scheme: GA 9/0/0 = PV AC power (W), GA 9/0/1 = grid power signed (W, negative = export), GA 9/0/2 = PV energy today (Wh, reset at midnight by Intesis daily counter), GA 9/0/3 = inverter status (0-5), GA 9/0/4 = grid import total energy (Wh), GA 9/0/5 = grid export total energy (Wh).

Self-consumption control: when GA 9/0/1 drops below -2000 (exporting more than 2 kW), write heat pump SG Ready relay GA 8/4/2 = 1 (S2 closed, State 3 = recommended on). When GA 9/0/1 drops below -5000 W, additionally write EV charger start GA 9/5/0 = 1. When GA 9/0/1 rises above -500 W (near zero export), write S2 = 0 (State 2 = normal) to avoid unnecessary heat pump overrun.

Sunny Home Manager 2.0 as Alternative

The SMA Sunny Home Manager 2.0 (SHM2) replaces the separate Energy Meter for smaller residential installations. The SHM2 integrates a 3-phase meter, communication module, and local Modbus TCP server providing a pre-calculated house power balance (PV − load = surplus, signed). Its Modbus TCP interface at port 502 provides a single surplus power register, eliminating the need for the KNX system to perform the subtraction. This simplifies the IN701KNX configuration and is recommended for residential projects. For commercial multi-inverter installations, the separate Energy Meter at the main grid connection point remains the correct approach.

Commissioning Verification

After MAPS upload to IN701KNX, open ETS6 Group Monitor and verify GA 9/0/0 (PV power) shows a positive value during daylight hours, GA 9/0/1 (grid power) shows a negative value when PV exceeds house load, and GA 9/0/3 (status) reads 4 during normal MPPT operation. Temporarily switch off all house loads at the main breaker (during the day) and verify GA 9/0/1 goes strongly negative (full export). Restore loads and verify the value returns toward zero. This confirms bidirectional grid measurement and validates the sign convention for self-consumption logic.

Need help with your KNX or DALI project?

Our certified engineers can discuss panel design, commissioning, integrations and project-specific edge cases. Free initial consultation.

Contact our engineers →
Ielādējas...
Uz augšu