Jump to content

Help with programming


ronbo

Recommended Posts

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.

Link to comment

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.

Link to comment

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.2k
×
×
  • Create New...