apex CODE breakout box with float switch and pump

Reef_gems

New Member
View Badges
Joined
Jan 25, 2022
Messages
21
Reaction score
86
Location
Canada
Rating - 0%
0   0   0
Hi! i tried to find something similar but couldnt nail it down. im very new to apex! :(
hope this will be very easy for someone to understand

i have a single float switch on SW5 with a small return pump in the R0 Reserve

i want to.

turn on when the water is low. (or on position)
turn off when high (or off position)
in case the float switch is stuck in the on position i want the pump to turn off after being on for 1 minute. (not sure about this code)
i dont want the pump to turn back on for at least 30minutes
feed mode off


thank you!
 

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
9,226
Location
Oregon
Rating - 0%
0   0   0
Fallback OFF
Set OFF
If SW5 OPEN Then ON
When On > 001:00 Then OFF
Min Time 030:00 Then OFF

This assumes your float switch reports OPEN when out of the water, and CLOSED when submerged. If yours is opposite, then change line 3 accordingly.

See my tutorial on Apex Timers for details on the When and Min Time commands:
 
OP
OP
Reef_gems

Reef_gems

New Member
View Badges
Joined
Jan 25, 2022
Messages
21
Reaction score
86
Location
Canada
Rating - 0%
0   0   0
Fallback OFF
Set OFF
If SW5 OPEN Then ON
When On > 001:00 Then OFF
Min Time 030:00 Then OFF

This assumes your float switch reports OPEN when out of the water, and CLOSED when submerged. If yours is opposite, then change line 3 accordingly.

See my tutorial on Apex Timers for details on the When and Min Time commands:

Thank you so much!

2 things I figured out if you can help me. 1 for some reason my breakout box is swx4_5. But all good I got that one.

Help me with this. If its on for the full one minute. My outlet goes to OFF instead of AUTO. Then I have to manually put it back to auto.

If it goes on for under the 1min it stays on auto.

My question is, is there anyway that it stays on auto in case it goes over one minute?
And if not. Can I set an alert to tell me that so I can go change that myself.

Thanks!
 

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
9,226
Location
Oregon
Rating - 0%
0   0   0
Thank you so much!

2 things I figured out if you can help me. 1 for some reason my breakout box is swx4_5. But all good I got that one.

Help me with this. If its on for the full one minute. My outlet goes to OFF instead of AUTO. Then I have to manually put it back to auto.

If it goes on for under the 1min it stays on auto.

My question is, is there anyway that it stays on auto in case it goes over one minute?
And if not. Can I set an alert to tell me that so I can go change that myself.

Thanks!
Did you read my Timers tutorial I linked above? It explains how the When timer moves the slider to OFF if exceeded. It's not meant to be a general-purpose timer, but rather an emergency failsafe if the sensor fails to properly shut off the pump.

If the When timer is exceeded and the output moves to OFF, you can have it send you an alarm notification by adding this line to your EmailAlm program:

If Error OutputName Then ON

where OutputName is the name of the output controlling the pump.
 
OP
OP
Reef_gems

Reef_gems

New Member
View Badges
Joined
Jan 25, 2022
Messages
21
Reaction score
86
Location
Canada
Rating - 0%
0   0   0
I missed that but I just looked for it and saw it. Appreciate that! I will set up an alert and maybe extend it passed 1 minute.

Thank you for your quick replies! I can now setup my tank!
 

Form or function: Do you consider your rock work to be art or the platform for your coral?

  • Primarily art focused.

    Votes: 20 8.2%
  • Primarily a platform for coral.

    Votes: 43 17.7%
  • A bit of each - both art and a platform.

    Votes: 162 66.7%
  • Neither.

    Votes: 12 4.9%
  • Other.

    Votes: 6 2.5%
Back
Top