6a82b9cba46dced3556e83bfcf8513d9.ppt
- Количество слайдов: 20
EPICS IOC Embedded on PLC for TPS Pulse Magnet Power Supply Control Chun-Yi Wu TPS Control Team NSRRC, Hsinchu, Taiwan EPICS 2011 Spring Collaboration Meeting, Hsinchu, June 13 -17, 2011
Outline • • • Control interface of pulse magnets Development environment of PLC IOC prototype Timing solution of pulse magnet Summary 2 EPICS 2011 Spring Collaboration Meeting, Hsinchu, June 13 -17, 2011 2
Consideration for Pulse Magnets and Its Controls • • • In-house made. Assembly one-by-one. Test at laboratory after one unit is finished. Is 6 U c. PCI solution suitable for its control? One set control many pulsers (all ? ) is feasible. It need assembly at the installation site which will be possible very late! => no good for manpower usage of control teams. => Manpower are precious resource. How about EPICS embedded in PLC might a better solution Items for consideration 6 U c. PCI PLC EPICS IOC Small I/O counts No cost effective Yes Timing solution EVR NO (at this moment) Possible Generic YES Tedious Simple Timing Only One set for one Pulser Interlock protection EPICS supports One-by-one assembly and test Final Decision EPICS 2011 Spring Collaboration Meeting, Hsinchu, June 13 -17, 2011 3
Pulse Magnet Control Interface Timing Network TPS Control Ethernet Booster injection septum x 1 Booster injection kicker x 1 Booster extraction septum x 1 Booster extraction kicker x 1 Storage ring injection septum x 1 Storage ring injection kicker x 4 Storage ring pinger x 2 Total PLC-IOC Kicker #1 Pulser Pulse Magnet PS Timing Control , LTB/BTS Diagnostic EPICS IOC CPU board Compact. PCI Crate Event Receiver c. PCI-EVR-300 Electrical/ Optical Fanout 11 3 Hz Update Rate PLC-IOC Kicker #4 Pulser Septum Power Supplies Peak Detector Module EPICS 2011 Spring Collaboration Meeting, Hsinchu, June 13 -17, 2011 Scopes 4
Specifications of F 3 RP 61 -2 L Item Specification CPU Power PC (MPC 8347 E, 533 MHz) Linux (kernel 2. 6. 24. 3) Flash ROM: 64 MB DDR 2 SDRAM: 128 MB SRAM: 512 KB USER SRAM: 4 MB Ethernet (100 BASE-TX) 2 ch RS-232 C IEEE 1394 a Compact Flash card JTAG PCI OS Memory Interfaces EPICS 2011 Spring Collaboration Meeting, Hsinchu, June 13 -17, 2011 5
Software Components • • Boot loader:u-Boot 1. 2. 0 Linux BSP for I/O modules of PLC Cross compiling environment EPICS driver/device support from KEK/J-PARC control team EPICS 2011 Spring Collaboration Meeting, Hsinchu, June 13 -17, 2011 6
Cross Development environment of PLC IOC /opt/epics Cross compiler NFS Mount 172. 20. 0. 20: /opt/epics/ on /opt/epics/ Linux installed CF CARD Switch HUB Ethernet Host PC 172. 20. 0. 20 Target F 3 RP 61 -2 L (CPU module) 172. 20. 0. 21 Host PC environment: OS: Red Hat Enterprise Linux 5 (with kernel 2. 6. 18) Target F 3 RP 61 -2 L environment: OS: Linux (with kernel 2. 6. 24. 3) EPICS 2011 Spring Collaboration Meeting, Hsinchu, June 13 -17, 2011 7
Prototype of EPICS IOC on PLC Ethernet Embedded Linux + EPICS IOC For pulse magnet power supply control Power Supply F 3 PU 10 -0 S CPU Module (Linux) 8 ch, 16 bits Digital Analog Input Output Input 8 ch, 16 bits Analog Spare Output Pulse magnet power supply F 3 RP 61 -2 L EPICS IOC F 3 XD 16 -3 FF 3 YC 16 -ON F 3 AD 08 -5 RF 3 DA 08 -5 X EPICS 2011 Spring Collaboration Meeting, Hsinchu, June 13 -17, 2011 8
Block Diagram of Pulse Magnet Control Pulse Magnet PS D-sub 25 pin(male) PLC IOC D-sub 25 pin(female) PS on/off/status D-sub 25 pin(female) Pulse Magnet D-sub 25 pin(male) PS setting/reading Current transformer D-sub 15 pin(female) Peak current reading Trigger input Scope IOC Peak current 3 Hz sync (DI) Peak Detector Module D-sub 15 pin(male) Timing IOC Pulse magnet current waveform Reset input EPICS 2011 Spring Collaboration Meeting, Hsinchu, June 13 -17, 2011 9
Prototype EDM Page EPICS 2011 Spring Collaboration Meeting, Hsinchu, June 13 -17, 2011 10
11 sets of TPS Pulse Magnet PLC IOCs AC Power Pulse magnet power supply & Peak detector module EPICS 2011 Spring Collaboration Meeting, Hsinchu, June 13 -17, 2011 11
Timing Solution • TPS timing system base on event system – Jitter (RMS) < 20 ps (c. PCI 6 U-EVR-300) – Resolution: 8 ns – Width of pulse magnet power supply trigger: 2 μs • Pulse magnet timing IOC provide – – Pulse magnet trigger Peak detector reset PLC IOC 3 Hz Sync trigger Oscilloscope trigger EPICS 2011 Spring Collaboration Meeting, Hsinchu, June 13 -17, 2011 12
Pulse Magnet Timing/Scope EPICS IOC Timing Network EPICS Ethernet (10 Hz rate) LTB/BTS IOC EPICS IOC ADLINK c. PCI CPU EVR (CPCI 6 U-EVR-300) Fanout Module Oscilloscope (300 MHz, 1 GS/s): Booster injection septum Booster injection kicker Booster extraction and storage ring injection septum Booster extraction kicker and storage ring pingers Storage ring injection kicker x 1 x 1 x 1 Triggers: Booster injection septum Booster injection kicker Booster extraction septum Booster extraction kicker Storage ring injection septum Storage ring injection kickers Storage ring pinger magnets Oscilloscope trigger EPICS 2011 Spring Collaboration Meeting, Hsinchu, June 13 -17, 2011 x 1 x 1 x 4 x 2 x 4 13
How to Prevent Spontaneous Discharge Trigger of Thyratron in TLS Injection Trigger (Top-up Injection) 60 sec Original kicker pulser charging power supply setting scheme Measure Spontaneous fired without trigger (due to cosmic ray or noise? ) Kicker Capacitor High Voltage Modified kicker pulser charging power supply setting scheme Discharge via the parallel discharge resistor Prepared for injection EPICS 2011 Spring Collaboration Meeting, Hsinchu, June 13 -17, 2011 14
Pulse Magnet Peak Current Reading Pulser Trigger Pulse magnet trigger unit IOC Sync Trigger Buffer Reset Trigger Board PLC IOC (DI) for ADC sync Reset Current Transformer Peak Detector Module Buffer Peak Current (D-Type, PLC AI) Buffer Output (BNC, Oscilloscope) Buffer Output (Diagnostic) EPICS 2011 Spring Collaboration Meeting, Hsinchu, June 13 -17, 2011 15
Principle of Pulse Magnet Peak Current Reading Current waveform of pulse magnet Peak Detector module output Miss fire Pulse magnet trigger(at injection beam) 333. 3 ms Spontaneous fire PLC IOC sync trigger(3 Hz continue) Peak detector module reset trigger(3 Hz continue) …. EPICS 2011 Spring Collaboration Meeting, Hsinchu, June 13 -17, 2011 16
Possible Diagnostic Measurements of Pulse Magnet l Current amplitude variation (~ 0. 1%) l Trigger jitter (~ nsec) – Time-to digital converter – Oscilloscope => this solution seems better l To detect Miss fire Spontaneous fire EPICS 2011 Spring Collaboration Meeting, Hsinchu, June 13 -17, 2011 17
Summary • EPICS IOC embedded on PLC is more flexiable than using other PLC system. • Performance of PLC IOC is sufficient for pulse magnet power supply control. • Compact size. • Easily for field test. • Simple for maintenance. • Possible applications of FA-M 3 R PLC IOC • • Simple EPICS IOCs Global interlock system Subsystem interlock Low I/O counts control EPICS 2011 Spring Collaboration Meeting, Hsinchu, June 13 -17, 2011 18 18
Acknowledgments • Jun-ichi Odagiri (KEK) • Kazuro Furukawa (KEK) and • KEK/J-PARC Control Teams EPICS 2011 Spring Collaboration Meeting, Hsinchu, June 13 -17, 2011 19
Thanks for Your Attention! 20 EPICS 2011 Spring Collaboration Meeting, Hsinchu, June 13 -17, 2011 20
6a82b9cba46dced3556e83bfcf8513d9.ppt