11
SNS Alarm System Status Curtis Dunn Control System Suite/Eclipse Frameworks Workshop EPICS Collaboration Meeting June 12-16, 2006

SNS Alarm System Status Curtis Dunn Control System Suite/Eclipse Frameworks Workshop EPICS Collaboration Meeting June 12-16, 2006

Embed Size (px)

Citation preview

Page 1: SNS Alarm System Status Curtis Dunn Control System Suite/Eclipse Frameworks Workshop EPICS Collaboration Meeting June 12-16, 2006

SNS Alarm System Status

Curtis Dunn

Control System Suite/Eclipse Frameworks Workshop

EPICS Collaboration Meeting

June 12-16, 2006

Page 2: SNS Alarm System Status Curtis Dunn Control System Suite/Eclipse Frameworks Workshop EPICS Collaboration Meeting June 12-16, 2006

OAK RIDGE NATIONAL LABORATORYU. S. DEPARTMENT OF ENERGY

EPICS Collaboration Meeting, June 12-16, 2006

Alarm Annunciator

Written in Objective-C

Uses the EPICS Framework for Cocoa developed by Tom Pelaia

Runs 24/7 on a dedicated alarm station in the SNS Central Control Room

Designed to Operations Specifications

Monitors PV Status and Severity

Speaks customizable alarm messages

Page 3: SNS Alarm System Status Curtis Dunn Control System Suite/Eclipse Frameworks Workshop EPICS Collaboration Meeting June 12-16, 2006

OAK RIDGE NATIONAL LABORATORYU. S. DEPARTMENT OF ENERGY

EPICS Collaboration Meeting, June 12-16, 2006

Alarm Annunciator – Alarm Configuration

• Intended to monitor summary PV's

• Automatic save and load

• Dynamically discovers and displays hierarchies

• Current severity

indicated by text color

• Allows Silencing of Alarms

Page 4: SNS Alarm System Status Curtis Dunn Control System Suite/Eclipse Frameworks Workshop EPICS Collaboration Meeting June 12-16, 2006

OAK RIDGE NATIONAL LABORATORYU. S. DEPARTMENT OF ENERGY

EPICS Collaboration Meeting, June 12-16, 2006

Alarm Annunciator - History

Lists the most recent alarms and warnings

Color indicates alarm severity

Shows Alarm info: Timestamp PV Name Audible Message Status Severity

Page 5: SNS Alarm System Status Curtis Dunn Control System Suite/Eclipse Frameworks Workshop EPICS Collaboration Meeting June 12-16, 2006

OAK RIDGE NATIONAL LABORATORYU. S. DEPARTMENT OF ENERGY

EPICS Collaboration Meeting, June 12-16, 2006

Alarm Annunciator – Pronunciation Dictionary

• Adjust incorrect

pronunciations

– Example: Linac

• Understands Abbreviations

– SNS Systems, SubSystems,

Devices, Instances

– Other abbreviations: Avg, Sts, Temp, etc.

• Automatic save and load

Page 6: SNS Alarm System Status Curtis Dunn Control System Suite/Eclipse Frameworks Workshop EPICS Collaboration Meeting June 12-16, 2006

OAK RIDGE NATIONAL LABORATORYU. S. DEPARTMENT OF ENERGY

EPICS Collaboration Meeting, June 12-16, 2006

Alarm Annunciator – Main Display

• Designed to be visible from a distance

• Displays current alarms and warnings

• Scrolls the audible message

Page 7: SNS Alarm System Status Curtis Dunn Control System Suite/Eclipse Frameworks Workshop EPICS Collaboration Meeting June 12-16, 2006

OAK RIDGE NATIONAL LABORATORYU. S. DEPARTMENT OF ENERGY

EPICS Collaboration Meeting, June 12-16, 2006 7

Parallel Efforts at SNS - Soft-IOC-based Alarm Handler (Pam Gurd)

Focus: Integration of alarm system with EDM control screens

Page 8: SNS Alarm System Status Curtis Dunn Control System Suite/Eclipse Frameworks Workshop EPICS Collaboration Meeting June 12-16, 2006

OAK RIDGE NATIONAL LABORATORYU. S. DEPARTMENT OF ENERGY

EPICS Collaboration Meeting, June 12-16, 2006

Parallel Efforts at SNS – Alarm Pushing in EPICS (A. Liyu, A. Zhukov)

Current EPICS Alarm Model

IOC Alarm ClientCA

IOC

IOC

X channels

Y channels

Z channels

…X channelsY channelsZ channels

Page 9: SNS Alarm System Status Curtis Dunn Control System Suite/Eclipse Frameworks Workshop EPICS Collaboration Meeting June 12-16, 2006

OAK RIDGE NATIONAL LABORATORYU. S. DEPARTMENT OF ENERGY

EPICS Collaboration Meeting, June 12-16, 2006

Parallel Efforts at SNS – Alarm Pushing in EPICS (A. Liyu, A. Zhukov)

Another Alarm Model

IOC Alarm server

IOC

IOC

X channels

Y channels

Z channels

Alarm client

Log file

Page 10: SNS Alarm System Status Curtis Dunn Control System Suite/Eclipse Frameworks Workshop EPICS Collaboration Meeting June 12-16, 2006

OAK RIDGE NATIONAL LABORATORYU. S. DEPARTMENT OF ENERGY

EPICS Collaboration Meeting, June 12-16, 2006

Parallel Efforts at SNS – Alarm Pushing in EPICS (A. Liyu, A. Zhukov) Changes in RecGbl.c file recGblResetAlarms() function/* Send alarm message */

char AcMessage[200];

if( pdbc->nsev != pdbc->sevr){

sprintf( AcMessage,

"PVNAME=%s&SEVERITY=%d&STATUS=%d&TIMESTAMP=%ld.%ld",

pdbc->name, pdbc->nsev, pdbc->nsta, pdbc->time.secPastEpoch,

pdbc->time.nsec);

vFSendMessageToAlarmService( AcMessage);

}

Add Alarm service with APIepicsShareFunc int epicsShareAPI iFAlarmServiceStart( char * AcServerNameIn);

epicsShareFunc int epicsShareAPI iFAlarmServiceStop();

epicsShareFunc void epicsShareAPI vFSendMessageToAlarmService( char * AcMessage);

Page 11: SNS Alarm System Status Curtis Dunn Control System Suite/Eclipse Frameworks Workshop EPICS Collaboration Meeting June 12-16, 2006

OAK RIDGE NATIONAL LABORATORYU. S. DEPARTMENT OF ENERGY

EPICS Collaboration Meeting, June 12-16, 2006

Parallel Efforts at SNS – Alarm Logging

Alarm logging using the Alarm Handler (ALH) (Ernest Williams, Greg Lawson)

Importing Alarm Log Files to RDB – ROCS (Ekaterina Danilova, Ernest Williams)