Page 1 of 1

ATO WaterLevel anomoly

Posted: Sun Dec 30, 2012 4:42 pm
by Sebyte
I have the Water level expansion unit installed and working well.

My code uses the following to delay the turning on of the skimmer after feeding mode.

Code: Select all

// Delay turning Skimmer back on 
    ReefAngel.Relay.DelayedOn( Port1,60 );
My ATO pump is controlled by Port2, and I would like it also to be delayed like the skimmer. So I used the following code.

Code: Select all

 // Delay turning Skimmer back on 
    ReefAngel.Relay.DelayedOn( Port1,60 );
 
 // Delay turning ATO back on    
    ReefAngel.Relay.DelayedOn( Port2,60 );
    
The result was that the ATO port 2 was in a permanent ON state.

I am wondering if there should only be one DelayOn function, and it should contain both ports. If so I am not sure what the syntax should be?

ATO WaterLevel anomoly

Posted: Sun Dec 30, 2012 5:11 pm
by lnevo
You cant have it be an ato port and be DelayedOn...you'll probably have to write a delay to your waterlevel function call.

Re: ATO WaterLevel anomoly

Posted: Sun Dec 30, 2012 5:16 pm
by Sebyte
Many thanks, I will try another way.

ATO WaterLevel anomoly

Posted: Sun Dec 30, 2012 5:45 pm
by lnevo
You could wrap your WaterLevelATO function with an if statement checking if your skimmer is on or not.

Re: ATO WaterLevel anomoly

Posted: Sun Dec 30, 2012 7:28 pm
by Sebyte
I will give it a try. Thinking about it an IF ELSE loop should do it.

Thanks again.

ATO WaterLevel anomoly

Posted: Sun Dec 30, 2012 8:01 pm
by lnevo
Yeah, you might need the else or the pump may get "stuck" on. :)