Dosing Pump Help - Check my code

eisaiasjr

New member
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...

Code:
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
 
Last edited:
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
 
Back
Top