Logic Machine Forum
Modbus connection problem LG Energy Storage System - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: Modbus connection problem LG Energy Storage System (/showthread.php?tid=5979)



Modbus connection problem LG Energy Storage System - KoBra - 02.05.2025

Hi, i am facing problems with reaching a LG energy storage system

1. I have no errors in the log but the data is not automatically updated when they change, only when i update the connection setting (persistant or not connection makes no difference)
2. I have two items i need help to map:

HEMS_R_FAULT_MSG
1150 = 32 bits bitmask (for 25 error codes)
1151 = 32 bits bitmask (for 3 error codes)

HEMS_RW_POWER_METER_ACTIVE_POWER
1162+1163 = 4 bytes big-endian (x100) 

i checked the modbus part on the website but i can't find it :-)


RE: Modbus connection problem - Daniel - 02.05.2025

Use Read test to find correct settings, later use modbus profile app to create profile.


RE: Modbus connection problem - KoBra - 02.05.2025

(02.05.2025, 12:47)Daniel Wrote: Use Read test to find correct settings,  later use modbus profile app to create profile.

Hi Daniel, I can read, it is also read when saving but not updating. Whatever i try (persistant connection, different polling times, etc)


RE: Modbus connection problem LG Energy Storage System - admin - 02.05.2025

Which error logs have you checked? Modbus has separate logs. Check both just in case.


RE: Modbus connection problem LG Energy Storage System - KoBra - 02.05.2025

(02.05.2025, 13:10)admin Wrote: Which error logs have you checked? Modbus has separate logs. Check both just in case.

There where no error logs in both normal and modbus (i checked) But after reboot it started working.

Now i just need some help on how to read out the data i posted in the first one.


RE: Modbus connection problem LG Energy Storage System - admin - 02.05.2025

Use this to make a profile: https://forum.logicmachine.net/showthread.php?tid=5911


RE: Modbus connection problem LG Energy Storage System - KoBra - 23.05.2025

(02.05.2025, 13:24)admin Wrote: Use this to make a profile: https://forum.logicmachine.net/showthread.php?tid=5911

I know how to make profiles. And the profile is also working but the info i get from LG is that i have 2 data types i can't understand how they are read as they call them:

HEMS_R_FAULT_MSG 
address 1150 32bits bitmask 
bitmask 
// 00 : Communication Error 
// 01 : Over Temperature Alarm 
// 02 : Over Temperature Warning 
// 03 : Under Temperature Alarm 
// 04 : Under Temperature Warning 
// 05 : Over Charge Current Alarm 
// 06 : Over Charge Current Warning 
// 07 : Over Discharge Current Alarm 
// 08 : Over Discharge Current Warning 
// 09 : Over Voltage Alarm 
// 10 : Over Voltage Warning 
// 11 : Under Voltage Alarm 
// 12 : Under Voltage Warning 
// 13 : Under State of Charge Min Alarm 
// 14 : Under State of Charge Min Warning 
// 15 : Over State of Charge Max Alarm 
// 16 : Over State of Charge Max Warning 
// 17 : Voltage Imbalance Warning 
// 18 : Temperature Imbalance Alarm 
// 19 : Temperature Imbalance Warning 
// 20 : Contactor Error 
// 21 : Fan Error 
// 22 : Ground Fault Error 
// 23 : Open Door Error 
// 24 : Current Imbalance Warning 
// 25 : Other Battery Alarm 
address 1151 32bits bitmask 
// 26 : Other Battery Warning 
// 27 : Reserved 
// 28 : Configuration Alarm 
// 29 : Configuration Warning

and another one is:

    HEMS_RW_POWER_METER_ACTIVE_POWER
1162
4bytes
big-endian
x 100 3407 → 34.07W
1163


RE: Modbus connection problem LG Energy Storage System - admin - 23.05.2025

Fault:
Use Value bitmask option. Click the calculator icon to select the required bits. Set Modbus data type to uint32 and Object data type to 1 bit.

Active power:
Modbus register datatype = uint32
Object datatype = 14. 4 byte floating point
Value multiplier (advanced settings) = 0.01