Huh - timer confusion....why is this not...

ErikS

New member
working correctly?

Trying to use timers to stir a kalk reactor. I can turn the timer on & off from the web interface (ACIII)....but when I use this code it's on @ the wrong times (as in always on) -

If Time > 22:59 Then KLK ON
If Time > 23:00 Then KLK OFF
If Time > 03:39 Then KLK ON
If Time > 03:30 Then KLK OFF
If Time > 07:29 Then KLK ON
If Time > 07:30 Then KLK OFF
If Time > 11:29 Then KLK ON
If Time > 11:30 Then KLK OFF
If Time > 15:29 Then KLK ON
If Time > 15:30 Then KLK OFF

What did I miss? Is there a more efficient approach?
 
You have a typo for the line:
If Time > 03:39 Then KLK ON

If you are trying to get your kalk strirrer to turn on for 1 minute every 4 hours, it might be easier to write it with a single OSC line:

OSC 001/239 ON/OFF Then KLK ON
 
DOH!

Much appreciated - just couldn't see it no matter how many times I looked at it (even after you pointed it out :lol: )

That's the other Q, I couldn't find the upper limit of the OSC command - guessing 999?
 
I believe that 240 is the max for the number field of the OSC command.
I tried higher & got an error - it said the max was 255 (which makes sense given the str length).

Just in case anyone else asks :D
 
Back
Top