I ended up doing 4 gallons over 5 days. If anyone else needs something like this here's the code. Due to the limitation of [Time] having a maximum value of 999 minutes, which is ~16 hours, I had to use 11 Virtual outlets: V_WC_[0-9] and Start_WC.
Code:
// Start_WC - Set to ON to start the water change that evening
// V_WC_0 - Turn on at midnight, off at noon - Night 1
Set OFF
If Output Start_WC = ON Then ON
If Time 00:01 to 23:59 Then OFF
If Output V_WC_1 = ON Then OFF
If Output V_WC_2 = ON Then OFF
If Output V_WC_3 = ON Then OFF
If Output V_WC_4 = ON Then OFF
If Output V_WC_5 = ON Then OFF
If Output V_WC_6 = ON Then OFF
If Output V_WC_7 = ON Then OFF
If Output V_WC_8 = ON Then OFF
If Output V_WC_9 = ON Then OFF
Min Time 721:00 Then ON
// V_WC_1 - Turn on at noon, off at midnight
Set OFF
If Output V_WC_0 = ON Then ON
If Output V_WC_2 = ON Then OFF
Min Time 721:00 Then ON
Defer 720:00 Then ON
// V_WC_2 - Turn on at midnight off at noon - Night 2
Set OFF
If Output V_WC_1 = ON Then ON
If Output V_WC_3 = ON Then OFF
Min Time 721:00 Then ON
Defer 720:00 Then ON
// V_WC_3 - Turn on at noon, off at midnight
Set OFF
If Output V_WC_2 = ON Then ON
If Output V_WC_4 = ON Then OFF
Min Time 721:00 Then ON
Defer 720:00 Then ON
// V_WC_4 - Turn on at midnight, off at noon - Night 3
Set OFF
If Output V_WC_3 = ON Then ON
If Output V_WC_5 = ON Then OFF
Min Time 721:00 Then ON
Defer 720:00 Then ON
// V_WC_5 - Turn on at noon, off at midnight
Set OFF
If Output V_WC_4 = ON Then ON
If Output V_WC_6 = ON Then OFF
Min Time 721:00 Then ON
Defer 720:00 Then ON
// V_WC_6 - Turn on at midnight, off at noon - Night 4
Set OFF
If Output V_WC_5 = ON Then ON
If Output V_WC_7 = ON Then OFF
Min Time 721:00 Then ON
Defer 720:00 Then ON
// V_WC_7 - Turn on at noon, off at midnight
Set OFF
If Output V_WC_6 = ON Then ON
If Output V_WC_8 = ON Then OFF
Min Time 721:00 Then ON
Defer 720:00 Then ON
// V_WC_8 - Turn on at midnight, off at 6:21 - Night 5, shutoff early to adjust for accurate dosing of 4 Gallons (by ~30 ml)
Set OFF
If Output V_WC_7 = ON Then ON
If Output V_WC_9 = ON Then OFF
Min Time 364:21 Then ON
Defer 720:00 Then ON
// V_WC_9 - Turn on at 6:21 - Complete, Disallow restart until Start_WC is toggled
If Output V_WC_8 = ON Then ON
If Output Start_WC = OFF Then OFF
Defer 364:20 Then ON
My Dos pumps are programmed with:
Code:
Set OFF
If Output V_WC_0 = ON Then Nightly_WC
If Output V_WC_2 = ON Then Nightly_WC
If Output V_WC_4 = ON Then Nightly_WC
If Output V_WC_6 = ON Then Nightly_WC
If Output V_WC_8 = ON Then Nightly_WC
If Power Apex Off 000 Then OFF
My Nightly_WC Profile is set to:
Nightly_WC.jpg
Bookmarks