mardi 15 décembre 2015

APEX Programming Examples

There seem to be a few people that are new to the APEX on here recently, or are considering purchasing an APEX and asking about programming, so I thought I would start a new thread where I can post my programming that you can use / modify as needed, and everyone else is welcome to post their programming as well because that's how we all learn new capabilities of the system is to see what others are doing with it =)

To get much more advanced I really need another EB8 to finish everything I want to do...

-----------------------------------------------------------------------
"White_Lights" (the channel that has everything but blue lights)
Fallback OFF
Set OFF
If Time 09:00 to 20:00 Then ON
If Temp > 80.0 Then OFF

I think the lights are pretty self explanatory except the temp thing, I turn my white lights off if the temp is too high that way it is a visual thing for me if I'm near the tank and the whites should be on and aren't I know my temp is too high and can go turn a fan on.
-----------------------------------------------------------------------
"Blue_Lights"
Fallback OFF
Set OFF
If Time 07:00 to 22:00 Then ON

Again, pretty self explanatory
-----------------------------------------------------------------------
"Skimmer"
Fallback ON
Set ON
If Sw2 OPEN Then OFF
If Time 22:00 to 06:00 Then OFF
Defer 002:00 Then ON

In my skimmer program the Sw2 is a float switch that is in my overflow bucket that way if my skimmer flips out and pumps close to 5 gallons of water out it shuts the skimmer off that way my ATO won't top off more than 5 gallons of water (which has very minimal impact on my s.g. with as many gallons as I have in my system, I had a couple floods that did have a big impact though before I added this float switch). The defer just waits 2 minutes to turn the skimmer on in case there was a power outage the skimmer doesn't kick on for 2 minutes that way my return pump can get the sump level back to normal so the skimmer doesn't overflow. I also turn my skimmer off at 10pm because it's in the room directly below my bedroom and some nights I can't sleep if I hear the vibration from the skimmer beneath me...
-----------------------------------------------------------------------
"Calc pump"
Fallback OFF
OSC 000:00/000:15/059:45 Then ON
If Outlet Blue_Lights = ON Then OFF
If pH > 8.30 Then OFF
If FeedA 000 Then OFF

Calcium pump is set to run for 15 seconds every hour, but if the pH were over 8.3 it would not run.
-----------------------------------------------------------------------
"Alk pump"
Fallback OFF
Set OFF
OSC 030:00/000:05/059:55 Then ON
If Outlet Blue_Lights = ON Then OFF
If pH > 8.30 Then OFF
If FeedA 000 Then OFF

The alkalinity pump is set to run for 5 seconds every hour 30 minutes after the calcium pump runs every hour, and again turns off if the pH is above 8.3, also have the feed statement in there which just turns the pump off when feeding (I don't actually use this... it's just there in case I ever change my mind)
-----------------------------------------------------------------------
"Large_Heater"
Fallback ON
If Temp < 77.5 Then ON
If Temp > 77.5 Then OFF

I have one large heater that is on all the time (not plugged in to the apex, I'm using the internal thermostat of the heater instead), then this is a backup heater that just kicks on to help keep the temp as close to 77.5 as possible (my actual temperature swing is usually about 77.2 - 77.8 with a few anomalies here and there).
-----------------------------------------------------------------------
"ATO"
Fallback OFF
Set OFF
If Sw1 CLOSED Then ON
Defer 002:00 Then ON
If Time 20:00 to 16:00 Then OFF
If Outlet Maint = ON Then OFF

Sw1 is my low water sensor in my sump that tells the ATO that the water level is low. I have the defer in there to make sure the water level is low for at least two minutes before topping off (in case there was a splash of water or something it won't kick on until the switch has been in the low position for 2 minutes), I have the time statement in there because I only want my ATO to run between 4PM and 8PM that way I am most likely home (in case my ATO container ran dry and I haven't made any water to refill it, I'm more likely to hear the pump grinding so I can go shut it off - eventually I'll probably add another float sensor in the ATO so it shuts off if the water level is too low automatically, but I normally don't have this problem because I have 30+ gallons plumbed to refill my 5 gallon top off container, but sometimes I forget to check and make sure I have water in the 30 gallon container... =) also if my maintenance outlet is turn on it turns the ATO off in case I'm changing water it doesn't top off with RODI when it needs saltwater. Eventually I'll probably add a switch to flip to turn the maintenance on and off instead of having to log in to fusion, I may eventually have automatic water changes too that will make this more interesting but I think I have an idea how to make it work.
-----------------------------------------------------------------------
"pH_High" (virtual outlet)
Set OFF
If pH > 8.50 Then ON
Defer 060:00 Then ON

if pH is over 8.5 for at least an hour it turns the outlet on which then sends me a text message
-----------------------------------------------------------------------
"pH_Low" (virtual outlet)
Set OFF
If pH < 7.70 Then ON
Defer 060:00 Then ON

if pH is under 7.7 for at least an hour it turns the outlet on which then sends me a text message
-----------------------------------------------------------------------
"Temp_Low" (virtual outlet)
Set OFF
If Temp < 76.0 Then ON
Defer 005:00 Then ON

if temp is under 76 for at least 5 minutes it turns the outlet on which then sends me a text message
-----------------------------------------------------------------------
"Temp_High" (virtual outlet)
Set OFF
If Temp > 80.0 Then ON
Defer 005:00 Then ON

if temp is over 80 for at least 5 minutes it turns the outlet on which then sends me a text message
-----------------------------------------------------------------------
"Maint" (virtual outlet)
Set OFF

doesn't need anything here, this is just the switch that I turn on in fusion to control the other items that should turn off during maintenance (not really used yet, but like I said eventually I'll wire a switch to it so I just flip a switch near my tank and it controls this virtual outlet)
-----------------------------------------------------------------------
"Pumpstop" (virtual outlet)
If Outlet Maint = ON Then ON
Defer 012:00 Then ON

the thought was again to turn pumps off when doing maintenance... originally I had my return pump controlled through the apex but when one of my plugs on the EB8 died I took the return pump off and it now runs all the time unless I manually turn it off with the feed button on the pump controller.
-----------------------------------------------------------------------
"IgnoreAlarm" (virtual outlet)
Fallback OFF
Set OFF
If Time 00:01 to 00:02 Then OFF
If Power Apex Off 001 Then OFF

I manually turn this on if I'm getting spammed with text messages about a problem with my tank and I can't get home to take care of it, then the idea is that it should reset every night in case I forget to turn the ignore alarm back off... I can't recall if this is working or not though ;\
-----------------------------------------------------------------------
"Email" (virtual outlet)
Fallback OFF
Set OFF
If Outlet Temp_Low = ON Then ON
If Outlet Temp_High = ON Then ON
If Outlet pH_High = ON Then ON
If Outlet pH_Low = ON Then ON
If Sw2 OPEN Then ON
If Time 22:00 to 08:00 Then OFF
If Outlet IgnoreAlarm = ON Then OFF

the program set to text me if there is a problem.
----------------------------------------------------------------------


Aucun commentaire:

Enregistrer un commentaire