PDA

View Full Version : Help with drew's dosers and an ACjr


silentscream
01/16/2010, 03:32 PM
I appologize for another ACjr/dosing post, but I'm having a difficult time understanding how to use a OSC command to dose my tank. I'm not quite sure if I understand the limitations of the acjr's osc command and wonder if it is possible to turn on a drew's dosing pump for 6 minutes every 3 hours for a 24 hour period.

ALK
starting at midnight, turn on one pump for 6 minutes, then wait until 3am before it comes on again for 6 minutes, and continues on for the rest of the 24 hour period in that manner.
CAL
starting at 1am, turn of one pump for 6 minutes, then wait until 4am before it turns back on, and so forth.

I thank you in advance for any input you can give!

SWINGRRRR
01/16/2010, 03:49 PM
Try this out:

You will need a dummy timer for 'DAY' (you can use address P01 - P15 so to not take a real DCx address)

// The day timer tells when to run one OSC or the other
If Time > 05:00 Then DAY ON
If Time > 22:00 Then DAY OFF

// OSC but during the day override OSC and turn ALK off
OSC 001/059 ON/OFF Then ALK OFF
if Timer Day = ON Then ALK OFF

// OSC but during the night override OSC and turn CAL off
OSC 001/059 ON/OFF Then CAL OFF
if Timer Day = OFF Then CAL OFF

Just change the times to what you want.

silentscream
01/16/2010, 05:08 PM
So my program would read:

// The day timer tells when to run one OSC or the other
If Time > 00:00 Then DAY ON
If Time > 24:00 Then DAY OFF

// OSC but during the day override OSC and turn ALK off
OSC 006/174 ON/OFF Then ALK OFF
if Timer Day = ON Then ALK OFF

// OSC but during the night override OSC and turn CAL off
OSC 006/174 ON/OFF Then CAL OFF
if Timer Day = OFF Then CAL OFF

But wouldn't this code make for my pumps to turn on at the same time? How would I change the program to get the CAL pump to run 1 hour after ALK.

silentscream
01/16/2010, 06:57 PM
By setting up 2 dummy timers (DM1 & DM2), will the following code produce a program that runs the CAL doser 1 hour after each time the ALK doser runs?

If Time > 00:00 Then DM1 ON
If Time > 24:00 Then DM1 OFF
OSC 006/174 ON/OFF Then ALK OFF
If Timer DM1 = OFF Then ALK OFF

If Time > 01:00 Then DM2 ON
If Time > 24:00 Then DM2 OFF
OSC 006/174 ON/OFF Then CAL OFF
If Timer DM2 = OFF Then CAL OFF

30mini
01/18/2010, 05:34 AM
You have a mistake in your code. From what you are saying, you want the dosers to turn on every three hours for 6 minutes all day long, correct? If that is so, then you don't need the "If Time > 24:00 Then DM# OFF" statement, or the "If Timer DM# = OFF then ALK/CAL OFF" statement. Therefore, the code would look like this:


If Time > 00:00 Then DM1 ON
If Time > 00:00 Then DM2 ON
If Timer DM1 = ON Then ALK ON
If Timer DM2 = ON Then CAL ON
OSC 006/174 ON/OFF Then ALK OFF
OSC 006/174 ON/OFF Then CAL OFF