EnableAlarm

Parent Previous Next

EnableAlarm

Enables a specific alarm of a tag.


Syntax:

Void EnableLoLo(String tag,Single limit,String message,Int32 priority);

Enables the LoLo alarm of the tag passed in the parameter.


Void EnableLoLo(String tag,Single limit);

Enables the LoLo alarm of the tag passed in the parameter.


Void EnableLo(String tag,Single limit,String message,Int32 priority);

Enables the Lo alarm of the tag passed in the parameter.


Void EnableLo(String tag,Single limit);

Enables the Lo alarm of the tag passed in the parameter.


Void EnableHi(String tag,Single limit,String message,Int32 priority);

Enables the Hi alarm of the tag passed in the parameter.


Void EnableHi(String tag,Single limit);

Enables the Hi alarm of the tag passed in the parameter.


Void EnableHiHi(String tag,Single limit,String message,Int32 priority);

Enables the HiHi alarm of the tag passed in the parameter.


Void EnableHiHi(String tag,Single limit);

Enables the HiHi alarm of the tag passed in the parameter.


Void EnableDeviation(String tag,Single variance,Int32 timeToLevelUp,String message,Int32 priority);

Enables the Deviation alarm of the tag passed in the parameter.


Void EnableDeviation(String tag,Single variance,Int32 timeToLevelUp);

Enables the Deviation alarm of the tag passed in the parameter.


Void EnableWatchDog(String tag,Int32 time,String message,Int32 priority);

Enables the WatchDog alarm of the tag passed in the parameter.


Void EnableWatchDog(String tag,Int32 time);

Enables the WatchDog alarm of the tag passed in the parameter.


Void EnableFreeze(String tag,Single deadband,Int32 time,String message,Int32 priority);

Enables the Freeze alarm of the tag passed in the parameter.


Void EnableFreeze(String tag,Single deadband,Int32 time);

Enables the Freeze alarm of the tag passed in the parameter.


Void EnableBooleanTrue(String tag,String message,Int32 priority);

Enables the True alarm of the Boolean tag passed in the parameter.


Void EnableBooleanTrue(String tag);

Enables the True alarm of the Boolean tag passed in the parameter.


Void EnableBooleanFalse(String tag,String message,Int32 priority);

Enables the False alarm of the Boolean tag passed in the parameter


Void EnableBooleanFalse(String tag);

Enables the False alarm of the Boolean tag passed in the parameter.


Params:

String tag: a string parameter containing the name of the tag that will have its alarm enabled.

Single limit: a single parameter containing the limit value of the alarm. When this limit is exceeded the alarm will be triggered.

String message: a string parameter containing the message that will be displayed when the alarm is alarmed.

Int32 priority: an integer parameter containing the priority of the alarm.

Single variance: a single parameter containing the variance value. If the tag exceeds the value configured in this property the tag will be alarmed.

Int32 timeToLevelUp: an integer parameter containing the time in seconds to Level Up the alarm.

Single deadband: a single parameter containing the deadband value. If the change in the value of the tag does not exceed the value configured in this property the alarm will not treat as a change in the value of the tag.

Int32 time: an integer parameter containing the time property. If the tag stay unchanged for a time longer than the configured in this property the tag will be alarmed.


Example:



PHITag.EnableLoLo("TagInt");