Page 1 of 1
Turn off ATO if waterlevel > than 150
Posted: Thu Jan 22, 2015 1:10 pm
by Smotz
Hi all,
Will this code work during water change mode? If not, what do I have to do to make it work during any mode?
Code: Select all
//just to be safe if the water level gets to 150 or greater, override the topoff.
if ( ReefAngel.WaterLevel.GetLevel(1) > 155 && ReefAngel.WaterLevel.GetLevel(2) >155 ) ReefAngel.Relay.Override (Topoff,0);
// End Main Top Off
Re: Turn off ATO if waterlevel > than 150
Posted: Thu Jan 22, 2015 1:33 pm
by lnevo
Should be fine. Only issue is what is the normal water level during WC
Re: Turn off ATO if waterlevel > than 150
Posted: Thu Jan 22, 2015 5:56 pm
by Smotz
lnevo wrote:Should be fine. Only issue is what is the normal water level during WC
I'll figure that out - just wanted to make sure the syntax is correct.
The usage would be - I manually turn on my ATO pump (located in the basement) to pump in water (a valve switches to salt water instead of RO). I want to make sure it stops at a certain point if I do not stop it manually.
Re: Turn off ATO if waterlevel > than 150
Posted: Fri Jan 23, 2015 5:58 am
by lnevo
So you need the code for wc mode?
Re: Turn off ATO if waterlevel > than 150
Posted: Fri Jan 23, 2015 7:12 am
by lnevo
Code: Select all
if (ReefAngel.DisplayedMenu==WATERCHANGE_MODE) {
//just to be safe if the water level gets to 150 or greater, override the topoff.
if ( ReefAngel.WaterLevel.GetLevel(1) > 155 && ReefAngel.WaterLevel.GetLevel(2) >155 ) ReefAngel.Relay.Override (Topoff,0);
// End Main Top Off
}
Re: Turn off ATO if waterlevel > than 150
Posted: Fri Jan 23, 2015 11:29 am
by Smotz
lnevo wrote:Code: Select all
if (ReefAngel.DisplayedMenu==WATERCHANGE_MODE) {
//just to be safe if the water level gets to 150 or greater, override the topoff.
if ( ReefAngel.WaterLevel.GetLevel(1) > 155 && ReefAngel.WaterLevel.GetLevel(2) >155 ) ReefAngel.Relay.Override (Topoff,0);
// End Main Top Off
}
Actually, I would like it to stop filling whether it is in the waterchange mode or not. Would the code work in all modes?
Re: Turn off ATO if waterlevel > than 150
Posted: Fri Jan 23, 2015 11:38 am
by lnevo
Then stick with your previous code. It should be fine.
Re: Turn off ATO if waterlevel > than 150
Posted: Fri Jan 23, 2015 11:39 am
by lnevo
You will have to manually clear the override or you'll need an else to put it back to auto...
otherwise change the override function to a simple Off one.
Re: Turn off ATO if waterlevel > than 150
Posted: Fri Jan 23, 2015 12:22 pm
by Smotz
lnevo wrote:You will have to manually clear the override or you'll need an else to put it back to auto...
otherwise change the override function to a simple Off one.
thanks man. Will do.