programming pump to come on during 1 hour window only

Jason Scalise

Active Member
View Badges
Joined
Apr 13, 2019
Messages
267
Reaction score
222
Location
Phoenix, AZ
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?
 

MNFish

Valuable Member
View Badges
Joined
Dec 30, 2020
Messages
1,710
Reaction score
3,017
Location
USA
Rating - 0%
0   0   0
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
 
OP
OP
J

Jason Scalise

Active Member
View Badges
Joined
Apr 13, 2019
Messages
267
Reaction score
222
Location
Phoenix, AZ
Rating - 0%
0   0   0
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!
 

Reefing threads: Do you wear gear from reef brands?

  • I wear reef gear everywhere.

    Votes: 11 19.3%
  • I wear reef gear primarily at fish events and my LFS.

    Votes: 2 3.5%
  • I wear reef gear primarily for water changes and tank maintenance.

    Votes: 0 0.0%
  • I wear reef gear primarily to relax where I live.

    Votes: 7 12.3%
  • I don’t wear gear from reef brands.

    Votes: 32 56.1%
  • Other.

    Votes: 5 8.8%
Back
Top