ronbo Posted February 18, 2008 Posted February 18, 2008 over 25 years of programming, but this event driven system has stumped me. If Alarm_Disarmed is True and program IsDark is True Then Set Entry Light on Else Routine IsDark simply return true between sunset and sunrise next day. Alarm_Disarmed is an EZIO2x4 relay which goes true and stays true when the alarm is disarmed. The routine works when the system is disarmed, but each evening at sunset it sets the entry light on. I understand why it is happening, but I am not sure how to fix it. Quote
Michel Kohanim Posted February 18, 2008 Posted February 18, 2008 ronbo, The reason is that your Alarm_Disarmed program is probably always true and thus the whole condition now depends on the time. Would you be kind enough to post your Alarm_Disarmed program? With kind regards, Michel over 25 years of programming, but this event driven system has stumped me. If Alarm_Disarmed is True and program IsDark is True Then Set Entry Light on Else Routine IsDark simply return true between sunset and sunrise next day. Alarm_Disarmed is an EZIO2x4 relay which goes true and stays true when the alarm is disarmed. The routine works when the system is disarmed, but each evening at sunset it sets the entry light on. I understand why it is happening, but I am not sure how to fix it. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.