Re: Multiple on/off times
Posted: Thu Jul 31, 2014 5:01 pm
Lee;
I've forgot how my code for the denitrification chamber is set up.
I want to change the amount of time that the pump is on from 20 min to 10 min.
This is the original code...
Do I change it at the DeNit_Doser Runtime or in this line...
To this....
I've forgot how my code for the denitrification chamber is set up.
I want to change the amount of time that the pump is on from 20 min to 10 min.
This is the original code...
Code: Select all
// DeNitrate Routine
int DeNit_Offset=3600;
int DeNit_Repeat=21600;
int DeNit_Doser_Offset=1200;
int DeNit_Doser_Runtime=1200;
int DeNit_Pump_Runtime=1200;
int DeNit_ATO_Offtime=1500;
// Pump comes on first
ReefAngel.Relay.Set(DeNit_Pump,(now()-3600)%21600<1200); // Runs for 1200s every 21600 seconds
// Doser comes on second
ReefAngel.Relay.Set(DeNit_Doser,((now()-3600)-1200)%21600<1200); // Runs for 1200s every 21600 seconds with 1200s offset
Code: Select all
// Doser comes on second
ReefAngel.Relay.Set(DeNit_Doser,((now()-3600)-1200)%21600<1200); // Runs for 1200s every 21600 seconds with 1200s offset
Code: Select all
// Doser comes on second
ReefAngel.Relay.Set(DeNit_Doser,((now()-3600)-1200)%21600<600); // Runs for 600s every 21600 seconds with 1200s offset