Logic Machine Forum
Modbus RTU behavior - 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 RTU behavior (/showthread.php?tid=1870)



Modbus RTU behavior - JohnTH - 28.01.2019

Hi,
When I run read test from device I get correct result. 

   

When I try with this profile:

{
  "manufacturer": "Kamstrup",
  "description": "Fjernvarme modbus",
  "mapping": [
    { "name": "Heat_Energy", "bus_datatype": "float32", "type": "inputregister", "address": 20, "writable": 0}
  ]
}

I get this error in log:

   

I select rtu2 with default timeout and poll interval. What am I missing?

-John


RE: Modbus RTU behavior - admin - 28.01.2019

You are missing "datatype": "float32". Without that it will only read single register producing an error.