7 hours ago
OK so we don't care about DALI as for LM it is a KNX anyway
You can connect two LMs to the same TP but you must change multicast on one of them to avoid loops. You could disable KNX IP if it is not needed.
Bacnet IP can be enabled/disabled like this:
The client most likely well cache the IP and it might not work straight on, it should expire after some time.
Modbus RTU, if you have both enabled at the same time nothing will work,
Use this event script to emulate a web request to enable/disable RTU. Attach it to a boolean object.
You need to create a script which will monitor if main LM is al live and if not apply the above. An example here but you need to be careful, If LM is still working and you enable both then modbus will not work and probably bacnet too.
https://openrb.com/master-slave-logicmachine/
See also this
https://forum.logicmachine.net/showthrea...8#pid10348
You can connect two LMs to the same TP but you must change multicast on one of them to avoid loops. You could disable KNX IP if it is not needed.
Bacnet IP can be enabled/disabled like this:
Code:
-- disable
os.execute('uci set bacnet.server.enabled=0 && uci commit bacnet &&
/etc/init.d/bacnet stop')
-- enable
os.execute('uci set bacnet.server.enabled=1 && uci commit bacnet &&
/etc/init.d/bacnet start')
The client most likely well cache the IP and it might not work straight on, it should expire after some time.
Modbus RTU, if you have both enabled at the same time nothing will work,
Use this event script to emulate a web request to enable/disable RTU. Attach it to a boolean object.
Code:
value = event.getvalue()
require('uci')
require('json')
function getvar()
return 'config-save'
end
function json.data()
return { enabled = value }
end
dofile('/lib/genohm-scada/plugins/modbus/web.lua')
You need to create a script which will monitor if main LM is al live and if not apply the above. An example here but you need to be careful, If LM is still working and you enable both then modbus will not work and probably bacnet too.
https://openrb.com/master-slave-logicmachine/
See also this
https://forum.logicmachine.net/showthrea...8#pid10348
------------------------------
Ctrl+F5
Ctrl+F5