Help with Apex programming

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

JCOLE

Grower of the Small Polyps
View Badges
Joined
Mar 12, 2018
Messages
4,158
Reaction score
11,216
Location
Charlotte, NC
Rating - 0%
0   0   0
I installed 2 Klir DI7 filters yesterday. The controllers that came with them were cheap and I did not want to use them. I ended up cutting the motor wires and wired them directly to the transformer. I plugged the transformer into an EB832 outlet and have them activate from a float switch I have installed when the water level gets high.

It is working well. However, I cannot think of how to turn the Motor off when the sump water gets too high from shutting the pumps off.

I have an VO named Klir which is activated from the floatswitch that has a delay on it before activating the Klirs. Please let me know if I am doing this wrong or if there is an easier way.

KLIR Outlet programming

Fallback OFF
Set OFF
If Output RETPUMP_DT = OFF Then OFF
If Output RETPUMP_FUGE = OFF Then OFF
If Output VO_KLIR = ON Then ON
When On > 000:10 Then OFF
 
I am thinking if I turn it to set On then change the output VO_Klir to = OFF then OFF then that might work.
 
A couple of thoughts:

1. The order of commands is very important. The last line that evaluates True is going to set the output's state, so placing your ON command below the OFF commands defeats the purpose of the OFF conditions. Change it to this order:

Fallback OFF
Set OFF
If Output VO_KLIR = ON Then ON
If Output RETPUMP_DT = OFF Then OFF
If Output RETPUMP_FUGE = OFF Then OFF

2. The When timer should not be used in this situation. "When" is a failsafe command that will move the dashboard slider from AUTO to OFF once the timer is exceeded, so once this happens all programming on that output is ignored and it will remain Off until you manually intervene to set it back to AUTO. Instead, use either a Defer on your virtual output, or use a Min Time command on your virtual output to turn it off after the appropriate time.

Please post the programming from your VO_KLIR virtual output so I can better understand how you're triggering it to turn on.

See my tutorial on Apex Timers for more details on Defer and Min TIme: https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-2-timers.689/
 
A couple of thoughts:

1. The order of commands is very important. The last line that evaluates True is going to set the output's state, so placing your ON command below the OFF commands defeats the purpose of the OFF conditions. Change it to this order:

Fallback OFF
Set OFF
If Output VO_KLIR = ON Then ON
If Output RETPUMP_DT = OFF Then OFF
If Output RETPUMP_FUGE = OFF Then OFF

2. The When timer should not be used in this situation. "When" is a failsafe command that will move the dashboard slider from AUTO to OFF once the timer is exceeded, so once this happens all programming on that output is ignored and it will remain Off until you manually intervene to set it back to AUTO. Instead, use either a Defer on your virtual output, or use a Min Time command on your virtual output to turn it off after the appropriate time.

Please post the programming from your VO_KLIR virtual output so I can better understand how you're triggering it to turn on.

See my tutorial on Apex Timers for more details on Defer and Min TIme: https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-2-timers.689/

VO_KLIR is just basically a defer so the Klir motors do not trigger constantly. I suppose I could have just added this to the KLIR filter output.

Fallback OFF
Set OFF
If SOCKSW OPEN Then ON
Defer 000:20 Then ON

How does this new programming look for the Klir output? This should add the defer and shutdown if either pumps shut down? I want to keep the when as a fail safe so it shuts down. I don't want the klir roller to keep rolling if the floatswitch gets stuck, etc.

Fallback OFF
Set OFF
If SOCKSW OPEN Then ON
If Output RETPUMP_DT = OFF Then OFF
If Output RETPUMP_FUGE = OFF Then OFF
Defer 000:20 Then ON
When On > 000:10 Then OFF
 
I think this should work. You might just need to fine-tune the Defer delays after observing how quickly the water level changes after the pumps turn back on.
 

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