Retrieving and Setting Alarm Properties Manually
About this task
Procedure
- To retrieve alarm properties, append the property name to the alarm object, using the following syntax:
variable = AlarmObj.Property
ExampleThe following example retrieves the alarm's severity and places it in a variable named ALM_Severity.
ALM_Severity = AlarmObj.Severity
- 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: TheSet Alarm Property
function will not save changes to the alarm database. A call toUpdateAlarm
must be made after theSet Alarm Property
function is called.ExampleThe following example sets an alarm's severity to 100, then updates the alarm in the Historian archive.AlarmObj.Severity = 100 AlarmObj.UpdateAlarm "Now"