Dosingpumprepreat1 Only Running Once

Do you have a question on how to do something.
Ask in here.
Post Reply
btorrenga
Posts: 100
Joined: Mon Apr 16, 2012 10:22 pm

Dosingpumprepreat1 Only Running Once

Post by btorrenga »

I am trying to confirm that my dosing pump will work properly in my code. To test, I have plugged in a lamp and am trying out a short interval. ReefAngel.DosingPumpRepeat1(Box1_Port6), with a runtime of 10 seconds, repeating every minute, starting one or two minutes from now. As expected, the lamp will turn on for ten seconds as soon as the start time arrives. However, the lamp does not turn on again. What could be preventing the function from repeating itself?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Dosingpumprepreat1 Only Running Once

Post by rimai »

Which memory location are you using?
You should use: DP1RepeatInterval, DP1Timer
There is no starting time on this function.
The interval is always going to start at midnight.
So, if you set interval of 3hr, it will turn on at midnight, 3, 6, 9, 12, 3, 6 and 9.
Roberto.
Post Reply