
SofarSolar SOFAR 5…24KTL-G3 (battery)
The SofarSolar SOFAR 5...24KTL-G3 is a three-phase hybrid PV inverter with integrated battery management, designed for residential and small commercial energy storage systems. Supported devices include the HYD 5...20K-3PH, HYD 3...6K-EP, SOFAR 80...136KTL, and SOFAR 5...24KTL-G3. This Modbus TCP template exposes the battery mode setpoint register, allowing your ModbusCloud Gateway to write the active energy storage mode remotely. Centralizing mode control in the portal helps operators coordinate battery behaviour across multiple sites without manual intervention at each inverter.
- Protocol
- Modbus TCP
- Connection
- Ethernet, Modbus TCP
- Registers
- 1, read and write
- Brand
- SofarSolar
- Compatible models
- HYD 5…20K-3PH · HYD 3…6K-EP · SOFAR 80…136KTL · SOFAR 5…24KTL-G3
- Last updated
Registers (1)
0 read, 1 write
| Name | Unit | Access | Address (Hidden until you enter your email) | Function (hidden) | Type (hidden) |
|---|---|---|---|---|---|
| batterymode | Write |
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
- Switch the battery to self-consumption mode automatically when grid tariffs rise above a threshold.
- Set forced-charge mode during off-peak hours and verify the command was accepted via portal logs.
- Coordinate battery mode changes across multiple HYD 5...20K-3PH sites from a single multi-site overview.
- Alert on unexpected mode changes that may indicate a third-party controller conflict or firmware reset.
- Track mode-change history to demonstrate demand-response compliance during grid operator audits.
Installation
Ensure the inverter has an LSE-3 or compatible LAN logger installed and connected to your local network; confirm it responds on port 8899, which the SOFAR G3 series uses for Modbus TCP.
In the ModbusCloud portal, add a new device, select Modbus TCP, enter the logger's IP address and port 8899, and set the unit ID to match the Modbus address configured on the inverter (default 1).
Import this template into the portal and assign it to the device; the batterymode register will appear in the control panel ready for write commands.
Send a test write to register 4368 with a known valid mode value, then confirm the inverter display or portal response reflects the change before enabling any automated rules.
Things to watch for
Why does my write command return no response or time out?
The SOFAR G3 series uses function code 16 (write multiple registers) for control registers. Ensure your gateway is not sending function code 6 (single register write). Also confirm the logger is reachable on port 8899 and that the unit ID matches the inverter's configured Modbus address.
The batterymode register accepts the write but the inverter ignores it. Why?
G3 control registers use volatile memory, meaning the inverter may reject commands outside the valid mode enumeration or when the inverter is in a fault or firmware-update state. Verify the inverter's operating status is normal before writing, and consult the SOFAR G3 Modbus protocol document for the list of valid mode values.
Register values differ across firmware versions. Which version is required?
SofarSolar has revised the G3 Modbus register map across firmware releases. The remote control section starting at 0x1100 is present from protocol version V1.22 onwards. Download the Modbus protocol document matching your firmware from the SOFAR download centre and cross-check the batterymode address before deploying.
Is it safe to write the batterymode register repeatedly from automated rules?
Write registers on the SOFAR G3 use volatile memory specifically to limit write wear, but frequent or incorrect mode writes can cause the inverter to cycle between modes, disrupt protection logic, or potentially invalidate warranty terms. Test automation rules carefully in manual mode first, and add rate-limiting to prevent runaway writes.
Want to see how it works?








