Time statement: what went wrong?

Hawkdl2

Mad Scientist
I wanted a 1 minute dose so I used:

If Time 07:00 to 07:00 Then ON

It seemed to me that the statement would be true for only 1 minute - while the time was 7am. What happened was the pump turned on but never turned off. My email alarm notified me after 40 minutes of pumping that the pH went above 8.6. I found a cloudy tank! I was out in my shop, so if it hadn't been for the Apex email alarm the pump would have drained a brand new full 1 gal of B-Ionc.
 
brand new here, but I think you need

Set OFF

I would also put a

Fallback OFF

as well

maybe you could use

fallback OFF
osc 420/001/1019


could be way off though
 
A couple ways to do it:Set OffFallback OffIf Time 07:00 to 07:01 Then ONYou can't use OSC because the max is 999 but if you change to sat 8 am for 1 minute then you can use this:Fallback OFF OSC 480:00/001:00/960:00 Then ON
 
You can't do a 1 minute duration using the Time command

If Time 7:00 to 7:01 Then ON

will actually create a two minute duration. But there is a simple fix, use the Defer command to wait 1 minute. Also add a pH safety condition:

Set OFF
If Time 7:00 to 7:01 Then ON
If pH > 8.3 Then OFF
Defer 1:00 Then ON

Todd
 
Interesting; I didn't know that a 1 minute duration didn't work.
 
I appreciate that are several approaches to getting a 1 minute dose - I ended up using a defer statement. OSC is another. Logically, my use of the Time statement should have worked. And there was both an appropriate fallback and set statement preceding the time statement in my case. The question is why did the Apex not resolve the Time 7:00 to 7:00 statement as false at every time after 7:00?

Ken, I suspect a lot of people think a time statement such as If Time 07:00 to 07:01 results in a 1 minute "true" state when in fact it results in a 2 minute period. Logically, 07:00 to 07:00 should be true for 1 minute.
 
Last edited:
Ken, I suspect a lot of people think a time statement such as If Time 07:00 to 07:01 results in a 1 minute "true" state when in fact it results in a 2 minute period. Logically, 07:00 to 07:00 should be true for 1 minute.
I agree with the first case, but I suspect the other is due to the fact that the Apex can 'wrap' time. For example,

If Time 8:00 to 7:00 Then ...

would be true from 8:00 am on the first day until 7:00 am on the second day. With the start and stop times the same, there is no 'window' for the statement to be false.

Todd
 
Todd, I see your point.

It would be nice if the Time statement allowed for seconds, as do other Apex commands.
 
Back
Top