PDA

View Full Version : OSC command help


MvM
09/02/2012, 09:56 AM
I'm looking for a simple OSC command for my drew's dosers. I have 2 drews dosers and an Apex. I want each pump to run for a total of 31 minutes. I want the ALK to dose at night, starting at midnight. The CAL to start at 9:00 AM. Can anyone recommend an OSC command that will accomplish this? I am having a hard time grasping the simple concept!
Thanks,

MvM
09/02/2012, 10:05 AM
Will this dose for 32 minutes?

Alk
Fallback Off
OSC 00:00/02:00/58:00
It time 12:00 to 8:00 then on
If PH >8.3 then off

Cal
Fallback Off
OSC 00:00/02:00/58:00
It time 9:00 to 17:00 then on
If PH >8.3 then off

RussM
09/02/2012, 10:23 AM
Nope... that will make the pumps run 2 minutes of every hour AND run constantly between the hours in the If Time statements.

You need to use the If Time statements to prevent the OSC from dosing during the time you do not want dosing.

Fallback OFF
OSC 00:00/02:00/58:00
If Time 8:00 to 23:59 then OFF

The If time will take priority over the OSC and keep the outlet OFF except from midnight to 8AM. Also note the end time in the If Time statement is 23:59 (or one minute before 0:00); this allows the first dose at 0:00 sharp. If you had If Time 8:00 to 0:00 then OFF, the first daily dose wouldn't be until 01:00.

Follow the same concept for the other pump.

swearint
09/02/2012, 01:19 PM
If you had If Time 8:00 to 0:00 then OFF, the first daily dose wouldn't be until 01:00.
Minor correction: that should be 00:01. It would clip the first minute of the first dose of the day.

Todd

RussM
09/02/2012, 01:27 PM
Minor correction: that should be 00:01. It would clip the first minute of the first dose of the day.

ToddDoh! Yes, Todd is absolutely correct.

MvM
09/03/2012, 07:17 AM
Fortunately I measured dosing last night, but the program dosed almost 1000 ml of each. What did I do wrong? Here's my programming. I want to dose around 60 ML of each. They are plugged into relays 4 and 8.

CAL
Fallback OFF
OSC 000:00/002:00/058:00 Then OFF
If Time 22:00 to 07:59 Then OFF

ALK
Fallback OFF
OSC 000:00/002:00/058:00 Then OFF
If Time 08:00 to 23:59 Then OFF
If Temp > 08.40 Then OFF

swearint
09/03/2012, 08:42 AM
I don't see anything wrong with the code. You have 15 doses of 2 minutes each, so 30 mins total and 1.6ml/min would give 48 mls. Have you confirmed that the outlets are behaving as expected? Use the Graph function for each.

Todd

MvM
09/03/2012, 08:54 AM
Does this look correct?

MvM
09/03/2012, 08:55 AM
Well that didn't work...

MvM
09/03/2012, 09:07 AM
http://i111.photobucket.com/albums/n135/mvanmol/code.jpg

RussM
09/03/2012, 10:08 AM
Fortunately I measured dosing last night, but the program dosed almost 1000 ml of each. What did I do wrong? Here's my programming. I want to dose around 60 ML of each. They are plugged into relays 4 and 8.

CAL
Fallback OFF
OSC 000:00/002:00/058:00 Then OFF
If Time 22:00 to 07:59 Then OFF

ALK
Fallback OFF
OSC 000:00/002:00/058:00 Then OFF
If Time 08:00 to 23:59 Then OFF
If Temp > 08.40 Then OFF
Both OSC statements need to end with ON, not OFF. With your code, the outlets will be on for 58 minutes and off for 2.

MvM
09/03/2012, 10:26 AM
Both OSC statements need to end with ON, not OFF. With your code, the outlets will be on for 58 minutes and off for 2.

Ah. Thanks!

RussM
09/03/2012, 10:39 AM
Your times are wonky too - they don't match what it seems you wanted. In your original post, you said start dosing alk hourly at midnight, then start Ca dosing at 9AM. This implies that you want to dose alk for 8 hours, and also the same for Ca.. a 8-hour dosing window. Currently you have 8 hours of alk dosing and 15 of hours of Ca

For 60ml/day with a 1.6ml per minute Drew's doser dosing hourly over an 8 hour period:

60ml / 8 doses per day = 7.5 ml per dose
7.5ml per dose / 1.6ml/minute = 4.69 minutes = 4:41 (mm:ss)

[ALKdoser]
Fallback OFF
OSC 000:00/004:41/055:19 Then ON
If Time 8:00 to 23:59 Then OFF

Dosing will happen at 0:00, 1:00, 2:00, 3:00, 4:00, 5:00, 6:00, and 7:00

[CAdoser]
Fallback OFF
OSC 000:00/004:41/055:19 Then ON
If Time 17:00 to 8:59 Then OFF

Dosing will happen at 9:00, 10:00, 11:00, 12:00, 13:00, 14:00, 15:00, and 16:00

swearint
09/03/2012, 10:56 AM
Both OSC statements need to end with ON, not OFF. With your code, the outlets will be on for 58 minutes and off for 2.
Man, I completely missed the obvious there. I'm used to always setting it to ON.

Todd

RussM
09/03/2012, 11:00 AM
Man, I completely missed the obvious there. I'm used to always setting it to ON.I missed it too yesterday :(