Jump to content

Help with programming


ronbo

Recommended Posts

Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...