another confusing OSC result

mmessing

New member
So I want to dose my calcium for 10 minutes each hour for 10 doses during the day between 8am and 6pm

When I do this, the pump does not start until 10:01 so only dose for 9 minutes the first time. Then it does 10 minutes the remaining hours, starting on the hour. It's not a lot of volume, but it did confuse me.

So is this correct?

Fallback OFF
OSC 000:00/010:00/050:00 Then ON
If Time 18:00 to 08:00 Then OFF

Thanks, Mark
 
I think you mean 8:01 rather than 10:01. You have the dose starting on the hour, but the If Time statement keeps it OFF at 8:00. Not until 8:01 is the If Time statement false. Change it to:

If Time 18:00 to 07:59 Then OFF

Todd
 
Right, 8:01. So if I change it 18:00 to 7:59 then then it will start at 8:00. Then each subsequent time it will start on the hour or a minute before? I'm not that obsessive, I'm just trying to understand the programming logic.
 
So if I change it 18:00 to 7:59 then then it will start at 8:00.
Yes.

Then each subsequent time it will start on the hour or a minute before?
On the hour.

Remember, the Apex prioritizes top to bottom. So although the OSC was starting at 8:00, the 'If Time' was keeping it OFF. 'If Time' ignores seconds, so up to 8:00:59 is considered 8:00 and the statement is not false until 8:01.

Todd
 
Back
Top