Jump to content

Program with Repeat


Mike Ippolito

Recommended Posts

Posted

I have the following program running to cycle my fan on my HVAC units. I am trying to figure out if I have an issue with signals not reaching the thermostats or my repeat function is being knocked out by IF becoming false.

 

I'm having issues with the program not returning the fans to auto when 11:00pm hits if the program is in the middle of a cycle. Is this a programming issue (IF turning false during a repeat) or an issue with the communication?

 

If

(

From 5:30:00AM

To 11:00:00PM (same day)

Or From 1:30:00AM

To 3:30:00AM (same day)

)

And $kidsHere is not 0

 

Then

Repeat Every 1 hour and 30 minutes

Send Notification to 'Email to Mike' content 'circ loop on'

Set Elk Thermostat 'First Floor' Fan On

Wait 3 seconds

Set Elk Thermostat 'Second Floor' Fan On

Wait 3 seconds

Set Elk Thermostat 'Third Floor' Fan On

Wait 5 minutes

Set Elk Thermostat 'First Floor' Fan Auto

Set Elk Thermostat 'Second Floor' Fan Auto

Set Elk Thermostat 'Third Floor' Fan Auto

 

Else

- No Actions - (To add one, press 'Action')

Posted

The Program is triggered at each From time and each To Time. Normally the If evaluates to True at the From time and False at the To time. The True/False evaluation is affected by the Variable value.

 

The affect of the variable on Program triggering depends on whether an Integer Variable (does not trigger Program on value change) or State Variable (does trigger Program on value change). Regardless of type of Variable the value will always affect the If evaluation as far as True/False is concerned.

 

Because of the Repeat and Wait statements the trigger points (From and To time and Variable value change if State Variable) will interrupt Program execution and reevaluate the IF. The Programs | Summary tab will show when the Program is executing even when waiting in the Repeat or Wait statements. Should the If turn False at any point (To time or State Variable ? value change) the Program stops execution because nothing is in the Else clause. It would not run again until another trigger point (From time or State Variable ? value change).

 

Because there is nothing in the Else clause the Fan may not return to Auto because the Repeat/Wait sequence is interrupted in the middle of processing which is normal. Put final state processing in the Else clause.

Guest
This topic is now closed to further replies.

  • Recently Browsing

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

  • Forum Statistics

    • Total Topics
      37.1k
    • Total Posts
      372k
×
×
  • Create New...