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: 4833
Threads: 25
Joined: Aug 2017
Reputation:
220
One RTU can only be one slave.
------------------------------
Ctrl+F5
Posts: 4833
Threads: 25
Joined: Aug 2017
Reputation:
220
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: 7955
Threads: 43
Joined: Jun 2015
Reputation:
454
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: 7955
Threads: 43
Joined: Jun 2015
Reputation:
454
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.