Logic Machine Forum
How to transfer modbus values to KNX. - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: How to transfer modbus values to KNX. (/showthread.php?tid=4604)



How to transfer modbus values to KNX. - espengrande - 23.02.2023

Hi
I'm not very into the LM5/HomeLynk, but I have managed to integrate my ventilation unit (Flexit UNI4) via CI66 modbus to HL. I have mapped all signals from modbus to the GA exportet from ETS. I can control the ventilation from ETS, but do not get any feedback from the unit. Do I have to run a script to get Wiser to send out the value on the bus?
Could someone possibly show me how to do this very easily? I have no knowledge of LUA scripting.


RE: How to transfer modbus values to KNX. - admin - 23.02.2023

Make sure you have enabled "Write to bus" for Modbus mapping entries that should be sent to KNX/TP.


RE: How to transfer modbus values to KNX. - espengrande - 23.02.2023

(23.02.2023, 12:07)admin Wrote: Make sure you have enabled "Write to bus" for Modbus mapping entries that should be sent to KNX/TP.

Checkmark this box?


RE: How to transfer modbus values to KNX. - admin - 23.02.2023

Yes. And don't use send delta 0, as it will send a lot of unnecessary telegrams. You can overload KNX/TP this way.


RE: How to transfer modbus values to KNX. - espengrande - 23.02.2023

Now it works Smile
Thanks alot.. I talked to Schneider, but they talked about a script to make it write to the bus. I thought it was trange that it had to be that complicated.


RE: How to transfer modbus values to KNX. - Ian@GWTi - 16.03.2023

I would like to send all modbus values to knx bus every 15 minutes even if there is no change in the value.  The send delta box is only available for integer values and not 0/1.  Can this be done via script?


RE: How to transfer modbus values to KNX. - admin - 17.03.2023

Even with send delta 0 the same value is not sent.
For periodical sending add a common tag (resend in this example) to all required objects and create a scheduled script:
Code:
objs = grp.tag('resend')
for _, obj in ipairs(objs) do
  obj:write(obj.value)
  os.sleep(0.2)
end