In addition to state settings, OPC A&E has several event settings.
Go to the State Properties section:

Configure these as follows:
| Name | Message | Severity | Req. Ack | Inactive |
|---|---|---|---|---|
HiHi
|
input.Name + " > " + hihilimit
|
900
| Yes | No |
Hi
|
input.Name + " > " + hilimit
|
700
| Yes | No |
LoLo
|
input.Name + " < " + lololimit
|
900
| Yes | No |
Lo
|
input.Name + " < " + lolimit
|
700
| Yes | No |
Normal
|
input.Name + " is normal"
|
1
| No | Yes |
You can also enter an OnAcknowledge Script in the Event Settings of the Template Definition:

For example:
Emailer.Send(null, "[email protected]", cond.Acknowledger + " has acknowledged alarm on " + input.Name, input.Name + " = " + input.DblVal);
![]() | |
This code is written here in three lines to fit the document. It should be all one line in the actual script. |
This script tells the DataHub instance to send an email whenever an alarm gets acknowledged.
With the event settings complete, you are now ready to add some Regular Expressions to your notification.