Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion devsupApp/src/devsup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,38 @@
epicsver = (0,0,0,0,"0","")
pydevver = (0,0)

INVALID_ALARM = UDF_ALARM = 0
# Alarm Severity
(
NO_ALARM, # No alarm has been triggered
MINOR_ALARM, # Needs attention but is not dangerous (warning)
MAJOR_ALARM, # Needs immediate attention by the operator (serious alarm)
INVALID_ALARM # Invalid data, e.g. due to device communication failure, overflow, etc.
) = range(4)

# Alarm Status
(
NO_ALARM, # This record is not in alarm
READ_ALARM, # An INPUT link failed in the device support
WRITE_ALARM, # An OUTPUT link failed in the device support
HIHI_ALARM, # An analog value limit alarm
HIGH_ALARM, # An analog value limit alarm
LOLO_ALARM, # An analog value limit alarm
LOW_ALARM, # An analog value limit alarm
STATE_ALARM, # A digital value state alarm
COS_ALARM, # A digital value change of state alarm
COMM_ALARM, # A device support alarm that indicates the device is not communicating
TIMEOUT_ALARM, # A device sup alarm that indicates the asynchronous device timed out
HW_LIMIT_ALARM, # A device sup alarm that indicates a hardware limit alarm
CALC_ALARM, # A record support alarm for calculation records indicating a bad calulation
SCAN_ALARM, # An invalid SCAN field is entered
LINK_ALARM, # Soft device support for a link failed
SOFT_ALARM,
BAD_SUB_ALARM,
UDF_ALARM,
DISABLE_ALARM,
SIMM_ALARM,
READ_ACCESS_ALARM,
WRITE_ACCESS_ALARM
) = range(22)

__all__ = []