Managed by UT-Battelle for the Department of Energy Kay Kasemir Jan. 2013 Experimental Physics and Industrial Control System.

Slides:



Advertisements
Similar presentations
Categories of I/O Devices
Advertisements

Operating System.
1 1999/Ph 514: Channel Access Concepts EPICS Channel Access Concepts Bob Dalesio LANL.
Early History of EPICS EPICS Seminar/Workshop Raja Ramanna Centre For Advanced Technology Indore India January Presented by: Marty Kraimer.
9-12 Oct 2000PCaPAC 2000, DESY Hamburg Epics to TINE translator Matthias Clausen, DESY Hamburg Phil Duval, DESY Hamburg Zoltan Kakucs, DESY Hamburg.
CHAPTER 9: Input / Output
EtherIP Driver Kay Kasemir, July 2009.
Systems Software Operating Systems.
SLAC asyn class, Day 1, August 26, 2010 Example asyn driver Modbus Mark Rivers, Marty Kraimer, Eric Norum University of Chicago Advanced Photon Source.
R. Lange, M. Giacchini: Monitoring a Control System Using Nagios Monitoring a Control System Using Nagios Ralph Lange, BESSY – Mauro Giacchini, LNL.
Hall C’s HMS PLC Controls by Steven Lassiter. What Constituents a PLC System PLC (processors) Programming. I/O modules. Field Device Signals (sometimes.
Linux Operations and Administration
Input/Output Controller (IOC) Overview Andrew Johnson Computer Scientist, AES Controls Group.
ORNL is managed by UT-Battelle for the US Department of Energy EPICS State Notation Language (SNL), “Sequencer” Kay Kasemir, SNS/ORNL Many slides from.
Scan System Kay Kasemir, Xihui Chen Jan Managed by UT-Battelle for the U.S. Department of Energy Automated Experiment Control “Scan” should be.
Scan System: Experiment Automation Kay Kasemir, Xihui Chen RAL EPICS Meeting, May 2013.
EPICS Overview 2006 O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 2 What is EPICS?
ORNL is managed by UT-Battelle for the US Department of Energy Control System Studio: Overview Kay Kasemir, SNS/ORNL June 2014.
Control System Studio: An Integrated Toolset Kay Kasemir, ORNL/SNS CS-Studio, 2014 FRIB1.
Berliner Elektronenspeicherringgesellschaft für Synchrotronstrahlung mbH (BESSY) Accelerator and Experiment Control and Monitor Systems Ralph Lange BESSY,
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS 2012, April at SLAC Control System Studio - Introduction.
Managed by UT-Battelle for the Department of Energy EPICS Database … in 1 hour?! Kay Kasemir, SNS/ORNL Many slides from Andrew Johnson, APS/ANL, Jan
Imperial College Tracker Slow Control & Monitoring.
XFEL The European X-Ray Laser Project X-Ray Free-Electron Laser Matthias Clausen, DESY XFEL Refrigerator Controls – April CSS-DCT (SNL) Training.
EPICS Collaboration Meeting Spring 2010, Aix France, Jun 2, 2010 Page 1 ITER CODAC COntrol, Data Access and Communication System for ITER Anders Wallander.
Controls for High-Availability Magnet PS’s for ATF2 Glen White SLAC September
IMPLEMENTATION OF SOFTWARE INPUT OUTPUT CONTROLLERS FOR THE STAR EXPERIMENT J. M. Burns, M. Cherney*, J. Fujita* Creighton University, Department of Physics,
ETRAX CRIS architecture and Xilinx FPGA Peter Zumbruch Experiment control systems group GSI (KS/EE)
Redundancy. 2. Redundancy 2 the need for redundancy EPICS is a great software, but lacks redundancy support which is essential for some highly critical.
IRMIS 2 Overview Andrew Johnson Computer Scientist, AES Controls.
Introduction to EPICS (Ned Arnold, John Maclean).
Dec 8-10, 2004EPICS Collaboration Meeting – Tokai, Japan MicroIOC: A Simple Robust Platform for Integrating Devices Mark Pleško
Running EPICS on NI CompactRIO Initial Experience Eric Björklund (LA-UR )
Henri Kujala Integration of programmable logic into a network front-end of a telecontrol system Supervisor: Professor Patric Östergård Instructor: Jouni.
Control System Studio (CSS) Overview Kay Kasemir, July 2009.
The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Feb Material copied from the IOC Application Developer's.
ORNL is managed by UT-Battelle for the US Department of Energy EPICS Automation Kay Kasemir, SNS/ORNL June 2014.
SNS Integrated Control System MBUF Problems and solutions on VxWorks Dave Thompson and cast of many.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio, CSS Overview.
Final Review of ITER PBS 45 CODAC – PART 1 – 14 th, 15 th and 16 th of January CadarachePage 1 FINAL DESIGN REVIEW OF ITER PBS 45 CODAC – PART 1.
Experience Running Embedded EPICS on NI CompactRIO Eric Björklund Dolores Baros Scott Baily.
Issues in Accelerator Control Bob Dalesio, December 23, 2002.
Oct 8-9, 2005ACS Collaboration Meeting – Archamps, France The MicroIOC From Custom To Production First customer: PSI 25 pieces.
Managed by UT-Battelle for the Department of Energy EPICS Sequencer Kay Kasemir, SNS/ORNL Many slides from Andrew Johnson, APS/ANL Feb
Managed by UT-Battelle for the Department of Energy CSS Update Matthias Clausen, Helge Rickens, Jan Hatje and DESY Delphy Armstrong, Xihui Chen,
EPICS EPICS Limitations Bob Dalesio Marty Kraimer.
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.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS 2012, January 9-12 at NSRRC, Taiwan Control System Studio Training.
CERN Control Standards Front-End Computer Layer Stéphane Deghaye BE/CO/FE
Computer Software Types Three layers of software Operation.
1. EPICS IOC on CompactRIO EPICS Collaboration Meeting Fall 2011.
1. LabVIEW and EPICS Workshop EPICS Collaboration Meeting Fall 2011.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS April 2013 Control System Studio, CSS Overview.
Controls & Monitoring Overview J. Leaver 03/06/2009.
EPICS Release 3.15 Bob Dalesio May 19, Features for 3.15 Support for large arrays Channel access priorities Portable server replacement of rsrv.
Connecting LabVIEW to EPICS network
Stanford Linear Accelerator Center Ron Chestnut EPICS Collaboration Mtg May 21-23, SLAC EPICS Projects Yesteryear, Today, and Tomorrow.
11 th February 2008Brian Martlew EPICS for MICE Status of the MICE slow control system Brian Martlew STFC, Daresbury Laboratory.
Diagnostics and Optimization Procedures for Beamline Control at BESSY A. Balzer, P. Bischoff, R. Follath, D. Herrendörfer, G. Reichardt, P. Stange.
1 Channel Access Concepts – IHEP EPICS Training – K.F – Aug EPICS Channel Access Concepts Kazuro Furukawa, KEK (Bob Dalesio, LANL)
EPICS and LabVIEW Tony Vento, National Instruments
1 EPICS Flow of Control: EPICS Workshop at IHEP, Beijing, August 2001 EPICS Flow of Control Marty Kraimer APS.
Control System Overview J. Frederick Bartlett Fermilab June 1,1999.
An Introduction to Epics/Tango Steve Hunt Alceli EPICS Meeting 2008 INFN Legnaro 15 Oct 17:15.
JLab Accelerator Controls Matt Bickley MaRIE discussion April 26, 2016.
Monitoring Dynamic IOC Installations Using the alive Record Dohn Arms Beamline Controls & Data Acquisition Group Advanced Photon Source.
Introduction to Control System Studio (CSS) Kay Kasemir, Kunal Shroff EPICS Fall Collaboration Meeting, October 2011 PSI.
EPICS: Experimental Physics and Industrial Control System
OPC UA and EPICS Introduction
Presentation transcript:

Managed by UT-Battelle for the Department of Energy Kay Kasemir Jan Experimental Physics and Industrial Control System

2Managed by UT-Battelle for the Department of Energy What EPICS looks like Oracle

3Managed by UT-Battelle for the Department of Energy Australian Square Kilometre Array Pathfinder (ASKAP), Oct. 5, 2012 Juan Guzman,

4Managed by UT-Battelle for the Department of Energy ASKAP User Interface Juan Guzman,

5Managed by UT-Battelle for the Department of Energy ITER ITER-FPSC- vBetaVersionPanelsOPI- UserManual.doc, Nadine Utzel, 2011

6Managed by UT-Battelle for the Department of Energy HFIR CG-1D First EPICS/CSS operation with beam, Jan. 8, 2013

7Managed by UT-Battelle for the Department of Energy EPICS is not… One product that you  Install  Run  Done!

8Managed by UT-Battelle for the Department of Energy EPICS is a Collaboration  ~1989: Started between –LANL Ground Test Accelerator –ANL Advanced Photon Source  Until 2004: License agreement required –LANL registered >150  Now: –SNS, ANL/APS, SLAC, LANL, JLAB/CEBAF, LBNL, Fermilab D0, Keck & Gemini Telescopes … in the USA –Canadian Light Source; DESY, BESSY,.. in Germany; PSI/SLS in Switzerland; Ganil, SACLAY in France; Diamond light source in England; KEK-K, J-Parc in Japan; IHEP in China; NSRRC in Taiwan; PLS in South Korea; Australian Synchroton, …  Yearly collaboration meetings –One each in US and elsewhere –100+ people attended in 2004, 05, 06.  'Tech-Talk' reflector usually provides responses within a few hours –

9Managed by UT-Battelle for the Department of Energy EPICS Meetings Pohang, 2013 Berlin, 1998 Tzukuba, 2000 Santa Fe 2004

10Managed by UT-Battelle for the Department of Energy EPICS is a Toolkit … for distributed control systems.  Front-end: “Input/Output Controller” (IOC)  Protocol: Channel Access  Clients: Operator displays, alarm system, …  Mostly Portable: vxWorks, RTEMS, Linux, OS X, Windows

11Managed by UT-Battelle for the Department of Energy 11 Distributed  Operator interface  Services: Archive, …  Front-end IOCs  I/O, PLCs,..

12Managed by UT-Battelle for the Department of Energy What an IOC does  Runtime ‘Database’ –Executes records  Known set of ‘Records’ –Read analog value –Write analog value –Perform computation –Control motor  Configuration –SCAN=1 second –INP=..what to read..  Serve all via Channel Access

13Managed by UT-Battelle for the Department of Energy Task: 1.Read temperature 2.Open/close switch as needed 3.Repeat Software? Example: Basic Temperature Control

14Managed by UT-Battelle for the Department of Energy 14 Simplistic Code Sensor temp = connectToSensor(…); Switch switch = connectToSwtich(…); Loop: if (temp.value() < 25) switch.close(); else switch.open(); sleep(1.0);

15Managed by UT-Battelle for the Department of Energy 15 What we omitted  Error checking  Code comments  Apply some smoothing to the temperature reading to filter noise.  Send current temperature and switch state to network clients (operator display). With units.  Attach a time stamp to the data, so that network clients can see for example when the switch was last opened.  Send alarm when the temperature is too low or high.  Allow runtime changes of the threshold from the remote operator interface.  Allow runtime changes to the scan rate.  Maybe allow runtime changes to the device address?  What if we have more than one fishtank?

16Managed by UT-Battelle for the Department of Energy 16 EPICS 'Database’ for Fishtank Takes getting used to, but handles what we omitted.

17Managed by UT-Battelle for the Department of Energy 17 Some Detail on EPICS 'Records' Programming Configuration  "SCAN=1 second" instead of start thread, delay until next multiple of 1 second, lock required resources, …  "SMOO=0.5" configures the smoothing algorithm.  Almost any field in any record is accessible via network at runtime –Change scan rate, smoothing, …

18Managed by UT-Battelle for the Department of Energy IOC Database  A single record can handle the scanning, signal conditioning, alarming of a temperature, pressure, or similar analog reading.  Combined with binary and computational records, it can express the data flow logic for a front-end computer –Avoiding the pitfalls of real-time, multithreaded and networked programming.  Can have thousands of records in one IOC.  kHz-rate processing with record chains is doable –Of course limited by CPU. Not 1000nds of kHz rate- records…

19Managed by UT-Battelle for the Department of Energy How fast?  Can be fast or slow, it depends how you use it!  Use the correct tool for the job; Database, custom code (IOC) or custom code (client)‏  Ultimately speed depends upon hardware  Some benchmarks*: From Andrew Johnson (APS) EPICS Intro slide

20Managed by UT-Battelle for the Department of Energy 20 Example Client: Operator Displays Created in Editor –No coding nor compilation Networked –Open/close –Multiple OPIs

21Managed by UT-Battelle for the Department of Energy EPICS Vocabulary  EPICS Base Code for IOC, database support, basic records, channel access  IOC Input Output Controller, the front-end software –Hard IOC Using real-time OS in VME crate –Soft IOC IOC software running on Linux, …, typically communicating with networked I/O  Database Executes the EPICS Records  Record EPICS processing block  Device support Code that connects records to hardware Driver  Driver Code that talks to hardware. May be unaware of EPICS  Channel Access EPICS network protocol. Exposes Channels aka Process Variables

22Managed by UT-Battelle for the Department of Energy EPICS Summary  Control System Toolkit –Distributed, multi-platform, open source, extensible, …  Not fancy, but “works” –Accelerators, Beam lines, Telescopes, Fusion experiments, …