Logic Machine Forum
Multiple GA send on 3 times - 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: Multiple GA send on 3 times (/showthread.php?tid=5835)



Multiple GA send on 3 times - BMSimon - 13.01.2025

If I have 700 1-bit GA, when they switch state I need it to happen 3 times, with 1 sec delay, what is the easiest way of doing this?
We have some KNX relays that is partially defective, and this is a quick workaround to get this working before the manufacture and the customer finds out if all the relays needs to be exchanged.

Best regards

Simon


RE: Multiple GA send on 3 times - Daniel - 13.01.2025

Try this, Tag all your bit objects with a TAG and then create event based script triggered by your TAG.
As execution mode select Last instance and use this script

Code:
if event.sender ~= "se" then
    value = event.getvalue()
    os.sleep(1)
    grp.write(event.dst, value)
    os.sleep(1)
    grp.write(event.dst, value)
    os.sleep(1)
    grp.write(event.dst, value)
end