programming pump to come on during 1 hour window only

Jason Scalise

Active Member
View Badges
Joined
Apr 13, 2019
Messages
283
Reaction score
255
Location
Phoenix, AZ
What state or country do you live in
Arizona
Rating - 0%
0   0   0
I must be missing something.

I want my ATO pump to only be available to turn on for 1 hour per day (0700 - 0800).
Even if the conditions to turn on the pump (eg. optical switch open) are met outside of that 1 hour window, I dont want it to come on.

therefore, I have

Fallback OFF
Set OFF
If Time 07:00 to 08:00 Then On
If ATO_LO OPEN Then ON
If ATO_HI CLOSED Then OFF
When On > 005:00 Then OFF
Defer 000:10 Then ON

Defer 000:05 Then OFF

But it does not seem to work as I planned. Instead the pump comes on any time the ATO_LO switch is open...regardless of time of day.

Can you help show me what I am missing?
 
Your statement is evaluated 1 at a time so it evaluates the time and finds it false but then validates ato_lo and finds ot true so it is on.

If Time 07:00 to 08:00 Then On
If ATO_LO OPEN Then ON

You need to put these 2 statements together to be evaluated together such as:
If Time 07:00 to 08:00 and ATO_LO OPEN Then ON
 
got it, thanks.
I also noticed I had the IF TIME expression at the wrong place...for the reason you gave.
moved it down and it worked.
your solution is more elegant, however.
thanks!
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top