Posts: 9
Threads: 3
Joined: Aug 2021
Reputation:
0
Hi,
I have a Ventilation system which uses Modbus RTU to access it’s CO2 sensors.
I want to replace those Modbus sensors with LogicMachine which will read CO2 values from KNX sensors.
Can single LogicMachine pretend to be multiple Modbus slaves?
Posts: 4640
Threads: 24
Joined: Aug 2017
Reputation:
207
One RTU can only be one slave.
------------------------------
Ctrl+F5
Posts: 4640
Threads: 24
Joined: Aug 2017
Reputation:
207
In theory this is possible but this will require modbus library modification. As this is rarely used feature we are not planning this.
------------------------------
Ctrl+F5
Posts: 7758
Threads: 42
Joined: Jun 2015
Reputation:
447
Unfortunately we do not provide compilation tools. Which library do you want to use? If it's easy enough to compile then we can provide a ready package for it.
Posts: 7758
Threads: 42
Joined: Jun 2015
Reputation:
447
We do not use lua-libmodbus but our own Lua library. Accessing the filesystem and custom package compilation is out of standard support scope.
Maybe if you don't have many registers it would be easier to implement modbus using the serial library purely in Lua.