NSRL Control System
description
Transcript of NSRL Control System
![Page 1: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/1.jpg)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 1
NSRL Control System
NSRL Control System
Presented by Li, Chuan
National Synchrotron Radiation Laboratory
![Page 2: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/2.jpg)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 2
• National Synchrotron Radiation Laboratory• Hefei Light Source
![Page 3: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/3.jpg)
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
![Page 4: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/4.jpg)
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
![Page 5: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/5.jpg)
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
![Page 6: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/6.jpg)
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
![Page 7: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/7.jpg)
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
……
![Page 8: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/8.jpg)
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
![Page 9: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/9.jpg)
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
![Page 10: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/10.jpg)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 10
Hardware in HLS Control System
![Page 11: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/11.jpg)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 11
Topological structure of the dedicated control LAN
![Page 12: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/12.jpg)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 12
![Page 13: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/13.jpg)
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
![Page 14: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/14.jpg)
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
![Page 15: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/15.jpg)
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
![Page 16: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/16.jpg)
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
![Page 17: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/17.jpg)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 17
• BPM: done by beam measurement groupVXILabView + ActiveX48 bpm Channels6 pbpm in use
![Page 18: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/18.jpg)
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.
![Page 19: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/19.jpg)
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
![Page 20: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/20.jpg)
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
![Page 21: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/21.jpg)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 21
![Page 22: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/22.jpg)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 22
Software in HLS Control System
![Page 23: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/23.jpg)
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
![Page 24: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/24.jpg)
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
![Page 25: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/25.jpg)
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
![Page 26: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/26.jpg)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 26
![Page 27: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/27.jpg)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 27
![Page 28: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/28.jpg)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 28
![Page 29: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/29.jpg)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 29
![Page 30: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/30.jpg)
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
![Page 31: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/31.jpg)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 31
![Page 32: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/32.jpg)
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.
![Page 33: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/33.jpg)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 33
![Page 34: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/34.jpg)
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
![Page 35: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/35.jpg)
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
![Page 36: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/36.jpg)
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)
![Page 37: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/37.jpg)
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)
![Page 38: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/38.jpg)
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
![Page 39: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/39.jpg)
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
![Page 40: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/40.jpg)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 40
Status Online and Database in HLS
![Page 41: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/41.jpg)
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
![Page 42: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/42.jpg)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 42
• Hardware structure
![Page 43: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/43.jpg)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 43
• Machine Status online interface
![Page 44: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/44.jpg)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 44
• History data query interface (channel archiver)
![Page 45: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/45.jpg)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 45
• History data query interface (SDDS)
![Page 46: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/46.jpg)
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
![Page 47: NSRL Control System](https://reader033.fdocuments.net/reader033/viewer/2022042608/56813ff2550346895dab0a2a/html5/thumbnails/47.jpg)
Mar. 12, 2008 Li, Chuan: NSRL Control System NSRL 47
Thank you!