Need some programming help

coffeenut

Member
I have a float switch that i want to trigger an outlet.
I want the outlet to stay on till i either inactivate the float switch, or i press a button on my break out button box/break out box.

breakoutbuttons.jpg


So...

Im guessing I need to create a virtual outlet called SUMP_FULL

SUMP_FULL

Fallback OFF
If Switchx11_2 CLOSED Then ON
If Switchx11_2 OPEN Then OFF
If Switchx10_6 CLOSED Then OFF (button on break out box)


Then on EB 5 outlet 6 called SUMP_FULL_ALARM

If SUMP_FULL = ON Then ON
If SUMP_FULL = OFF Then OF

Then on EB 6 outlet 1... SUMP_W_MIX_T (mixing tank pump, also fills sump after WC)

Fallback OFF
Set OFF
If Time 10:00 to 12:00 Then ON
If Time 17:30 to 19:30 Then ON
If FeedC 000 Then ON
If SUMP_FULL = ON then OFF (need help here) (this is to avoid pumping 100 gal of fresh salt water into my sump unintentionally)


Second thing i need code help with is:

I want one of the buttons on my break out box to turn off the skimmer for 1 hour for feeding time..

EB 5 outlet 4 ASM_G5_SKIM


Fallback ON
If Switchx10_2 CLOSED Then OFF
Min Time 060:00 Then ON

this is what i have and it doesnt work (another virtual outlet?)

Thanks for your assistance..
 
You don't need Fallback in a virtual outlet, that is only useful for a physical outlet. You were close, for your skimmer try the following:

[ASM_G5_SKIM]
Fallback ON
Set ON
If Switchx10_2 CLOSED Then OFF
Defer 60:00 Then ON

For the mix tank:

[SUMP_W_MIX_T]
Fallback OFF
Set OFF
If Time 10:00 to 12:00 Then ON
If Time 17:30 to 19:30 Then ON
If FeedC 000 Then ON
If Outlet SUMP_FULL = ON then OFF


Todd
 
thanks ill try.. what about the first part?

Im guessing I need to create a virtual outlet called SUMP_FULL

SUMP_FULL

Fallback OFF
If Switchx11_2 CLOSED Then ON
If Switchx11_2 OPEN Then OFF
If Switchx10_6 CLOSED Then OFF (button on break out box)


Then on EB 5 outlet 6 called SUMP_FULL_ALARM

If SUMP_FULL = ON Then ON
If SUMP_FULL = OFF Then OF
 
That looks right, as long as Switchx10_6 is a latching switch; in other words it needs to remain in the CLOSED condition until manually switched back. If it is a momentary switch, it won't keep Sump_Full OFF. Also, remove the Fallback statement, it won't do anything for a virtual outlet. You might consider reversing the float switch such that Sump_Full is ON when Switchx11_2 is OPEN. The Apex switches are OPEN by default, so if the switch is accidentally disconnected it will register as OPEN. This would give you a warning to check things.


Todd
 
Last edited:
That looks right, as long as Switchx10_6 is a latching switch; in other words it needs to remain in the CLOSED condition until manually switched back. If it is a momentary switch, it won't keep Sump_Full OFF. Also, remove the Fallback statement, it won't do anything for a virtual outlet. You might consider reversing the float switch such that Sump_Full is ON when Switchx11_2 is OPEN. The Apex switches are OPEN by default, so if the switch is accidentally disconnected it will register as OPEN. This would give you a warning to check things.


Todd
6 is not a latching switch, it is a momentary switch, and i want it to , (if triggered) to shut off the ALARM, that would have been initiated by the float switch in the up (open) position. The float open needs to turn on a outlet (with an buzzer attached), until i either lower the float switch or if i over ride with a push of button 6
 
I would do it like this:

[SUMP_FULL]
If Switchx11_2 CLOSED Then ON
If Switchx11_2 OPEN Then OFF

[SNOOZE]
Set OFF
If Switchx10_6 CLOSED Then ON
Defer 30:00 Then OFF

[SUMP_ALARM] Names limited to 12 characters
Set OFF
If Outlet SUMP_FULL = ON Then ON
If Outlet SNOOZE = ON Then OFF

This allows you to silence the alarm for 30 minutes without interfering with the state of Sump_Full.

Todd
 
I would do it like this:

[SUMP_FULL]
If Switchx11_2 CLOSED Then ON
If Switchx11_2 OPEN Then OFF

[SNOOZE]
Set OFF
If Switchx10_6 CLOSED Then ON
Defer 30:00 Then OFF

[SUMP_ALARM] Names limited to 12 characters
Set OFF
If Outlet SUMP_FULL = ON Then ON
If Outlet SNOOZE = ON Then OFF

This allows you to silence the alarm for 30 minutes without interfering with the state of Sump_Full.

Todd

(edit) Ok thanks..
tried that and it didn't seem to work quite as I expected, but almost....
i opened the circuit ( lifted the float) and the outlet did activate
But when i pushed the switch, it only shut off for the moment.. then came right on..
do i need a defer of infinity? if so will it re- activate my alarm next time or will it be off for infinity..? (EDIT)



If i override the alarm, i want it to be permanent till the next time the float closes and reopens the circuit.. So i dont want the defer.. ( took it out)
if that makes sense

I also want the activation of the SUMP_FULL to turn off a outlet (the top off pump)
 
Last edited:
So how about this:

[SUMP_FULL]
If Switchx11_2 CLOSED Then ON
If Switchx11_2 OPEN Then OFF

[QUIET]
If Switchx10_6 CLOSED Then ON
If Switchx11_2 OPEN Then OFF

[SUMP_ALARM]
Set OFF
If Outlet SUMP_FULL = ON Then ON
If Outlet QUIET = ON Then OFF

I have not tested it, but it should operate as follows:

Normal sump, Switchx11_2 is OPEN ==> SUMP_FULL is OFF, QUIET is OFF, SUMP_ALARM is OFF

High sump, Switchx11_2 is CLOSED ==> SUMP_FULL is ON, QUIET is still OFF, SUMP_ALARM is ON

High sump, Switchx10_6 is momentarily CLOSED ==> SUMP_FULL is ON, QUIET is ON, SUMP_ALARM is OFF

Sump returns to normal, Switchx11_2 is OPEN ==> SUMP_FULL is OFF, QUIET is OFF, SUMP_ALARM is OFF

Todd
 
So how about this:

[SUMP_FULL]
If Switchx11_2 CLOSED Then ON
If Switchx11_2 OPEN Then OFF

[QUIET]
If Switchx10_6 CLOSED Then ON
If Switchx11_2 OPEN Then OFF

[SUMP_ALARM]
Set OFF
If Outlet SUMP_FULL = ON Then ON
If Outlet QUIET = ON Then OFF

I have not tested it, but it should operate as follows:

Normal sump, Switchx11_2 is OPEN ==> SUMP_FULL is OFF, QUIET is OFF, SUMP_ALARM is OFF

High sump, Switchx11_2 is CLOSED ==> SUMP_FULL is ON, QUIET is still OFF, SUMP_ALARM is ON

High sump, Switchx10_6 is momentarily CLOSED ==> SUMP_FULL is ON, QUIET is ON, SUMP_ALARM is OFF

Sump returns to normal, Switchx11_2 is OPEN ==> SUMP_FULL is OFF, QUIET is OFF, SUMP_ALARM is OFF

Todd

OK thanks.. but the "High sump, Switchx10_6 is momentarily CLOSED ==> SUMP_FULL is ON, QUIET is ON, SUMP_ALARM is OFF" doesnt stay on the off position, after i release the momentery button, the alarm sounds again..


and.. i want to signal the top off pump to stop pumping if the SUMP_FULL turns on
 
OK thanks.. but the "High sump, Switchx10_6 is momentarily CLOSED ==> SUMP_FULL is ON, QUIET is ON, SUMP_ALARM is OFF" doesnt stay on the off position, after i release the momentery button, the alarm sounds again..
It shouldn't as the only thing that turns [QUIET] to OFF is Switchx11_2 being OPEN. Did you try it exactly as is without adding any other conditions?

and.. i want to signal the top off pump to stop pumping if the SUMP_FULL turns on
Just add an If Outlet SUMP_FULL = ON then OFF to the outlet for the pump.

Todd
 
I want to revive this thread now i that i have had some time to play..

I am using this code to turn off my skimmer for 1 hour during feeding, problem is it doesnt turn back on unless i pusht switch 3.., please hellp me with what to change

Fallback ON
If Switchx10_2 CLOSED Then OFF
Min Time 060:00 Then ON
If Switchx10_3 CLOSED Then ON

the min time statement doesnt work..
 
It shouldn't as the only thing that turns [QUIET] to OFF is Switchx11_2 being OPEN. Did you try it exactly as is without adding any other conditions?


Just add an If Outlet SUMP_FULL = ON then OFF to the outlet for the pump.

Todd

and i have yet to make this work..
SUMP_FULL

If Switchx11_4 OPEN Then ON
If Switchx11_4 CLOSED Then OFF

SNOOZE

Set OFF
If Switchx10_6 CLOSED Then ON

ALARM_QUIET

If Switchx10_6 CLOSED Then ON
If Switchx11_4 CLOSED Then OFF

SUMP_ALARM

Set OFF
If Outlet SUMP_FULL = ON Then ON
If Outlet SNOOZE = ON Then OFF
Some of this is probably extra, or redundant, but if some one could correct and repost that would be great..

What I want it for the normally closed float switch to trigger an outlet to come on when circuit is open(float is up)and stay on until either the circuit is closed (float down) or i press a momentary switch to as an override, and have it permanitly override( turn off outlet) so the alarm stays off.. but right now if i press the momentary button the alarm stops untill i let go of the button, then the alarm continues
 
I want to revive this thread now i that i have had some time to play..

I am using this code to turn off my skimmer for 1 hour during feeding, problem is it doesnt turn back on unless i pusht switch 3.., please hellp me with what to change

Fallback ON
If Switchx10_2 CLOSED Then OFF
Min Time 060:00 Then ON
If Switchx10_3 CLOSED Then ON

the min time statement doesnt work..
Min Time does not quite work the way you want. Some condition first has to turn it ON, then the Min Time will hold it in that state for at least 60 minutes before some other condition can change it to OFF. It is easier to understand if you ignore the 'Then'.

I assume you want to push Switchx10_2 and have it keep the outlet OFF for 60 minutes and then automatically come back ON?

[Skimmer]
Fallback ON
Set ON
If Switchx10_2 CLOSED Then OFF
Min Time 60:00 Then OFF

Todd
 
What I want it for the normally closed float switch to trigger an outlet to come on when circuit is open(float is up)and stay on until either the circuit is closed (float down) or i press a momentary switch to as an override, and have it permanitly override( turn off outlet) so the alarm stays off.. but right now if i press the momentary button the alarm stops untill i let go of the button, then the alarm continues
Delete the Snooze outlet:

[SUMP_FULL]
If Switchx11_4 OPEN Then ON
If Switchx11_4 CLOSED Then OFF

[QUIET]
If Switchx10_6 CLOSED Then ON
If Switchx11_4 CLOSED Then OFF

[ALARM]
Set OFF
If Outlet SUMP_FULL = ON Then ON
If Outlet QUIET = ON Then OFF

Todd
 
Delete the Snooze outlet:

[SUMP_FULL]
If Switchx11_4 OPEN Then ON
If Switchx11_4 CLOSED Then OFF

[QUIET]
If Switchx10_6 CLOSED Then ON
If Switchx11_4 CLOSED Then OFF

[ALARM]
Set OFF
If Outlet SUMP_FULL = ON Then ON
If Outlet QUIET = ON Then OFF

Todd

thats works great thanks..
 
I tried that.. my code is as follows
Set OFF
Fallback OFF
If TANK > 80.5 Then ON
If TANK < 75.5 Then ON
If Switchx11_4 CLOSED Then ON
Defer 060:00 Then ON
Defer 060:00 Then OFF

the defer is so that if it goes up and down (temp or float), it wont keep emailing me , just once..
but it did not email me.. when i triggered the float.
I know the temp email works..
 
That is an excessive Defer duration. And, you don't really need Defer...OFF. That Defer applies to all conditions, meaning you will not get an email unless any one of them is true for greater than 60 minutes.

There is a seperate setting for the email repeat interval accessed via the display unit menu.

Todd
 
Back
Top