nsrl control system
DESCRIPTION
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 - PowerPoint PPT PresentationTRANSCRIPT
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 1
NSRL Control System
NSRL Control System
Presented by Li, Chuan
National Synchrotron Radiation Laboratory
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 2
• National Synchrotron Radiation Laboratory• Hefei Light Source
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 3
• Hefei Light Source (HLS): second generation dedicated synchrotron light source
200MeV electron linacBeam transport line800 MeV electron storage ring
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 4
• Old control system Problems:No connection between subsystemsSoftware function was simpleNo database, only parameter backup in some
subsystemsHardware components were out of date and maintenance
becomes more and more difficult
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 5
• 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
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 6
• New control system: based on EPICS Operator Interface, OPI LAN Input/Output Controller, IOC
OPI LAN IOC I/O Equipment
Fig. Basic hardware structure of control system based on EPICS
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 7
• 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
……
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 8
• Hardware platform
1 Sun Ultra 13 Sun Ultra 101 Sun E25018 PC ( Linux , Windows )A large number of Industrial PC (IPC)Others: such as PLC, single-chip microcomputer
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 9
• Software environment:OPI : Solaris7/8; Red Hat7/9; WindowsXP/2003 IOC : vxWorks 5.3.1Local controller: vxWorks 5.3.1, Windows, etc.EPICS base: 3.13.10Program language: C, SNL, tcl/tk, PHPEPICS tools: dct, MEDM, sddstoolkitDatabase: Oracle 8i, SQL server
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 10
Hardware in HLS Control System
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 11
Topological structure of the dedicated control LAN
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 12
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 13
• 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
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 14
subsystem IOC Local controller OPI
IPC IPC PLC
Others
SUN PC(Linux)
PC(Windows)
Ring main mag. PS 3 12 12 5 4
14
Ring corr. Mag.PS 1 8 Ring vacuum 4 54
Ring Flag 1Injection system 3
RF 2 1 2 1Temperature system 3 6
RFKO 1 2Ring octupole mag. PS 1 Transport line mag. PS 4 20
Switch mag. PS 1 1Kly. focusing coil PS 1 6
Analysis Mag. PS 1 Linac vacuum 2 32Linac mag. PS 1 8
Flag 1 2interlock 2
Linac Modu. pulse PS 6
sum 25 56 16 108 5 4 14
25 180 23
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 15
• 23 OPI 5 Sun Ultra (Solaris7/8)4 PC (Linux7.0/9.0)
14 PC (WindowsXP/Windows2003 Server)
• 25 IOCIPC (with flash disk diskonchip 2000)
• 180 Local controller56 IPC (with flash disk diskonchip 2000)16 PLCOthers, 108
• 100M dedicated LAN, 5 switches
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 16
• 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
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 17
• BPM: done by beam measurement groupVXILabView + ActiveX48 bpm Channels6 pbpm in use
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 18
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.
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 19
• A new kind of PS local controllers based on Agilent34970A Data Acquisition/Switch Unit
Agilent34970A
RS232/GPIB To IOC
AD
IPC Bus
DA DI DO
Addressing Communication
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 20
• 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
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 21
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 22
Software in HLS Control System
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 23
• Software development for IOCRecord: ~ 3000Record 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 developmentCreate db using DCTSNL ( State Notation Language ) and sequencer
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 24
• Record statisticsSubsystems Record Number
Ring main mag. PS ~400
Ring corrector mag. PS ~250
Transport line mag. PS ~800
Linac mag. PS ~300
RF ~150
Vacuum ~400
Injection system pulse PS ~50
Flag ~50
Others ~600
sum ~3000
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 25
• Software of OPIMEDM : edit and manage most of man-machine interfaceTcl/Tk + SDDS toolkit: complicated control, such as
ramping controlMatlab: matrix calculation,such as closed orbit
correctionPHP: Web page, such as machine status online
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 26
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 27
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 28
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 29
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 30
• Beam rampingRamping table calculation
E-B relation, B-I curve , I-D curveC, Tcl/Tk
Ramping control:No dedicated hardwareRamping, ramping down, tune ramping
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 31
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 32
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.
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 33
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 34
• Beam closed orbit correction
BPM MonitorIOC
Power Supply
CorrectorIOC
Orbit correction OPI
Beam
Corrector MagCorrector Mag BPM BPM
the dedicated control LAN
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 35
• Beam closed orbit correctionHardware :
24 BPMs along storage ring, 48 channels32 corrector magnet PS
Matlab on WindowsXPresponse matrix calculation
Requirement:| y|⊿ < 30µm (σx: 0.45~1.87mm,σy : 0.13~0.43mm)
Matlab Applications
Matlab to EPICS(MCA,)
Channel Access to Accelerator Hardware
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 36
2006.9.23 8:00 - 18:00 All vertical BPMs
( No feedback)
0 2 4 6 8 10
-0.04
-0.02
0.00
0.02
0.04
0.06
0.08
0.10
BP
M O
ffse
t(m
m)
T(Hour)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 37
2007.1.20 8:00 - 18:00 All vertical BPMs( Feedback)
0 2 4 6 8 10-0.03
-0.02
-0.01
0.00
0.01
0.02
0.03
BP
M O
ffse
t(m
m)
T(Hour)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 38
0 2 4 6 8 10
-0.02
0.00
0.02
0.04
0.06
0.08
0.10
Feedback
No Feedback
BQ6EV
BP
M O
ffset
(mm
)
Time(hour)
BQ6EV
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 39
0 2 4 6 8 10
-0.05
-0.04
-0.03
-0.02
-0.01
0.00
0.01
0.02
Feedback
No Feedback
BQ1NV
BP
M O
ffset
(mm
)
Time(hour)
BQ1NV
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 40
Status Online and Database in HLS
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 41
• Machine Status online and History DatabaseHardware 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
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 42
• Hardware structure
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 43
• Machine Status online interface
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 44
• History data query interface (channel archiver)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 45
• History data query interface (SDDS)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 46
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
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 47
Thank you!