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
#3
I'll try to explain what I want. Basically, it's about designing an alarm system that alerts the BMS that there's an intruder in the home. For this purpose, I have a variable representing the value of a presence sensor (0 = no presence, 1 = presence), a variable for the door contact (0 = door open, 1 = door closed), and a variable for the home's status (0 = unoccupied, 1 = rented, 2 = home under maintenance, and 3 = home occupied).

The idea is that if the home is unoccupied (0) and the door is open (0), or if the home is unoccupied (0) and the presence detector detects someone (1), the home's status should change to 3 (home occupied), and a notification of this change should be displayed on the screen.

The problem is that I'm stuck in a loop, and I don't know why.

The door and presence detector variables are type 01.001 switch and for some reason overloaded

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: