SNS Alarm System Status Curtis Dunn Control System Suite/Eclipse Frameworks Workshop EPICS...

Post on 29-Jan-2016

212 views 0 download

Transcript of SNS Alarm System Status Curtis Dunn Control System Suite/Eclipse Frameworks Workshop EPICS...

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

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

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

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

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

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

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

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

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);

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)