Been a while... Check my code please

TylerHaworth

New member
So, I've swapped back to BRS dosing pumps for Calc/Alk needs and I want to make sure I still remember the dosing logic... Should be pretty simple... Thanks!

This would be 1 minute per hour starting at 8PM and ending at 8AM:

Fallback OFF
OSC 000:00/001:00/059:00 Then ON
If Time 08:00 to 20:00 Then OFF

This would be 1 minute per two hours starting at 8PM and ending at 8AM:

Fallback OFF
OSC 000:00/001:00/119:00 Then ON
If Time 08:00 to 20:00 Then OFF

This would be 1 minute per hour starting at 8:30PM and ending at 8:30AM

Fallback OFF
OSC 000:00/001:00/059:00 Then ON
If Time 08:30 to 20:30 Then OFF
 
Looks right to me, more or less.

The one thing that always confuses me is how the logic is handled at the exact on/off times. You want it to start at 8pm with the first dose, but at *exactly* 8pm your "If Time..." statement is still keeping the outlet off - I think. If you just adjust back your time statements by 5 or 10 minutes, you avoid that issue all together.

Also... regardless of what we all say here, it's always good (and easy) to just put the code in and give it a try and see what it does. I'm a big advocate of using desk lamps or something like that plugged into the controlled outlets to do a dry run of any programming.
 
So, I've swapped back to BRS dosing pumps for Calc/Alk needs and I want to make sure I still remember the dosing logic... Should be pretty simple... Thanks!

<snip>

This would be 1 minute per hour starting at 8:30PM and ending at 8:30AM

Fallback OFF
OSC 000:00/001:00/059:00 Then ON
If Time 08:30 to 20:30 Then OFF

Are you trying to dose on the 1/2 hour? If you want the dosing to start at 8:30 and then every 1/2 hour thereafter you need
OSC 030:00/001:00/029:00 Then ON. Beginning at the top of the hour, be in the OFF state for 30 minutes, then be in the ON state for 1 minute, then be in the OFF state for 29 minutes, then repeat the sequence.

Like radiata said, the reeftronic calculator will generate the code for you.
 
Back
Top