![]() |
Modbus Profile incorrect value - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Modbus Profile incorrect value (/showthread.php?tid=5852) |
Modbus Profile incorrect value - AlexLV - 20.01.2025 Hi, little help is needed. Value I received using my Modbus profile is invalid, please correct me. Data from manual: Export power 13010~13011 S32 1W Power delivered by the inverter to power grid Part of my profile: { "name": "Export Power", "bus_datatype": "float32", "datatype": "int32", "type": "inputregister", "address": 13009, "units": "W" }, BR, Alex RE: Modbus Profile incorrect value - admin - 21.01.2025 Use Read test to find correct settings. You might need to use a different swap mode. Why do you map int32 to float32? This is not needed if you are using the value directly without setting value_multiplier. RE: Modbus Profile incorrect value - AlexLV - 21.01.2025 You wrote "Why do you map int32 to float32".. Ok, in that case both type will be the same? Float32? Or I just can delete bus and datatype from profile? What is correct if I use direct value? I tested, I think I just need to put swap mode to "n" Alex RE: Modbus Profile incorrect value - admin - 21.01.2025 "datatype" is how data in encoded on the Modbus side. "bus_datatype" is the mapped object data type. In your case both "datatype" and "bus_datatype" should be "int32" because the value is not changed in any way. |