This is normally done using the When command. Add this line to your ATO program:
When On > 003:00 Then OFF
Then add this line to your EmailAlm program to send you the alarm notification:
If Error ATO Then ON
The When command triggers the error condition when the timer is exceeded, and it moves the ATO dashboard slider from AUTO to OFF. You’ll receive the alarm notification, then after you investigate and correct whatever caused the problem, move the ATO slider back to AUTO to resume normal operation.
You should also make a couple of other changes to your ATO code:
Fallback OFF
Set OFF
If SumpLo OPEN Then ON
If ResLo OPEN Then OFF
If SumpHi CLOSED Then OFF
If Output skimmermaint = ON Then OFF
When On > 003:00 Then OFF
Defer 000:10 Then ON
Defer 004:04 Then OFF
Min Time 030:00 Then OFF
This is the standard code used for Neptune’s ATK, and can also be used for any other ATO controlled by the Apex. Read my ATK tutorial for a description of how the code works:
Part 3 of our series on learning how to program your Neptune Apex for automatic top-off in a saltwater aquarium.
www.reef2reef.com
See my whole series of Apex tutorials for more tips and programming examples:
www.reef2reef.com