When conditions are applied to relays
Posted: Wed May 24, 2006 9:22 pm
If I set a relay to trigger after a length of time, with a condition, the condition appears to be tested before the time starts counting down, not after. Therefore, if the event triggered by the relay doesn't happen for 10 seconds, it doesn't happen if the condition is false when the relay is triggered, not when the even happens 10 seconds later.
This messes things up for me. I have a door which is supposed to close after 10 seconds IF a condition is true when it is due to close. It doesn't work because the condition is always false when the relay is triggered, but could be either true or false 10 seconds later.
This messes things up for me. I have a door which is supposed to close after 10 seconds IF a condition is true when it is due to close. It doesn't work because the condition is always false when the relay is triggered, but could be either true or false 10 seconds later.