sId | (String) The unigue text identifier of the new alarm item.
This identifier is used when calling methods, for example: Activate, Inactivate, Acknowledge, Item, etc. |
---|---|
sTemplate | (String) The unigue text identifier of the alarm item of Template type (see the "Template for dynamically created items" configurator), whose configuration is used. |
sSource | [optional] (String) The specification of the source of the alarm item.
It allows the user to sort and filter alarm items in the alarm viewer in the running application according to the specified source. If not set, then the template value is used. |
sDesc | [optional] (String) The description itself of the alarm item.
The basic text of the alarm item that is displayed in the alarm viewer in the running application. If not set, then the template value is used. |
sComment | [optional] (String) The text comment that is stored into the data together with the activated alarm item (it is enabled on the "Storage" tab). |
sTimeOn | [optional] (Date) The activation time of the alarm item.
If not set, then the computer current time is used. |
nAttr | [optional] (Long) Attributes that make more accurate the behavior of the command when alarm item exist/doesn't exist.
0 (default) - When the alarm item with the specified identifier exists, the command makes the activation over the existing alarm item. When the alarm item with the specified identifier doesn't exist, the command creates a new alarm item with the activation that follows.
1 - When the alarm item with the specified idenfitier exists, the command fails. When the alarm item with the specified idenfitier doesn't exist, the command creates a new alarm item with the activation that follows. |
var oAl = pMe.Pm("/Alarm");
oAl.ActivateNew("T1_HI", "HI", "Boiler", "T1 over high limit", "Temperature");