This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

problems with scripts
#1
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.

Attached Files Thumbnail(s)
       
Reply


Messages In This Thread
problems with scripts - by ALEJANDRO - 07.01.2026, 13:21
RE: problems with scripts - by Daniel - 07.01.2026, 14:15
RE: problems with scripts - by ALEJANDRO - 07.01.2026, 14:40
RE: problems with scripts - by Daniel - 07.01.2026, 14:50
RE: problems with scripts - by ALEJANDRO - 07.01.2026, 15:32
RE: problems with scripts - by ALEJANDRO - 09.01.2026, 12:02

Forum Jump: