Modbus Reference · Sungrow
Sungrow Modbus TCP registers
Register reference for reading Sungrow SG-series string inverters and SH-series hybrids over local Modbus TCP, including battery and grid meter registers.
Connection parameters: Modbus TCP on port 502, function code FC04 (Read Input Registers) for inverter production; the grid-meter reader uses FC03. The default unit ID is 1.
Production registers (SG series)
| Function | Register(s) | Raw format | Scaling | Metric | App output |
|---|---|---|---|---|---|
| FC04 | 5030–5031 | U32 LE | × 1 W | Instantaneous inverter power | Watts |
| FC04 | 5003–5004 | U32 LE | × 0.1 kWh | Lifetime energy production | Wh (raw × 100) |
| FC04 | 5019 | U16 | × 0.1 V | Output voltage, phase A | Volts |
Sungrow production registers are little-endian (low word first), unlike most other brands on this site. Battery and inverter metrics are read in separate blocks because the registers are not contiguous.
Battery registers (SH series)
| Register(s) | Raw format | Scaling | Metric | Sign handling |
|---|---|---|---|---|
| 13017 | U16 | × 0.1 V | Battery voltage | Negative values not possible |
| 13019 | U16 read as S16 | × 1 W | Battery power | Positive discharge value is negated |
| 13022 | U16 | × 0.1% | State of charge | Clamped to 0–100% |
Efficient read: the contiguous range 13017–13022.
Grid meter registers
| Register(s) | Raw format | Scaling | Metric | Sign convention |
|---|---|---|---|---|
| 13007–13008 | I32 | × 1 W | Instantaneous grid power | Sungrow positive = import; value is negated for positive-export convention |
| 13035–13036 | U32 BE | × 0.1 kWh | Cumulative imported energy | Wh (raw × 100) |
| 13037–13038 | U32 BE | × 0.1 kWh | Cumulative exported energy | Wh (raw × 100) |
The grid-meter reader uses FC03 even though the inverter production reader uses FC04.
Sign conventions used throughout: grid power is normalized so positive = exporting and negative = importing. Battery power is normalized so charging and discharging follow the app's convention noted per table.
The most reliable connection is the SH hybrid's built-in LAN port; the WiNet-S dongle varies by firmware. Full setup walkthrough: Sungrow setup guide.
Want this data on your phone, without a server?
These are the registers SolarMark reads. The app polls your inverter directly over your local network: live power, energy history, battery State of Charge, and grid import/export, with no cloud account and no Home Assistant server to maintain. One-time purchase with a free 14-day trial. Get it on Google Play or the App Store.
