Let me add a little clarification on the correct use of "If Power". It can be used in a couple of different scenarios:
Scenario 1: Apex connected without any backup battery
In this scenario, when the power fails the Apex and all connected devices lose power and shut down. Once the power is restored, the "If Power" command can be used to delay the startup of connected devices by specifying the number of minutes to wait:
If Power Apex Off 020 Then OFF
In order for this scenario to work properly, you must ensure the "Power Monitor" setting under the Misc Setup screen is set to
Disabled.
You can also monitor the power status of an individual EnergyBar in case there's a circuit breaker problem, for example to send you an alert if one of your EnergyBars is off but the Apex is still powered by another EnergyBar or module:
If Power EB832 Off 000 Then ON
Scenario 2: Apex connected to a backup battery
In this scenario, one or more EnergyBars are connected to a UPS backup battery to supply electriciy during a power failure. In order for the Apex to know the power is out, you must have the optional 12v Auxiliary power adapter plugged into the Apex, and
Enable the "Power Monitor" setting under the Misc Setup screen. The 12v adapter must be plugged into an unprotected outlet. With this configuration, the Apex monitors the 12v power adapter, and when it senses no power, the Apex knows it's running on battery power. You can then program selected outputs to shut down during the power failure to preserve the battery life, with or without an additional delay after the power is restored:
If Power Apex Off 000 Then OFF
Typically items like return pumps, skimmers, heaters, lights, dosing pumps, reactor pumps, etc., should be turned off so you can keep powerheads running as long as possible for water movement.
See my tutorial on Apex Power Monitoring for more details:
Part 4 of our series on programming your Neptune Apex: Power Monitoring
www.reef2reef.com