Device Sofar Ktlg3 Modbus Register 23: Name inverter name ac output energy total duration
Technical documentation for Modbus register 23 on Device Sofar Ktlg3. Data type: U DWORD. Includes Python and YAML configuration examples.
Technical Definition
The register name inverter name ac output energy total duration at address 23 is used to monitor name inverter name ac output energy total duration on the Device Sofar Ktlg3.
- Protocol: Modbus RTU
- Data Type: U DWORD
- Unit: min
- Access: Read Only
How to Read (Python pymodbus)
Use this code snippet to read this specific value via RS485:
from pymodbus.client.sync import ModbusSerialClient
client = ModbusSerialClient(method='rtu', port='/dev/ttyUSB0', baudrate=9600)
client.connect()
# Read name_inverter_name_ac_output_energy_total_duration (Address: 23)
# Note: Check if your device uses 0-based or 1-based addressing
result = client.read_input_registers(address=23, count=2, unit=1)
if not result.isError():
print(f"Raw Value: {result.registers}")
else:
print("Error reading register")
client.close()
Integration (Home Assistant)
Paste this into your configuration.yaml:
- platform: modbus_controller
name: "name_inverter_name_ac_output_energy_total_duration"
address: 23
value_type: U_DWORD
unit_of_measurement: "min"
Connection Diagram
Here is the standard RS485 wiring for this configuration:
graph TD
PLC[Host Controller / Home Assistant]
Device[Device Sofar Ktlg3]
PLC -- "A+ (D+)" --> Device
PLC -- "B- (D-)" --> Device
PLC -- GND --> Device
💡 Engineer's Insight
Analysis: Total Energy Yield Duration (h). Total operational hours contributing to energy yield.
Troubleshooting: Indicates cumulative active operating time. Should correlate with energy yield. Zero may indicate prolonged downtime or system issues.