EPICS Overview 2006 O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 2 What is EPICS?

Slides:



Advertisements
Similar presentations
Make This work with EPICS! 2006
Advertisements

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.
EPICS Channel Access Overview 2006
March Wireshark CA Plugin EPICS Meeting 2008, Shanghai, China. 1 Wireshark CA Plug-in EPICS Channel Access Dissector Kazuro Furukawa, KEK Ron Rechenmacher,
EPICS Overview EPICS Seminar/Workshop Raja Ramanna Centre For Advanced Technology Indore India January Overview 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.
16 - Nov. 2000EPICS Workshop Oak Ridge1 Epics to TINE translator Matthias Clausen, DESY Hamburg Phil Duval, DESY Hamburg Zoltan Kakucs, DESY Hamburg.
OPC Overview OPC Device Support (PLC Gateway for 3.14) Ralph Lange – EPICS Collaboration Meeting at SLAC, April 2005.
The Soft-IOC Based Alarm Handler – an Operations View Pam Gurd October 31, 2007.
EtherIP Driver Kay Kasemir, July 2009.
–Streamline / organize Improve readability of code Decrease code volume/line count Simplify mechanisms Improve maintainability & clarity Decrease development.
R. Lange, M. Giacchini: Monitoring a Control System Using Nagios Monitoring a Control System Using Nagios Ralph Lange, BESSY – Mauro Giacchini, LNL.
Channel Archiver Stats & Problems Kay Kasemir, Greg Lawson, Jeff Patton Presented by Xiaosong Geng (ORNL/SNS) March 2008.
Channel Archiver Introduction 2006
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
Ralph Lange: OPC Gateway (Device Support) OPC Gateway (Device Support) Ralph Lange – EPICS Collaboration Meeting March SSRF.
J. Hill. Overview  Introduction  LANSCE Requirements  EPICS Event Queue  Event Queue Upgrade  Milestones.
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).
EPICS Overview 25 August 2009 Matt Boyes EPICS Overview Lecture 1 Matt Boyes.
Dec 8-10, 2004EPICS Collaboration Meeting – Tokai, Japan MicroIOC: A Simple Robust Platform for Integrating Devices Mark Pleško
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.
Running EPICS on NI CompactRIO Initial Experience Eric Björklund (LA-UR )
Elliott Wolin Hall D Online Meeting 4-Mar  A few weeks ago Elke asked how long it would take to get an EPICS system going  I didn’t know  I had.
ORNL is managed by UT-Battelle for the US Department of Energy EPICS Automation Kay Kasemir, SNS/ORNL June 2014.
EPICS Overview September 8-10, 2009 Panda XXX th Collaboration Meeting, Jülich Peter Zumbruch, GSI/EE-KS.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio, CSS Overview.
General Time Update David Thompson Epics Collaboration Meeting June 14, 2006.
Experience Running Embedded EPICS on NI CompactRIO Eric Björklund Dolores Baros Scott Baily.
SNS Alarm System Status Curtis Dunn Control System Suite/Eclipse Frameworks Workshop EPICS Collaboration Meeting June 12-16, 2006.
Integrating EPICS and LabVIEW on Windows using DCOM Freddie Akeroyd ISIS Computing Group.
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
Writing a Channel Access Client in EPICS Bob Dalesio, April 5, 2000.
Writing a Channel Access Client in EPICS Bob Dalesio, April 5, 2000.
Toy IOC Experiments, hierarchical EPICS database A side product of "V4" discussions with: Matthias Clausen, Bob Dalesio, Marty Kraimer, Steve Lewis. Kay-Uwe.
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.
LANLLEDA, LANSCE*, AFEL ANLAPS, 25 of 37beamlines, IPNS JLABCEBAF, FEL, Halls A.B.C. LBLALS, BaBar, Heavy ion Fusion, Gammasphere, SLACPEP II*, NLC** ORNLSNS,
1. EPICS IOC on CompactRIO EPICS Collaboration Meeting Fall 2011.
At the SNS Kay Kasemir, Xiaosong Geng, Dave Purcell ORNL/SNS March 2008.
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.
Channel Access Client Coding 2006
EPICS Release 3.15 Bob Dalesio May 19, Features for 3.15 Support for large arrays Channel access priorities Portable server replacement of rsrv.
ROCS Web Based Reporting Tool Using SNS Relational Database By Katia Danilova, Ernest L. Williams Jr. Control Systems group, ASD, SNS.
Applications Kay Kasemir ORNL/SNS Using Information and pictures from Matthias Clausen, Jan Hatje, and Helge Rickens (DESY) October 2007.
B. Dalesio, N. Arnold, M. Kraimer, E. Norum, A. Johnson EPICS Collaboration Meeting December 8-10, 2004 Roadmap for IOC.
11 th February 2008Brian Martlew EPICS for MICE Status of the MICE slow control system Brian Martlew STFC, Daresbury Laboratory.
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
Managed by UT-Battelle for the Department of Energy Kay Kasemir Jan Experimental Physics and Industrial Control System.
Control System Overview J. Frederick Bartlett Fermilab June 1,1999.
SNS Control System Slide 1, 4/19/2002 EPICS Interlock Experience Kay-Uwe Kasemir, Los Alamos National Laboratory Presented at the EPICS Collaboration Meeting.
Channel Access Security 2006 O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 2 Channel Access Security  The IOC Application.
EPICS Overview EPICS Training INFN October 13, 2008 Presented by: Andrew Johnson Based on previous versions by Marty Kraimer, Ned Arnold, John Maclean,
An Introduction to Epics/Tango Steve Hunt Alceli EPICS Meeting 2008 INFN Legnaro 15 Oct 17:15.
Allen-Bradley PLC-5 Control With A ‘Soft’ IOC 1 Jim Stevens APS Controls Group Epics Collaboration Meeting May 20, 2015 Rick Putnam APS MOM Group.
Fermilab Control System Jim Patrick - AD/Controls MaRIE Meeting March 9, 2016.
Monitoring Dynamic IOC Installations Using the alive Record Dohn Arms Beamline Controls & Data Acquisition Group Advanced Photon Source.
Using COTS Hardware with EPICS Through LabVIEW – A Status Report EPICS Collaboration Meeting Fall 2011.
Software Architecture of a RadFET Dosimetry System Garth Brown: 20 May 2015.
Getting Started with EPICS A lecture Series
Channel Access Concepts
EPICS: Experimental Physics and Industrial Control System
What is “Control System” or “Framework”?
Channel Access Concepts
OPC UA and EPICS Introduction
Presentation transcript:

EPICS Overview 2006

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 2 What is EPICS?

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 3 History of EPICS  ~1989: Collaboration  LANL Ground Test Accelerator  ANL Advanced Photon Source  Until 2004:  License agreement required  LANL registered >150  Now: 

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 4 "Experimental Physics and Industrial Control System"  Not EPICs nor EPIC's  "Exp. Phys Ind. Ctrl. Sys ….. Toolkit"  Not one program.  Doesn't do anything out of the box.  Can be used in different ways.

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 5 EPICS is a Toolkit, a Framework  … for distributed control systems.  Contents:  See  Open source; free software .. as in beer  and speech.

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 6 Distributed Control System?

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 7 Distributed Control System  Workstations, operator interfaces.  Data processing middle layer, archive, …  Front-end Computers  I/O, PLCs, …  Plant Ethernet ADCs, DACs, Bin I/O Field Bus

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 8 EPICS: Distributed Control System  EPICS Extensions:  EDM, StripTool, ALH,…  Archiver, …  EPICS Base: Input/Output Controller (IOC) Channel Access

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 9 The Logo  "Client/Server"  Channel Access Client Server CA

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 10 EPICS Base: IOC Toolkit  Database  Sequencer  ChannelAccess

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 11 IOC Database  Configuration instead of Coding  'iocCore' software loads and executes 'Records'  Example Assignment:  Read some temperature sensor  Open/close a valve when value is above resp. below some threshold

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 12 The Example in simplified Code Sensor temp = open_device(…); Valve valve = open_device(…); Loop: if (temp.value() > 10) valve.open(); else valve.close(); delay(1.0);

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 13 What we omitted  Error checking  Code comments  Apply some smoothing to the temperature reading to filter noise.  Send current temperature and valve state to network clients (operator display).  Attach a time stamp to the data, so that network clients can see for example when the valve was last opened.  Send warnings if the temperature is close to the threshold, or an alarm when way above.  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?

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 14 This IOC 'Database’ does all that  At first glance, this might look much worse than the code, but…  that was simplified code.  there's no way the full code for the above would fit on one screen.  after learning more about the database (~2 days), this becomes much more readable than somebody else's custom code for the same functionality.

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 15 Some Detail on an EPICS 'Record'  Configuration instead of Programming  "SCAN=1 second" instead of starting periodic thread, delaying until next multiple of 1 second, locking 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, … record(ai, temp) { field(DESC, "Read Temperature") field(SCAN, "1 second") field(DTYP, "XYZ ADC") field(INP, "#C1 S4") field(PREC, "1") field(LINR, "typeJdegC") field(EGUF, "100") field(EGUL, "0") field(EGU, "deg C") field(SMOO, "0.5") field(HIGH, "15") field(HSV, "MAJOR") field(MDEL, "0.1") }

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 16 IOC Database  A single record often handles the scanning, signal conditioning, alarming of a temperature, pressure, or similar analog reading.  Combined with binary and computational records, it can express most of the data flow logic for a front-end computer  Avoiding the pitfalls of real-time, multithreaded and networked programming.  One can have thousands of records in one IOC.  Well suited for systems with high signal counts, like vacuum or water systems with relatively simple logic but many, many sensors and valves.  kHz-rate processing with record chains is doable  Of course limited by CPU. Not 1000nds of kHz rate-records…

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 17 Device Support  Software layer that interfaces records to hardware  EPICS web site lists many existing ones.  Well defined Interfaces allow adaptation of new or custom hardware.

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 18 EPICS Sequencer  Adds state-machine behavior to the IOC program Elevator_Simulation ss Elevator { state floor1 { when (floor2_call) { } state goto2 } state goto2 { …

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 19 EPICS Channel Access  The network protocol used by IOCs and applications to communicate on the network.  Ideally, 'plug and play'  Once you know the ProcessVariable (PV) name.  Don't worry about network addresses, or data type differences between the server and client.

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 20 EPICS Base: IOC Toolkit  Database, Sequencer, ChannelAccess.  Plus: portability libraries  Linux, OS X, Win32, vxWorks, RTEMS, others.  Basis for most of the "extensions"  Technically, sequence is bundled as 'extension'.  Probably the main difference between EPICS and other systems, where the support for front-end computers is often only helper libraries.

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 21 IOC Summary Channel Access LAN Sequencer Device Support I/O Hardware IOC Database

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 22 EPICS: The community  Members:  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, SACLAY in France  Diamond light source in England  KEK-K in Japan, IHEP in China  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.  APS Training sessions produced very nice presentations  About a dozen people contributed  You'll recognize a lot of it in this week's talks.

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 23 Some Other Realities  There is no full-time EPICS development group.  'Base' code managed quite well at APS.  For the rest, most community members have a few smart people who implement what's needed locally, and provide that for free. If that works for you: Great. If not, you can ask for help, but you're basically on your own.  Use of EPICS has grown tremendously  Very good for finding and fixing bugs.  Aided in portability.  … but limits flexibility for fundamental changes, so EPICS database and network protocol basically unchanged since 1990.

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 24 EPICS Vocabulary  EPICS Base  IOC, 'hard' and 'soft'  Database (records)  Driver/Device support  Sequencer (states)  Channel Access (process variables, aka channels)  Extensions  EDM, StripTool, …

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 25 What's next?  In client/server system, you can't use one without the other.  Chicken vs. egg problem.  Plan  Rush through a softIOC setup to have a 'server'.  Look at basic CA clients.  Thoroughly introduce EDM.  Then go back to IOC database.  Continued ping-pong between IOC and client side of EPICS.

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 26 Acknowledgements  Presentation material copied from  Bob Dalesio (LANL)  Martin Pieck (LANL)  Ned Arnold (APS)  Many other APS EPICS Training slides  LiveCD that we'll use throughout the week  Chip Piller, Ernest Williams  Laptops, network, setup  Daryl Murphy, Ernest, Greg Lawson, Shaun Cooper