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



Modbus TCP - Alexander - 25.03.2021

Hi,

I am trying to figure how to get data from my heat pump via modbus tcp.
I have connection with my device:


But is there some kind of tutorial how to read/write data from my device in LM?



I got a parameter list from Nibe, with all the objects.


RE: Modbus TCP - admin - 25.03.2021

See this thread: https://forum.logicmachine.net/showthread.php?tid=903


RE: Modbus TCP - Alexander - 25.03.2021

(25.03.2021, 15:57)admin Wrote: See this thread: https://forum.logicmachine.net/showthread.php?tid=903

I have seen this, but is it different between MODBUS TCP and RTU?


RE: Modbus TCP - Daniel - 25.03.2021

If registry are the same then you can use same profile. Delete this part "bus_address": "4/1/0",


RE: Modbus TCP - Alexander - 25.03.2021

(25.03.2021, 16:11)Daniel. Wrote: If registry are the same then you can use same profile. Delete this part "bus_address": "4/1/0",

Can you show me an script example how to read this value in LM?



RE: Modbus TCP - admin - 26.03.2021

Try this and please link the whole documentation next time. I've set the address to 0 as it looks like you need to subtract 1 from the documented address. Try setting it back to 1 if reading does not work. You will have to delete the device and create it again after uploading updated profile.
Code:
{
  "manufacturer": "NIBE Heat Pump",
  "description": "VVM S320 / S325",
  "mapping": [
    {
      "name": "Outdoor temperature (BT1)",
      "bus_datatype": "float16",
      "datatype": "int16",
      "type": "inputregister",
      "address": 0,
      "value_multiplier": 0.1
    }
  ]
}