Dual ATO based on time
Re: Dual ATO based on time
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.
Re: Dual ATO based on time
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.
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.
Re: Dual ATO based on time
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.
Re: Dual ATO based on time
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
I tried adding this to the regular pumps code, but didn't work
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.
}
Code: Select all
else if (hour()>=8 || hour()<=20)
Re: Dual ATO based on time
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);
}
Re: Dual ATO based on time
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.
Also the Off's are needed for sure to make sure the port you want off stays off.
Re: Dual ATO based on time
ok. that makes sense. I will try it tonight at switch over. thank you.
Re: Dual ATO based on time
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?
Re: Dual ATO based on time
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);
}