Hello,
I've tried a lot to get a specific Value from my modbus device into LM.
First I've created an Modbus Profile. For some of the values it works correct but some others deliver no values.
If I do a connection test with the Modbus Test Modul the correct value is delivered.
So I found out (with Chat GPT) that it seems the test modul and the profiles works different. Can you confirm?
Test Modul:
- reads raw data
- actively interprets (int16 / uint16 / int32 / uint32)
The Modbus profile ALWAYS interprets as uint16, no type selection and no sign switching and that seems the issue.
Please find the .json profile below. It's just the faulty address.
I've tried a lot to get a specific Value from my modbus device into LM.
First I've created an Modbus Profile. For some of the values it works correct but some others deliver no values.
If I do a connection test with the Modbus Test Modul the correct value is delivered.
So I found out (with Chat GPT) that it seems the test modul and the profiles works different. Can you confirm?
Test Modul:
- reads raw data
- actively interprets (int16 / uint16 / int32 / uint32)
The Modbus profile ALWAYS interprets as uint16, no type selection and no sign switching and that seems the issue.
Please find the .json profile below. It's just the faulty address.
Code:
{
"product_code": "KWL_HBX_250_500",
"manufacturer": "HELIOS",
"name": "KWL_HBX",
"description": "LogicMachine Modbus profile for HBX",
"mapping": [
{
"address": 80,
"bus_datatype": 4,
"type": "register",
"name": "operating hours"
},
]
}