|
03/18/2018, 10:23 AM | #26 | |
I got nothin'
Join Date: Nov 2004
Location: The anals
Posts: 6,420
|
Quote:
Thank you that makes 100% total sense.
__________________
Quitters never lose. [QUOTE=CStrickland]Who gets mad at a starfish?[/QUOTE] Current Tank Info: 75g DT, 30G refugium, 10g chaeto tank, 50g stock tank basement sump |
|
03/18/2018, 12:22 PM | #27 |
Registered Member
Join Date: Mar 2015
Location: Upstate NY
Posts: 5,313
|
Wow even after having my apex for 4 years and having some pretty complex code, Even I learned something!
Thanks BrettDS!!
__________________
80G SCA Build: http://reefcentral.com/forums/showthread.php?t=2560256 Originally posted by der_wille_zur_macht: "He's just taking his lunch to work" |
03/22/2018, 09:20 PM | #28 |
I got nothin'
Join Date: Nov 2004
Location: The anals
Posts: 6,420
|
Ok I had an issue with this today. The sump level was pretty high and I’m not sure the drain actually came on.
I’m going to copy our exactly as I have it now maybe I typed something incorrctly ____________________________ Inputs: SumpHi SumpLo NSW_Lo (new salt water container almost empty) ATO_NL (normal sump water level) ____________________ Outputs: (all default open) NSW_E_Delay (virtual outlet) Sump_Fill Sump_Drain ATO_Pump __________________________ ATO_Pump output code: Fallback OFF Set OFF If ATO_NL CLOSED Then ON If Time 11:46 to 11:56 Then OFF If Time 11:57 to 11:59 Then ON If SumpHi CLOSED Then OFF If Time 12:00 to 12:01 Then OFF Defer 002:00 Then ON Min Time 010:00 Then OFF ____________________________________ Sump_Drain output code: Fallback OFF Set OFF OSC 000:00/000:10/000:50 Then ON If Time 12:01 to 11:59 Then OFF If NSW_Lo CLOSED Then OFF If SumpLo CLOSED Then OFF If Output ATO_Pump = ON Then OFF ______________________________________ Sump_Fill output code: Fallback OFF Set OFF If Time 12:01 to 12:02 Then ON If ATO_NL OPEN Then OFF If SumpHi CLOSED Then OFF If NSW_Lo CLOSED Then OFF If Output ATO_Pump = ON Then OFF If Output NSW_E_Delay = ON Then OFF _______________________________________ NSW_E_Delay output code: (Virtual Outlet) Fallback OFF Set OFF If NSW_Lo CLOSED Then ON Defer 001:00 Then ON ___________________________________ That’s everything as it is now. See anything that could be the culprit?
__________________
Quitters never lose. [QUOTE=CStrickland]Who gets mad at a starfish?[/QUOTE] Current Tank Info: 75g DT, 30G refugium, 10g chaeto tank, 50g stock tank basement sump |
03/22/2018, 10:26 PM | #29 |
I got nothin'
Join Date: Nov 2004
Location: The anals
Posts: 6,420
|
Ok I’ve figured it out. It’s not the code....I’m having a mechanical issue.
In the past when I did manual water changes I used to have to turn a ball valve and then turn the sump fill pump on. I had to do this because if I left the gate valve open, the contents of the container would siphon into the sump. I drilled a hole in the top of the fitting on the inside of the container as a siphon break, inserted a fitting and ran some hose out of it. Apparently this isn’t working, for reasons I’m not quite aware of. Any ideas how I can fix this so I can keep the gate valve open? Here’s a pic of where the water level in the container siphoned down to. I had it full up to the cordt hole in the back of the container. It had siphoned down to the level you see on its own with the gate valve open.
__________________
Quitters never lose. [QUOTE=CStrickland]Who gets mad at a starfish?[/QUOTE] Current Tank Info: 75g DT, 30G refugium, 10g chaeto tank, 50g stock tank basement sump |
03/22/2018, 11:50 PM | #30 |
Registered Member
Join Date: Feb 2012
Location: Orlando
Posts: 1,109
|
The easiest thing to do is to make sure the exit of the fill tube is higher than the water level in the reservoir. That way it can never start to siphon. Depending on the heights of the water in the sump and the reservoir this may be easier said than done.
If the reservoir is considerably higher than the sump one option would be to make the end of the fill tube higher than the sump, but have it run into a larger tube to take the water down into the sump. So if you’re using 1/2 inch tube for your fill tube, make sure that the end of the 1/2 inch tube is higher than the water level of the reservoir and put the end of the 1/2 inch tube an inch or so down into a 1 inch tube that runs down to your sump. Make sure that there is an air gap around the 1/2 tube so it can’t start to siphon. |
03/23/2018, 02:09 PM | #31 | |
I got nothin'
Join Date: Nov 2004
Location: The anals
Posts: 6,420
|
Quote:
So I guess the best thing to do would be to cut the plumbing and put a tall bend in it?
__________________
Quitters never lose. [QUOTE=CStrickland]Who gets mad at a starfish?[/QUOTE] Current Tank Info: 75g DT, 30G refugium, 10g chaeto tank, 50g stock tank basement sump |
|
03/23/2018, 02:29 PM | #32 |
Registered Member
Join Date: Feb 2012
Location: Orlando
Posts: 1,109
|
It’s more than just running the plumbing up... air needs to be able to get in at the high point. Obviously you also need to make sure that water can’t get out where the air gets in, so that’s why I suggested running a smaller tube into a larger tube, but if you can figure out another way to run the plumbing up and allow air to enter at the high point then that would work too.
|
03/23/2018, 03:08 PM | #33 | |
I got nothin'
Join Date: Nov 2004
Location: The anals
Posts: 6,420
|
Quote:
That is the current high point.
__________________
Quitters never lose. [QUOTE=CStrickland]Who gets mad at a starfish?[/QUOTE] Current Tank Info: 75g DT, 30G refugium, 10g chaeto tank, 50g stock tank basement sump |
|
03/23/2018, 04:28 PM | #34 |
Registered Member
Join Date: Feb 2012
Location: Orlando
Posts: 1,109
|
|
03/23/2018, 04:37 PM | #35 | |
I got nothin'
Join Date: Nov 2004
Location: The anals
Posts: 6,420
|
Quote:
__________________
Quitters never lose. [QUOTE=CStrickland]Who gets mad at a starfish?[/QUOTE] Current Tank Info: 75g DT, 30G refugium, 10g chaeto tank, 50g stock tank basement sump |
|
03/23/2018, 04:41 PM | #36 |
Registered Member
Join Date: Feb 2012
Location: Orlando
Posts: 1,109
|
It will only be able to suck air in to a tube below the water line like that if the water is moving fast enough to create a Venturi. And it will only stop the siphon if it can suck enough air in through the tube. Just a small amount of air may not be enough to stop it. |
03/23/2018, 04:55 PM | #37 | |
I got nothin'
Join Date: Nov 2004
Location: The anals
Posts: 6,420
|
Quote:
So would it maybe fix it if I took the black elbow off that’s in the pic, ran more PVC so that it was higher than the water line and then hooked the pump up to that? Something like the crappy finger painting I attached?
__________________
Quitters never lose. [QUOTE=CStrickland]Who gets mad at a starfish?[/QUOTE] Current Tank Info: 75g DT, 30G refugium, 10g chaeto tank, 50g stock tank basement sump |
|
03/23/2018, 05:03 PM | #38 | |
Registered Member
Join Date: Feb 2012
Location: Orlando
Posts: 1,109
|
Apex users I have some programming questions
Quote:
Yes, that would work, but as I said above, there would need to be an opening so that air could get in at the highest part to stop the siphon and you would need to make sure that water wasn’t able to get out the air hole. If there is a long plumbing run after that high point then the pressure needed to push water down the pipe would be enough to also push it out the air hole. That’s why I suggested putting the air gap toward the end of the run. The water can come out of the small tube and into a larger tube right above the sump and gravity will just take it the rest of the way down. |
|
03/24/2018, 10:09 AM | #39 | |
I got nothin'
Join Date: Nov 2004
Location: The anals
Posts: 6,420
|
Quote:
Thanks for all the help btw Oh and if I wanted to increase the amount of water drained out of the sump I would just make the osc 000:00/000:15/000:45 right? Edit: I’m also kind of concerned about the ATO pump code. ATO_Pump output code: Fallback OFF Set OFF If ATO_NL CLOSED Then ON If Time 11:46 to 11:56 Then OFF If Time 11:57 to 11:59 Then ON If SumpHi CLOSED Then OFF If Time 12:00 to 12:01 Then OFF Defer 002:00 Then ON Min Time 010:00 Then OFF ____________________________ Will the line in red ignore the ATO_NL float status and just pump freshwater into the sump for two minutes? If not why?
__________________
Quitters never lose. [QUOTE=CStrickland]Who gets mad at a starfish?[/QUOTE] Current Tank Info: 75g DT, 30G refugium, 10g chaeto tank, 50g stock tank basement sump Last edited by Bent; 03/24/2018 at 10:19 AM. |
|
03/24/2018, 06:59 PM | #40 | ||
Registered Member
Join Date: Feb 2012
Location: Orlando
Posts: 1,109
|
Quote:
Quote:
Yes, it will run the freshwater pump for one minute (because of the defer) or until the sumphi float switch is closed, but looking over this thread it seems like that’s not correct... you want it to stop once ATO_NL is open. If that’s the case you should modify the code as follows: Fallback OFF Set OFF If ATO_NL CLOSED Then ON If Time 11:46 to 11:56 Then OFF If Time 11:57 to 11:59 Then ON If ATO_NL OPEN Then OFF If SumpHi CLOSED Then OFF If Time 12:00 to 12:01 Then OFF Defer 002:00 Then ON Min Time 010:00 Then OFF |
||
03/24/2018, 08:37 PM | #41 | |
I got nothin'
Join Date: Nov 2004
Location: The anals
Posts: 6,420
|
Quote:
So the way the code is now, even if the ATO_NL is closed the freshwater pump will still pump water into the sump for one minute? It looks like you are changing the code to basically ignore the background set off, correct? How does that make it operate any different? Edit: WAIT! I think your learning me here. It’s because you put the “If Ato_NL open then off” further down the code right!
__________________
Quitters never lose. [QUOTE=CStrickland]Who gets mad at a starfish?[/QUOTE] Current Tank Info: 75g DT, 30G refugium, 10g chaeto tank, 50g stock tank basement sump Last edited by Bent; 03/24/2018 at 08:42 PM. |
|
03/24/2018, 08:42 PM | #42 | |
Registered Member
Join Date: Feb 2012
Location: Orlando
Posts: 1,109
|
Quote:
The if time command will tell it to turn on from 11:57:00 to 11:59:59, unless it’s overridden by a command below. However, the defer command tells it that it must remain in an ‘on’ condition for two minutes until it will actually turn the outlet on. So in that case, from 11:57:00 to 11:59:00 it will still be off because of the defer command. It will turn on at 11:59:01 and the pump will run until 11:59:59. However, it can be overridden by a lower command. So if sumphi becomes closed during the one minute that it’s running then it will stop running. With the modification I added then if ATO_NL becomes open during that minute that it’s running then that will stop the pump as well. |
|
03/24/2018, 08:48 PM | #43 | |
I got nothin'
Join Date: Nov 2004
Location: The anals
Posts: 6,420
|
Quote:
And that’s because that line is now below the ato “on” time command right?
__________________
Quitters never lose. [QUOTE=CStrickland]Who gets mad at a starfish?[/QUOTE] Current Tank Info: 75g DT, 30G refugium, 10g chaeto tank, 50g stock tank basement sump |
|
03/24/2018, 09:12 PM | #44 |
Registered Member
Join Date: Feb 2012
Location: Orlando
Posts: 1,109
|
|
03/25/2018, 06:54 AM | #45 |
I got nothin'
Join Date: Nov 2004
Location: The anals
Posts: 6,420
|
__________________
Quitters never lose. [QUOTE=CStrickland]Who gets mad at a starfish?[/QUOTE] Current Tank Info: 75g DT, 30G refugium, 10g chaeto tank, 50g stock tank basement sump |
03/30/2018, 10:25 AM | #46 |
I got nothin'
Join Date: Nov 2004
Location: The anals
Posts: 6,420
|
Alright for some reason this didn’t work.
When the switch turned off in the NSW container the pump stopped and didn’t fill the sump. Any ideas as to why?
__________________
Quitters never lose. [QUOTE=CStrickland]Who gets mad at a starfish?[/QUOTE] Current Tank Info: 75g DT, 30G refugium, 10g chaeto tank, 50g stock tank basement sump |
03/30/2018, 10:33 AM | #47 | |
Registered Member
Join Date: Feb 2012
Location: Orlando
Posts: 1,109
|
Quote:
So just to be clear, the NSW reservoir emptied and the low level switch turned on and the pump stopped immediately? Post a copy of the program for the fill pump as I know we’ve gone through a few iterations, so it would be good to see exactly what you have in there now. |
|
03/30/2018, 01:48 PM | #48 |
Registered Member
Join Date: Dec 2015
Location: Nebraska/Missouri
Posts: 770
|
Is there a good resource to learn Apex code and syntax?
__________________
72x24x16 115 gallon under construction Current Tank Info: 40 gallon reef |
03/30/2018, 03:27 PM | #49 |
Registered Member
Join Date: Feb 2012
Location: Orlando
Posts: 1,109
|
The apex comprehensive reference manual is a good place to start. Particularly chapters 4, 5, and 6. It’s available here... https://www.neptunesystems.com/downl...nce_Manual.pdf It was written for the classic apex, but the language is the same, so all of the programming details apply to the new apex. It’s really a pretty simple (and unfortunately somewhat restrictive) language, so if your familiar with scripting and programming you should pick it up pretty quickly. There are ways to work around a lot of the limitations as well, so it’s not as restrictive as it first seems. |
03/30/2018, 04:46 PM | #50 | |
I got nothin'
Join Date: Nov 2004
Location: The anals
Posts: 6,420
|
Quote:
Fill pump program Fallback OFF Set OFF If Time 12:01 to 12:02 Then ON If ATO_NL OPEN Then OFF If SumpHi CLOSED Then OFF If NSW_Lo CLOSED Then OFF If Output NSW_E_Delay = ON Then OFF NSW e delay program Fallback OFF Set OFF If NSW_Lo CLOSED Then ON Defer 001:00 Then ON
__________________
Quitters never lose. [QUOTE=CStrickland]Who gets mad at a starfish?[/QUOTE] Current Tank Info: 75g DT, 30G refugium, 10g chaeto tank, 50g stock tank basement sump |
|
|
|