07.01.2026, 13:21
Good morning,
I need to create an alarm system in an event-driven script using group address 32/1/1.
I'm using two variables called `value` and `value2`. `value2` holds the value of group address 32/1/1, and `value` captures the state of a gate (true/false), which is a value of 01.001 (toggle).
As you can see, I'm trying to write a value of 3 or 0 to group address 32/1/1, depending on the value of `value`, using an `if` and an `else` statement.
The problem I'm encountering is that if the `if` statement is true, the value of address 32/1/1 fluctuates constantly between 0 and 3 (as if it were in a loop), instead of remaining stable at 3. I don't understand what's happening, and I also think Logic Machine 5's memory is being overloaded.
Any help would be greatly appreciated.
I need to create an alarm system in an event-driven script using group address 32/1/1.
I'm using two variables called `value` and `value2`. `value2` holds the value of group address 32/1/1, and `value` captures the state of a gate (true/false), which is a value of 01.001 (toggle).
As you can see, I'm trying to write a value of 3 or 0 to group address 32/1/1, depending on the value of `value`, using an `if` and an `else` statement.
The problem I'm encountering is that if the `if` statement is true, the value of address 32/1/1 fluctuates constantly between 0 and 3 (as if it were in a loop), instead of remaining stable at 3. I don't understand what's happening, and I also think Logic Machine 5's memory is being overloaded.
Any help would be greatly appreciated.