Page 1 of 1

When conditions are applied to relays

Posted: Wed May 24, 2006 9:22 pm
by Chaos Awakes
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.

Posted: Wed May 24, 2006 11:20 pm
by beowuuf
Well then, simple, have a relay with a ten second delayr, then have that trigger another relay with your condition that activated immediately

Posted: Wed May 24, 2006 11:49 pm
by George Gilbert
Nope, this is working exactly as it should.

The way to get the behaviour your want for your door is exactly what Beowuuf said!