programming please check me

tinman11

New member
hello,
i want to check my programming so if someone has the time and can double check this please
my normal feed is A 020
i want a pump to come on and not do anything till i do something about it, that part i have right but i'm wondering about my regular feed cycle as this will raise the sump and the standby pump will come on
so what i am doing is running a secondary sump pump in case the primary gives up, i don't want anything to happen untill the feedA expires and for roughly 1 minute after so here's what i have in the exact order. thanks.

sump_pump2 (real outlet)
fallback on
if feedA defer21:00 then off (do nothing till feedA expires then standby for 1 minute)
if switch1 closed then on ( sump high switch if primary pump fails)
if feedD 000 then off ( i must activate feedD to stop secondary pump and nothing will happen till switch closes again)

sump_high (virtual outlet)
if switch1 closed then on
if feedD then off

well i just came accross something interesting after i program this and update the outlet and come back here then go back and request the same outlet just to double check my work the statement changed to
if feedA 000 then off the apex did accept the above with no errors but hmm.............
 
Last edited:
sump_pump2 (real outlet)
fallback on
if feedA defer21:00 then off (do nothing till feedA expires then standby for 1 minute)
if switch1 closed then on ( sump high switch if primary pump fails)
if feedD 000 then off ( i must activate feedD to stop secondary pump and nothing will happen till switch closes again)

The highlighted statement is invalid. The Defer statement applies to the outlet, not individual statements.
Instead use:

If FeedA 001 Then OFF

This will keep the outlet OFF for an additional 1 minute after the cycle ends.
However, if you cancel the Feed cycle before it completes, the extra delay is ignored.

If I understand your intent, the following might work better.

[sump_high]
Set OFF
If Switch1 CLOSED Then ON
Defer 1:00 Then OFF

[sump_pump2]
Fallback ON
Set OFF
If Outlet sump_high = ON Then ON
If FeedA 001 Then OFF

This will run the pump only when needed, based on the sump level. The Defer in the virtual outlet will keep the pump running for an extra minute after the correct level is reached. The FeedA overrides and keeps the pump OFF when the cycle is active plus 1 minute after it ends.

Todd
 
Last edited:
programming

programming

ok thanks i'll give them both a try,my intent is to keep my standby sump pump from turning on while feedA mode is working as i have my main sump pump shutting down while in feed mode and i don't have a check valve installed yet, so the sump level goes up and trips the sump high switch so i really only need to keep the secondary off for 1 minute after the feed cycle ends, right now it is: (if feedA 020) so i should express this as: (if feedA 021 then off) for the secondary pump and does it matter what order i put it in ? or am i better of to use the other statements? any how i'll give them both a go thanks again.
kevin.
 
Yes, order does matter. The Apex evaluates top to bottom. So if you have two conditions that are true, the last one executed will take effect. The general approach is to start with the default behavior then add exceptions. Also, you are not using the Feed cycle delay correctly. Each Feed cycle has a duration that can be configured (see the Unofficial Users Guide at the top of the forum, I don't remember the menu sequence). Then the parameter in the statement is an extra delay. This allows outlets that operate with the same Feed cycle to start at the same time, but stagger the end points.

For example, say that FeedA is configured for 15 minutes:

If FeedA 000 Then ON would keep an outlet on for 15 minutes.

If FeedA 005 Then ON would keep an outlet on for 15 + 5 = 20 minutes.

However, if a Feed cycle is canceled, the extra delay is ignored.

Todd
 
Back
Top