This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Modbus connection problem LG Energy Storage System
#1
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 :-)
Reply
#2
Use Read test to find correct settings, later use modbus profile app to create profile.
------------------------------
Ctrl+F5
Reply
#3
(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)
Reply
#4
Which error logs have you checked? Modbus has separate logs. Check both just in case.
Reply
#5
(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.
Reply
#6
Use this to make a profile: https://forum.logicmachine.net/showthread.php?tid=5911
Reply
#7
(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
Reply
#8
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
Reply


Forum Jump: