PDA

View Full Version : Email Comming every 60 minutes


dojic60
03/14/2012, 05:15 PM
Please I need help.
I croated outlet to send me email if some otlets if of for 45 minutes and now i am geting email every 60 minutes. This is my seting:


Set OFF
If Outlet 1-JBJ-L-D = OFF Then ON
If Outlet 2-JBJ-R-D = OFF Then ON
If Outlet 3-JBJ-L-U = OFF Then ON
If Outlet 4-JBJ-R-U = OFF Then ON
If Outlet 6-DosingPump = OFF Then ON
If Outlet 8-ReturnPump = OFF Then ON
Defer 045:00 Then ON



Please what is wring in setup??

aquamanic
03/14/2012, 06:50 PM
I don't think there's anything wrong with your code but what will happen is once any of those outlets is OFF for 45 minutes you'll start getting alarms and the alarms will continue until the outlet goes back ON. You can change that interval from 60 minutes to whatever you want but the basic cycle will remain unchanged.

Is that what you wanted to happen?

dojic60
03/14/2012, 07:36 PM
Thank you so much. The purpose of this setting is to warn me about the disfunctioning power heads or return pumps, if they are off for 45 minutes.

RussM
03/14/2012, 09:07 PM
That Defer will be a problem if you add any alerts for things like high/low temp or pH. Defer applies to the entire outlet, so any alerts for out-of-spec parameters will also be delayed by 45 minutes - probably not a good thing. I highly recommend that you move that pump off code to a virtual outlet.

Create a new vitual outlet called PumpOffWarn (for example)

[PumpOffWarn]
Set OFF
If Outlet 1-JBJ-L-D = OFF Then ON
If Outlet 2-JBJ-R-D = OFF Then ON
If Outlet 3-JBJ-L-U = OFF Then ON
If Outlet 4-JBJ-R-U = OFF Then ON
If Outlet 6-DosingPump = OFF Then ON
If Outlet 8-ReturnPump = OFF Then ON
Defer 045:00 Then ON

Then, in your EmailAlarm outlet, replace the above lines like this:

[EmailAlarm]
Set OFF
If Outlet PumpOffWarn = ON Then ON


But this makes me wonder what your goal is: "to warn me about the disfunctioning power heads or return pumps"

The code you are using will only tell you if the outlets are turned off. It will NOT work if your intent is to detect a failed pump.

aquamanic
03/15/2012, 07:20 AM
It will NOT work if your intent is to detect a failed pump

Russ is right. Better would be to use a float for example, to determine that a return pump has failed or is turned off. Power heads would be harder to independently verify since they don't impact water levels.