PDA

View Full Version : Dosing Pump Help - Check my code


eisaiasjr
11/24/2010, 09:10 AM
Hello:

I would like some of you gurus to check my code, this is what I want to accomplish :)

I want to dose ALK buffer only when my tank lights are OFF
I want to dose for 45 seconds every hour AFTER the lights go off

Here is the code that I plan to put in my ALK dosing pump outlet...


Fallback OFF
Set OFF
OSC 59:15/00:45/0 Then ON
If 1.1_Light.1 = ON Then OFF


I have my lights on from 9:30am to 7:30pm, I would expect the above code to dose for 45 seconds every hour after 8:29:15pm.

Is this correct? Is there a better or more elegant way of doing this?

Your feedback is appreciated,

Estefano

swearint
11/24/2010, 11:06 AM
In general you have it right. Couple things: First, you don't need the Set OFF since the OSC command performs both ON and OFF. Second, the syntax is 'If Outlet [name] = ON Then OFF. Also, not sure, but does the Apex allow '.' in the outlet name? I have never tried it.

Todd

ReefMan1111
11/25/2010, 11:16 AM
This is what I have. I dose every hour and my ph stays at 8.30
OSC 000:00/001:00/059:00 Then ON
If pH > 08.30 Then OFF