PDA

View Full Version : Apex Programming - Vodka Dosing


jharding08
07/15/2013, 04:54 PM
I'm looking to dose vodka two times a day (morning/evening) for one minute (1.6 ml/min)

What would be the easiest code to write for the dosing pump. I can do 7 am and 7 pm if that makes it easier

Something like this?

Fallback OFF
OSC 000:00/001:00/059:00 Then ON
If Time 19:01 to 06:59 Then OFF
If Time 7:01 to 18:59 Then OFF

aquamanic
07/16/2013, 11:15 AM
You could do it that way or you could do this:

Fallback OFF
Set OFF
If Time 07:00 to 07:01 Then ON <-- this is actually 2 minutes
If Time 19:00 to 19:01 Then ON
Defer 1:00 Then ON

jharding08
07/16/2013, 04:24 PM
You could do it that way or you could do this:

Fallback OFF
Set OFF
If Time 07:00 to 07:01 Then ON <-- this is actually 2 minutes
If Time 19:00 to 19:01 Then ON
Defer 1:00 Then ON

I see why you have to DEFER if 7:00 to 7:01 is two minutes.

For using THEN OFF, like in mine:
OSC 000:00/001:00/059:00 Then ON
If Time 19:01 to 06:59 Then OFF
If Time 7:01 to 18:59 Then OFF

Will that start at 7:00 and off at 7:01 like planned?

aquamanic
07/16/2013, 04:52 PM
the outlet will be ON from 7:00:00 - 7:00:59 and the oscillate is running 1 minute from the top of every hour so yes, it should do what you want...

But...

you have to test it. Manipulate the times so they're within a minute or two of now. Let the program run, then look at the XML outlet log. It will show you the precise times it turned the outlet on and off.

jharding08
07/23/2013, 04:38 PM
One more question with the dosing and frequencies. If I have a Drew's Doser that does about 1.5ml/min.

Would it be best to still do two dosings per day and then just manipulate the timing in seconds to get the right amount.

Or would it be better to do like 30 seconds, more than twice a day? and adjust that up each week?

Here is the schedule I am going by:
Week 1(1-3): .4
Week 1 (4-7): .8
Week 2: 1.3
Week 3: 1.8
Week 4: 2.3
Week 5: 2.8
Week 6: 3.3
etc.

jharding08
07/23/2013, 05:06 PM
I think i have a solution. I can leave the pump on for a complete hour and then just OSC within that hour, the number of seconds needed.

OSC 000:00/001:00/059:00 Then ON
If Time 20:00 to 06:59 Then OFF
If Time 8:00 to 18:59 Then OFF


Daily Dose (2x) Seconds OSC
Week 1 0.4 0.2 8 OSC 000:00/000:08/059:52 Then ON
Week 1 0.8 0.4 16 OSC 000:00/000:16/059:44 Then ON
Week 2 1.3 0.65 26 OSC 000:00/000:26/059:34 Then ON
Week 3 1.8 0.9 36 OSC 000:00/000:36/059:24 Then ON
Week 4 2.3 1.15 46 OSC 000:00/000:46/059:14 Then ON
Week 5 2.8 1.4 56 OSC 000:00/000:56/059:04 Then ON
Week 6 3.3 1.65 66 OSC 000:00/001:06/058:54 Then ON
Week 7 3.8 1.9 76 OSC 000:00/001:16/058:44 Then ON
Week 8 4.3 2.15 86 OSC 000:00/001:26/058:34 Then ON
Week 9 4.8 2.4 96 OSC 000:00/001:36/058:24 Then ON
Week 10 5.3 2.65 106 OSC 000:00/001:46/058:14 Then ON
Week 11 5.8 2.9 116 OSC 000:00/001:56/058:04 Then ON
Week 12 6.3 3.15 126 OSC 000:00/002:06/057:54 Then ON
Week 13 6.8 3.4 136 OSC 000:00/002:16/057:44 Then ON
Week 14 7.3 3.65 146 OSC 000:00/002:26/057:34 Then ON
Week 15 7.8 3.9 156 OSC 000:00/002:36/057:24 Then ON
Week 16 8.3 4.15 166 OSC 000:00/002:46/057:14 Then ON