Logic Machine Forum
KNX to Modbus TCP/IP - 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: KNX to Modbus TCP/IP (/showthread.php?tid=1923)



KNX to Modbus TCP/IP - Rune - 19.02.2019

Hi

Trying to integrate a Trox X Aircontrol with a LM5 and KNX. Our goal is to use the values on KNX and send them to the Trox unit, from KNX to Modbus TCP/IP. We are going to do it in 10 zones, but starting with zone 1. The three values are actual temperatur, actual setpoint and actual ppm value.

I think we tried all sorts of datatypes, all sorts of types and addresses and writable false or true.

Code:
{
"manufacturer": "Trox",
"description": "Test",

"mapping": [
{ "name": "Ertemp Zone 1", "bus_datatype": "float", "type": "register", "address": 1009, "datatype": "float32", "value_multiplier":0.1, "writable": false  },
{ "name": "CO2", "bus_datatype": "float", "type": "register", "address": 1012, "datatype": "float32", "writable": false  },
{ "name": "Setpoint", "bus_datatype": "float", "type": "register", "address": 1014, "datatype": "float64", "value_multiplier":0.1, "writable": false  }

]
}



Any ideas how it should be?


RE: KNX to Modbus TCP/IP - admin - 20.02.2019

Start by reading raw register data by using int16 datatype (2 byte signed integer). Keep in mind that you need to delete device entry and create new one after uploading updated profile.

If values are correct (temperature values will be x100) then profile can be modified to add value conversion using float data type. In any case do not change datatype fields, only bus_datatype.

Code:
{
  "manufacturer": "Trox",
  "description": "Test",
  "mapping": [
    {
      "name": "Ertemp Zone 1",
      "bus_datatype": "int16",
      "type": "register",
      "address": 1009,
      "datatype": "int16",
      "writable": false
    },
    {
      "name": "CO2",
      "bus_datatype": "int16",
      "type": "register",
      "address": 1012,
      "datatype": "int16",
      "writable": false
    },
    {
      "name": "Setpoint",
      "bus_datatype": "int16",
      "type": "register",
      "address": 1014,
      "datatype": "int16",
      "writable": true
    }
  ]
}



RE: KNX to Modbus TCP/IP - Rune - 20.02.2019

Hi!

When studying this case deeper, we saw that the whole idea was wrong. If you see at the attached picture, the Trox unit could only read setpoints for controlling temperature and ppm. (Holding register) The idea to send values from KNX to Trox so the unit could regulate based on measured values, was wrong.