Apex Controller Replacement code review request

laconic

Active Member
View Badges
Joined
Feb 26, 2023
Messages
136
Reaction score
113
Location
Lecanto
Rating - 100%
2   0   0
I had to replace my controller and wanted a quick check on my programing

Return Pump
Fallback ON
Set ON
If FeedA 000 Then OFF
If FeedB 000 Then OFF
If FeedC 000 Then OFF
If FeedD 000 Then OFF

ATO
Fallback ON
Set OFF
If Output Pump = OFF Then OFF
Defer 005:00 Then ON

Nero3
Fallback ON
Set OFF
If Output Pump = OFF Then OFF
Defer 005:00 Then ON

UV
Fallback ON
Set OFF
If Output Pump = OFF Then OFF
Defer 005:00 Then ON

Reefmat
Fallback ON
Set OFF
If Output Pump = OFF Then OFF
Defer 005:00 Then ON

Also, I would like a 24v outlet to turn my fan off when lower than 76.5 and on when 78 is this possible?

Thanks
 
OP
OP
laconic

laconic

Active Member
View Badges
Joined
Feb 26, 2023
Messages
136
Reaction score
113
Location
Lecanto
Rating - 100%
2   0   0
It looks ok but I don't know what kind of ATO you use or what device "Output Pump" is. Yes, you should be able to configure a fan like you want.
The ATO is a IceCap that likes to audibly alarm so I shut it off. Is the defer I set 5 minutes?
 

Sisterlimonpot

Effortless Perfection
View Badges
Joined
Jul 15, 2009
Messages
3,877
Reaction score
7,920
Location
Litchfield Park
Rating - 0%
0   0   0
ATO
Fallback ON
Set OFF
If Output Pump = OFF Then OFF
Defer 005:00 Then ON
This code is exactly the same for all your outlets. I don't see how this worked for you in the past.

The outlet (when in auto) will never turn on unless ot goes into fallback, which means your energy bar lost connection with the head unit.

I assume all these outlets are supposed to turn off when the OUTPUT PUMP shuts off (for feeding perhaps??)

Is so, all you have to do is swap:

Fallback ON
Set OFF

To:

Fallback OFF
Set ON

What that will do is allow for those outlets to be on unless either your energy bar loses connection with apex, or the state of your OUTPUT PUMP goes to OFF.

The defer ON statement prevents those outlets from turning back on for an additional 5 minutes after the OUTPUT PUMP turns on or connection with apex is re-established.
 
OP
OP
laconic

laconic

Active Member
View Badges
Joined
Feb 26, 2023
Messages
136
Reaction score
113
Location
Lecanto
Rating - 100%
2   0   0
This code is exactly the same for all your outlets. I don't see how this worked for you in the past.

The outlet (when in auto) will never turn on unless ot goes into fallback, which means your energy bar lost connection with the head unit.

I assume all these outlets are supposed to turn off when the OUTPUT PUMP shuts off (for feeding perhaps??)

Is so, all you have to do is swap:

Fallback ON
Set OFF

To:

Fallback OFF
Set ON

What that will do is allow for those outlets to be on unless either your energy bar loses connection with apex, or the state of your OUTPUT PUMP goes to OFF.

The defer ON statement prevents those outlets from turning back on for an additional 5 minutes after the OUTPUT PUMP turns on or connection with apex is re-established.
Thank you I lost access to my old programming so I was going from memory
 

Reefing threads: Do you wear gear from reef brands?

  • I wear reef gear everywhere.

    Votes: 20 13.8%
  • I wear reef gear primarily at fish events and my LFS.

    Votes: 10 6.9%
  • I wear reef gear primarily for water changes and tank maintenance.

    Votes: 1 0.7%
  • I wear reef gear primarily to relax where I live.

    Votes: 22 15.2%
  • I don’t wear gear from reef brands.

    Votes: 82 56.6%
  • Other.

    Votes: 10 6.9%
Back
Top