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
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