Turn off ATO if waterlevel > than 150

Do you have a question on how to do something.
Ask in here.
Post Reply
Smotz
Posts: 412
Joined: Sat Mar 30, 2013 5:02 pm
Location: CT, USA

Turn off ATO if waterlevel > than 150

Post 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 
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Turn off ATO if waterlevel > than 150

Post by lnevo »

Should be fine. Only issue is what is the normal water level during WC
Smotz
Posts: 412
Joined: Sat Mar 30, 2013 5:02 pm
Location: CT, USA

Re: Turn off ATO if waterlevel > than 150

Post 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.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Turn off ATO if waterlevel > than 150

Post by lnevo »

So you need the code for wc mode?
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Turn off ATO if waterlevel > than 150

Post 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 
  }
Smotz
Posts: 412
Joined: Sat Mar 30, 2013 5:02 pm
Location: CT, USA

Re: Turn off ATO if waterlevel > than 150

Post 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?
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Turn off ATO if waterlevel > than 150

Post by lnevo »

Then stick with your previous code. It should be fine.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Turn off ATO if waterlevel > than 150

Post 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.
Smotz
Posts: 412
Joined: Sat Mar 30, 2013 5:02 pm
Location: CT, USA

Re: Turn off ATO if waterlevel > than 150

Post 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.
Post Reply