Originally Posted by
RSnodgrass
Locker_Full - virtual outlet to restrict when notifications are allowed.
1 Set OFF
2 If Time 20:00 to 07:00 Then OFF
3 If Locker OPEN Then ON
4 If Output Locker_Alarm = ON Then OFF
Locker_Alarm - virtual outlet for one notification.
1 Set OFF
2 If Time 20:00 to 07:00 Then OFF
3 If Locker OPEN Then ON
4 Defer 005:00 Then ON
The indicated statements are not doing anything. The program sequence in both of these outputs is incorrect.
I do not like the entire concept of doing one-shot alarms. It's too easy to ignore or forget that you got one.
Here is a different approach that will send a recurring alert for non-critical items at a configurable interval of several hours and also prevent nighttime alerts.
[EmailAlarm]
Set OFF
If Output Locker_Full = ON Then ON
If Tmp > 80.0 Then ON
If ORP < 250 Then ON
If Time 20:00 to 07:00 Then OFF
If Tmp < 77.5 Then ON
If Leak_1 CLOSED Then ON
Defer 000:30 Then OFF
[Locker_Full]
OSC 0:00/1:00/239:00 Then ON
If Time 21:00 to 07:00 Then OFF
If Locker CLOSED Then OFF
- The OSC line attempts to turn on the VO for 1 minutes every 4 hours. (you really only need 5 seconds, but 1 minutes is easy to work with; the goal is simply to try to turn on the VO briefly)
- The If Time line keeps the VO off during nighttime
- The last line keeps the VO off if the skimmate locker switch is closed
Note that I changed the If Time statement to start an hour later than you had; this will allow an alert to be sent at 20:00/8PM if needed.
There are other variants... for example, you could use a few If Time statements to instead of an OSC to only allow an alert to be sent at specific times:
[Locker_Full]
If Time 07:00 to 07:01 Then ON
If Time 19:00 to 19:01 Then ON
If Locker CLOSED Then OFF
This will result in alerts being sent at 7AM and 7PM if the locker is full.
Bookmarks