Apex Controller Replacement code review request

  • Thread starter Thread starter laconic
  • Start date Start date
  • Tagged users None

laconic

Active Member
View Badges
Joined
Feb 26, 2023
Messages
141
Reaction score
116
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
 
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?
 
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.
 
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
 

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