Below is the complete program that I am running in my Apex controller. Feel free to reference it, copy it or use it in any manner that you wish. I have separated the code into 2 sections; Program and Pump Profiles.

Note: This page refreshes automatically with the current program and profile information.

Tank electric panel

Program

Pump Profiles