Dosing pump timer

Do you have a question on how to do something.
Ask in here.
Post Reply
Lionfan
Posts: 166
Joined: Wed Nov 26, 2014 8:53 am

Dosing pump timer

Post by Lionfan »

I would like to have my dosing pump (kalk) come on at 10 P.M and dose for 5 secs every hour. Then stop dosing at 0600. How would i code that?
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Dosing pump timer

Post by rimai »

Try this:

Code: Select all

if (hour()>=10 && hour()<18) ReefAngel.DosingPumpRepeat( Port1,0,60,5 );
Roberto.
Lionfan
Posts: 166
Joined: Wed Nov 26, 2014 8:53 am

Re: Dosing pump timer

Post by Lionfan »

rimai wrote:Try this:

Code: Select all

if (hour()>=10 && hour()<18) ReefAngel.DosingPumpRepeat( Port1,0,60,5 );

Thanks! Which part of that is the port assignment?
Image
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Dosing pump timer

Post by lnevo »

Port1
Lionfan
Posts: 166
Joined: Wed Nov 26, 2014 8:53 am

Re: Dosing pump timer

Post by Lionfan »

"lnevo"]Port1[/quote]
Thanks! I'm learning the code. I take it the " 10" is the start time, the "18" is the end time. And the (0,60,5) is everyday, every 60 minutes, for 5 secs?
Image
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Dosing pump timer

Post by lnevo »

Correct the 0 is offset. So 10am, 11am, 12pm, etc. if you wanted it at 10:30, you'd have that be 1800
Lionfan
Posts: 166
Joined: Wed Nov 26, 2014 8:53 am

Dosing pump timer

Post by Lionfan »

Correct the 0 is offset. So 10am, 11am, 12pm, etc. if you wanted it at 10:30, you'd have that be 1800
My mind was just blown. How is 1800 1030?
Image
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Dosing pump timer

Post by lnevo »

Because its an offset and I was wrong actually the argument is in minutes not seconds. So if it were seconds it would have been 30 minutes x 60 seconds = 1800. But since I'm wrong it would just be 30.
Lionfan
Posts: 166
Joined: Wed Nov 26, 2014 8:53 am

Re: Dosing pump timer

Post by Lionfan »

lnevo wrote:Because its an offset and I was wrong actually the argument is in minutes not seconds. So if it were seconds it would have been 30 minutes x 60 seconds = 1800. But since I'm wrong it would just be 30.
I think I understand.. This may be alot, but can you explain the code for my dosing pump piece by piece. And when you say "offset" what is that pertaining to? the start time? I R GRUNT
Image
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Dosing pump timer

Post by lnevo »

Yes with a 0 offset it goes by the repeat time which in your case is 60 minutes. So its on the hour every hour. If you add a 5 minute offset it would be 10:05, 11:05, etc.

The function takes these arguments.

Port, Offset, Repeat, Time

From the code roberto gave you that translates to:

Port1, 0 offset, every 60 minutes, 5 second time.

You asked originally if the 0 meant every day and it doesn't. So hopefully now you follow what it means
Lionfan
Posts: 166
Joined: Wed Nov 26, 2014 8:53 am

Re: Dosing pump timer

Post by Lionfan »

Alright, I get it now. Thanks a ton! Now, my ca and Soda ash are dosing perfectly. This forum is awesome
Image
Post Reply