470 likes | 661 Views
NSRL Control System. NSRL Control System Presented by Li, Chuan National Synchrotron Radiation Lab oratory. N ational Synchrotron Radiation Lab oratory Hefei Light Source. Hefei Light Source (HLS): second generation dedicated synchrotron light source 200MeV electron linac
E N D
NSRL Control System NSRL Control System Presented byLi, Chuan National Synchrotron Radiation Laboratory
National Synchrotron Radiation Laboratory • Hefei Light Source
Hefei Light Source (HLS): second generation dedicated synchrotron light source • 200MeV electron linac • Beam transport line • 800 MeV electron storage ring
Old control system Problems: • No connection between subsystems • Software function was simple • No database, only parameter backup in some subsystems • Hardware components were out of date and maintenance becomes more and more difficult
Phase II project of NSRL started in April 1999 formally. • Design Philosophy for new control system • Adopting distributed architecture • Applying standard hardware interfaces: Sun workstation, Industrial PC, PLC • Cost-performance should be considered
OPI LAN IOC I/O Equipment • New control system: based on EPICS • Operator Interface, OPI • LAN • Input/Output Controller, IOC Fig. Basic hardware structure of control system based on EPICS
Upgrade process in Phase II Project • May 1999: set up a prototype system • June 2000: the first subsystem(storage ring main magnet power supply control system)was commissioning. • Oct. 2003: the last subsystem(storage ring octupole magnet power supply control system)was commissioning. • Upgrade process after Phase II Project • upgrade EPICS base version to R3.13.10 • Continually add or update subsystem: New transport line magnet power supply control system New wiggler main power supply control system Magnet temperature monitor system Ring Vacuum SIP monitor system ……
Hardware platform • 1 Sun Ultra 1 • 3 Sun Ultra 10 • 1 Sun E250 • 18 PC(Linux,Windows) • A large number of Industrial PC (IPC) • Others: such as PLC, single-chip microcomputer
Software environment: • OPI:Solaris7/8; Red Hat7/9; WindowsXP/2003 • IOC:vxWorks 5.3.1 • Local controller: vxWorks 5.3.1, Windows, etc. • EPICS base: 3.13.10 • Program language: C, SNL, tcl/tk, PHP • EPICS tools: dct, MEDM, sddstoolkit • Database: Oracle 8i, SQL server
8 subsystems: • Power supply: • Ring main magnet PS; Ring corrector magnet PS; Ring octupole magnet PS; Skew quadrupole mag. PS • Transport line magnet PS; Linac magnet PS • Klystron focusing coil PS • Injection system pulse PS; Linac modulator pulse PS • Wiggler main PS; Wiggler compensation PS • RF • Vacuum • BPM,PBPM • Interlock • Flag • Temperature • Linac Temperature; RF Cavity Temperature • Magnet Temperature; Water Temperature; Environment Temperature • SoftChannel
23 OPI • 5 Sun Ultra (Solaris7/8) • 4 PC (Linux7.0/9.0) • 14 PC (WindowsXP/Windows2003 Server) • 25 IOC • IPC (with flash disk diskonchip 2000) • 180Local controller • 56IPC (with flash disk diskonchip 2000) • 16 PLC • Others, 108 • 100M dedicated LAN, 5 switches
Current regulating PS control • Current regulating PS:199 • Ring main mag. PS (12) ; Ring corrector mag. PS (32); Ring octupole mag. PS (1); Skew quadrupole mag. PS(2) • Transport line mag. PS (80); Linac mag. PS (30) • Klystron focusing coil PS(42) • IOC: • IPC with diskonchip 2000 • 8 port serial board (MOXA,C168P) • Local controller: • IPC with diskonchip 2000; • 12/16b ADC/DAC board, Relay/DI board; optical isolation • Communication: • RS232 over fiber; RS422 with optical isolation • point to point
BPM: done by beam measurement group • VXI • LabView + ActiveX • 48 bpm Channels • 6 pbpm in use
The count of local controllers based on IPC↑(Increase) → The reliability of whole control system ↓(Decrease) • Failure Reason: • CPU fan • Memory bank • The communication protocol between IOC and local controller is too simple to deal with all kinds of errors because it is designed by ourselves.
A new kind of PS local controllers based on Agilent34970A Data Acquisition/Switch Unit RS232/GPIB To IOC Agilent34970A Addressing Communication IPC Bus AD DA DI DO
Advantage: • Higher reliability • SCPI Communication Protocol • No CPU Board on IPC BUS • Higher measurement precision • 16 bit AD → 22 bit AD • No need program for local controllers
Software development for IOC • Record: ~3000 • Record type: Ai, Ao, Bi, Bo, Mbbi, Mbbo, MbbiDirect, MbboDirect, Subroutine, subOut and maio. subOut and maio are new record types we development. • device support/device driver development • Create db using DCT • SNL(State Notation Language)and sequencer
Software of OPI • MEDM : edit and manage most of man-machine interface • Tcl/Tk + SDDS toolkit: complicated control, such as ramping control • Matlab: matrix calculation,such as closed orbit correction • PHP: Web page, such as machine status online
Beam ramping • Ramping table calculation • E-B relation, B-I curve ,I-D curve • C, Tcl/Tk • Rampingcontrol: • No dedicated hardware • Ramping, ramping down, tune ramping
A typical operation mode: • Injection 200MeV electron from linac; • Ramping it to 800MeV; • Tunning lattice,decrease emittance from 160nmrad to 80nmrad; • Compensation Lattice while charge Wiggler Main PS; • Running closed orbit correction.
Beam closed orbit correction Corrector Mag BPM BPM Corrector Mag Beam Power Supply BPM Monitor IOC Corrector IOC the dedicated control LAN Orbit correction OPI
Matlab Applications Matlab to EPICS (MCA,) Channel Access to Accelerator Hardware • Beam closed orbit correction • Hardware: • 24 BPMs along storage ring, 48 channels • 32 corrector magnet PS • Matlab on WindowsXP • response matrix calculation • Requirement: • |⊿y|<30µm (σx: 0.45~1.87mm,σy:0.13~0.43mm)
2006.9.23 8:00-18:00 All vertical BPMs (No feedback)
2007.1.20 8:00-18:00 All vertical BPMs (Feedback)
Machine Status online and History Database • Hardware platform: PC(Linux), PC(Windows) double network cards, connect to dedicated control LAN and NSRL LAN • Software development: SDDS toolkit, Tcl/Tk, PHP Channel Archiver, perl, CGI • Interface: B/S (browser/server) • Classification: All users / NSRL users
Summary • A distributed control system based on EPICS • Multiplicate units,such as Industrial PC, PLC,and data acquisition meter are used • Cost-effective and high reliability