Request: Code to use single ATO as failsafe

Requests for new functions or software apps
Post Reply
User avatar
oscarinw
Posts: 31
Joined: Fri Apr 19, 2013 1:00 pm

Request: Code to use single ATO as failsafe

Post by oscarinw »

Hello folks,

I am trying to install a single float at the top of the sump (wire side up) and use it to turn port 5 of my only relay off. I currently have a standalone single float ATO plugged to port 5 which keeps the water stable but it has failed me a couple times. If it sticks on the low position it continues to import fresh water. To avoid overflowing the sump and flooding the room, I would like to install a single float at the top so it would stop it from continuing.
Also, which of the 2 connectors from the main controller should I use.

In sum: If single float gets pushed up, then turn OFF port 5.

Thanks in advance!
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Request: Code to use single ATO as failsafe

Post by rimai »

Try this:

Code: Select all

if (ReefAngel.LowATO.IsActive()) ReefAngel.Relay.Off(Port5);
Place it after the ATO function you are using now.
Roberto.
User avatar
oscarinw
Posts: 31
Joined: Fri Apr 19, 2013 1:00 pm

Re: Request: Code to use single ATO as failsafe

Post by oscarinw »

rimai wrote:Try this:

Code: Select all

if (ReefAngel.LowATO.IsActive()) ReefAngel.Relay.Off(Port5);
Place it after the ATO function you are using now.
Thanks Roberto. What if I am not using an ATO function at all? Custom code area?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Request: Code to use single ATO as failsafe

Post by rimai »

yes
Roberto.
Post Reply