programming pump to come on during 1 hour window only

Jason Scalise

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

TOP 10 Trending Threads

HOW MUCH DOES A FISH’S FEEDING REQUIREMENTS AFFECT YOUR STOCKING DECISIONS?

  • A lot! - I avoid fish that require frequent or specialized feeding

    Votes: 16 32.7%
  • Quite a bit, but an automatic feeder can change my answer

    Votes: 6 12.2%
  • It depends on whether my nutrient export can handle it

    Votes: 7 14.3%
  • It depends on how badly I want the fish

    Votes: 11 22.4%
  • Not much. I’m willing to adjust my routine

    Votes: 9 18.4%
  • Not at all. Feeding demands don’t limit my stocking choices

    Votes: 8 16.3%
  • I usually learn about the demanding feeding schedule after buying the fish!

    Votes: 2 4.1%
  • I haven’t really considered this before

    Votes: 4 8.2%
  • Something else (see my comments in the thread)

    Votes: 1 2.0%
Back
Top
Home
Post thread…
Market
What's new