PDA

View Full Version : Can I use the OSC statement with an IF statement?


brooke71
11/29/2012, 10:06 PM
HI AGAIN,
I could use your help once again. I am dosing Kalk and would also like to use this in case my low water float goes off. This is my statement for Kalk and it works great:

Fallback OFF
OSC 059:30/000:30/000:00 Then ON
If Time 08:00 to 21:00 Then OFF
If pH > 08.50 Then OFF

I would like to add the following but getting an error. Can I somehow add a statement like this to turn on if my water happens to go low as well? IF not this can I add a statement somewhere that will activate when

If Switch 1 Closed Then ON

Thank you!

RussM
11/29/2012, 11:03 PM
There should not be a space after "switch"

If Switch1 blah blah

brooke71
11/30/2012, 09:08 AM
That was easy, thank you yet again Russ.

RussM
11/30/2012, 09:22 AM
With that concept, however, you run the risk of overfilling.

Instead, I would use the switch to only allow kalk to be added when the water level is low.


Fallback OFF
OSC 059:30/000:30/000:00 Then ON
If Time 08:00 to 21:00 Then OFF
If pH > 08.50 Then OFF
If Switch1 OPEN Then OFF

brooke71
11/30/2012, 09:30 AM
With that concept, however, you run the risk of overfilling.

Instead, I would use the switch to only allow kalk to be added when the water level is low.


Fallback OFF
OSC 059:30/000:30/000:00 Then ON
If Time 08:00 to 21:00 Then OFF
If pH > 08.50 Then OFF
If Switch1 OPEN Then OFF


That makes sense thank you. Next question, how would I add the Switch statement to notify me by my email if say it is open for too long? Does that make sense? So if say for more than 5 minutes. Is this possible? My email function is working for other things but would like to add this as well.
Thanks in advance once again.

RussM
11/30/2012, 09:39 AM
That makes sense thank you. Next question, how would I add the Switch statement to notify me by my email if say it is open for too long? Does that make sense? So if say for more than 5 minutes. Is this possible? My email function is working for other things but would like to add this as well.
Thanks in advance once again.see the Comprehensive Reference Manual, page 131.

brooke71
11/30/2012, 09:52 AM
see the Comprehensive Reference Manual, page 131.

That is exactly what I was looking for! Thank you AGAIN Russ!