Apex Code Review - Adding OSC command to my ATO code

Drauka99

Active Member
View Badges
Joined
Nov 19, 2015
Messages
364
Reaction score
156
Location
Northwest Florida
Rating - 0%
0   0   0
I have decided to add kalk to my ato reservoir. Looking at the output on Apex my ATO is running about 6 times a day for 10 minutes each time. So ~50ml a minute at 60 minutes is 3000ml a day. I am being generous at 3000ml, its likely more along the lines of 2500ml

My current code is

Fallback OFF
Set OFF
If SumpLo CLOSED Then ON
Defer 005:00 Then ON
If SumpLo OPEN Then OFF
If SumpHi OPEN Then OFF
If AtoLow OPEN Then OFF
If Sw2 CLOSED Then OFF


I was thinking of adding an oscillating command to make the pump run shorter times throughout the entire 24 hours. Would I just add the command like this


Fallback OFF
Set OFF
If SumpLo CLOSED Then ON
Defer 005:00 Then ON
OSC 000:00/002:30/057:30 Then ON
If pH > 8.40 Then OF
F
If SumpLo OPEN Then OFF
If SumpHi OPEN Then OFF
If AtoLow OPEN Then OFF
If Sw2 CLOSED Then OFF


I really want to keep the defer command in there but can drop it if you think that's going to be an issue. I am also fine with small amounts of kalkwasser being added through the day, my PH runs a bit on the low side even during the middle of the day.

Disregard SW2 code at the end, that is a tank service switch i setup to kill several outlets during sump cleanings and big water changes.
 
The way I see the Defer statement is that IF SumpLo is CLOSED for 5 minutes continuously then set the outlet register to ON; This does not definitively turn on the outlet. No damage is done IMO. The OSC might pump enough water to change the SumpLo to OPEN within 5 minutes and the Defer statement might be ignored sometimes.
 
The way I understand it the defer statement would have kept the pump off for 5 minutes when its state was triggered to on, since it was only triggered on for 2 minutes 30 seconds it would have never met the 5 minute requirement.

I had posted this same question on the Neptune Community Forum and got a response with the code format I have been using for the last few days

Fallback OFF
Set OFF
OSC 000:00/002:00/028:00 Then ON
If SumpLo OPEN Then OFF
If SumpHi OPEN Then OFF
If AtoLow OPEN Then OFF
If Sw2 CLOSED Then OFF
If pH > 8.40 Then OFF


quite simple the ATO pump can run for 2 minutes every 30 minutes (I changed that to make the ph swings even smaller), unless one of the other switches tells it to stay off. Quite an simple solution.
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%

New Posts

Back
Top