Retrieving and Setting Alarm Properties Manually

About this task

Alarm and event properties can also be set manually in the calculation collector.

Procedure

  1. To retrieve alarm properties, append the property name to the alarm object, using the following syntax:
    variable = AlarmObj.Property
    Example

    The following example retrieves the alarm's severity and places it in a variable named ALM_Severity.

    ALM_Severity = AlarmObj.Severity
  2. To set alarm properties manually, append the property name to the alarm object and supply a new value for the property using the following syntax:
    AlarmObj.Propertyname = "Property Name"
    Important: The Set Alarm Property function will not save changes to the alarm database. A call to UpdateAlarm must be made after the Set Alarm Property function is called.
    Example
    The following example sets an alarm's severity to 100, then updates the alarm in the Historian archive.
    AlarmObj.Severity = 100
    AlarmObj.UpdateAlarm "Now"