Fishbulb2
01/05/2008, 10:59 AM
Hey guys,
I have an AC jr and need some help writing a program for it. This is my first attempt at it. I have my main lights called LT1 and my auto top off doser called EVAP. The kalk stirrer is called STIR. I want the auto top off to only turn on if the main lights are off. Then the kalk stirrer should stir for 1 minute each hour. I also only want the EVAP to run if the kalk stirrer is not on and the pH remains below 8.6 and remain off for 5 minutes should it turn off. How would I write this code. What I have now did not really work.
Would this work
If Timer LT1 = OFF Then EVAP ON
If Timer LT1 = OFF Then STIR ON
OSC 001/059 ON/OFF Then STIR ON
If Timer STIR = ON Then EVAP OFF
If pH > 8.6 Then EVAP OFF
If pH < 8.6 Then EVAP ON
Max Change 005 M Then EVAP OFF
If Timer STIR = OFF Then EVAP ON
If Timer LT1 = ON Then EVAP OFF
If Timer LT1 = ON Then STIR OFF
I'm sure this isn't the most efficient way to do this. Any help will be appreciated.
FB
[/list]
I have an AC jr and need some help writing a program for it. This is my first attempt at it. I have my main lights called LT1 and my auto top off doser called EVAP. The kalk stirrer is called STIR. I want the auto top off to only turn on if the main lights are off. Then the kalk stirrer should stir for 1 minute each hour. I also only want the EVAP to run if the kalk stirrer is not on and the pH remains below 8.6 and remain off for 5 minutes should it turn off. How would I write this code. What I have now did not really work.
Would this work
If Timer LT1 = OFF Then EVAP ON
If Timer LT1 = OFF Then STIR ON
OSC 001/059 ON/OFF Then STIR ON
If Timer STIR = ON Then EVAP OFF
If pH > 8.6 Then EVAP OFF
If pH < 8.6 Then EVAP ON
Max Change 005 M Then EVAP OFF
If Timer STIR = OFF Then EVAP ON
If Timer LT1 = ON Then EVAP OFF
If Timer LT1 = ON Then STIR OFF
I'm sure this isn't the most efficient way to do this. Any help will be appreciated.
FB
[/list]