STATUS OF SSRF CONTROL SYSTEMSSRF Control Group
Shen liren 2009/2/13

Introduction•Shanghai Synchrotron Radiation Facility (SSRF)––––––•

SSRF control system is EPICS based control system designed
for light source–––•

Third-generation of synchrotron radiation light source
SSRF consist of a 150MeV LINAC, a booster and a 3.5GeV electron
storage ring.
Beam current 300mA
Minimum emittance 4 nmrad
Lifetime >10 hours.
By using advanced insertion device, photon energy range is from 0.1
to 40keV

Hardware (including network)
SoftwareSubsystemsInserting devices

Control System Network•1G Ethernet with 3 layer switcher•backbone reach 2G.
•Full Network manage ability•Remote access and monitor•Backbone redundancy design toensure reliability•Isolated from office network•VPN access (Nokia hardware)

PS system•Sub system division by VALN
•10.30.X.X/24•Static 3 layer route table•Access List table for access control•Can be extended easily in future

BI system…
Server system

OPIHardware• Not so much VME devices are used in SSRF
– GE VME7050– Motorola MV5500• PLCs are widely used (Subsystems&PPS)– Yokogawa FM3– SIEMENS S7-300• Various kinds of serial devices– Vacuum, Power supply, motor controller, etc.

• All of devices are connected via Ethernet– Serial/Ethernet converter box (Moxa Nport5610)• These make our system clean and simple

VME System
VME 64X crateby Elma4U 7Slots
9U 12 Slots•CPU:– Motorola MV5500– GE VMIVME-7050

Crate status canbe monitored by
Ethernet or serialport
Can bemonitored with
PV names(NetDrv)

PLCs and Nport5610• Serial to Ethernet converter

MOXA NPort5610-16

Software• The SSRF control system is composed of EPICS toolkits– base v3.14.8.2/3.14.8.10– extensions– Cross-compile environment• OS– Fedora core 7 (mainly)– Ubuntu server 8.10/ CentOS5.2/ Scientific Linux• OPI– EDM• High level physics application– Matlab v2007a– MCA/LabCA– Accelerator Toolbox (AT) & middle layer was adopted

EPICS Development Platform• Two servers––––HP Rack PC Server 580GG4, Xeon 3.0G/8G RAM/300G SCSI HD
One Master, the other SlaveNIS/NTP/NFS
RSYNC backup– Local yum update/PXE server• EPICS environment– OS• Linux FC7/Kernel 2.6x/GCC 4.xx

– EPICS base• 3.13.9/3.14.7/3.14.8.2/3.14.10– Extensions• Edm/medm/SDDS/Archiver/Sequencer/etc.
– Cross-compiler environment• Vxworks 5.5.1• Monta-vista linux gcc3.4

EPICS Drivers/Records•

EPICS Drivers––––––•

5-10 types of new serial device drivers are modified based on netDev
Yokogawa Plcs uses netDev
Simens PLC uses driver from PSI
Stream device driver are used for several kinds of serial devices
Modbus driver from EPICS website
VME device drivers are copy from device manufactures or other labs

Records–––––––

Bi/boai/ao
Mbbi/mbbo
Subrutin/gensub
Waveform
Caculatefanout

Data Archive and Analysis Tools• Distributed archive engine with center relational database• Native XML data type with xml schema for data storage• Developed a data retrieval system based XML Web Services
to access the archived data.
• The system included bottom layer interface and interface
applicably for accelerator physics as well as client samples
exemplifying how to use the interface.
• Tools for users that can browse, retrieve and plot data
• By the client samples, user can development their own
application.
• Memo: not be used now, just in test progress

Data Archive and Analysis Tools

Database• The hardware platform using SAN & database server cluster• Now we have tested on the MS SQL Server 2005 and willtransfer to Oracle 10g with RAC later

e-Log••••Based on center database system
Using Web2.0 Blog system
Support RSS
Integrated with uniform authentication system

Subsystems• Three part of control system:– Linac, Booster, Storage Ring
– PS, Vacuum, Modulator, e-gun, Microwave, Transport Line(injector/extract ), Timing, MPS, RF• Some subsystems statistics

PS Control• Over 550 magnet power supplies
are used at SSRF
• All PS are digital controlled• 2 types of digital controllers– SINAP self-developed digital PScontroller• LINAC, Booster and TransportLines– PSI designed digital controller(Purchased from DLS Co., Ltd)
• Storage Ring and the Booster
Ramp PS• Performance of stability andreliability has been proved since
SSRF commission

Storage Ring PS Control

Booster PS Control

Vacuum Control• Most devices are based on serial port
– VARIAN Multi Gauge– JJJvac Sputter Ion Pump Power Supply– VAT valve– RGA (Residual Gas Analyzer)– Etc.

• PLCs– Yokogawa FAM3

Vacuum Control GUI

The Event Timing System•– Structure is simple usedbroadcasting method– Low Jitter with distributed RF clock– Run on the EPCIS environment, base
3.14.x– Easy to extend

C10C11SR3C09
SR2C12

FAN2-1

C13C08FAN2-2SR4
SR1C07

C14C06

LN1RF

FAN2-5

C15 SR5BR2BL•EVG
FAN1

FAN2-7

SR10 C05

C16•

C04
C17SR6SR9FAN2-3C18

BR1

FAN2-4C03FAN2-6!çÀÂ?Û?Ü SR7
C19SR8C20

C01

New event timing system•

Compact network based on
characteristic event system.
All EVRs are placed on timing crates
and BI local stations not being
triggered devices
All trigger outputs integrate withhardware interlocks
Second level brunches, ~ 250m

C02
BL

Third level brunches, ~ 60m
Fouth level brunches(plastic fibers), ~35m
SR: Storage Ring local station ,assuming 10
BR: Booster Ring local station ,assuming 2
LN: Linac local station ,assuming 1

EVR-OEB-200

FAN2-6Hardware Schematic

RF Local StationMaster499.65MHz0dbm~1m coaxial cables with phase stabilized

Master489.65MHzPowerdevider-3db

SR RF Local StationPower-3db devider

LPF

LVPECLÖ÷¶¨ Ê±»ú ?ñ
!çÔ´?å ?ù

BPF

PhaseShift

D/AÕ?ÏÒ?¨ /·? ?¨TTL 50 Hz ·? ?¨

LA-CN:EVR1Gun
LA-CN:EVR1Samp1

EVR-OEB-200

LA-CN:EVR1Samp2
LA-CN:EVR1Samp3
LA-CN:EVR1PMod1
LA-CN:EVR1Mod1
LA-CN:EVR1PMod2
LA-CN:EVR1Mod2EVR-OEB-200
EVR-OEB-200
EVR-OEB-200

EVR-OEB-200

BS-CN:H01EVR1ExtSept2
BS-CN:H01ExtEVR1Sept3

EVR-OEB-200

BS-CN:H01EVR1ExtBump1
BS-CN:H01EVR1ExtBump2
BS-CN:H01EVR1ExtBump3

BS-CN:H02RF
BS-CN:H02InjKick
BS-CN:H02InjSept

1m Multimode fiber

35mp LA-BI:BPM-Guntrig02
la LA-BI:BCM-Guntrig03
st LA-BI:ADC-Guntrig04
ic LA-BI:CMR-Guntrig05
fi LA-BI:OSG-Guntrig06
ber

EVR-OTB-200(VME64x)

VME-EVR-230(VME 64x)2m
co EVR-TTB-200ax(VME64x)
ialcable

VME-EVR-230(VME 64x)6 FAN2-7
W0m M
M E-FultO
im UTo-1de2fiber

Linac Control Local StationEVR-OEB-200
EVR-OEB-200

EVR-OEB-200
EVR-OEB-200

EVR-OTB-200(VME64x)
BS-CN:H01EVR2PSB1
BS-CN:H01EVR2PSB2
BS-CN:H01EVR2PSQF
BS-CN:H01EVR2PSQD
BS-CN:H01EVR2PSSD
BS-CN:H01EVR2PSSF
BS-BI:H01EVR1:Brf1
BS-BI:H01EVR1:Brf2
BS-BI:H01EVR1:Binj1
BS-BI:H01EVR1:Binj2
BS-BI:H01EVR1:Binj3
BS-BI:H01EVR1:Binj4
BS-BI:H01EVR1:Binj5

BS-BI:H02EVR1:Brf1
BS-BI:H02EVR1:Brf2
BS-BI:H02EVR1:Binj1
BS-BI:H02EVR1:Binj2
BS-BI:H02EVR1:Binj3

EVR-OTB-200(VME64x)

EVR-TTB-200(VME64x)

VME-EVR-230(VME 64x)
VME-EVR-230(VME 64x)

60m
M
ult
imodefiber

W
M
E-F
O
UT-1
2

VME-EVR-230(VME 64x)

250m
M
ult
imodefiber

VM
E-FO
U
T-1
2
FAN1

60m
M
ult
imodefiber

FAN2-26

LVPECL 499.65MHz

FAN2-9

BS-CN:H01EVR1ExtKick
BS-CN:H01ExtEVR1Sept1W
M
E-F
O
UT-1
2

VME-EVG-230(VME 64x)

310m Multimode Fiber
35m Multimode fiber
Gun-Tx-200
Gun-Rc(VME64x)-200

FAN2-1

A/DLPF

50Hz 220VAC Transformer 50Hz 5VAC

EVR-OEB-200
VME-EVR-230(VME 64x)

EVR-OTB-200(VME64x)

VME-EVR-230(VME 64x)

EVR-OTB-200(VME64x)

VME-EVR-230(VME 64x)

EVR-OTB-200(VME64x)

VME-EVR-230(VME 64x)

EVR-OTB-200(VME64x)

VME-EVR-230(VME 64x)

EVR-OTB-200(VME64x)

VME-EVR-230(VME 64x)

EVR-OTB-200(VME64x)

VME-EVR-230(VME 64x)

EVR-OTB-200(VME64x)

VME-EVR-230(VME 64x)

EVR-OTB-200(VME64x)

SR-BI:H11EVR1:Srf1SR-BI:H11EVR1:Srf1
SR-BI:H11EVR1:Sinj1
SR-BI:H11EVR1:Sinj2
SR-BI:H11EVR1:4KHz

VME-EVR-230(VME 64x)

EVR-OTB-200(VME64x)

SR-BI:H13EVR1:Srf1
SR-BI:H13EVR1:Srf1
SR-BI:H13EVR1:Sinj1
SR-BI:H13EVR1:Sinj2
SR-BI:H13EVR1:Sinj3
SR-BI:H13EVR1:4KHz

VME-EVR-230(VME 64x)

EVR-OTB-200(VME64x)

VME-EVR-230(VME 64x)

EVR-OTB-200(VME64x)

VME-EVR-230(VME 64x)

EVR-OTB-200(VME64x)

A/DCPU

VME-EVR-230 +(VME 64x)
-60m
Multimodefiber

W
M
E-FO
U
T
-1
2250m
M
ult
imodefiber

W
M
E-FO
U
T
-120m
M
ult
imodefiber

FAN2-3 60W
M
E-FO
U
T
-12m
M
ult
imodefiber

FAN2-46

W
M
E-F
O
U
T
-120m
M
ult
imodefiber

FAN2-8EVR-OTB-200(VME64x)

VME-EVR-230(VME 64x)

EVR-TTB-200(VME64x)

VME-EVR-230(VME 64x)

Booster Ring Local Station60m
M
ult
imodefiber

W
M
E-FOUT-12

FAN2-5 6WM
E-FOUT-120m
Multimodefiber

Storage Ring Local Stations

EVR-OEB-200
SR-BI:H01EVR1:Srf1
SR-BI:H01EVR1:Srf1
SR-BI:H01EVR1:Sinj1
SR-BI:H01EVR1:Sinj2
SR-BI:H01EVR1:Sinj3
SR-BI:H01EVR1:4KHz
SR-BI:?01EVR1:Srf1
SR-BI:?01EVR1:Srf1
SR-BI:?01EVR1:Sinj1
SR-BI:?01EVR1:Sinj2
SR-BI:?01EVR1:Sinj3
SR-BI:?01EVR1:500M
SR-BI:H03EVR1:Srf1
SR-BI:H03EVR1:Srf2
SR-BI:H03EVR1:Sinj1
SR-BI:H03EVR1:Sinj2
SR-BI:H03EVR1:4KHz
SR-BI:H05EVR1:Srf1
SR-BI:H05EVR1:Srf1
SR-BI:H05EVR1:Sinj1
SR-BI:H05EVR1:Sinj2
SR-BI:H05EVR1:Sinj3
SR-BI:H05EVR1:4KHz
SR-BI:H07EVR1:Srf1
SR-BI:H07EVR1:Srf1
SR-BI:H07EVR1:Sinj1
SR-BI:H07EVR1:Sinj2
SR-BI:H07EVR1:4KHz
SR-BI:H09EVR1:Srf1
SR-BI:H09EVR1:Srf1
SR-BI:H09EVR1:Sinj1
SR-BI:H09EVR1:Sinj2
SR-BI:H09EVR1:Sinj3
SR-BI:H09EVR1:4KHz

SR-BI:H15EVR1:Srf1
SR-BI:H15EVR1:Srf1
SR-BI:H15EVR1:Sinj1
SR-BI:H15EVR1:Sinj2
SR-BI:H15EVR1:4KHz
SR-BI:H17EVR1:Srf1
SR-BI:H17EVR1:Srf1
SR-BI:H17EVR1:Sinj1
SR-BI:H17EVR1:Sinj2
SR-BI:H17EVR1:Sinj3
SR-BI:H17EVR1:4KHz
SR-BI:H19EVR1:Srf1
SR-BI:H19EVR1:Srf1
SR-BI:H19EVR1:Sinj1
SR-BI:H19EVR1:Sinj2
SR-BI:H19EVR1:4KHz

SR-CN:H20EVR1:InjKick1
SR-CN:H20EVR1:InjKick2
SR-CN:H20EVR1:InjKick3
SR-CN:H20EVR1:InjKick4
SR-CN:H20EVR1:InjSept1
SR-CN:H20EVR1:InjSept2

Timing SystemPerformance• The RMS jitter of gun trigger relative to RF reference is10.72ps, which includes the jitter of e-gun and oscilloscope.
• The RMS jitters of other injection and extraction trigger areless the 30ps.
• Performance are satisfied with the requirements of physicaldesign.

MPSPLCÊä?ö´¥ ·¢ ÁªËø
PLC?¨ ÓÃÍ¨ Ñ¶·? Ê?
ÁªËøDÅºÅ•

3 parts!
–––•IOCÊøÏß Õ?ÁªËøÏ"Í?

·? Ê?´? ¶¨?«ÓÃÉèÊ©Ï"Í?

PLC

Accelerator & beam line device interlock
Utility system
2#IP
1#IP
Safety system
The whole machine layer
Linac, boost, ring layer
Sub system layer
Device layerIOC¶¨ Ê±Æ÷LR

2#IPIOC
1#IP·ø Éä·À»!Ï"Í?

MPS SwitchHierarchy––––OPI

SR9¶¨ Ê±Æ÷

PLC
PLC

PLC

PLC

Ö±Ïß

¶¨ Ê±Æ÷

BR2¶¨ Ê±Æ÷

BR1

IOCPLCÔöÇ¿Æ÷

IOC

MPS GUI

RF System• Linac microwave system is designed by SSRF
• Thales design RF system for SSRF
• Integrated with EPICS system and can be controlled at center
control room

Linac RF Control

RF for Booster and Storage Ring
RF Amplifier &Klystron
Booster 180Kw
Storage Ring
300Kw X 3
Epics IOCMVME 5500
Hytec I/O boards
Fully Isolated Interface

RF and Timing Event Distribution
Master Signal
Generater

RF Signal
Distrubution
Unit

Timing & EentSignal
Generator
Fiber (Om3 )Distribution
Unit

RF GUI

Storage RingBooster

Remote Management•Video & Audio system based on network•Device management•Remote monitor: VME ,Switch, UPS etc•Network management system•Based on SNMP
•Email"SMS alarm system (Next)

Center Control Room• 18 HP7700 OPI PCs in the Control Room
• All the OPIs run on the Linux Fedora 7 and in ssrf.ac.cndomain.
• OPI system running at control system has uniform runtime
environment.
• The edm GUI files are stored on NFS file server and all theclient can access it by a start script.

Control GroupSSRF CN, Shanghai, 2008

Inserting Device (ID)•••More than 60 beam lines could be installed in the ring
26 of them will be based on insertion devices
First stage will also include 7 initial beam lines and experimentalstations–––––––•

macromolecular crystallography
XAFS
hard X-ray microfocus
X-ray imaging and biomedical application
soft X-ray spectromicroscopy
diffraction
small angle X-ray scattering respectively

5 beam lines are based on insertion devices, 2 are based onbending magnets–––

2 wigglers, finished
1 elliptically polarizing undulator (EPU) , finished2 in-vacuum undulators (1 finished, 1 will be finished in this month)Wiggler and EPU control

Embedded EPICS Controller of IDs•

We use embedded EPICS controller to implement ID control––––•

Full IOC core–••

DI/DO interfaces
2 Ethernet ports/ 1 RS232 debug ports/PCMCIA wireless card
Intel xscale CPU
CF card storage support
Base 3.14.10 cross compile, CF card storage

Additional programming for converting Ethernet/serial (Full duplex)
Three types of EPICS applications running on it–––•

S7 PLC driverPower supply driver
PC Monitor application

Running stability––––Kernel version 2.6
About 15% CPU loading, several tens of Mega storage
Full ioc core supported including sequencer
Startup ioc via /etc/inittab

Embedded EPICS Controller

Conclusion• SSRF control system is another successful application ofEPICS• We benefit greatly from other control groups, especially
KEKB control group• Ethernet and netDev (J.Odagiri) make our control architecturesimple and clean• The control system was successful during the machinecommissioning, has reached design goal
• We hope can do some enhanced works in the future andcontribute to EPICS collaboration

Control GroupSSRF CN, Shanghai, 2008

Thanks

Control GroupSSRF CN, Shanghai, 2008

Design Parameters
Wiggler'()*+13,16-mm'./0)*+50 mm'.123)*+150mm'.)*45674 mm/sec
83)*9'(:'.;67 sec
83)*9'(:'.<=)*;
19sec)*'(>*?@ABC3D
EFGHIJ6KLMNO.1 um PQRSTUSVBC3D+& WVXY3D•

Controller Manages–––––––•

4 Gap Servo Motor
2 Phase Shift Servo Motor
6 Heidenhain linear absolute encoders
24 Limit and Kill Switches#$%&4 Correction Coils
Software Interface

2 in-vacuum undulator––Step motor
Diffirent encoders and so on

EPU!
6Z[\VW,4Z)*LM]2Z^CLM'()* ~30 mm'./0)*+85 mm'.123)*+100mm'.)*45674 mm/sec!10 sec Min to Max Gap Time'()*45_`a !5µm'.)bcd^C4567 30s(9ecd4fg
cd )^Chijk±55mm)*'(>*?@ABC3D
EFGHIJ6KLMNO.1 um PQRSTUSVBC3D+& WVXY3D