Help me with a programming question
I have my dosing pump setup to drip alk at night. I want to set a ph saftey net to make sure things dont get crazy. The way my biocube is, it drips the alk before the ph probe, so you see a temporary swing after dosing. (maybe 10 seconds)
Is there a way to setup the program to cut off pump if ph goes above a certain level and leave a hysteresis period for the alk swing for a minute or so? Here is the way I am doing it right now. Fallback OFF Set OFF If Time 22:00 to 22:01 Then ON If Time 23:00 to 23:01 Then ON If Time 01:00 to 01:01 Then ON If Time 02:00 to 02:01 Then ON If Time 03:00 to 03:01 Then ON If Time 04:00 to 04:01 Then ON If Time 05:00 to 05:01 Then ON If Time 06:00 to 06:01 Then ON If Time 07:00 to 07:01 Then ON If Time 08:00 to 08:01 Then ON Defer 001:39 Then ON |
You could add a if PH > 8.5 then Off at the top.
Since your PH should not get above PH. I would also consider moving the probe or the area that you put the kalk since kalk is normally north of 11.0 |
No, the pH statement needs to go after the last time statement. Apex executes top to bottom, so later code has priority. If you want to add a Defer for the pH increase, you will need to use a virtual outlet. If you add it to the existing outlet, it will interfere with the timing of the dosage.
Todd |
you are right Todd... as usual... LOL..
|
Quote:
If pH > [x] Then OFF Defer 000:10 Then OFF This way, wouldn't the dosage timing be preserved EXCEPT when the pH is higher than [x] for 10secs or more? I would also believe that the "Defer 001:39 Then ON" would make sure it's NEVER ON. With the timing there, it would never be "ON" for more than a minute, so that last statement would prevent turning ON. What am I understanding wrong? |
Quote:
Quote:
Todd |
All times are GMT -6. The time now is 05:58 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
User Alert System provided by
Advanced User Tagging v3.3.0 (Pro) -
vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.