Dual ATO based on time

Do you have a question on how to do something.
Ask in here.
Post Reply
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Dual ATO based on time

Post by lnevo »

Look at the ports in each statement. You should be turning off the opposite port when one is being used for ATO. Right now you declare port 7 as the ato then you turn it off for example.
slm222
Posts: 105
Joined: Wed Nov 18, 2015 9:16 pm

Re: Dual ATO based on time

Post by slm222 »

Ok, yes I will try that. Thank you for your quick response.

The reason I did it was on DMNYnkees code he said he needed to put that in order for the pumps to stay off during the switch over.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Dual ATO based on time

Post by lnevo »

Right but he's turning off Port 8 when he's ATO is on Port 5 and vice-versa. You were turning off Port 7 when your ATO was on Port 7... which is a conflict.
slm222
Posts: 105
Joined: Wed Nov 18, 2015 9:16 pm

Re: Dual ATO based on time

Post by slm222 »

oh I see now.

I just tried the code below and after 8 am the kalk pump still turned on instead of the regular pump

Code: Select all

if ((hour()>=20 || hour()<=8) && (ReefAngel.Params.PH < 825))
{
    ReefAngel.SingleATO( true,Port7,300,0 );   //  Sump switch. Kalk schedule 8pm - 8am if pH < 8.3  If ATO/Kalk runs for 210 seconds, then shut off and send alert.

}
 else 
{
    ReefAngel.SingleATO( true,Port8,480,0 );   //  Sump switch.  If ATO/RoDi runs for 210 seconds, then shut off and send alert.

}
I tried adding this to the regular pumps code, but didn't work

Code: Select all

else if (hour()>=8 || hour()<=20) 
slm222
Posts: 105
Joined: Wed Nov 18, 2015 9:16 pm

Re: Dual ATO based on time

Post by slm222 »

I will try this, with the relay off ports corrected, when I go home for lunch.

Code: Select all

if ((hour()>=20 || hour()<=8) && (ReefAngel.Params.PH < 825))
{
    ReefAngel.SingleATO( true,Port7,300,0 );   //  Sump switch. Kalk schedule 8pm - 8am if pH < 8.3  If ATO/Kalk runs for 210 seconds, then shut off and send alert.
    ReefAngel.Relay.Off(Port8);
}
 else 
{
    ReefAngel.SingleATO( true,Port8,480,0 );   //  Sump switch.  If ATO/RoDi runs for 210 seconds, then shut off and send alert.
    ReefAngel.Relay.Off(Port7);
}
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Dual ATO based on time

Post by lnevo »

If you want it to go to 8am you need to change <=8 to <8 otherwise it will go to 8:59am.

Also the Off's are needed for sure to make sure the port you want off stays off.
slm222
Posts: 105
Joined: Wed Nov 18, 2015 9:16 pm

Re: Dual ATO based on time

Post by slm222 »

ok. that makes sense. I will try it tonight at switch over. thank you.
slm222
Posts: 105
Joined: Wed Nov 18, 2015 9:16 pm

Re: Dual ATO based on time

Post by slm222 »

thank you very much for correcting my oversight! I am curious as to whether or not it should have true or false in the statement and not sure what that represents?
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Dual ATO based on time

Post by lnevo »

true should mean LowATO versus HighATO.
Reefology
Posts: 209
Joined: Fri Dec 26, 2014 6:38 pm

Re: Dual ATO based on time

Post by Reefology »

anyone see any issues with this?

Code: Select all

//kalk reactor
if ((hour()>=23 || hour()<=14) && (ReefAngel.Params.PH < 830))
{
 ReefAngel.DosingPumpRepeat2( Port7 );   //  Kalk schedule 11pm - 2pm if pH < 8.3  kalk dosed as per portal settings
}
else   
{
 ReefAngel.Relay.Off( Port7); 
}
Image
Post Reply