switching dosing pumps to osc

96slowbra

Member
i just don't get how the osc works, i have looked it over in the unofficial user guide. i want to switch over because then i can tune my the second as opposed to minute. here is what i have, i need to convert it to osc. maybe even add 10 seconds to each dose, i manually dose cal pretty regularly. cal gets down to 390 pretty quick and alk is a pretty constant 9.1.

alk
Fallback OFF
Set OFF
If Time 22:00 to 22:04 Then ON
If Time 02:00 to 02:04 Then ON
If Time 06:00 to 06:04 Then ON
If Time 10:00 to 10:04 Then ON
If Time 14:00 to 14:04 Then ON
If pH > 08.35 Then OFF

cal
Fallback OFF
Set OFF
If Time 04:00 to 04:04 Then ON
If Time 08:00 to 08:04 Then ON
If Time 12:00 to 12:04 Then ON
If Time 16:00 to 16:04 Then ON
If Time 20:00 to 20:04 Then ON
 
Recreating what you have shown, using OSC...

alk
Fallback OFF
Set OFF
OSC 000:00/004:00/236:00 Then ON
If Time 14:30 to 21:45 Then OFF

cal
Fallback OFF
Set OFF
OSC 000:00/004:00/236:00 Then ON
If Time 20:30 to 03:45 Then OFF

This is just one of many ways of doing it. The "If Time... Then OFF" statements can be other times, I just chose the nearest 15 minute interval.

If you want to add 1 (... abruptly cut off by my fat fingers. Grr.)

(Edit: What I wanted to say was that if you want to add 10 seconds the OSC command would just be replaced by:

OSC 000:00/004:10/235:40 Then OFF

That would give you a 4' 10" cycle, every 4 hours.)

(Edit #2: Oh... I forgot to add back in the pH statement for the alk. I would add that back in as the last line in the alk outlet program.)
 
Last edited:
i just don't get how the osc works, i have looked it over in the unofficial user guide.

The OSC command creates a repeating cycle, the tricky part is the wrap around. So for illustration:

OSC A/B/C...

repeats A - B - C - A - B - C -A .......

The first parameter A, offsets from midnight to start the cycle. Then, if you want to stay synchronized, make sure that all three parameters together are an even multiple of 1440 (24 hrs). Otherwise, the cycle will drift relative to midnight.

The second parameter B, will match the specified state, with A and C opposite. Therefore, A and C durations will effectively add together following the first sequence.

OSC 10:00/10:00/40:00 Then ON will produce the following states at the indicated times (ignoring seconds for convenience):

00:00 to 00:10 OFF
00:10 to 00:20 ON
00:20 to 01:10 OFF
01:10 to 01:20 ON
01:20 to 02:10 OFF
02:10 to 02:20 ON
02:20 to 03:10 OFF
...

Using OSC... Then OFF, reverses all the states.

Todd
 
i think i am starting to understand, but still not quite sure. is this close?

ALK
Fallback OFF
Set OFF
OSC 120:00/004:10/115:50 Then ON
If Time 14:05 to 21:05 Then OFF
If pH > 08.35 Then OFF

CAL
Fallback OFF
Set OFF
OSC 000:00/004:10/115:50 Then ON
If Time 20:05 to 4:05 Then OFF
 
You are very close... Alk looks good. You got the harder one right :) Ca though needs a bit of tweaking.

You have:
OSC 000:00/004:10/115:50 Then ON
This will dose for 4:10 every TWO hours. For events every four hours, you need to make sure that the sum of all three times is 4 hours (240 minutes.) So that line needs to be:
OSC 000:00/004:10/235:50 Then ON
 
CAL
Fallback OFF
Set OFF
OSC 000:00/004:10/235:50 Then ON
If Time 20:05 to 4:05 Then OFF

is the last line ok? weird concept to wrap around midnight?
 
Last edited:
No... you need the "if" command. If it's not in there, then it would dose 4' 10" every 4 hours, all day long.
 
Back
Top