Integration with the SLC Control System LCLS Facility Advisory Committee April 7, 2005 Introduction PNET Receiver VME Module SLC-Aware IOC Existing VMS SLC Applications Plans for Next 12 Months April 7, 2005 Integration with the SLC Control System Stephanie Allison saa@slac.stanford.edu Integration with the SLC Control System SLC Alpha All High Level CAS Apps Xterm Xterm Xterm Xterm CA Gateway EPICS EPICS EPICS W/S EPICSWS W/S EPICS W/S Distributed W/S Distributed Distributed Distributed Applications Distributed Applications High Level Applications Applications Applications SLC Net over Ethernet (Data Transfer) PNet (Pulse ID / User ID) MPG micro CAMAC I/O CA over Ethernet (EPICS Protocol) P Micro E N emulator I/OC V E (SLC-aware) G T Micro emulator I/OC (SLC-aware) Fast Feedback RF reference clock April 7, 2005 Integration with the SLC Control System Stephanie Allison saa@slac.stanford.edu Introduction: PNET Receiver Module Nsec resolution on the timing gates produced from the Event Receiver 476 MHz RF 50 psec jitter pulse to pulse PNET module gets beam code data from Master Pattern Generator Reference Beam code data transferred to Event Generator Event generator sends events to receivers including: 360 Hz, 120 Hz, 10 Hz and 1 Hz fiducials SLC MPG last beam pulse OK micro Machine mode FIDO EPICS time stamp Event receivers produce to the IOC 119 MHz w/ interrupts on events 360 Hz fiducial data from the event generator in registers 128 bit beam 16 triggers with configurable delay and width code @ 360 Hz IOC C P E E P N V V U E G R T L L R F IOC 16 triggers Drive Laser Off C P E U V R IOC Diag C P U E Power V Supply R Ctrl 16 triggers Machine Protection Beam Code + EPICS Time + EPICS Events April 7, 2005 Integration with the SLC Control System Stephanie Allison saa@slac.stanford.edu C P Vacuum U Ctrl PNET Receiver Module Progress Since Oct 2004 All boards built - 1 production, 2 spares LCLS (Dayle Kotturi) tested board with minimal driver software - no problems found PNET receiver SW requirements done Prototyping in-progress EPICS device support design in-progress April 7, 2005 Integration with the SLC Control System Stephanie Allison saa@slac.stanford.edu Introduction: SLC-Aware IOC Provides data to SLC Apps from EPICS on demand and periodically SLC Alpha Apps Performs requests by SLC Apps by updating EPICS Xterm Xterm Xterm Xterm Messages over Ethernet no greater than 10 Hz Requires significant development in the IOC to emulate SLC “micro” in the IOC Used by non-LCLS projects too SLC-Net over Ethernet IOC C P U HPRF E E I/O V V LLRF Boards G R IOC April 7, 2005 Integration with the SLC Control System C P U E V R Diag IOC C P U E Pwr V Supply R Ctrl Stephanie Allison saa@slac.stanford.edu C P Vacuum U Ctrl April 7, 2005 Integration with the SLC Control System Stephanie Allison saa@slac.stanford.edu SLC IOC – What It Will Do Receive SLC messages and act on them in the same way as existing SLC micros for: BPM-Like Data Acquisition (Gated ADCs) – beam synchronous Magnet-Like Control and Readback (All Controlled Devices) PNET Timing Diagnostics Maintain its part of the VMS SLC database: Receive the entire SLC database at initialization time Receive new setpoints at any time from the Alpha Send readbacks back to the Alpha on request and periodically Send setpoint changes made by external EPICS applications to the Alpha Goal – same amount of network traffic as SLC micros April 7, 2005 Integration with the SLC Control System Stephanie Allison saa@slac.stanford.edu SLC IOC – What It Won’t Do MPS BITBUS Power Supply Control KISNET Communication Micro-to-Micro Communication via Alpha SLC-style Analog Signal Monitoring SLC-style Digital Input/Output SLC-style Error Logging (use CMLOG instead) SLC-style Klystron Interface SLC-style Video Interface SLC-style Timing Interface (except PNET diagnostics) Direct Hardware Access (and no support for “virtual CAMAC” commands) Debugging from VMS SLC-Style Fast Feedback Interface Keep static data in the EPICS and SLC database up-to-date April 7, 2005 Integration with the SLC Control System Stephanie Allison saa@slac.stanford.edu SLC-Aware IOC Issues Piece-Meal functional requirements – big picture not always clear Endian – VMS to/from any possible EPICS platform (no 64 bit) Memory – CPUs that support SLC-aware IOC need memory Restart SLC tasks without restarting the IOC Detail diagnostics needed via the IOC shell, a subset via CA Keeping the EPICS and SLC database in-sync – 2 master problem Particularly for Magnet Control May need to increase max # of “micros” in the SLC control system May need a second proxy in the SLC production control system Magnet/BPM applications slow in developing April 7, 2005 Integration with the SLC Control System Stephanie Allison saa@slac.stanford.edu SLC IOC Progress Since Oct 2004 Team: LCLS Controls: Stephanie Allison, Kristi Luchini, Consultants ESD Software: Diane Farley, Debbie Rogind, Ron MacKenzie, Consultants Weekly meetings and working web pages Coding standards implemented and development environment created Basic Services: Requirements done and reviewed Designs done and reviewed Executive, Message, Database, CMLOG – Done except for RTEMS testing and cleanup, identifying some new requirements (2 full-time) Async Utilities and Periodic “Micro” Health Update – implementation in-progress (1 full-time) Changes to VMS programs done Application Services: Device Control and Readback (Magnet) – Reqts in-progress (1 part-time) PNET Timing Diagnostics – Reqts in-progress (1 part-time) Gated ADC Acquisition (BPM) – no progress Changes to VMS Programs – not yet defined Record Naming Conventions – first draft done April 7, 2005 Integration with the SLC Control System Stephanie Allison saa@slac.stanford.edu Existing VMS SLC Applications Changes/Additions SLC database work to define all devices on each SLC IOC, SCP panels, configuration files MPG timing pattern generation Tool to generate consistent EPICS and SLC databases Minor changes to VMS applications identified for SLC IOC magnet and BPM jobs (replace “virtual” CAMAC commands) Add LCLS modelling Other work TBD April 7, 2005 Integration with the SLC Control System Stephanie Allison saa@slac.stanford.edu PNET Receiver Plans for 2005 Design Review – April Implementation – June Integrate with EVG/EVR – After June Test using SLC-Aware PNET diagnostics - Oct April 7, 2005 Integration with the SLC Control System Stephanie Allison saa@slac.stanford.edu SLC-Aware IOC Plans for 2005 Functional Requirements Reviews: Device Control and Readback (Magnet Job) – April PNET Timing Diags – April Gated ADC Acq (BPM Job) – June Design Reviews: Device Control and Readback (Magnet Job) – May PNET Timing Diags – Late April Gated ADC Acq (BPM Job) – July Implementation: Basic services (except RTEMS testing) – Mid-April Device Control and Readback – June PNET Timing Diags – June Gated ADC Acq (BPM Job) – Aug Fully operational prototype by Oct 2005 Ready for first beam in LINAC by May 2007 April 7, 2005 Integration with the SLC Control System Stephanie Allison saa@slac.stanford.edu