Help Programming Apex EL scenario ???

Andrew Schubert

Well-Known Member
View Badges
Joined
Jul 27, 2018
Messages
627
Reaction score
317
Rating - 0%
0   0   0
I want to make a program that even if my Apex is in Feed mode, to turn back on my return pump if it detects water on the floor. This would guard against the pump overflowing when the pump is off if for some strange reason my sump was too full of water. However, I'm hitting a break wall with this.

The problem is, my logic is causing an infinite loop with the controller turning on and then off and on and then off and so on over and over again.

What I've done is created a virtual outlet that if the outlet is on, then the return pump is off. Here is the logic...

Set OFF
If Output FeedSwitch = ON Then ON
If Output ForcePumpOn = ON Then OFF

What I want is the ability to tell this outlet to be OFF no matter what if ForcePumpOn is on. How can I do that?
 
It would help if you explain when you want the outlet on and when you want it off. What does this outlet control?
 
Are you using the feed mode or just a switch?

What’s the status of ForcePumpOn as all this happens?

Assuming ForcePumpOn is a virtual output, the easiest way would be to program it something like this:

[Outlet ForcePumpOn]
Set Off
If LeakDetect ON then ON
Min Time MMM:SS then ON

Where MMM:SS is the duration of your feed mode. This will keep ForcePumpOn in the ON state for at least the remainder of your feed mode.
 

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