Top Banner
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS [email protected] 2012, January 9-12 at NSRRC, Taiwan Control System Studio Training - Alarm System Setup
10

Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS [email protected] 2012, January 9-12 at NSRRC, Taiwan Control System Studio Training.

Dec 13, 2015

Download

Documents

Jayson Atkinson
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS kasemirk@ornl.gov 2012, January 9-12 at NSRRC, Taiwan Control System Studio Training.

Managed by UT-Battellefor the Department of Energy

Kay Kasemir

ORNL/SNS

[email protected]

2012, January 9-12 at NSRRC, Taiwan

Control System Studio Training

-Alarm System Setup

Page 2: Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS kasemirk@ornl.gov 2012, January 9-12 at NSRRC, Taiwan Control System Studio Training.

2 Managed by UT-Battellefor the Department of Energy

Alarm System Overview

Alarm Cfg & StateRDB

Alarm Cfg & StateRDB

IOCsIOCs

Alarm ServerCurrent Alarms: Acknowledged? Transient? Annunciated?

Alarm ServerCurrent Alarms: Acknowledged? Transient? Annunciated?

LOGLOG

MessageRDB

MessageRDB

Annunciator

Annunciator

JMS2

RDB

JMS2

RDB

Tomcat-ReportsTomcat-Reports

CSS ApplicationsCSS Applications

Alarm Client GUI

JMS

Alarm Updates Ack’; Config UpdatesAnnunciationsLog Messages

alarm_TALKalarm_TALK alarm_CLIENTalarm_CLIENTalarm_SERVERalarm_SERVER

PV Updates (Channel Access, …)

Page 3: Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS kasemirk@ornl.gov 2012, January 9-12 at NSRRC, Taiwan Control System Studio Training.

3 Managed by UT-Battellefor the Department of Energy

Initial Setup similar to archive system

1. Prepare RDB (and run JMS Server)

2. Create and import initial configuration

3. Run Archive Engine Alarm Server

4. View in CSS Alarm Tree, Alarm Table

Page 4: Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS kasemirk@ornl.gov 2012, January 9-12 at NSRRC, Taiwan Control System Studio Training.

4 Managed by UT-Battellefor the Department of Energy

Prepare RDB

Plugin org.csstudio.alarm.beast,folder dbd/:

Copy/paste the commands for the following from MYSQL_USER.sql and ALARM_MYSQL.sql into a mysql shell:

1. Create “alarm” user with password “$alarm”

2. Allow “report” user to read alarm tables

3. Create “alarm” data base

4. Create tables, insert some demo data

Page 5: Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS kasemirk@ornl.gov 2012, January 9-12 at NSRRC, Taiwan Control System Studio Training.

5 Managed by UT-Battellefor the Department of Energy

Create initial configuration Minimum XML File

<config name="demo"></config>

More elaborate Example<config name="demo"> <component name="Simulated"> <pv name="sim://ramp"> <description>Ramp</description> <latching>true</latching> <annunciating>true</annunciating> </pv> </component> <component name="Heater Demo"> <pv name="demo1:heat_V"> <description>Heater at maximum</description> <latching>false</latching> <annunciating>true</annunciating> </pv> </component></config>

Either one can then be edited from CSS GUI

Page 6: Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS kasemirk@ornl.gov 2012, January 9-12 at NSRRC, Taiwan Control System Studio Training.

6 Managed by UT-Battellefor the Department of Energy

settings.ini for alarm tools

Add to settings.ini:# Alarm RDB (Config Tool, Alarm Server)org.csstudio.alarm.beast/rdb_url=jdbc:mysql://localhost/alarmorg.csstudio.alarm.beast/rdb_user=alarmorg.csstudio.alarm.beast/rdb_password=$alarmorg.csstudio.alarm.beast/rdb_schema=

# JMS Connectionorg.csstudio.alarm.beast/jms_url=failover:(tcp://localhost:61616)

# Specify alarm configuration (root element)org.csstudio.alarm.beast/root_component=demo

# Annunciatororg.csstudio.alarm.beast.annunciator/jms_url=failover:(tcp://localhost:61616)org.csstudio.alarm.beast.annunciator/jms_topic=demo_TALK

# Channel Access (Alarm Server and Archive Engine)org.csstudio.platform.libs.epics/addr_list=127.0.0.1

Page 7: Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS kasemirk@ornl.gov 2012, January 9-12 at NSRRC, Taiwan Control System Studio Training.

7 Managed by UT-Battellefor the Department of Energy

Import XML Configuration

Alarm Config Tool:AlarmConfigTool –pluginCustomization /path/to/settings.ini \

–root demo –file demo.xml -import

‘root’:Database can contain multiple alarm configuration trees, identified by name of root element

Consistency check:Name of <config name=“demo”> and command-line argument –root demo must match

Page 8: Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS kasemirk@ornl.gov 2012, January 9-12 at NSRRC, Taiwan Control System Studio Training.

8 Managed by UT-Battellefor the Department of Energy

Run Alarm ServerStart: AlarmServer –pluginCustomization /path/to/settings.ini \ –root demo

Monitor:

Primarily just use CSS Alarm GUI

Console output

Send ‘debug’ message from CSS Alarm Tree

org.csstudio.debugging.jmsmonitor

Stop:

Kill the process (Ctrl-C)

Page 9: Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS kasemirk@ornl.gov 2012, January 9-12 at NSRRC, Taiwan Control System Studio Training.

9 Managed by UT-Battellefor the Department of Energy

Add Alarm GUI to CSSAdd alarm GUI plugins to CSS product

–org.csstudio.alarm.beast

–org.csstudio.alarm.beast.annunciator

–org.csstudio.alarm.beast.ui

–org.csstudio.alarm.beast.ui.alarmtable

–org.csstudio.alarm.beast.ui.alarmtree

–org.csstudio.alarm.beast.ui.areapanel

–org.csstudio.utility.speech

plugin_customization.ini of CSS product:Same org.csstudio.alarm.beast/* settings as used by Alarm Server (settings.ini)

Most importantMost important

NiceNice

To hear alarmsTo hear alarms

Page 10: Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS kasemirk@ornl.gov 2012, January 9-12 at NSRRC, Taiwan Control System Studio Training.

10 Managed by UT-Battellefor the Department of Energy

Use CSS Alarm Tree, Alarm Table, … Open Menu CSS/Alarm/…

–Alarm Tree, Table, Annunciator, Area Panel

In alarm tree, use context menu to add to configuration–After log in

…more in separate session