Hamid Shoaee LCLS Facility Advisory Committee October Control System Overview Hamid Shoaee for the LCLS Controls Group
Hamid Shoaee LCLS Facility Advisory Committee October Two Control Systems For the next few years the control system will consist of two architectures: The legacy linac/PEP-II system based on VMS, Alpha, CAMAC, Multibus (SCP) The new LCLS Controls based on EPICS, VME, etc. SCP has a rich set of applications which are essential but expensive to re-write (>1M LOC) The EPICS system is more modern which is easier to distribute over many servers, support a large variety of data acquisition hardware and is internationally supported by many sites
Hamid Shoaee LCLS Facility Advisory Committee October Bridge Across the Two Systems SLC-aware IOC provides a link from EPICS to the SCP system All magnet data will be available transparently through both system In addition one can acquire beam synchronous data in SCP applications from the VME/EPICS controls modules AIDA is a data transport and communication package that provides data access from any source to any destination: e.g. from SCP to MATLAB. Provides modeling data to high level applications
Hamid Shoaee LCLS Facility Advisory Committee October MCC, Networks, Servers, & Workstations Production Systems Delivered Networks at S20 RF Hut & MCC: physical and wireless LCLSDMZ, LCLS private, wireless MCC infrastructure built: power & racks First group of LINUX RHEL4 Servers: 2 applications, 2 EPICS archiving engines Control Room Linux Workstation – 4 (24-inch) monitor & 2 monitor configurations Control Room Stations S20 Laser Room is actively in use to commission laser Main Control Center (MCC) Control Room space is allocated, installing 3 Workstations & laptop work areas MCC Foyer: space for SUNray & laptop work areas
Hamid Shoaee LCLS Facility Advisory Committee October Control Room Infrastructure Data archiving Alarms, summary displays, Error Logs Artemis problem reporting system Operations and Physics E-logs created Cyber Security Protection Program (CSPP) Update Completed – MCC enclave included LCLS accelerator controls AIP network upgrade at MCC for gigabit traffic to support digital control room
Power supply racks - Injector, Sector 21 and BC1 Field test 6 new Intermediate and 96 new MCOR systems
Hamid Shoaee LCLS Facility Advisory Committee October Magnet Controls SW EPICS Databases HW set points, read backs, I->B, B->I conversions, limit checking Feedback - Magnet configurations: individual, magnet strings Polynomials – partially complete and in progress (P. Emma) Magnet Functions – Sequencer Perturb, Trim, Reset, PS On/Off, Standardize, Undo, Save - tested Calibration, Degauss, multi-select
Hamid Shoaee LCLS Facility Advisory Committee October Magnet Controls SW SLC-aware magnet control and monitor provides interface between magnet devices and the legacy control system Displays SCP – Done EPICS EDM Many control and diagnostic screens in use IN20 and LI21 in progress Magnet Power Supply API published for physicist usage
Hamid Shoaee LCLS Facility Advisory Committee October Magnet Control Display
Hamid Shoaee LCLS Facility Advisory Committee October The injector laser stabilization system includes two feedback loops The first loop includes two mirrors, each with two actuators and one camera. It stabilizes laser traveling through a 10-meter tube The second loop includes one mirror with two actuators and adjusts the laser position on the cathode. The IOC reads the image from camera, calculates the laser’s position error and applies a correction to the actuators. The loop 1 Hz, and the camera is synced to 120Hz. The prototype of the first loop has been tested for several months and works well. Injection Laser Control System
Hamid Shoaee LCLS Facility Advisory Committee October The first loop Actuator A1 Camera A Laser Actuator A2 Actuator B1 Actuator B2 Camera B Spiricon
Hamid Shoaee LCLS Facility Advisory Committee October Motion: Newport XPSC8 Motion Controller Pentium 4 PC based vxWorks powered Support up to eight motors Ethernet control interface Digital I/O and analog I/O built-in
Hamid Shoaee LCLS Facility Advisory Committee October Image Acquisition PULNiX TM-6710CL camera CCD:1/2” Shutter: Full Frame UV option:Yes Resolution:648x484 Progressive:Yes External Trigger:Yes Full scan:120Hz Analog Output:Yes Cameralink:Yes EDT PMC DV C-Link Cameralink compatible 32bit/66MHz PCI
Hamid Shoaee LCLS Facility Advisory Committee October Snapshot EDM screen of two cameras
Hamid Shoaee LCLS Facility Advisory Committee October OTR/YAG systems We have a total of 21 OTR/YAGs of which 14 are needed for commissioning The equipment consists of UniqVision UP900CL-12B camera EDT PMC Cameralink ® interface EDT RCX Cameralink ® /Fiber converter Profile Monitor Controller is built in SLAC to handle pneumatic, filter, lens and bulbs Acromag Digital I/O module IP445/440 are used in IOC to interface with Profile Monitor Controller.
Hamid Shoaee LCLS Facility Advisory Committee October Toroid/Faraday Cup We have a total 14 Toroids and 2 Faraday cups of which 6 Toroids and 2 Faraday cups are needed for commissioning Beam Charge Monitor Chassis is built in SLAC to handle signal conditioning, integration and MPS interface. Acromag IP330 ADC is used in IOC to interface with Beam Charge Monitor Chassis. Since the existing EPICS driver did not match our requirement, a brand new driver developed. 4-Channel fast ADC is built at SLAC to image dark current for FC01, FCG1 and IM01, IM02(optional).
Hamid Shoaee LCLS Facility Advisory Committee October Bunch Length Monitor There are 2 Bunch Length Monitors needed for commissioning BL11, BL12 The amplifier is built in SLAC to handle signal conditioning. 4-Channel fast ADC is built in SLAC to read the signal. A Solenoid Controller is built in SLAC to handle filters and pneumatic actuators. Acromag Digital I/O module IP445/440 are used in IOC to interface with Solenoid Controller.
Hamid Shoaee LCLS Facility Advisory Committee October Wire Scanner Detector Locations 7 Wire Scanners for Injection Commissioning Hardware Assembled, Tested (without beam), Calibrated, and currently being installed Require further testing of PMTs and Ion Chambers for acquisition of Wire data
Hamid Shoaee LCLS Facility Advisory Committee October Injection Wire Scanners after Assembly
Hamid Shoaee LCLS Facility Advisory Committee October Wire Scanner Operator Displays Scanner Control Options
Hamid Shoaee LCLS Facility Advisory Committee October There are 23 BPMs in the Injector area (Beam Test) 100 machine pulses Effective beam charge 0.35 nC y = 2.5 microns
Hamid Shoaee LCLS Facility Advisory Committee October 200pC Resolution vs. Charge Measured with beam in machine Tightest machine requirement: 5 micron 200 pC Achieve 4 micron 200 pC Resolution scales like 1/Q for the three measured bunch charges, as expected
Hamid Shoaee LCLS Facility Advisory Committee October Stability Test Compare 2 channels of analog front end Digitized by Echotek Clock frequency 105 MHz Signal source Rhode&Schwarz generator At 140 MHz 20 ns pulse modulation i.e. ~ 3 cycles of carrier Synchronized with Echotek trigger Analyze with “energy” algorithm sum of squares of (ADC-pedestal) Assume BPM radius of 12 mm Observe ~2 micron rms resolution ¼ full scale peak signal
Hamid Shoaee LCLS Facility Advisory Committee October Memorial Day Weekend Stability Test RMS 0.9 micron 7 micron peak-peak See A/C cycling in afternoons
Hamid Shoaee LCLS Facility Advisory Committee October High Level Applications High Level Applications required for Injector Commissioning Interface Diagram Activity since March Screen Shots Task list for the HLA group
Hamid Shoaee LCLS Facility Advisory Committee October Required High Level Applications Correlation Plots Buffered Acquisition Orbit Applications Multiknob Image Management Emittance, Slice Emittance, Beta Matching Energy Spread and Slice Energy Spread Bunch Length Measurement On-line model Configuration management
Hamid Shoaee LCLS Facility Advisory Committee October Example Procedures I.Centering laser beam on cathode: Actuators: laser beam steering mirrors SOL1 current Detectors: BPM2 X and Y position IM01 RF gun phase RF gun amplitude Laser energy diode Virtual cathode (X and Y position) a.Launch electron beam at 30 degrees relative to zero-crossing phase b.Measure beam X and Y position on BPM2 vs. SOL1 current c.Move laser beam on cathode until there is no electron beam motion at BPM2. II.Verify electron beam is on gun axis: Actuators:Gun rf amplitude Detectors:BPM2 IM01 RF gun phase RF gun amplitude Laser energy diode Virtual cathode (X and Y position) a.After completing I. above, vary amplitude of gun rf and measure electron beam X and Y position with BPM2. b.Plot BPM2 vs. RF gun amplitude to determine steering by gun rf fields.
Hamid Shoaee LCLS Facility Advisory Committee October Applications provided by the SCP Correlation Plots Buffered Acquisition Orbit Applications Multiknob On-line model Configuration management The slc-aware IOC allows the SLC to control and readback all new magnets, and provides beam synchronous data to Buffered Acquisition and Correlation Plots from: BPMs, BLEN, PMTs, LLRF, Faraday Cups, Toroids, some Laser devices
Hamid Shoaee LCLS Facility Advisory Committee October Correlations Plot An application for performing data acquisition experiments Ability to step 1 or 2 independent variables, e.g. magnet set point, RF phase, etc., while sampling hundreds of variables Ability to fit data to various models Bad data point rejection Selecting the optimum value
Hamid Shoaee LCLS Facility Advisory Committee October Online Model of LCLS Injector
Hamid Shoaee LCLS Facility Advisory Committee October Orbit Correction
Hamid Shoaee LCLS Facility Advisory Committee October BPM Data and Model Fit to Data
Archive Data Viewer
Archive Data Flow
Hamid Shoaee LCLS Facility Advisory Committee October Archive data to MATLAB VIA AIDA
Online Model Data Flow
Hamid Shoaee LCLS Facility Advisory Committee October History Correlations
Hamid Shoaee LCLS Facility Advisory Committee October Applications provided in MATLAB Image Management Bunch Length Measurement Emittance and Energy Application These applications are developed in MATLAB because they require an interface to wires and screens (OTRs / YAGs). The slc-aware IOC does not support the wire and screen devices; they are not available to the SLC applications.
Hamid Shoaee LCLS Facility Advisory Committee October Interface Diagram
Hamid Shoaee LCLS Facility Advisory Committee October MATLAB Programmer’s Guide Describes interface libraries that communicate with IOCs and the SLC on-line model. Gives examples for getting device data and model parameters Gives examples for monitoring devices Gives examples for controlling devices Lists and describes general use MATLAB scripts developed for LCLS.
Hamid Shoaee LCLS Facility Advisory Committee October MATLAB Image Management
Hamid Shoaee LCLS Facility Advisory Committee October MATLAB Bunch Length Measurement
Hamid Shoaee LCLS Facility Advisory Committee October Correlation Plots PriorityInjector Devices to be Scanned by Correlation Plots 1 Magnet settings (BDES) XCOR, YCOR, SOLN, QUAD, BEND, BTRM, LGPS 1RF phase settings (PDES?) for gun, L0a, L0b, L1, Lx, and TCAV0 1RF amplitude settings (VDES?) for gun, L0a, L0b, L1, Lx, and TCAV0 1Drive-laser x, y pointing on cathode (or feedback set-point)? 1Drive-laser oscillator ref phase 2BC1 chicane-mover setting 2BC1 collimator (CE11) jaw settings 2Feedback set-points (SETP?), if possible 2Drive-laser energy 2gun water temp set point 2Wire-scanner motion control (WS01, 02, 03, 04, 11, 12, 13)
Hamid Shoaee LCLS Facility Advisory Committee October Correlation Plots cont. Prio rity Injector Devices to be Sampled by Correlation Plots 1 Magnet readbacks (BACT) XCOR, YCOR, SOLN, QUAD, BEND, BTRM, LGPS 1 RF phase readings (PHAS?) for gun, L0a, L0b, L1, Lx, and TCAV0 1 RF amplitude readings (VACT?) for gun, L0a, L0b, L1, Lx, and TCAV0 1 BPM position and intensity readback (X, Y, TMIT) 1 Toroid readback (TMIT) 1 drive laser energy diode
Hamid Shoaee LCLS Facility Advisory Committee October LCLS Feedback Global Feedbacks required for commissioning Feedback Prototypes in MATLAB Status Feedback Diagram Screen Shots
Hamid Shoaee LCLS Facility Advisory Committee October Global Feedbacks for Commissioning Drive Laser Pointing (part of Laser subsystem) Bunch Charge - first one, due Mar 29, 2007 DL1 Energy, Spectrometer Energy, and BC1 Energy & Bunch Length Injector Launch Injector Transverse Deflector (part of the Bunch Length Measurement) L0 gun L3L2 X DL1BC1 BC2 DL2 L1 z1z1z1z1 1111 1111 V1V1V1V1 z2z2z2z2 2222 2222 V2V2V2V2 3333 V3V3V3V3 0000 V0V0V0V0
Hamid Shoaee LCLS Facility Advisory Committee October Feedback Prototypes in MATLAB Goals for MATLAB prototypes To evaluate feedback algorithms for use during commissioning We hope for a better than 1Hz feedback rate using MATLAB To learn more about the LCLS feedback requirements in order to design and implement an IOC based fast feedback subsystem in 2007.
Hamid Shoaee LCLS Facility Advisory Committee October Feedback Diagram
Hamid Shoaee LCLS Facility Advisory Committee October Feedback Prototype Status A feedback framework in MATLAB has been completed A machine simulator IOC has been completed generates data at 10Hz The three Energy feedbacks are near completion Injector Launch feedback in progress Bunch Charge not started
Hamid Shoaee LCLS Facility Advisory Committee October MATLAB Feedback
Hamid Shoaee LCLS Facility Advisory Committee October Feedback EDM Display