A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.

Slides:



Advertisements
Similar presentations
Epics Configuration Management Steve Hunt v1.0. Goals Maximize control system availability Minimize development cycle time Reduce risk.
Advertisements

Control System Studio (CSS)
SNS Integrated Control System SNS RDB Requirements, wish list, status A little history l Oracle RDB used exclusively by accelerator physics group l JERI.
CLS Process Variable Database By: Diony Medrano. CLS PV Database - Topics Background Design Constraints Design and Implementation Benefits and Future.
K.Vijayan : RDB for Diamond Control Systems RDB for Diamond K.Vijayan March 2005.
LCLS Control System Overview Mike Zelazny SLAC ICD Software Department Accelerator Directorate.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
EPICS Meeting 2005ORNL Rdb systems at SNS Jeff Patton and cast April 27-29, 2005 EPICS Meeting 2005.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
Maintaining and Updating Windows Server 2008
The Soft-IOC Based Alarm Handler – an Operations View Pam Gurd October 31, 2007.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio Training - Alarm System Use.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS April 2013 Control System Studio Training - Alarm System Use.
Channel Archiver Stats & Problems Kay Kasemir, Greg Lawson, Jeff Patton Presented by Xiaosong Geng (ORNL/SNS) March 2008.
SNS Integrated Control System EPICS IOCs – Relational DB Connectivity Bridge A. Liyu, A. Zhukov.
What is Sure BDCs? BDC stands for Batch Data Communication and is also known as Batch Input. It is a technique for mass input of data into SAP by simulating.
ControlDraw, Modularisation, Standards And Re-Use Standardised Specification and Modular Design How ControlDraw Help.
Jan Hatje, DESY CSS ITER March 2009: Alarm System, Authorization, Remote Management XFEL The European X-Ray Laser Project X-Ray Free-Electron.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
March 9-11 IRMISRon Chestnut SLAC RDB and EPICS The World According to SLAC Ideas and Implementations by: J. Rock, D. Rogind, S. Allison.
Debby Quock November 13, 2012 IRMIS at CLS. IRMIS Currently at CLS PV Crawler –Perl modules that parse EPICS IOC st.cmd, db, and dbd files. Information.
IRMIS 2 Overview Andrew Johnson Computer Scientist, AES Controls.
1 BROOKHAVEN SCIENCE ASSOCIATES IRMIS Universal Component Types D. A. Dohan NSLS 2 Brookhaven National Laboratory ICALEPCS 2007.
Argonne National Laboratory is managed by The University of Chicago for the U.S. Department of Energy IRMIS Out of the Box.
IRMIS Status EPICS 2009 Vancouver D. A. Dohan. Outline IRMIS hardware model cable/cable run channel list Equipment Inventory System RDB Domain separation.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
MASAR Service Guobao Shen Photon Sciences Department Brookhaven National Laboratory EPICS Collaboration Workshop Oct 05, 2013.
Elder Matias, Diony Medrano, Dong Liu (At Michigan State University - Nov 2011) IRMIS at CLS.
General Time Update David Thompson Epics Collaboration Meeting June 14, 2006.
IRMIS: a practical Ansatz for an Accelerator Operations DB? S. Herb,
CIDB The PSI Controls Inventory DataBase Timo Korhonen, PSI (for the CIDB Team)
IRMIS – Introduction - IRMIS collaboration meetings: APS,SNS, CLS, FNAL, TRIUMF, SLAC, DESY - accumulate participant facility data capture requirements.
Jan Hatje, DESY CSS GSI Feb. 2009: Alarm System, Authorization, Remote Management XFEL The European X-Ray Laser Project X-Ray Free-Electron.
Database Reports and the IOC Crawler Presented by Katia Danilova 09/01/2005.
V.Sirotenko, July Status of Online Databases Currently there are 2 online Oracle Databases running on d0online cluster: 1.Production DB, d0onprd,
ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.
SNS Alarm System Status Curtis Dunn Control System Suite/Eclipse Frameworks Workshop EPICS Collaboration Meeting June 12-16, 2006.
Managed by UT-Battelle for the Department of Energy CSS Update Matthias Clausen, Helge Rickens, Jan Hatje and DESY Delphy Armstrong, Xihui Chen,
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
EPICS Release 3.15 Bob Dalesio May 19, Features for 3.15 Support for large arrays - done for rsrv in 3.14 Channel access priorities - planned to.
07/10/2007 VDCT Status Update EPICS Collaboration, October 2007 Knoxville, Tennessee
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
CIS 250 Advanced Computer Applications Database Management Systems.
Jan Hatje, DESY CSS – Control System Studio EPICS collaboration meeting CSS – Control System Studio Update EPICS collaboration meeting 2008 Shanghai.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC Michigan State.
ROCS Web Based Reporting Tool Using SNS Relational Database By Katia Danilova, Ernest L. Williams Jr. Control Systems group, ASD, SNS.
Status & development of the software for CALICE-DAQ Tao Wu On behalf of UK Collaboration.
Applications Kay Kasemir ORNL/SNS Using Information and pictures from Matthias Clausen, Jan Hatje, and Helge Rickens (DESY) October 2007.
Introduction to Databases Angela Clark University of South Alabama.
R. Keitel IRMIS Workshop, APS, 9-Mar-2005 RDB Tools at TRIUMF/ISAC.
RDB Issues at SLAC Archiver Store General EPICS Support.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
XAL based PV Browser Jeff Patton, Chris Fowlkes EPICS Collaboration Meeting – RDB SIG June 12, 2006.
QC – User Interface QUALITY CENTER. QC – Testing Process QC testing process includes four phases: Specifying Requirements Specifying Requirements Planning.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC , the State of Michigan.
Managed by UT-Battelle for the Department of Energy Quest for the Best Ever Alarm System Tool Kay Kasemir Oct
Maintaining and Updating Windows Server 2008 Lesson 8.
1 Copyright © 2008, Oracle. All rights reserved. Repository Basics.
Managed by UT-Battelle for the Department of Energy CSS Based Tools at SNS Dave Purcell EPICS Collaboration Meeting October 13-17, 2008.
SNS Integrated Control System ORACLE –JERI DB Generation April 27, 2004 Coles Sibley Jeff Patton.
R. Keitel Epics Collaboration Meeting, SLAC, 27-Apr-2005 RDB Use at TRIUMF/ISAC.
IRMIS Crawlers Tutorial
RDB-Based Configuration Management - A New Approach
Relational Database Collaboration
IRMIS Technical Details
What Do I Want from an RDB?
Developments on IRMIS at APS
Presentation transcript:

A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department of Energy IRMIS: Workshop Summary IRMIS/Relational Database Workshop Argonne National Laboratory D. Dohan, June 16, 2006

IRMIS/RDB Workshop Workshop on relational databases in EPICS control systems in general, with focus/emphasis on IRMIS. General awareness/acceptance/demand for RDB technology in EPICS control systems has increased dramatically in the recent past. ~ attendees, huge increase since the kickoff meeting, IRMIS now installed/being used/modified in a number of laboratories, including: -SNS -SLAC -APS -BESSY -TRIUMF -CLS

IRMIS - Introduction I ntegrated R elational M odel of I nstalled S ystems -‘connection-based’ approach to modeling the accelerator and its control system - integrated ‘system’ coverage of software, hardware and cabling Collaborative approach -Goal is to provide re-useable relational database and application frameworks. -Inter-laboratory approach strengthens the underlying database and application structures. -The ‘EPICS’ model is used throughout – sophisticated high level tools are developed, but the user always maintains the ability to look ‘under the hood’ -Site-neutral (and RDBMS agnostic). -Minimalist approach, locally extensible.

PV Schema PV crawler populates RDB (off-line) from ioc st.cmd information (emulate ioc load process) insists on a certain discipline in ioc s/w organization full (cross-IOC, soft IOC) coverage. Allows viewing system- wide control system logic, fully macro expanded. time stamp - the crawler provides a snapshot of the entire set of operational EPICS databases and their database definitions each time an IOC reboots. channel access clients (more on this later) no type-specific code or schema structures the crawler ‘discovers’ new record types from the installed EPICS database - no code/schema changes invites sending IRMIS query sets to VDCT to analyze inter-IOC logic.

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 5 EPICS Collaboration Meeting, June 12, 2006 Philosophy  Integrate IRMISBase data with SNS data  Use the XAL framework whose look and feel most SNS users are familiar with  Simple RDB interaction through POJOs and database views to adapt IRMIS to SNS  Tailor functions to SNS users  But make UI configurable for anyone

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 6 EPICS Collaboration Meeting, June 12, 2006 Map Links

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 7 EPICS Collaboration Meeting, June 12, 2006 Probe multiple PV’s

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 8 EPICS Collaboration Meeting, June 12, 2006 Export to.db file

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 9 EPICS Collaboration Meeting, June 12, 2006 ROCS: Sources of Data  Data are stored in RDB  SNS Oracle database  Ways to add data to SNS RDB:  IRMIS Crawler  JERI (online editable reports system)  Single task crawler type programs  Online editable reports (ROCS)  XAL Framework  Spreadsheets loaded by SSLoader.java  Manual loads and updates

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 10 EPICS Collaboration Meeting, June 12, 2006 Example 1: IOC Configuration Details  Purpose:  Provide IOC configuration information in fast to access and easy to analyze form  Data source:  Startup.cmd, bootline, st, iocInfo files, db and dbd files  Saving data to Oracle:  IRMIS crawler cmd, db, dbd files SNS RDB (Oracle) ROCS: IOC Configuration Details report at Control Systems website IRMIS Crawler IRMIS RDB

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 11 EPICS Collaboration Meeting, June 12, 2006 Example 2: IOC Alarm Logs  Purpose:  provide alarm info in such a form that is easy to access and convenient to analyze  Data source:  The latest alarm log files from EPICS alh  Saving data to Oracle:  FromAlarmLogToOracle.java The latest alarm log files from EPICS alh SNS Oracle DB ROCS: IOC Alarm Log report at Control Systems website Crawler type java program FromAlarmLog ToOracle.java

How to define an AOI Let’s start with LINAC RF Switching Control System example The PLC had Touch Screens with built-in logic for User Interface Control First there was a PLC for controlling the RF Switches MEDM displays monitored RF switch positions ACIS LLRF Trigger & Interlock System LINAC Interlock L1, L2 and L3 PLCs The PLC communicated with other “AOIs” Then along came request for remote control from the Main Control Room – MEDM displays with built-in logic How do we store all this information in an AOI database?

Example AOI Marked Up st.cmd File # Absorber Databases #dbLoadRecords ("vpApp/absDb/H2O-xx-FlowPres.db", "SECTOR=05, NODE=18") #dbLoadRecords ("vpApp/absDb/H2O-xx-FlowPres.db", "SECTOR=06, NODE=20") # dbLoadRecords ("vpApp/absDb/DL250stat.db","name=S05:H20:PLC,addr=L1 N20 P1 S1") dbLoadRecords ("vpApp/absDb/PlcVersionInfo.db","name=S5VP:H20:PLC,addr=L1 N20 P1 S1") dbLoadRecords ("vpApp/absDb/H2O-xx-FlowPresOdd.db","SECTOR=05,addr=L1 N20 P1 S1") dbLoadRecords ("vpApp/absDb/H2O-xx-FlowPresEven.db","SECTOR=06,addr=L1 N20 P1 S1") dbLoadRecords ("vpApp/absDb/H2O-SECTOR-PW-SH-Temp.db", "SECTOR=06") # dbLoadRecords ("vpApp/facilitiesDb/Ambient-SECTOR-Temp.db", "SECTOR=05, NODE=18") dbLoadRecords ("vpApp/facilitiesDb/Ambient-SECTOR-Temp.db", "SECTOR=06, NODE=20")

AOI Viewer

PV Clients: SLAC Workshop 2005 summary (excerpt) Work breakdown – CA client crawlers -adl,alh – Janet Anderson, APS -SDDS – APS -EDL – J. Sinclair -SNC – R. Chestnut -CA archiver – SLAC -Channel Watcher – M. Zelazny -BURT s/r – T. Birke -CDEV – T. Birke -XAL – J.Patton -CA Security – APS

What was done and why Modified pv_crawler.pl in a modular manner. –Didn’t write a secondary crawler. –Needed to traverse boot tree to see current snapshot. –Needed to look into seq.o files and do macro substitution Requirements for DB viewing –For a given pv, which sequences use it and on which ioc’s. –For a given ioc, which pv are used in sequences. –For a given sequence.o file, what pv’s are used.

Source files delivered src/crawlers/pv/pv_crawler.pl –Added SEQ logic to main loop src/crawlers/pv/PVCrawlerParser.pm –Two new subroutines src/crawlers/pv/SEQCrawlerDBLayer.pm – New module. src/crawlers/pv/README_SEQ src/crawlers/pv/README_SEQ_USE_CASES

SLAC Summary PV part of the schema only so far Running: -PV Crawler since late SEQ crawler -ALH crawler Use PV Viewer and batch reporting Plans for client config data and UI

IRMIS Uses so far PV Viewer for ad hoc database queries PV Crawler reports EPICS database and template errors (-: Data source for EPICS PV names for SLAC legacy control system -formerly dbLoadTemplate and dbReport on hardcoded lists of template files

View Child Equipments

CIDB is… A database-based application that -Enables us to track the control system hardware (stock, installations) -Embeds the working practices related to controls hardware distribution and maintenance (transparency) -Tries to make our (controls group HW&SW, system developers, other related groups) lives easier -It is limited to the hardware handling, but is able to provide configuration information (installation hierarchy) Note: I am not a database expert; I will not show any table diagrams or other details in this talk. However, details can be obtained from the developers if wanted.

System view System contents (VME crate) -nonhierarchical installations are also supported Request part: -select part type from a list -add count & date needed

Status & future Core functions -In use since February -CIDB has already much improved our view of the status, and enabled to share and distribute the work better Integrate hardware testing -Work in progress Include purchasing information -Important for ordering, repairs, budgeting, etc. -In progress, planned by end of June New applications/modules -(diagnostics) component calibration management Connection to / integration with IRMIS? -The functionality is largely complementary

Components: IRMIS approach Minimize the abstraction/modeling in the definition of ‘components’ Thus, instead of assigning a ‘behavior’ to a magnet (“sextupole corrector in the LEBT”), in IRMIS a magnet is simply a component that converts a DC electric current into a magnetic field. (It is characterized by the number of ports it has, rather than what it does to the beam.) The goal is to have component definitions that are universal in nature. "Make everything as simple as possible, but not simpler."

Component Connections The IRMIS schema relates components by how they are interconnected: physically (housing hierarchy) logically (control hierarhy) power grid (power hierarchy) Each relationship type is hierarchical in nature (each child has a unique parent in each hierarchy). The hierarchies are modeled as node/edge graphs (DAGs). component component_type_id component type name description form factor manufacturer function is a component_rel_type rel_name component_rel parent_cmpnt_id child_cmpnt_id logical_order logical_desc component_rel_type_id

Ports and Cables component component_type_id component type name description form factor manufacturer function is a component_rel parent_cmpnt_id child_cmpnt_id logical_order logical_desc component_rel_type_id port cmpnt_id port_name port_order pin pin_usage signal_name port_id cable color label port_a_id port_b_id pint_detail dest_desc conductor cable_id pin_a_id pin_b_id

27 IRMIS Out of the Box Database Access –DDL (SQL scripts for creating IRMIS schema) MySQL Oracle –Java database access layer (POJO – DAO – Hibernate) –Perl database access layer (minor extension of Perl-DBI) –PHP database access layer (simple OO layer on top of PHP-mysql) –Perl Crawlers PV (and SEQ) ADL ALH IOCSR SDDS Network (switch connectivity)

28 IRMIS Out of the Box Applications –IDT – IRMIS DeskTop Java/Swing application containing –idt::ioc, idt::pv, idt::component, idt::component-type, idt::cable, idt::admin Java WebStart support provided –Demo PHP PV Viewer –Demo CFW Java application

31 One Relationship still escapes us … PV-to-Signal Which field signal does this Process Variable control? Which PV(s) monitors this field signal? For ongoing operation and maintenance of a large accelerator facility, it is imperative to know the relationship between Process Variables and field signals. This relationship should be traceable in either direction.

32 Can this relationship be “discovered” in EPICS? Records (PVs) specify the “device type” through the configurable field DTYP. Additional “device specific” info is identified in INP/OUT fields. Although certain specifics about the field signal location can be heuristically determined, there are no hard rules for mapping between INP/OUT and an actual device port. Due to the diverse styles of device support authorship, the PV-to-signal relationship cannot be traced with existing EPICS facilities.

33 The Cloud

34 Dispersing the Cloud The missing link to allow fully automatic discovery of the relationship between a Process Variable and a field signal occurs at the device support layer (unique code for each device type). If an additional lookup table (link_rule table) were available that identified the relationship between the INP/OUT specifiers and the device port (or parameter), the relationship could be “mined” by an intelligent “crawler” script. Such a table would look similar to the one below:

35 IRMIS - future signal tracing –concept of the component as a ‘signal transformer’ fault diagnosis –trace failed PV to the suspect component/port –locate failed component control path item integration with VDCT ‘prescriptive’ applications - ioc configuration, etc. integration with CSS long wish list