02.07.2024, 07:30
You need to use grp.getvalue() instead of grp.read(). Comparison with 1 won't work correctly because the value for 1-bit objects in true/false.
Assign a common tag to 2/0/6, 2/0/8 and 2/0/10 then map an event script to this tag:
If you need multiple OR/AND gates then it's more convenient to use this solution:
https://kb.logicmachine.net/scripting/lo...-statuses/
Assign a common tag to 2/0/6, 2/0/8 and 2/0/10 then map an event script to this tag:
Code:
value = grp.getvalue('2/0/6') or grp.getvalue('2/0/8') or grp.getvalue('2/0/10')
grp.write('2/0/100', value)
If you need multiple OR/AND gates then it's more convenient to use this solution:
https://kb.logicmachine.net/scripting/lo...-statuses/