programming pump to come on during 1 hour window only

Jason Scalise

Active Member
View Badges
Joined
Apr 13, 2019
Messages
272
Reaction score
223
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
272
Reaction score
223
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!
 

Looking for the spotlight: Do your fish notice the lighting in your reef tank?

  • My fish seem to regularly respond to the lighting in my reef tank.

    Votes: 92 76.0%
  • My fish seem to occasionally respond to the lighting in my tank.

    Votes: 15 12.4%
  • My fish seem to rarely respond to the lighting in my tank.

    Votes: 8 6.6%
  • My fish seem to never respond to the lighting in my tank.

    Votes: 0 0.0%
  • I don’t pay enough attention to my fish to notice if they respond to the lighting.

    Votes: 2 1.7%
  • I don’t have any fish in my tank.

    Votes: 2 1.7%
  • Other.

    Votes: 2 1.7%
Back
Top