1 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar.2004. EPICS KEK e - /e + Linac and EPICS CA Servers Kazuro Furukawa,

Slides:



Advertisements
Similar presentations
1 1999/Ph 514: Channel Access Concepts EPICS Channel Access Concepts Bob Dalesio LANL.
Advertisements

EPICS Architecture Version 3 Channel Access Client (CAC) Connection Data Transfers WAN/LAN/Local Connection Data Transfers Channel Access Server (CAS)
Current Status of Virtual Accelerator at J-PARC 3 GeV Rapid Cycling Synchrotron H. Harada*, K. Shigaki (Hiroshima University in Japan), H. Hotchi, F. Noda,
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.
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 1 NSRL Control System Presented by Li, Chuan National Synchrotron Radiation Laboratory.
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.
Pete Owens MICE Controls & Monitoring Workshop 25th September 2006 MICE Control and Monitoring: General Architecture Subsystem Integration User Interface.
K.Furukawa, Apr EPICS at KEKB Injector EPICS-ness at KEKB Injector Kazuro Furukawa, KEK. KEKB Injector and Legacy Controls Network Controllers EPICS.
K.Furukawa, Apr , Super B-factory Workshop SuperKEKB Injector Linac 1 Injector Linac Kazuro Furukawa, for e – /e + Linac Group Present Status Upgrade.
Elder Matias CLS Control System Recent Upgrades. Major Changes Synchrotron Upgrade New Isotope Production Linac EPICS Software –Python EDM –Aquaman –ScienceStudio.
EPICS on TPS RF System Yu-Hang Lin Radio Frequency Group NSRRC.
Agenda Adaptation of existing open-source control systems from compact accelerators to large scale facilities.
Experimental Physics and Industrial Control System (EPICS) Overview Bob Dalesio, Dec, 2002.
Kazuro Furukawa, KEK, Oct EPICS Collaboration Meeting / BNL KEK and SuperKEKB 1 Recent progress at KEK and Plans for SuperKEKB Kazuro Furukawa for.
JCE A Java-based Commissioning Environment tool Hiroyuki Sako, JAEA Hiroshi Ikeda, Visible Information Center Inc. SAD Workshop.
BPM DAQ for KEK Linac EPICS IOC using WindowsXP-based Oscilloscope for BPM DAQ System in KEK e-/e+ Linac Masanori Satoh (KEK Linac) June 13-16, 2011 EPICS.
1 Progress of the Controls for BEPCII EPICS Seminar Presented by J. Zhao 20 August, 2002.
K.Furukawa, Feb Controls Activity at KEK Controls Activities at KEK Issues for ILC Kazuro Furukawa, KEK.
Ralph Lange: OPC Gateway (Device Support) OPC Gateway (Device Support) Ralph Lange – EPICS Collaboration Meeting March SSRF.
Experimental Physics and Industrial Control System (EPICS) Overview Bob Dalesio, June 24, 2001.
EPICS at APS in June.2006, n.kami, KEK J-PARC Status N. Kamikubota, KEK and J-PARC Control members * Try to enhance updates in the last 1 year.
SNS Integrated Control System EPICS Recent Applications and Future Directions Bob Dalesio June 12, 2001.
BLU-ICE and the Distributed Control System Constraints for Software Development Strategies Timothy M. McPhillips Stanford Synchrotron Radiation Laboratory.
Dec 8-10, 2004EPICS Collaboration Meeting – Tokai, Japan MicroIOC: A Simple Robust Platform for Integrating Devices Mark Pleško
Virtual Accelerator at J-PARC 3 GeV Rapid Cycling Synchrotron H. Harada*, K. Shigaki (Hiroshima University in Japan), H. Hotchi, F. Noda, H. Sako, H. Suzuki,
ATCA based LLRF system design review DESY Control servers for ATCA based LLRF system Piotr Pucyk - DESY, Warsaw University of Technology Jaroslaw.
Status of EPICS at KEK Tatsuro NAKAMURA KEK Jun
1 Channel Access Concepts – EPICS Training – K.Furukawa – Mar EPICS Channel Access Concepts Kazuro Furukawa, KEK, ( ) (Bob Dalesio, LANL,
K.Furukawa, Apr EPICS at KEKB Injector EPICS-ness at KEKB Injector Kazuro Furukawa, KEK. KEKB Injector and Legacy Controls Network Controllers EPICS.
ATF Control System and Interface to sub-systems Nobuhiro Terunuma, KEK 21/Nov/2007.
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.
EPICS Collaboration Meeting, Dec.2004, Tokai, by N.Kamikubota, KEK miniEPICS N.Kamikubota, J.Odagiri, G.Shen, N.Yamamoto, K.Furukawa and T.Katoh KEK.
K.Furukawa, Nov Database and Simulation Codes 1 Simple thoughts Around Information Repository and Around Simulation Codes K. Furukawa, KEK Nov.
Kazuro Furukawa, KEK, Jul KEK Linac Operation and Stability Linac Mini-Workshop 2006, IHEP, Beijing 1 KEK Linac Operation (Some Experiences) Kazuro.
March 2008EPICS Meeting in Shanghai1 KEKB Control System Status Mar Tatsuro NAKAMURA KEKB Control Group, KEK.
Experience of Developing BEPCII Control System Jijiu ZHAO IHEP, Beijing ICALEPCS2007 October 18, 2007.
Kazuro Furukawa, KEK, Jan Accelerator Controls at KEK EPICS Workshop 2009, RRCAT, India 1 Event System at KEK Kazuro Furukawa, KEK KEKB and Linac.
1 KEKB Archiving Dec Tatsuro KEK.
The recent history and current state of the linac control system Tom Himel Dec 1,
ICALEPCS 2007 The Evolution of the Elettra Control System The evolution of the Elettra Control Sytem C. Scafuri, L. Pivetta.
A Remote Collaboration Environment for Protein Crystallography HEPiX-HEPNT Conference, 8 Oct 1999 Nicholas Sauter, Stanford Synchrotron Radiation Laboratory.
Kazuro Furukawa, KEK, Jan Accelerator Controls at KEK EPICS Workshop 2009, RRCAT, India 1 Accelerator Controls at KEK Mainly KEKB and Linac Evolution.
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.
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
Control System Overview J. Frederick Bartlett Fermilab June 1,1999.
Project X RD&D Plan Controls Jim Patrick AAC Meeting February 3, 2009.
4. Operations and Performance M. Lonza, D. Bulfone, V. Forchi’, G. Gaio, L. Pivetta, Sincrotrone Trieste, Trieste, Italy A Fast Orbit Feedback for the.
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.
Fermilab Control System Jim Patrick - AD/Controls MaRIE Meeting March 9, 2016.
Redundancy in the Control System of DESY’s Cryogenic Facility. M. Bieler, M. Clausen, J. Penning, B. Schoeneburg, DESY ARW 2013, Melbourne,
Control System Tools for Beam Commissioning Timo Korhonen Controls Division Chief Engineer April 8, 2014.
LCLS Commissioning & Operations High Level Software
Operations Machine Simulator.
ATF/ATF2 Control System
Chapter 3: Windows7 Part 4.
LCLS Commissioning & Operations High Level Software
Experimental Physics and Industrial Control System (EPICS) Overview
Fill-pattern Control System for KEKB
< kek.jp > Measurement and Data Acquisition for Accelerator Controls at KEK (Beam Position Monitor at Linac) Kazuro Furukawa < kazuro.
LAL meeting on e+ studies, Oct. 2010
High Level applications development status
Channel Access Concepts
EPICS: Experimental Physics and Industrial Control System
EPICS status and future at KEK Control Group / Commissioning Group e-/e+ Injector Linac, KEK, Japan Masanori Satoh.
Channel Access Concepts
Presentation transcript:

1 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS KEK e - /e + Linac and EPICS CA Servers Kazuro Furukawa, KEK

2 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Control Systems at KEK

3 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Control Systems at KEK u 12GeV Proton Synchrotron (PS): Hardwire + Mini- computers u 2.5GeV Electron Linac (Linac): 8 Mini-computers + >200 Micro-computers, Optical Networks u Photon Factory (PF): Mini-computers -- Workstations u TRISTAN ~33GeV: ~20 Mini-computers, CAMAC + NODAL Interpreter u Upgraded PS: VME/VersaDOS + MAP u Upgraded Linac: Unix servers, VME, PLC, CAMAC + TCP/IP + Home-grown RPC, Tcl/Tk, Gateway to EPICS u ATF: VMS, CAMAC + V-System (Vista) u KEKB: VME, CAMAC, VXI + EPICS u PF-AR: the Same architecture as KEKB

4 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Linac u 8GeV Electron + 3.5GeV Positron for KEKB u 2.5GeV Electron for PF u 3.0GeV Electron for PF-AR u 600m Linac with 59 S-band rf Stations with SLED u Double Sub-Harmonic Bunchers for 10ps & 10nC u 2-bunch in a Pulse and Continuous (Top-up) Injection

5 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS KEKB Commissioning Groups u Formation of Commissioning Group (KCG) u Linac Commissioning (LCG) u 7 from Linac u ~10 from Ring u KEKB Ring Commissioning Group (KCG) u All LCG u ~20 from Ring u Several from Detector (BCG) u Commissioning software base was formed during Linac Commissioning (1997~) Tcl/Tk, SAD/Tk, Python/Tk LinacKEKB Ring KEKB Commissioning Group Linac Commissioning Group

6 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS SADscript u Mathematica-like Language u Fast because of no Symbolic Manipulation u EPICS CA (Synchronous and Asynchronous) CaRead/CaWrite[ ], CaMonitor[ ], etc. u Oracle Database u Tk Widget u Canvas Draw and Plot u KBFrame on top of Tk u Data manipulation (Fit, non-linear fit, FFT, …) u Inter-Process Communication (Exec, Pipe) System[ ], OpenRead/Write[ ], BidirectionalPipe[ ], etc. u Can display Greek Letter u Used in many KEKB Ring/Linac applications which does not need Accelerator knowledge

7 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS SADscript u Example FFS; w=KBMainFrame["w1",fm,Title->"t1"]; $DisplayFunction=CanvasDrawer; W1=Frame[fm]; c1=Canvas[w1,Width->600,Height->400, Side->"top"]; Canvas$Widget=c1; data = {{0,0}, {1,1}, {2,5}, {3,8}, {4,10}, {5,7}, {6,4}, {7,2}, {8,0}, {9,2}} fit = FitPlot[data,a Sin[x b + c] + d, x, {a,5},{b,1},{c,1},{d,5}, FrameLabel->{"X","Y"}]; phase = StringJoin["Phase : ", (c/.fit[[1]]) 180/Pi, " Deg."]; f1=KBFComponentFrame[w1,Add->{KBFText[Text->phase]}]; TkWait[]; Exit[];

8 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Performance of KEKB u Staffs in Linac are always Interested in performances in KEKB/Belle Here is the KEKB daily Performance Page updated Every minute

9 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Linac Controls u KEKB = Factory Machine => Stable Operation u Controls should be Robust and Flexible u ~1000 devices and ~10000 signals u Frequent Beam Mode Switches; Four very Different Beam Modes, times/day u Precise Controls of Beam Parameters, Energy, Orbit, Emittance, Charge, Energy spread, Timing, etc.

10 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS History and Design Concept u History u : Construction of First Computer-controlled System with 8 mini-computers, >200 micro-computers, >30 optical loop networks u : Design of the next system u : Installation and expansion for KEKB u Design Concept u Use of International and/or de-facto Standards u Use of Optical IP Networks for every Device controllers u No new field Networks, only IP Network (inherited by J-PARC) u Both of above should make future upgrade easier u (EPICS was not available widely at that time)

11 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Physical Structure u Multi-tier, Multi-hardware, Multi-client, …

12 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Computers and Networks Redundant Cluster Server And Independent Backup And Many Clients All Optical IP Networks Main parts are Redundant

13 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Multi-tier Logical Structure

14 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Software Architecture u Base control software structure for Multi-platform u any Unix, OS9, LynxOS (Realtime), VMS, DOS, Windows, MacOS u TCP - UDP General Communication Library u Shared-Memory, Semaphore Library u Simple How-grown RPC (Remote Procedure Call) Library u Memory-resident Hash Database Library u Control Server software u Lower-layer servers (UDP-RPC) for control hardware u Upper-layer server (TCP-RPC) for accelerator equipment u Works redundantly on multiple servers u Client Applications u Established applications in C language with RPC u Many of the beam operation software in scripting language, u Tcl/Tk and SADscript/Tk

15 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Recent Development u Application software for Two-bunch in a Pulse u Application software for Continuous Injection u C-band Acceleration Project (for future SuperKEKB) u More PLC adaptation, mainly by hardware groups u Many slow feedback loops, including energy spread u Slow Positron Facility inside Linac (60MeV e-) u Intel-Linux-VME with Linac software and EPICS IOCcore u CC/Net (embeded Linux CAMAC CC) to replace Hytec u Evaluation of fast Waveform Digitizers u Especially for 50Hz data acquisition u Network connected RAS module, etc. u Upgrade of EPICS gateway

16 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS

17 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Future Development u Linac Beam Measurement and Quality Control u Beam Measurement Between Injections —> During Continuous Injection u Stealth Bunch Measurement Possibility Between Injection Bunches Fast Kicker, To Prevent Dirty Beam Injection Fast Actuator Installation ex. Fast Phase Shifter is under Development Synchronous Data Acquisition Improvement Timing System Modification u Fast (50Hz) Data Acquisition Under Development for BPM with Fast Digitizer Need to Measure Dual Bunch Simultaneously u Need More Beam Quality Control More Precise Optics Control, etc

18 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Why EPICS u We made too much effort on duplicate development on many control systems u Our goal is to achieve high performance in the accelerator and the physics experiments u Reuse of available resources is preferable u Devices in Linac have been modernized, and development of EPICS device supports became possible u Anyway we need interface to down-stream accelerators esp. KEKB u Want to merge several archive formants in Linac u May expect (?) man-power from other groups u May contribute to world-wide EPICS collaboration

19 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Channel Access Client (CAC) Connection Data Transfers WAN/LAN/Local Connection Data Transfers Channel Access Server (CAS) DB Engine Device Support Driver Support Generic Data Descriptor Channel Access Client Active X Labview / Excel.. Access Lib Any Data Store I/O ControllerGatewayPortable CASPCAS - Windows Archiving Archive Access Archive ViewingArchive Analysis User Tools DM/MEDM/DM2K/EDM/JDM Alarm Handler / stripTool/ knobManager Connection Data Transfers Portable Channel Access Server (CAS) Types Connection Server Program Interfaces C, C++, Fortran, JAVA IDL / Matlab / Mathematica ActiveX / DDE / VisBasic SDDS / SAD / tcl / PERL / Python State Notation Lang / FSQT EPICS Provides Interfaces at All Levels

20 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Building EPICS Gateway u Common Control System at the Top (of Linac and Ring) u Needs too much resources u Port EPICS onto our VME/OS9-LynxOS u Failed to get support/budget for LynxOS at Linac u EPICS Maintenance with an unsupported Platform ? u Special Gateway Software, which interfaces to both the Linac Controls and EPICS IOCs as a Client u Built to ensure the feasibility at 1995 u Portable Channel Access Server u Implemented with 3.12 and used on HP-UX since 1996 u Software IOC u Being used and extended on Linux since 2003

21 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Use of Existing EPICS IOC (Gateway IOC) u Software availability u Portable Channel Access Server was not available at around 1995 u Channel Access Server Emulation with Available Software Components u New gateway software which is clients to the both Linac and EPICS, and group of EPICS soft records u Tested for Magnet Controls u MEDM panels were written Gateway

22 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Portable Channel Access Server (PCAS) u Protocol Conversion u Client to Linac Controls with Home-grown RPC and Cache Memory, Interface to Upper-level Servers not directly to Lower- level Hardware Servers u Server to EPICS environment, with some Name wrapping u Implemented for Linac in u for Magnets, RF, Beam Instrumentations u >4100 Records are available u Write-access Possible, normally Read-only u Still used for Unified Alarm, Operation Status, etc. CA Server

23 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Soft IOC u IOCcore is available on Unix in EPICS 3.14 u We have Tru64unix, Linux, HP-UX u Simple u IOCcore hides the complexity of Channel Access, etc u We design the device support to Upper-level Linac Servers, as we access to hardware in normal IOC u All standard EPICS facilities are available u Alarms, Operation Limits, Links, Periodic processing, Monitors, etc. u Implemented for Linac on Linux in 2003 u For RF, Beam Instrumentation, Vacuum, etc. u >2200 Records are available and extending u All the records are archived in Channel Archiver u and to KBlog in the near future, to analyze correlations Linac/Ring u Developing Java viewer of the archive

24 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS General Comparisons u Symmetry u Gateway IOC is Symmetric between outside and inside of EPICS u Accessing from/to EPICS goes thru the same Gateway u Others are asymmetric u Name Resolution u PCAS can resolve names dynamically (at run-time) u Consumes less memory u SoftIOC has to prepare database statically u May be expected to give better response u Can be impossible for a large instalations u Database processing and associate fields u SoftIOC provides EPICS database Facilities like Limits, Alarms, Links, etc. u If we archive them, Archive Deadband is most necessary u Implementation of Gateway u SoftIOC is relatively straight forward u Simply adding device supports

25 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Application software u All the records from the Linac Soft IOC are archived in Channel Archiver u and to KBlog in the near future, to analyze correlations between Linac/Ring u Developing Java viewer of the archive u KEKB Alarm is connected to Linac PCAS u May migrate to Linac SoftIOC at Summer Shutdown (Linac PCAS is currently based on EPICS 3.12) u Some other applications utilize PCAS as well u (Many others access Linac Controls directly now) u Small number of Records are going thru Gateway IOC, historically

26 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS KEKB Alarm Panel u Below is the KEKB Alarm Main Panel, which covers Linac Alarms as well. Detailed alarm information/history is available in a separate panel Linac Ring

27 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Beam Optics Panels in SAD u Beam Optics Matching and Optimization Panels in SADscript u Some Parameters goes thru EPICS Gateways, others directly to Linac

28 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Archiver Panel

29 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Java Viewer Development

30 KEK e-/e+ Linac and EPICS Channel Access Servers – EPICS Training – K.Furukawa – Mar EPICS Summary u There can be many signals outside of EPICS; In our case, Whole system was outside of EPICS u EPICS provides several facilities to implement gateways for EPICS services u At KEK Linac several implementations were built in the past, and merging towards Soft IOC for now, which may cover ~10k records per Soft IOC u Large installation prefers to utilize PCAS u Small installation may satisfy with Gateway IOC u of course depending on the environment u Expected to extend the flexibility of the System