Alarms Handling
Management of Control System Alarms
What is it?
The Control System Alarms are a set of software modules in the machine’s control system in charge of controlling, acknowledging, and managing alarms.
The whole bundle of applications and device servers is also called PANIC (Package for Alarms and Notification of Incidences from Controls).
Links
How does it work?
Alarm handling is managed using the PyAlarm device servers running on each sub-system servers. Each PyAlarm process manages a list of alarms. For each alarm there's a specific set of Tango attributes to be watched and a list of recipients to be notified (by email and/or SMS) if alarm conditions are matched.
Declaring Alarms
This is an example of alarms declaration:
RF_TEMPERATURE=rf/ct/plc-01/temperature>70 OR rf/ct/plc-02/temperature>80 RF_FAULT=rf/ct/plc-01/state in (ALARM,FAULT)
Alarms are specified as Tango Properties in the Tango Database; and can be edited using Jive or the Panic alarms management tool:

The panic Python API:
Alarms can be configured or modified from python applications or scripts using the panic python module. A brief how-to is available:
http://www.cells.es/Intranet/Divisions/Computing/Controls/Applications/alarms/panic_api

