ATO WaterLevel anomoly

Expansion modules and attachments
Post Reply
Sebyte

ATO WaterLevel anomoly

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

ATO WaterLevel anomoly

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

Re: ATO WaterLevel anomoly

Post by Sebyte »

Many thanks, I will try another way.
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

ATO WaterLevel anomoly

Post by lnevo »

You could wrap your WaterLevelATO function with an if statement checking if your skimmer is on or not.
Sebyte

Re: ATO WaterLevel anomoly

Post by Sebyte »

I will give it a try. Thinking about it an IF ELSE loop should do it.

Thanks again.
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

ATO WaterLevel anomoly

Post by lnevo »

Yeah, you might need the else or the pump may get "stuck" on. :)
Post Reply