Issue
PE programming required to display a check list doc, report etc on specific alarm link of an object such as a door.
Environment
Continuum provides built in functionality to run a program when any of the 8 alarms associated with an object goes into alarm. In order to execute some actions on a specific alarm some PE programming is required.
This article provides sample User Defined PE Alarm function to display a particular document depending on which of the alarm links associated with a door object is active.
Cause
Not known cause
Resolution
- Configure the Cyberstation that will be displaying the doc, report etc for User-Defined Alarm Function (See Cyberstation online help for instructions on how to do the configuration).
- In the PEAlmFunction use code to qualify the alarm and display the doc or report that applies to the particular alarm type.
-- SAMPLE CODE
Arg 11 AlarmENROLL
Arg 12 EventNOTIF
if EventNOTIF is not "DoorAlarm" then return 'Only looking for door alarms in this example.
if AlarmENROLL = "Door Forced Open" then SHELL "C:\Temp\CheckListForDoorForcedOpen.doc"
if AlarmENROLL = "Door Ajar" then SHELL "C:\Temp\CheckListProcedureForDoorAjar.doc"
-- END SAMPLE CODE
NOTE: The alarm function will be invoked every time any alarm comes in; in the example above all door alarms have been associated with the same EventNotification (DoorAlarm) in order to make sure the function can execute only when door alarms are reported.