EPICS Experience at Fermilab Geoff Savage August 2005 Controls and Monitoring Group.

Slides:



Advertisements
Similar presentations
Network II.5 simulator ..
Advertisements

SNS Integrated Control System SNS RDB Requirements, wish list, status A little history l Oracle RDB used exclusively by accelerator physics group l JERI.
1 1999/Ph 514: Channel Access Concepts EPICS Channel Access Concepts Bob Dalesio LANL.
SciFi Tracker DAQ M. Yoshida (Osaka Univ.) MICE meeting at LBNL 10.Feb.2005 DAQ system for KEK test beam Hardware Software Processes Architecture SciFi.
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.
Tracker Controls MICE Controls and Monitoring Workshop September 25, 2005 A. Bross.
VC Sept 2005Jean-Sébastien Graulich Report on DAQ Workshop Jean-Sebastien Graulich, Univ. Genève o Introduction o Monitoring and Control o Detector DAQ.
Brian Martlew 25 th Sept 2006 MICE Control & Monitoring Plan Brian Martlew.
R. Lange, M. Giacchini: Monitoring a Control System Using Nagios Monitoring a Control System Using Nagios Ralph Lange, BESSY – Mauro Giacchini, LNL.
Agenda Adaptation of existing open-source control systems from compact accelerators to large scale facilities.
NETWORK CENTRIC COMPUTING (With included EMBEDDED SYSTEMS)
Input/Output Controller (IOC) Overview Andrew Johnson Computer Scientist, AES Controls Group.
SNS Integrated Control System EPICS IOCs – Relational DB Connectivity Bridge A. Liyu, A. Zhukov.
Imperial College Tracker Slow Control & Monitoring.
SCADA. 3-Oct-15 Contents.. Introduction Hardware Architecture Software Architecture Functionality Conclusion References.
Operated by Los Alamos National Security, LLC for NNSA U N C L A S S I F I E D LDAQ – the New Lujan Center Data Acquisition Application Frans Trouw, Gary.
IMPLEMENTATION OF SOFTWARE INPUT OUTPUT CONTROLLERS FOR THE STAR EXPERIMENT J. M. Burns, M. Cherney*, J. Fujita* Creighton University, Department of Physics,
1 Monitor System Reliability alarm on demand, sag/surge, and etc. Perform Advanced Power Quality Analysis provide real-time trending. Centralized.
TANGO on embedded devices: the Bimorph Mirror application case Fulvio Billè Roberto Borghes, Roberto Pugliese, Lawrence Iviani Instrumentation & Measurement.
BLU-ICE and the Distributed Control System Constraints for Software Development Strategies Timothy M. McPhillips Stanford Synchrotron Radiation Laboratory.
Syzygy Design overview Distributed Scene Graph Master/slave application framework I/O Device Integration using Syzygy Scaling down: simulators and other.
ATCA based LLRF system design review DESY Control servers for ATCA based LLRF system Piotr Pucyk - DESY, Warsaw University of Technology Jaroslaw.
Online Calibration of the D0 Vertex Detector Initialization Procedure and Database Usage Harald Fox D0 Experiment Northwestern University.
Review of Daresbury Workshop MICE DAQ Workshop Fermilab February 10, 2006 A. Bross.
1 Online Calibration of Calorimeter Mrinmoy Bhattacharjee SUNY, Stony Brook Thanks to: D. Schamberger, L. Groer, U. Bassler, B. Olivier, M. Thioye Institutions:
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.
EEDEED Tuesday, May 18, VBA & Process Variables  System Overview  Setup (What installations are needed)  What are Process Variables and what.
ALICE, ATLAS, CMS & LHCb joint workshop on
March 2008EPICS Meeting in Shanghai1 KEKB Control System Status Mar Tatsuro NAKAMURA KEKB Control Group, KEK.
V.Sirotenko, July Status of Online Databases Currently there are 2 online Oracle Databases running on d0online cluster: 1.Production DB, d0onprd,
Eugenia Hatziangeli Beams Department Controls Group CERN, Accelerators and Technology Sector E.Hatziangeli - CERN-Greece Industry day, Athens 31st March.
ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.
Writing a Channel Access Client in EPICS Bob Dalesio, April 5, 2000.
Online Software 8-July-98 Commissioning Working Group DØ Workshop S. Fuess Objective: Define for you, the customers of the Online system, the products.
Writing a Channel Access Client in EPICS Bob Dalesio, April 5, 2000.
June, 2000NIU Workshop Online DAQ System: From Detector to Tape T. Yasuda Fermilab.
Managed by UT-Battelle for the Department of Energy CSS Update Matthias Clausen, Helge Rickens, Jan Hatje and DESY Delphy Armstrong, Xihui Chen,
FLASH Free Electron Laser in Hamburg Status of the FLASH Free Electron Laser Control System Kay Rehlich DESY Content: Introduction Architecture Future.
Fast Fault Finder A Machine Protection Component.
FOPI – Slow Control Content 1.FOPI experiment - Overview 2.GUIs for FOPI 3.System Design.
DØ Online16-April-1999S. Fuess Online Computing Status DØ Collaboration Meeting 16-April-1999 Stu Fuess.
Control System Overview J. Frederick Bartlett Fermilab June 1,1999.
All Experimenters MeetingDmitri Denisov Week of July 7 to July 15 Summary  Delivered luminosity and operating efficiency u Delivered: 1.4pb -1 u Recorded:
1. LabVIEW and EPICS Workshop EPICS Collaboration Meeting Fall 2011.
Controls & Monitoring Overview J. Leaver 03/06/2009.
The DØ Control System J. Frederick Bartlett For The DØ Controls Group.
Source Controller software Ianos Schmidt The University of Iowa.
DØ Online Workshop3-June-1999S. Fuess Online Computing Overview DØ Online Workshop 3-June-1999 Stu Fuess.
DoE Review January 1998 Online System WBS 1.5  One-page review  Accomplishments  System description  Progress  Status  Goals Outline Stu Fuess.
Connecting LabVIEW to EPICS network
TDAQ Experience in the BNL Liquid Argon Calorimeter Test Facility Denis Oliveira Damazio (BNL), George Redlinger (BNL).
SPI NIGHTLIES Alex Hodgkins. SPI nightlies  Build and test various software projects each night  Provide a nightlies summary page that displays all.
1 Channel Access Concepts – IHEP EPICS Training – K.F – Aug EPICS Channel Access Concepts Kazuro Furukawa, KEK (Bob Dalesio, LANL)
D0 PMG February 15, 2001 PMG Agenda February 15, 2001  Overview (Weerts) u Detector status u Reportable milestones u Summary  Operations Organization.
EPICS and LabVIEW Tony Vento, National Instruments
The DCS Databases Peter Chochula. 31/05/2005Peter Chochula 2 Outline PVSS basics (boring topic but useful if one wants to understand the DCS data flow)
Control System Overview J. Frederick Bartlett Fermilab June 1,1999.
MARCO control system Munich Lukasz Zwalinski – PH/DT Maciej Ostrega – PH/DT.
Industrial Control Engineering Session 1 Introduction  What is RADE  Technology  Palette  Tools  Template  Combined Example  How to get RADE 
An Introduction to Epics/Tango Steve Hunt Alceli EPICS Meeting 2008 INFN Legnaro 15 Oct 17:15.
Online Software November 10, 2009 Infrastructure Overview Luciano Orsini, Roland Moser Invited Talk at SuperB ETD-Online Status Review.
FLASH Free Electron Laser in Hamburg Status of the FLASH Free Electron Laser Control System Kay Rehlich DESY Outline: Introduction Architecture Future.
Wednesday NI Vision Sessions
Fermilab Control System Jim Patrick - AD/Controls MaRIE Meeting March 9, 2016.
Using COTS Hardware with EPICS Through LabVIEW – A Status Report EPICS Collaboration Meeting Fall 2011.
Fermilab Scientific Computing Division Fermi National Accelerator Laboratory, Batavia, Illinois, USA. Off-the-Shelf Hardware and Software DAQ Performance.
Channel Access Concepts
EPICS: Experimental Physics and Industrial Control System
Channel Access Concepts
Presentation transcript:

EPICS Experience at Fermilab Geoff Savage August 2005 Controls and Monitoring Group

31 Aug 2005MICE DAQ and Controls Workshop2 Outline  Fermilab and DØ  What is EPICS?  EPICS at DØ - RunIIa  EPICS at DØ – RunIIb  EPICS and the CFT  EPICS at Fermilab  EPICS lessons

31 Aug 2005MICE DAQ and Controls Workshop3 Main Injector & Recycler Tevatron Chicago   p source Booster pp p p pp 1.96 TeV CDF DØ Fermilab

31 Aug 2005MICE DAQ and Controls Workshop4 DØ Detector Scintillating Fibers Liquid Argon/Uranium Calorimeter Central Muon Layer A Silicon Tracker Superconducting Solenoid Central Muon Layer B Central Muon Layer C Forward Muon Layer C Muon Toroid

31 Aug 2005MICE DAQ and Controls Workshop5 What is EPICS?  Experimental Physics and Industrial Control System Collaboration Control System Architecture Software Toolkit  Integrated set of software building blocks for implementing a distributed control system 

31 Aug 2005MICE DAQ and Controls Workshop6 Why EPICS?  Availability of device interfaces that match or are similar to our hardware  Ease with which the system can be extended to include our experiment-specific devices  Existence of a large and enthusiastic user community that understands our problems and are willing to offer advice and guidance.

31 Aug 2005MICE DAQ and Controls Workshop7 EPICS Architecture Input Output Controller (IOC) Operator Interface (OPI) Local Area Network (LAN) OPI – a workstation running EPICS tools. Operating Systems: Linux and Windows XP. IOC – platform supporting EPICS run-time database. Example: VME based PPC processor running vxWorks, Linux workstation. LAN – communication path for Channel Access (CA), the EPICS communication protocol.

31 Aug 2005MICE DAQ and Controls Workshop8 IOC Architecture

31 Aug 2005MICE DAQ and Controls Workshop9 IOC Database  Collection of records  Each record represents a system parameter (process variable, PV) Unique name Set of attributes Attributes and value can be modified  Records must process to do something An input record can read a value every 10 seconds A CA write to an output record causes the record to process Either input or output, not both

31 Aug 2005MICE DAQ and Controls Workshop10 EPICS Records  Input Analog In (AI) Binary In (BI) String In (SI)  Algorithm/control Calculation (CALC) Subroutine (SUB)  Output Analog Out (AO) Binary Out (BO)  Custom – only needed when existing record types or a collection of existing record types are inadequate

31 Aug 2005MICE DAQ and Controls Workshop11 Channel Access IOC (CA Server) LAN EPICS Tool (CA Client) One client can connect to many servers. A channel connects to the value or an attribute of a PV. Each channel has a unique name = record name + attribute. CA Services: Search – find a channel by name Get – retrieve a channel value Put – modify a channel value Add monitor – notification of state change

31 Aug 2005MICE DAQ and Controls Workshop12 EPICS at DØ - RunIIa  Support for new devices and additional field busses  Centralized database with supporting tools for defining the control system configuration  Report EPICS alarms to our global event reporting system  Interface to the Python programming language used to develop host tools for downloading and monitoring  Detector configuration management - COMICS  Archiving  Gateways

31 Aug 2005MICE DAQ and Controls Workshop13 MIL-STD-1553B Bus  Restricted detector access while running  Provides a robust and highly reliable connection to electronics in the remote collision hall  Developed a queuing driver, device support, and a generic record  12 IOCs with ~ busses from the counting house to the detector and ~10 busses within the counting house

31 Aug 2005MICE DAQ and Controls Workshop14 DØ Specific Records  SVX sequencer - configures and controls the ADCs in the tracking detectors  High voltage Implemented using a state machine model Linear ramping with retries Trip condition recovery Limits control  Rack monitor - Generic I/O module 64 A/D inputs, 4 D/A output, 4 16-bit I/O words  MIL-1553 – debugging/testing on a 1553 bus

31 Aug 2005MICE DAQ and Controls Workshop15 DØ Specific Device Support  Access hardware registers across the MIL-1553 bus and VME backplane using standard EPICS records – long input, long output, …  Support for DZERO specific records Bira 4877 power supplies SVX sequencers Rack monitor  Complex MIL-1553 bus transactions Dual port memory on the AFE boards Write the address to access followed by a read or write of the data

31 Aug 2005MICE DAQ and Controls Workshop16 Describe a Device with Records Template File Generator File EPICS Database EPICS tool Multiple record definitions with substitution parameters This defines a device. Define instances of a template. Assign values to the substitution parameters in the template file. Database Load ASCII file Instances of records read by IOC to create record database.

31 Aug 2005MICE DAQ and Controls Workshop17 Centralized Database System Oracle Hardware Database Template File DB Creation EPICS Database Record Extract Generator File EPICS Database IOC Id Template Extract Generator File Instance Creation Python Scripts Web Access

31 Aug 2005MICE DAQ and Controls Workshop18 PV Naming Convention  [subdet]_ _ / [:io][. field] - Required detector system  CTL, SMT, CFT, CPS, CAL, FPS, ICD, MUO [subdet] - Optional subdetector  North, South, East, West, Forward, Test - Required Device Type  ADC, BLS, HV, PLS, CETEC,... - Required Location indicator  For example a crate number: M201, PC03, F313 - Required device attribute  PEDS, MODE, SFM, CTEC, HEAD, VER,... [:io] - Optional Input/Output designation Direction is from the viewpoint of the front end crate [.field] - Optional Epics field name, default is.VAL  Example: CTL_LV_M201/P5V

31 Aug 2005MICE DAQ and Controls Workshop19 Global Event Reporting  Collect and distribute significant events from detector and DAQ Run control Alarms - data corruption  Added a connection to EPICS Allows for notification of all EPICS alarms Otherwise a user must register an event  Significant Event System (SES)

31 Aug 2005MICE DAQ and Controls Workshop20 SES Server Front Ends Host Apps SE Logger Alarm Watcher Alarm Display COOR L1 L2 L3 Collector /Router Data Logger Disk SE Log File Guidance Files Message Key: SE = Significant Event FIL = Filter configuration RC = Run Control FM = Filtered SE Message = Filter FIL FM RC SE

31 Aug 2005MICE DAQ and Controls Workshop21 Alarm Display

31 Aug 2005MICE DAQ and Controls Workshop22 Python Interface  “Python is an interpreted, interactive, object- oriented programming language.”  A Python interface to Channel Access (C library) has been developed and extended to be almost object oriented  Tkinter and Python Mega Widgets used to develop graphical user interfaces (GUI)  Developed a GUI framework to speed development time and provide a consistent look and feel

31 Aug 2005MICE DAQ and Controls Workshop23 Left click each tab to move between displays. Look for status information. IOC Resource Monitor Display Processor name. Each box is a PV

31 Aug 2005MICE DAQ and Controls Workshop24

31 Aug 2005MICE DAQ and Controls Workshop25 Detector Configuration Management  The COMICS server manages the configuration of the detector  Receives load requests from: Run control Expert GUIs Program APIs  Load map is a directed graph (tree) Tree node (intermediate)  Establishes a layered hierarchy  Establishes an execution order Action node (leaf)  Issues EPICS CA requests

31 Aug 2005MICE DAQ and Controls Workshop26 Configuration Management Tree Intermediate Tree Node CFTSMTCALMUO DEV2DEV3 S0 S2 S1 DEV0DEV1 T0 Root Node Configuration Data Action Node Uses EPICS Channel Access Links determine the order of execution DØ

31 Aug 2005MICE DAQ and Controls Workshop27 Comics Expert GUI

31 Aug 2005MICE DAQ and Controls Workshop28 Archiving Data  Maintain a history of PV values  Channel Archiver – EPICS tool Fast sampling rates Immediate analysis Infrequent access to old historical data Large files Stored to tape once a week  EPICS/Oracle Archiver - DØ Long-term studies Slow sampling rates Easy access to data at any moment Minimal maintenance Data stored directly in an Oracle database

31 Aug 2005MICE DAQ and Controls Workshop29 Gateways  Accelerator Gateway link to ACNET system Bidirectional Data access only (no control)  Cryogenics and Gas systems Gateway link to DMACS system Portable Channel Access Server – EPICS tool Read-only Data access only (no control)

31 Aug 2005MICE DAQ and Controls Workshop30 ACNET Gateway xmlrpc Server ToACNET FromACNET ToFromITC ToEPICS FromEPICS CACHECACHE REMOTEREMOTE EXPORTEXPORT xmlrpc ITC CLIENTS CA EPICS RECORDS CLIENTS xmlrpc CLIENTS D0BD

31 Aug 2005MICE DAQ and Controls Workshop31 EPICS at DØ - RunIIb  CanBus driver for EPICS Weiner power supplies  Ethernet driver for EPICS Gigabit Ethernet communication Raw Ethernet protocol  Both use support from asynDriver – EPICS tool Asynchronous Driver Support “asynDriver is a general purpose facility for interfacing device specific code to low level communication drivers.” “A primary target for asynDriver is EPICS IOC device support but, other than using libCom, it is independent of EPICS.”  Framework reduces development time.

31 Aug 2005MICE DAQ and Controls Workshop32 Support for CFT  Device support for the AFE board using the MIL-1553 driver  AFE and AFE power supply templates  Record and device support for the SVX sequencers  Expert GUI for downloading Does not use COMICS  Calibration software Runs on processor in VRB crate Communicates with AFE

31 Aug 2005MICE DAQ and Controls Workshop33 Analog Front End Fiber Wave guide Cryostat VLPC Analog Front End Stereo Board Cassette MIL-1553 Communication

31 Aug 2005MICE DAQ and Controls Workshop34 SVX Sequencer AFE VBDVBD VRBVRB VRBCVRBC ProcessorProcessor SequencerSequencer SequencerSequencer SequencerSequencer SequencerSequencer Level 3 VME MIL-1553 Communication Calibration Software

31 Aug 2005MICE DAQ and Controls Workshop35 EPICS at Fermilab  SMTF Superconducting module test facility Cavity test in October DOOCS for LLRF – speaks CA EPICS for everything else No ACNET – beams division controls system  ILC Control system to be decided Management structure now forming

31 Aug 2005MICE DAQ and Controls Workshop36 EPICS Lessons  Three Layers Tools  EPICS tools  OPI development - CA library Applications  Build base  Build application - combine existing pieces  Develop device templates Development  Records, device, and driver support  EPICS is not simple to use Need expertise in each layer Support is an away  IOC operating system selection

31 Aug 2005MICE DAQ and Controls Workshop37 The End