25.09.2023, 06:24
Probably the block source must be a timer not an event.
You can use a simple resident script (0 sleep time) instead:
If 1/1/1 is ON then 1/1/2 is ON for 7 seconds, then off for 3 seconds. If 1/1/1 is OFF then 1/1/2 is always OFF.
You can use a simple resident script (0 sleep time) instead:
Code:
out = '1/1/2'
enable = grp.getvalue('1/1/1')
grp.checkwrite(out, enable)
os.sleep(7)
grp.checkwrite(out, false)
os.sleep(3)