Page 1 of 1

program dosing pumps

Posted: Wed Jan 01, 2014 4:23 am
by anderzon_
Can I program the dosing pump to pump one starts at 08:00 and pumps 5 sec, pump 2 at 09.00 and pumps 5 sec, pump 3 at 10:00 and pumps 5 sec in the morning? And then every three hours until 10 pm? They will not dose on the night. Want it to be so during the day if it's possible?

Re: program dosing pumps

Posted: Wed Jan 01, 2014 10:24 am
by rimai
Yes, use the wizard and choose to pump every 180minutes (3 hours) for 5 seconds and then for pump 1, choose 0 minutes offset. For pump2, 60 minutes offset and pump3 120 minutes offset.

Re: program dosing pumps

Posted: Thu Jan 02, 2014 3:38 pm
by anderzon_
Thank you. Are they turned off at night then?

Re: program dosing pumps

Posted: Thu Jan 02, 2014 3:52 pm
by rimai
Oh no... Sorry..
You can wrap the functions in an if statement to run them only during day.

Code: Select all

if (hour() > 8 && hour() < 22)
{
// Place your code here
}

Re: program dosing pumps

Posted: Thu Jan 09, 2014 10:19 am
by anderzon_
I dont get it. How should the complete code look like and where should I place it?

Re: program dosing pumps

Posted: Thu Jan 09, 2014 10:40 am
by rimai
if you look in your code, there is a section for custom code.
You should place right there.

Re: program dosing pumps

Posted: Thu Mar 01, 2018 3:44 am
by anderzon_
Lift this old thread.
I cant remember how I get it done last time.

Is this correct? If I the doser should be off at night?
Is it ok to place it in the loop or should it be in custom?

Code: Select all

if (hour() > 8 && hour() < 22) ReefAngel.DosingPumpRepeat( Box1_Port1,0,360,6 );
Thanks for all help :)