Page 1 of 1

ATO code for two tanks

Posted: Thu Feb 11, 2021 8:07 pm
by danonwi
I want to use my reef angel as an ATO for two different tanks. I want to use the High ATO position for one tank and the Low for another. I will be using two different pumps. I want the high ATO to trigger one pump and the low to trigger another. I’ve only used the wizard previously so I’m not familiar with coding. Any help would be appreciated.

Re: ATO code for two tanks

Posted: Fri Feb 12, 2021 5:14 pm
by rimai
Try this:

Code: Select all

ReefAngel.Relay.Set( Port1,ReefAngel.HighATO.IsActive() );
ReefAngel.Relay.Set( Port2,ReefAngel.LowATO.IsActive() );

Re: ATO code for two tanks

Posted: Sat Feb 13, 2021 8:09 pm
by danonwi
Thank you! Is it possible to assign different ATO timeout values to each of these? Or do I have to just set a global time for the ATO timeout?

Re: ATO code for two tanks

Posted: Sun Feb 14, 2021 11:05 pm
by rimai
This code has no timeout. You won't be able to do it two ATOs with timeout without custom coding.