Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
That’s the current code. I’d very much like When instead of If. The issue is if I refill the SW container with RO the float returns to Closed, but I haven’t mixed in salt yet. I want When so that I have to manually set it back to OnIs res_lo a float switch?
If so, you can just add the following code to the pump/outlet you want off:
If res_lo closed then off
Yes, I’ve seen and read all of them, a sincere public service! Would you recommend a separate VO to concert a Switch to something that could trigger a When statement?When uses a countdown timer once an output turns Off or ON, and if it remains in that state for longer than the timer then the output slider is moved from the AUTO state to either Off or ON, depending on the programming. Once the slider is moved, the programming for that output no longer is processed, so it's up to you to correct the situation and move the slider back to AUTO for the program to resume.
The syntax is:
When [ON/OFF] > MMM:SS Then [ON/OFF]
Once the timer has elapsed, the output is also set into an error state and can send an alarm notification with this programming in your EmailAlm programming:
If Error OutputName Then ON
See this FAQ for more details about When: https://forum.neptunesystems.com/showthread.php?18393-Using-the-%91When%92-statement
Also see my tutorial on Apex Timers for details on When and all the other Apex timer commands: https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-2-timers.689/
Yes, I’ve seen and read all of them, a sincere public service! Would you recommend a separate VO to concert a Switch to something that could trigger a When statement?
Indeed it does. Nailed it thank you.I don't think a virtual output is necessary. If I understand your original question correctly, you just want the AWC pumps manually turned off if Res_Lo is OPEN until you have a chance to mix some new saltwater, then turn it back to AUTO once ready with a new batch of saltwater. You can use this code on the AWC pumps:
If Res_Lo OPEN the OFF
When Off > 001:00 Then OFF
Once the Res_Lo sensor is OPEN because it doesn't detect any water, it turns off the AWC pumps, and after one full minute of this condition the When timer forces the output slider into the manual OFF position. At this point, you can refill the mixing tank, and even though the Res_Lo switch will report CLOSED, the AWC pumps will not run until you have mixed the salt and then you set the AWC pump output sliders back to AUTO.
I'm not sure if you're using a DOS or other pumps for the AWC. Regardless, you'll want the code above on both the AWC drain pump and the AWC fill pump so both of them are disabled until it's safe to resume the water changes.
I hope that makes sense to you.