Sofar Sofar KTLX-G3 Modbus RTU template

Sofar KTLX-G3

Three-phase PV inverter that reports solar yield, grid power and faults, with a settable feed-in limit.

The Sofar KTLX-G3 is a three-phase string inverter that converts solar power from two MPPT inputs into grid power for homes and small commercial buildings. This Modbus RTU template reads PV, grid and energy values, operating state, fault codes and temperatures, and lets you set the feed-in limit and switch the inverter on or off from ModbusCloud.

Protocol
Modbus RTU
Connection
RS485, 9600 baud
Registers
106, read and write
Brand
Sofar
Key readings
PV power · PV voltage and current · Grid power · Phase voltage · Daily yield · Total yield · Imported and exported energy · Fault codes
Available commands
Feed-in limit · Remote on/off
Compatible models
KTLX-G3 · Sofar 4.4KTLX-G3
Last updated

Registers (106)

99 read, 11 write

NameUnitAccessAddress (Hidden until you enter your email)Function (hidden)Type (hidden)
PV Voltage 1VRead
PV Current 1ARead
PV Power 1kWRead
PV Voltage 2VRead
PV Current 2ARead
PV Power 2kWRead
PV Power TotalkWRead
Grid FrequencyHzRead
Active Power Output TotalkWRead
Reactive Power Output TotalvarRead
Apparent Power Output TotalVARead
Active Power PCC TotalkWRead
Reactive Power PCC TotalvarRead
Apparent Power PCC TotalVARead
Voltage L1VRead
Current Output L1ARead
Active Power Output L1kWRead
Reactive Power Output L1varRead
Power Factor Output L1Read
Current PCC L1ARead
Active Power PCC L1kWRead
Reactive Power PCC L1varRead
Power Factor PCC L1Read
Voltage L2VRead
Current Output L2ARead
Active Power Output L2kWRead
Reactive Power Output L2varRead
Power Factor Output L2Read
Current PCC L2ARead
Active Power PCC L2kWRead
Reactive Power PCC L2varRead
Power Factor PCC L2Read
Voltage L3VRead
Current Output L3ARead
Active Power Output L3kWRead
Reactive Power Output L3varRead
Power Factor Output L3Read
Current PCC L3ARead
Active Power PCC L3kWRead
Reactive Power PCC L3varRead
Power Factor PCC L3Read
Active Power PV ExtkWRead
Active Power Load SyskWRead
Voltage Phase L1NVRead
Current Output L1NARead
Active Power Output L1NkWRead
Current PCC L1NARead
Active Power PCC L1NkWRead
Voltage Phase L2NVRead
Current Output L2NARead
Active Power Output L2NkWRead
Current PCC L2NARead
Active Power PCC L2NkWRead
Voltage Line L1VRead
Voltage Line L2VRead
Voltage Line L3VRead
Solar Generation TodaykWhRead
Solar Generation TotalkWhRead
Load Consumption TodaykWhRead
Load Consumption TotalkWhRead
Import Energy TodaykWhRead
Import Energy TotalkWhRead
Export Energy TodaykWhRead
Export Energy TotalkWhRead
System StateRead
Fault 1Read
Fault 2Read
Fault 3Read
Fault 4Read
Fault 5Read
Fault 6Read
Fault 7Read
Fault 8Read
Fault 9Read
Fault 10Read
Fault 11Read
Fault 12Read
Waiting TimesRead
Inverter Temperature 1°CRead
Inverter Temperature 2°CRead
Heatsink Temperature 1°CRead
Heatsink Temperature 2°CRead
Module Temperature 1°CRead
Module Temperature 2°CRead
Set Time YearWrite
Set Time MonthWrite
Set Time DayWrite
Set Time HourWrite
Set Time MinuteWrite
Set Time SecondWrite
Set Time ConfirmWrite
Feed-in Limitation ModeRead and write
Feed-in Maximum PowerWRead and write
Parallel ControlRead
Parallel Master SlaveRead
Parallel AddressRead and write
Remote Switch On OffRead and write
System Time YearRead
System Time MonthRead
System Time DayRead
System Time HourRead
System Time MinuteRead
System Time SecondRead
Serial NumberRead
Hardware VersionRead
Software VersionRead

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.

Number of installations (optional)

Use cases

  • Show PV power per input, grid power and daily yield of a Sofar installation on a dashboard.
  • Get an alert when the system state changes to a fault or a fault code register is no longer 0.
  • Compare generation, import and export per day in the history to see how much solar power is used on site.
  • Lower the feed-in limit remotely when the grid operator or a contract asks for it.
  • Spot a failing string by comparing the voltage and current of the two PV inputs over time.

Installation

  1. Switch off the inverter and connect a twisted pair from the COM connector, pin 1 (A+) and pin 4 (B-), to the RS485 port of the ModbusCloud Gateway; fit 120 ohm between pins 2 and 3 at the end of the bus.

  2. Check on the inverter display that the RS485 address is unique on the bus and the speed is 9600 baud.

  3. In ModbusCloud, add a Modbus device with protocol RTU, the inverter address, 9600 baud and 8N1, and import this template.

  4. Switch the inverter back on and check that the RS485 symbol appears on its display and that Grid Frequency shows about 50 Hz.

Things to watch for

The inverter does not answer. What should I check?

Check address and 9600 baud on the display and swap A and B if nothing comes back. Pins 1 and 2 are both A+, pins 3 and 4 both B-. Only one Modbus master can poll the inverter at a time, so disconnect any other RS485 reader.

Why are the PCC values and import and export counters zero?

These values come from an energy meter at the grid connection point that the inverter reads. Without a meter connected to the inverter, only the output values of the inverter itself are filled.

A fault code register shows a number that is not in the list. What does it mean?

Each fault register is a bitfield: every bit is one fault, and when several faults are active their values add up. Split the number into powers of two to find the active faults.

Can I change the feed-in limit from ModbusCloud?

Yes, the feed-in mode and limit and remote on/off are writable. Writing is off per gateway by default; request it for the gateway in the portal. Write the mode and the limit together and check the result by reading both back.

More RTU templates

Want to see how it works?

Electrician working in an open distribution board