Apex BOB coding question

Snookin

Well-Known Member
View Badges
Joined
Jan 9, 2011
Messages
795
Reaction score
817
Location
Tampa
Rating - 0%
0   0   0
I have an Apex Neptune breakout box and what to set up an ATO. I have a container with a low switch and a high switch. When low switch is open I want the pump on and stay on till the high switch is open. Then pump off.

What is the correct code to do this?
 
Assuming that:
Switch1 is your "low switch"
Switch2 is your "high switch"

The code on the outlet for the pump would be:
Fallback OFF
Set Off
If Switch1 CLOSED Then ON
If Switch2 OPEN Then OFF

That would result in a straight on/off based on the float switches with no extra logic. Basically; CLOSED means "low" while OPEN means "high".

Fallback OFF
Set OFF
If Sw1 CLOSED Then ON
If Sw2 OPEN Then OFF
Defer 002:00 Then ON
Min Time 010:00 Then OFF
This adds two more elements:
- If the pump has turned on in the past 2 minutes, don't turn it on until it's been 2 minutes.
- If the pump has been on (eg; container has been filled) in the past 10 minutes, wait until it's been 10 minutes before turning on the pump.
These extra elements help to prevent the pump turning on/off in quick cycles ("debouncing"). They are generally a good idea as a safety precaution.

 
Just in case you care:

Fallback OFF

This says "if the module gets disconnected, turn the pump off".

Set Off

The default state is off.

If Switch1 CLOSED Then ON

If the low switch is low (because the water level is low), then turn the pump on.

If Switch2 OPEN Then OFF

If the high switch is high (because the water level has risen at or above it), then turn the pump off.

The key to Apex programming is that instructions read top to bottom, with the final state being whatever is set at the end of the chain. All instructions are executed in the order they are listed.
 
Just in case you care:

Fallback OFF

This says "if the module gets disconnected, turn the pump off".

Set Off

The default state is off.

If Switch1 CLOSED Then ON

If the low switch is low (because the water level is low), then turn the pump on.

If Switch2 OPEN Then OFF

If the high switch is high (because the water level has risen at or above it), then turn the pump off.

The key to Apex programming is that instructions read top to bottom, with the final state being whatever is set at the end of the chain. All instructions are executed in the order they are listed.
Thank You!
 

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