programming pump to come on during 1 hour window only

Jason Scalise

Active Member
View Badges
Joined
Apr 13, 2019
Messages
327
Reaction score
347
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
2,867
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
327
Reaction score
347
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!
 

TOP 10 Trending Threads

DO YOU THINK TECHNOLOGICAL ADVANCEMENTS ARE MORE HELPFUL OR HURTFUL TO REEFING?

  • More helpful.

    Votes: 52 41.9%
  • More hurtful.

    Votes: 5 4.0%
  • I think it depends mostly on the technology.

    Votes: 48 38.7%
  • I think it dependsmostly on the reefer behind the technology.

    Votes: 37 29.8%
Back
Top
Home
Post thread…
Market
What's new