
SofarSolar Inverter (pv)
The SofarSolar Inverter (pv) template connects ModbusCloud to SofarSolar grid-tied and hybrid inverters over Modbus RTU via an RS485 interface. It reads two core registers: active output power, giving you a real-time view of current PV generation, and cumulative energy, recording total kilowatt-hours produced since installation. Together these two values let installers and asset managers track generation performance, validate system health, and feed yield data into ModbusCloud dashboards without custom scripting. The template covers both standard Inverter and Hybrid Inverter variants.
- Protocol
- Modbus RTU
- Connection
- RS485
- Registers
- 2, read only
- Brand
- SofarSolar
- Compatible models
- Inverter · Hybrid Inverter
- Last updated
Registers (2)
2 read, 0 write
| Name | Unit | Access | Address (Hidden until you enter your email) | Function (hidden) | Type (hidden) |
|---|---|---|---|---|---|
| power | W | Read | |||
| energy | Wh | Read |
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 real-time PV output power to detect sudden generation drops caused by shading or inverter faults.
- Track cumulative energy yield over time to verify that annual production targets are being met.
- Alert on a sustained zero-power reading during daylight hours to catch tripped inverters early.
- Compare daily energy totals across multiple SofarSolar sites from a single ModbusCloud overview.
- Report monthly generation figures from the energy register directly into client performance reports.
Installation
Enable Modbus RTU on the inverter: on models with an LCD panel, navigate to the communication or Modbus settings menu and confirm the baud rate is set to 9600, parity none, 1 stop bit, and assign a unique unit ID between 1 and 63.
Wire the RS485 bus to the ModbusCloud Gateway: connect A+ and B- from the inverter COM port to the corresponding A and B terminals on the Gateway, and fit a 120-ohm termination resistor at the far end of the bus if the inverter is the last device.
In the ModbusCloud portal, add the Gateway, open the template library, import the SofarSolar Inverter (pv) template, and assign the unit ID that matches the inverter's Modbus address.
Verify the connection by checking the live value of the power register in the portal while the inverter is producing; a non-zero reading during daylight confirms correct communication.
Things to watch for
The power register always reads zero even in daylight. Why?
First confirm the inverter is actively producing and not in standby or fault state. Then check that the RS485 A and B wires are not swapped. SofarSolar inverters often require the A+ and B- labels to be reversed relative to what the manual shows. Swapping the pair usually resolves this immediately.
Readings appear but the values look wrong or scaled oddly. What now?
SofarSolar has used different Modbus protocol versions across inverter generations, and register scaling varies between them. The power register at address 533 and the energy register at address 540 apply to the legacy (pre-G3) series. If your inverter is a G3 or HYD-3PH model, its register map differs and this template will return incorrect values.
The Gateway connects to the bus but occasionally drops readings. How do I fix it?
Intermittent dropouts on SofarSolar RS485 links are commonly caused by missing bus termination or an incorrect baud rate. Confirm 9600 bps, 8-N-1 on both sides, add a 120-ohm resistor between A+ and B- at the cable endpoint, and ensure no other device is polling the inverter at the same time.
The energy register returns a large unexpected number. Is this normal?
The energy register is a 32-bit unsigned integer spanning two consecutive 16-bit Modbus registers. If your reading tool assembles the word order incorrectly, the result will be a corrupted large value. SofarSolar's protocol uses Big Endian order: the high word comes first. Verify your Modbus master reads both registers and combines them high-word-first.
Want to see how it works?








