EPICS Collaboration Meeting Fall PAL October 22 ~ 26, 2012 LCLS-I/LCLS-II Timing System Low Level Kukhee Kim for LCLS Timing Team ICD Software,

Slides:



Advertisements
Similar presentations
01/11/2002SNS Software Final Design Review1 V123S Event Link Encoder, Transmission System and PLL Receiver Thomas M. Kerner (BNL) SNS Global Controls.
Advertisements

Stephanie Allison LCLS Event System 14 June LCLS Event System Outline HW Block Diagram Timing Requirements Time Lines EVG.
LCLS Control System Overview Mike Zelazny SLAC ICD Software Department Accelerator Directorate.
Wir schaffen Wissen – heute für morgen Babak Kalantari, PSI MRF workshop, Prague, Eli Beamlines Paul Scherrer Institut SwissFEL Timing System.
Dirk Zimoch, EPICS Collaboration Meeting, Vancouver 2009 Real-Time Data Transfer using the Timing System (Original slides and driver code by Babak Kalantari)
Dayle Kotturi and Stephanie Allison Facility Advisory Committee Meeting April 20-21,
Stephanie Allison/John Dusatko EPICS Collaboration Meeting May 1, Timing and Event System for the LCLS Electron Accelerator*
Stephanie Allison Integration with the SLC Control April 7, 2005 Introduction PNET Receiver VME Module SLC-Aware IOC Existing.
Stephanie Allison Facility Advisory Committee Meeting Apr 16, 2007 Timing and Event System S. Allison, M. Browne, B. Dalesio, J.
Stephanie Allison LCLS Integration with SLC October 12, 2004 Integration with SLC LCLS Facility Advisory Committee Oct 12, 2004 Introduction.
Stephanie Allison Integration with the SLC Control Oct 27, Introduction Demo SLC-Aware IOC Plans for Next 12 Months.
Dayle Kotturi Facility Advisory Committee Meeting October 12, 2004 Injector/Linac Controls An overview of the status of each of.
Dayle Kotturi SLC April 29, 2004 Outline Motivation Key Components Status Update SLC / EPICS Timing Software Tasks Hardware.
Patrick Krejcik LCLS November 11-12, 2008 SLAC National Accelerator Laboratory 1 Post-commissioning Controls Enhancements.
The TIMING System … …as used in the PS accelerators.
EPICS Collaboration Meeting Fall PAL October 22 ~ 26, 2012 Real-Time Performance Issues for linux/linuxRT Kukhee Kim ICD Software, SLAC National.
LCLS-II Linac LLRF Control System – L1, BC1 Zheqiao Geng Final Design Review May 7, 2012.
SNS Integrated Control System EPICS Collaboration Meeting SNS Machine Protection System SNS Timing System Coles Sibley xxxx/vlb.
INTRODUCE OF SINAP TIMING SYSTEM
SNS Integrated Control System SNS Timing Master LA-UR Eric Bjorklund.
LCLS Timing Software and Plan 1 Controls Timing Workshop EPICS Collaboration Meeting SLAC LCLS Timing Software and Plan April Kukhee Kim.
John Dusatko 2012 EPICS Timing Workshop The SLAC Timing System April 24, The Accelerator Timing System at SLAC: Experiences, Ideas & Future Plans.
Micro-Research Finland Oy Timing System Developments Jukka Pietarinen EPICS Collaboration Meeting Shanghai March 2008.
REDNET Prototype overview Rok Stefanic the best people make cosylab.
Micro-Research Finland Oy Timing System Modules Jukka Pietarinen EPICS Collaboration Meeting, Argonne, June 2006.
Micro-Research Finland Oy MRF Timing System Jukka Pietarinen Timing Workshop CERN February 2008.
Dayle Kotturi Lehman Review May 10-12, 2005 LCLS Timing Outline Scope SLC Master Pattern Generator Introducing the PNET VME receiver.
MRF & Cosylab on timing system: integration support Joze Dedic the best people make cosylab … Head of Hardware.
1 Timo Korhonen PSI 1. Concepts revisited…again 3. New (Diamond) cards features and status 4. EPICS interface 5. Conclusions SLS & Diamond Timing System.
SNS Integrated Control System Timing Clients at SNS DH Thompson Epics Spring 2003.
EPICS Collaboration Meeting Fall PAL October 22 ~ 26, 2012 LCLS Timing System (pattern design, evGUI, and high level) Mike Zelazny for LCLS Timing.
FECC/SAIOC/RTEMS Making Lemonade. FECC “Slow” Code (in PC) –Ported iRMX code –By Bob Sass and Tony –As little hand work as possible –EPICS OSI layer –Dual.
EPICS Collaboration Meeting Timing Workshop April 24, 2012.
Timing Requirements for Spallation Neutron Sources Timing system clock synchronized to the storage ring’s revolution frequency. –LANSCE: MHz.
LCLS_II High Rep Rate Operation and Femtosecond Timing J. Frisch 7/22/15.
Outline Introduction to LCLS Some background on SLAC Timing
Stephanie Allison LCLS Controls Software Meeting Dec 6, 2007 How To Set Up for the Event System on an IOC with an EVR(s) Assumes.
Dayle Kotturi System Concept Review/Preliminary Design Review November 16, 2005 Timing Outline System Concept Review Requirements.
Timing System of the Swiss Light Source Timo Korhonen Paul Scherrer Institute, Switzerland 1. Introduction 2. Components and technology 3. SLS Timing Application.
REDNet - Status overview Rok Stefanic Ziga Kroflic
IMAC 2007BEPCII Timing System Status1 Event timing system for BEPCII storage ring commissioning Presented by G. Lei May 2007.
Stephanie Allison SLC-Aware April 5, 2005 Introduction Description Issues Progress Plans for 2005 SLC-Aware IOC LCLS Collaboration,
Stephen Norum LCLS Oct. 12, LCLS Machine Protection System Outline Overview of interim MPS Update on the interim MPS.
Robert C. Sass Sheng Peng LCLS Upgrade Review June IOC Requirements 1 LCLS Phase I Upgrade; IOC CAMAC Support Requirements Robert C. Sass Sheng.
Debbie Rogind Diane Fairley SLC-Aware BSAC Facility Requirements Review May 26, 2005 SLC Aware IOC BSAC* Facility Requirements Review *Beam Synchronous.
John Dusatko USPAS Fundamentals of Timing & Synchronization January 25, 2008 / Santa Rosa, CA 1 The LCLS Timing & Event System -
From VME/RTEMS to Industrial PC/LinuxRT: A Migration Story Mitch D’Ewart May EPICS Collaboration Meeting May 2015.
LCLS MPS Upgrade Gasper Jansa, Luciano Piccoli, Jeff Olsen, Garth Brown, Sonya Hoobler, Stephen Norum, Stephanie Allison, Kim Kukhee Adding BSA.
Stephanie Allison LCLS IOC Meeting Jul 18, 2008, Jan 21, 2011 Beam Synchronous Acquisition for IOC Engineers Definition/Requirements.
ESS Timing System Plans Timo Korhonen Chief Engineer, Integrated Control System Division Nov.27, 2014.
SLAC I&C Division / EE Department
Outline Introduction to LCLS Some background on SLAC Timing
Beam-Synchronous Data Acquisition (BS-DAQ)
SLC-Aware IOC LCLS Collaboration Jan 26, 2005
Introduction Functional Requirements (Stephanie) SLC Executive (Diane)
LCLS Timing Software and Plan
Timing and Event System S. Allison, M. Browne, B. Dalesio, J
Event Displays for EVR IOCs
LCLS Timing Outline Scope The order of things
LCLS Event System - Software
Low Level RF Status Outline LLRF controls system overview
EPICS Collaboration Meeting
Timing and Event System for the LCLS Electron Accelerator
LCLS Timing Outline Scope The order of things
SLS & Diamond Timing System update
Beam Synchronous Acquisition on IOC
Timing and Event System S. Allison, M. Browne, B. Dalesio, J
EVG-to-EVR Data Transfer (Dayle Kotturi)
Breakout Session: Controls
Timing and Event System Status DOE Review of the LCLS Project SC5 - Controls Systems Breakout Session S. Allison, M. Browne, B. Dalesio, J. Dusatko,
Presentation transcript:

EPICS Collaboration Meeting Fall PAL October 22 ~ 26, 2012 LCLS-I/LCLS-II Timing System Low Level Kukhee Kim for LCLS Timing Team ICD Software, SLAC National Accelerator Laboratory October 22, 2012

EPICS Collaboration Meeting Fall PAL October 22 ~ 26, Event System is a most complicated system!

EPICS Collaboration Meeting Fall PAL October 22 ~ 26, Accelerator complex for current and future (LCLS-I, LCLS-II and …) TS4, and TS1 TS5 and TS2 TS6, and TS3

EPICS Collaboration Meeting Fall PAL October 22 ~ 26, Hz – constraint: What is the timeslots? LCLS-I LCLS-II FACET

EPICS Collaboration Meeting Fall PAL October 22 ~ 26, Legacy Timing System SLC timing system -The Linac is a Pulsed Machine (get a packet of beam per pulse) runs at a max of 360Hz (120Hz) -Three Main Timing Signals: Hardware -476MHz Master Accelerator Clock (runs down 2mile Heliax Main Drive Line cable) -360Hz Fiducial Trigger / encoded onto the 476MHz master clock Software – MPG (Master Pattern Generator) -128-Bit PNET (Pattern Network) Digital Broadcast (contains time slot, trigger setup, beam type & rate information, beam destination) -Provide the timing pattern 3 fiducial prior Advantage of the Legacy system -Physicists & Operator are used to the old system -Provide event patterns 3 fiducial prior give a time margin to slow device, or pre-trigger up to 2 fiducial ahead

EPICS Collaboration Meeting Fall PAL October 22 ~ 26, Old architecture for the LCLS-I Timing System DEVDEV ~ Linac main drive line Sync/Div SLC MPG PNETPNET 119 MHz 360 Hz SLC events LCLS events PNETPNET PP PDUPDU EVREVR OCOC TTL-NIM convert. Digitizer LLRF BPMs Toroids Cameras Wire Scanner SLC klystrons TTL SLC Trigs FANFAN OCOC Low Level RF EPICS Network Precision<10 ps fiber distribution LCLS Timing System components are in RED *MicroResearch * * EVGEVG LCLS Master Oscillator 476 MHz Linac Master Osc System is based around the EVent Generator and EVent Receiver FIDOPDU Raw 360 Hz LCLS Timeslot Trigger

EPICS Collaboration Meeting Fall PAL October 22 ~ 26, LCLS-I Timing System LCLS Timing System Use MRF EVG and EVRs Generate event code at 360 Hz based on: -PNET pattern input (beam code bits pattern that define beam path and other conditions, scheduled information) -Receive MPS *) information (real-time information), and queue it up into the pattern pipeline (pipeline bypass for quasi real-time) -Add LCLS information (MPS, BPM calibration, diagnostics and ….) Extend the pattern to 192 bits -Hardwired BCS fault Send out timing pattern, including EPICS timestamp with encoded pulse ID on the timing fiber Manage user-defined Beam Synchronous Acquisition (BSA) MPS *) Please, see the talk for LCLS Machine Protection System (M. Boyes) in hardware solution session (16:30 – 16:50 Oct 22, 2012)

EPICS Collaboration Meeting Fall PAL October 22 ~ 26, How to work the EVG PNET message broadcast from the old timing system (following a fiducial, 360 Hz rate) PNET receiver in EVG IOC generates IRQ EVG software takes the PNET data and uses it to assign the proper event codes (the PNET data pipelined 3 fiducial ahead) Event code setup in EVG one cycle head Next fiducial is sent: 360 Hz fiducial signal received by EVG The EVG begins to send out the event codes in its Sequence RAM The event codes get sent across the timing fiber links to the EVRs Inside the EVR, its mapping RAM is set to map a specific HW trigger to an event code when the Event Code matches the same value in the mapping RAM, a hit is generated and after a programmed delay, a HW trigger is output form the EVR to the device

EPICS Collaboration Meeting Fall PAL October 22 ~ 26, How to work the EVR Set trigger delays, pulse width, and enable/disable via user requests Set event code per trigger Receive timing pattern ~8.3 msec (3 fiducials prior) before corresponding pulse. Provides EPICS timestamp to record processing Perform BSA based on tags which are set by EVG in the timing pattern Process pre-defined records when specific event codes are received

EPICS Collaboration Meeting Fall PAL October 22 ~ 26, Timeline for the EVR F0 0 Fiducial Time (usec) B0 Acq Trigger 1023 Beam Kly Standby Record processing (event, interrupt) Fiducial Event Received Event Timestamp, pattern records, and BSA ready Receive pattern for 3 pulses ahead Hardware Triggers ~ ~ Triggering Event Codes Kly Accel F1 Fiducial … StartEnd

EPICS Collaboration Meeting Fall PAL October 22 ~ 26, Upgrade Timing system for both LCLS-I and LCLS-II Main Goals Remove the dependency with the SLC timing system Independent EVG for each beam program -LCLS-I, LCLS-II, FACET, XTA and future beam programs -Promise for independent operation -Relieves the pain from limited event number (255 limitation) Keep compatibility with old system, keep SLAC specific features (advantage of the legacy system) -Beam code and timing pattern pipeline: For pattern aware operation -BSA -Event Code Sequence for photon group Covers various platforms for EVR: RTEMS, linux, and linuxRT -LCLS-I, and LCLS-II both are going to use various hardware platforms VME, PMC, Standard PC, uTCA, and COM-X Need to support linux/linuxRT for new hardware platform

EPICS Collaboration Meeting Fall PAL October 22 ~ 26, Timing System Upgrade Cont’d Upgrade Develop a new hardware called VMTG: VME based Master Trigger Generator which provides 360 Hz IRQ to drive EVG software instead of the PNET receiver (VMTG in EVG side) Develop new software module PABIG: Pattern Bits Generator which mimics the PNET Develop a new software tool to design the event/timing pattern visually: evGUI 1) Work on the EVR software to support linux/linuxRT 2) for the new hardware platform: uTCA, and COM-X evGUI 1) Please, see the talk for LCLS timing system for pattern design, evGUI and high level (M. Zelazny) in the timing system session (15:00 – 15:20 Oct 22, 2012) Support for linux/linuxRT 2) Please, see the talk for Real-Time Performance Issues on linux/linuxRT (K. Kim) in the low level application session (14:10 – 14:30 Oct 23, 2012)

EPICS Collaboration Meeting Fall PAL October 22 ~ 26, New architecture for the timing system MPS Link Node MPS Network LCLS-II CD-2 DOE Review / Aug , 2012

EPICS Collaboration Meeting Fall PAL October 22 ~ 26, VMTG  Sector 0 (LI00) VMTG – Master Trigger Generator Provides the synchronized 360Hz trigger to the fiducial generator Input: 360Hz AC trigger train MHz MDL RF Ouput: 360Hz synchronized trigger Then, the fiducial generator makes synchronization with the Master Oscillator  Sector 20 (IN20) VMTG with the EVG – Master Trigger Generator Provide 360 Hz interrupts with the Timeslot counter Provide Timeslot Synchronization Input: 60 Hz AC trigger (AC phase C) + Synchronized 360 Hz trigger Output: 360 Hz interrupts + timeslot counters

EPICS Collaboration Meeting Fall PAL October 22 ~ 26, Disabling PNET allows VMTG control PNET task needs to be delayed ~ 150 usec after the PNET IRQ to wait the MPS message. PNET IRQ is using HW_TIMER to make the delay The PNET ISR implement 150 usec delay on the HW_TIMER The callback for the HW_TIMER releases signal to execute the PNET Task. VMTG has configurable IRQ delay Configure the VMTG IRQ delay as ~570 usec The VMTG IRQ occurs 150 usec after the PNET IRQ Fiducial PNET VMTG Unknown delay PNET IRQ ISR implements the timer Timer callback releases the signal to the PNET task PNET task VMTG IRQ The ISR releases the signal to the PNET task ~150 usec ~ 570 usec MPS message arrives somewhere before the signal.

EPICS Collaboration Meeting Fall PAL October 22 ~ 26, Software Stacks for the new EVG application and the PABIG PNETVMTG Acromag DIOEVG BCS SBI Permit BCS Beam Permit 119MHz Clock 360Hz Fiducial TriggerPNET broadcasting Asyn moduleVMTG module EVG Drv/Dev PABIG GenVar Master Beam Control Bits 0 to 8 via CA HW input bits in PABIG EVG Application EPICS DB EDEF reservation for the BSA PNBN PVs from SoftIOC SNL program 476MHz Clock 360Hz Trigger 360Hz Fiducial Trigger 2 nd NIC udpComm mpsComm PNET Task MPS message (beam destination & Permit)

EPICS Collaboration Meeting Fall PAL October 22 ~ 26, EVR Software Stacks/ Form factor & OS dependency VME EVR HardwarePMC EVR Hardware mrfCommon/mrfVme64 drvErMrf devErMrf erRecord BSA EVR Processing Logic Event Module for RTEMS/vxWorks erapi drvLinuxEvr devErMrf erRecord BSA EVR Processing Logic Event Module for linux/linuxRT PMC EVR Hardware Works with old register mapWorks with modular register map (new)

EPICS Collaboration Meeting Fall PAL October 22 ~ 26, Summary Successfully upgraded timing system Standalone from the SLC system Same code base for LCLS-I, LCLS-II and future projects Backward compatibility, keep the advantages from the legacy system Our Team has done the following work: Develop new VMTG hardware: John Dusatko Develop PABIG software: Till Straumann Develop evGUI: Mike Zelazny and Partha Natampalli EVG software integration, EVR software support for linux/linuxRT and real-time performance issues: Kukhee Kim, Till Straumann, Stephanie Allison

EPICS Collaboration Meeting Fall PAL October 22 ~ 26, Related Talks LCLS Machine Protection System (M. Boyes) in hardware solution session (16:30 – 16:50 Oct 22, 2012) LCLS timing system for pattern design, evGUI and high level (M. Zelazny) in the timing system session (15:00 – 15:20 Oct 22, 2012) Real-Time Performance Issues on linux/linuxRT (K. Kim) in the low level application session (14:10 – 14:30 Oct 23, 2012)

EPICS Collaboration Meeting Fall PAL October 22 ~ 26, 2012 Thank You!