<< Click to Display Table of Contents >>
GetAlarm |
GetAlarm()
Returns an object that allows access to specific settings of each type of Alarm. This object allows verifying or changing properties of a certain Alarm at run time. Depending on the type of Alarm, this method returns an object with the properties described on the next tables.
Properties of an Analog Alarm object
Property |
Description |
---|---|
Name of the alarm condition |
|
Delay time for this Alarm, in milliseconds, when entering and when leaving a condition |
|
Enables or disables a verification on this Alarm with a High level of severity |
|
Indicates whether there is a need to acknowledge the High level of severity of this Alarm |
|
Enables or disables a verification on this Alarm with a Very High level of severity |
|
Indicates whether there is a need to acknowledge the Very High level of severity of this Alarm |
|
Limit for the Very High level of severity of this Alarm |
|
Text of the message for the Very High level of severity of this Alarm |
|
Importance of the Very High level of severity of this Alarm. Possible values for this property are -2: Critical, 0: High, 1: Medium, or 2: Low |
|
Limit for the High level of severity of this Alarm |
|
Text of the message for the High level of severity of this Alarm |
|
Importance of the High level of severity of this Alarm. Possible values for this property are -2: Critical, 0: High, 1: Medium, or 2: Low |
|
Dead band for limits of this Alarm's level |
|
Return message of this Alarm |
|
Enables or disables a verification on this Alarm with a Low level of severity |
|
Indicates whether there is a need to acknowledge the Low level of severity of this Alarm |
|
Limit for the Low level of severity of this Alarm |
|
Enables or disables a verification on this Alarm with a Very Low level of severity |
|
Indicates whether there is a need to acknowledge the Very Low level of severity of this Alarm |
|
Limit for the Very Low level of severity of this Alarm |
|
Text of the message for the Very Low level of severity of this Alarm |
|
Importance of the Very Low level of severity of this Alarm. Possible values for this property are -2: Critical, 0: High, 1: Medium, or 2: Low |
|
Text of the message for the Low level of severity of this Alarm |
|
Importance of the Low level of severity of this Alarm. Possible values for this property are -2: Critical, 0: High, 1: Medium, or 2: Low |
|
Name of this Alarm |
Properties of a Dead Band Alarm object
Property |
Description |
---|---|
Name of the alarm condition |
|
Enables or disables a verification on this Alarm |
|
Indicates whether there is a need to acknowledge this Alarm |
|
Limit for this Alarm |
|
Text of the message of this Alarm |
|
Return message of this Alarm |
|
Limit of dead band of this Alarm. Each time an associated Tag's value exceeds this property's value above or below DeadBandLimit's value, this Alarm occurs |
|
Importance of this Alarm. Possible values for this property are -2: Critical, 0: High, 1: Medium, or 2: Low |
|
Delay time for this Alarm, in milliseconds, when entering and when leaving a condition |
|
Name of this Alarm |
Properties of a Digital Alarm object
Property |
Description |
---|---|
Name of the alarm condition |
|
Delay time for this Alarm, in milliseconds, when entering and when leaving a condition |
|
Enables or disables a verification on this Alarm |
|
Indicates whether there is a need to acknowledge this Alarm |
|
Limit for this Alarm |
|
Text of the message of this Alarm |
|
Return message of this Alarm |
|
Severity of this Alarm. Possible values for this property are -2: Critical, 0: High, 1: Medium, or 2: Low |
|
Name of this Alarm |
Properties of a Discrete Alarm object
Property |
Description |
---|---|
Name of the alarm condition |
|
Delay time for this Alarm, in milliseconds, when entering and when leaving a condition |
|
Return message of this Alarm |
|
Name of this Alarm |
|
A collection of Subconditions of this Alarm. Please check the next table for a description of all available properties on the Subcondition objects of that collection, which are accessible using its Item method |
Properties of a Subcondition object from a Discrete Alarm
Property |
Description |
---|---|
Indicates whether there is a need to acknowledge this Subcondition |
|
Description of this Subcondition |
|
Enables or disables this Subcondition |
|
Behavior of this Subcondition. Possible values for this property are 0: Alarm, 1: Event, or 2: Return |
|
Value of the Alarm Source to generate this Subcondition |
|
Event message when this Subcondition is active |
|
Name of this Subcondition |
|
Importance of this Subcondition. Possible values for this property are -2: Critical, 0: High, 1: Medium, or 2: Low |
Properties of a Rate of Change Alarm object
Property |
Description |
---|---|
Name of the alarm condition |
|
Delay time for this Alarm, in milliseconds, when entering and when leaving a condition |
|
Name of this Alarm |
|
Enables or disables a verification on this Alarm |
|
Indicates whether there is a need to acknowledge this Alarm |
|
Limit for this Alarm. For this Alarm to occur, it is sufficient that the associated Tag's value exceeds this value in one second |
|
Text of the message of this Alarm |
|
Return message of this Alarm |
|
Importance of this Alarm. Possible values for this property are -2: Critical, 0: High, 1: Medium, or 2: Low |
The next code contains an example of using this method.
Sub Button1_Click()
'Click this Button to change the Low severity level
'of an Analog Alarm
Set alm = Application.GetObject("Conf1.Area1.Analog1")_
.GetAlarm()
alm.LoLimit = 10.2
End Sub
NOTE |
The properties relative to each type of Alarm can be accessed directly by scripts and Links, as well as viewed on an object's Properties List, so their edition is no longer mandatory via this method. |