i am wanting my float valves one in the sump to turn on the ato and one in the reservoir to stop the ato process if the water level is low, hear is some code that i made to acomplish this the ato pump will be port 6. i was not sure if this was where to place that code in the script and if the code will work?
void loop()
{
ReefAngel.DayLights( Port2 );
ReefAngel.ActinicLights( Port3 );
ReefAngel.StandardHeater( Port4 );
ReefAngel.StandardFan( Port5);
ReefAngel.SingleATOHigh( Port6 );
////// Place your custom code below here
ReefAngel.SingleATOHigh(Port6);
if (ReefAngel.LowATO.IsActive()) ReefAngel.Relay.Off(Port6);
ato code question
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: ato code question
Yes, should work, but you got 2 lines that are the same.
Remove one of the duplicate ReefAngel.SingleATOHigh( Port6 );
Remove one of the duplicate ReefAngel.SingleATOHigh( Port6 );
Roberto.
-
emict326
- Posts: 48
- Joined: Thu Mar 15, 2012 8:29 am
- Location: Middleburg FL
Re: ato code question
thanks
-
emict326
- Posts: 48
- Joined: Thu Mar 15, 2012 8:29 am
- Location: Middleburg FL
Re: ato code question
since this is my first attempt at modifying code my self and it is not uncommon for me to be gone from the house for 36 to 48 hr at a time. the other day my sump ran dry when i was gone for 3 days i would like to add the line of code to have my return pump stop if the ATO is triggered and the reservoir if low. I made this code but not sure if it is correct
ReefAngel.DayLights( Port2 );
ReefAngel.ActinicLights( Port3 );
ReefAngel.StandardHeater( Port4 );
ReefAngel.StandardFan( Port5);
ReefAngel.SingleATOHigh( Port6 );
////// Place your custom code below here;
if (ReefAngel.LowATO.IsActive()) ReefAngel.Relay.Off(Port6);
if (ReefAngel.HighATO.IsActive()) if (ReefAngel.LowATO.IsActive()) ReefAngel.Relay.Off(Port1);
////// Place your custom code above here
ReefAngel.DayLights( Port2 );
ReefAngel.ActinicLights( Port3 );
ReefAngel.StandardHeater( Port4 );
ReefAngel.StandardFan( Port5);
ReefAngel.SingleATOHigh( Port6 );
////// Place your custom code below here;
if (ReefAngel.LowATO.IsActive()) ReefAngel.Relay.Off(Port6);
if (ReefAngel.HighATO.IsActive()) if (ReefAngel.LowATO.IsActive()) ReefAngel.Relay.Off(Port1);
////// Place your custom code above here
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
-
emict326
- Posts: 48
- Joined: Thu Mar 15, 2012 8:29 am
- Location: Middleburg FL
Re: ato code question
not yet i am at work until Wednesday