logo

Digital LLRF controller for SSRF booster RF system upgrade

SYNCHROTRON RADIATION TECHNOLOGY AND APPLICATIONS

Digital LLRF controller for SSRF booster RF system upgrade

ZHANG Zhi-Gang
ZHAO Yu-Bin
XU Kai
ZHENG Xiang
LI Zheng
ZHAO Shen-Jie
CHANG Qiang
HOU Hong-Tao
MA Zhen-Yu
LUO Chen
MAO Dong-Qing
SHI Jing
WANG Yan
LIU Jian-Fei
Nuclear Science and TechniquesVol.26, No.3Article number 030106Published in print 20 Jun 2015Available online 20 Jun 2015
48103

The low level radio frequency (LLRF) system for booster accelerator at Shanghai Synchrotron Radiation Facility (SSRF) was upgraded by a digital controller based on field programmable gate array (FPGA) technology. Parameters of voltage, frequency and field flatness in the two 5-cell cavities are controlled to meet the requirements of booster. In this article, the ramping curve of cavity voltage, amplitude and phase control loop with vector sum of the two 5-cell cavities, tuning loop and field flatness loop are analyzed and discussed in detail. A different method in tuning loop is adopted due to the limitations of ADC channels. The function realizes energy ramping of electron beam from 150 MeV to 3.5 GeV with a repetition rate of 2 Hz. With the new LLRF controller, the phase stability at ramping mode in 10 hours long operation is improved from ± 1.5° (RMS) with open loop to ± 0.15° (RMS) with close loop, while the detuning phase and field flatness are maintained to within ± 2°and ± 1%, respectively.

LLRF controlRampingAmplitude and phase loopField flatnessTuning loops

I. INTRODUCTION

The Shanghai Synchrotron Radiation Facility (SSRF) can be divided into two parts: a high efficiency injector and a high performance storage ring. The injector includes a 150 MeV electron linac, a full energy booster synchrotron, a linac-to-booster transport line (LTB) and a transport line from booster to storage ring (BTS) [1]. The energy of electron beam is ramped from 150 MeV to 3.5 GeV with a repetition rate of 2 Hz in the booster.

Stability of the amplitude and phase in the accelerators is controlled by low level radio frequency (LLRF) system. Analogue LLRF has been adopted in the booster of most light sources, such as SSRF [2], ALBL [3] and Diamond [4]. With the rapid development of digital technology, digital LLRF is widely used so as to have a better performance of the beam storage, such as the ALBL [5], SSRF [6], and SOLEIL [7].

The former LLRF controller of SSRF booster is an analogy one with the two 5-cell copper cavities. The problems encountered in its seven years’ operation included: occasional stop of ramping to affect the top-up mode in operation, motor driver errors from frequent movements and undesirable beam performance of the booster with closed amplitude and phase loop. In addition, it is not convenient to replace hardware or to update software of peripheral component interconnect (PCI) extensions for instrumentation (PXI) boards in maintenance, and it costs a lot to have a spare set of the front end in analogy LLRF system. To improve the performance, the booster LLRF controller was upgraded in 2014 with the digital technology.

As shown in Fig. 1, the RF system of SSRF booster is composed of a 40 W pre-amplifier, a 180 kW continuous-wave plant (Klystron) with WR1800 waveguide lines, Magic T, two PETRA type 5-cell copper cavities and a LLRF controller [2].

Fig. 1.
Layout of the RF system of SSRF booster. The RF signals sampled and processed by the LLRF controller include the reference signal, forward power signal Fwdi, reflected power signal Reflected i, pick-up signals from Pcic2, Pti and Pcic4 (i denotes cavity number of the 5-cell copper cavities). M.O., master oscillator; Trigger, the timing with a repetition rate of 2 Hz.
pic

The up-converter, down-converter, in-phase and quadrature (I/Q) demodulator [8, 9] and feedback control technology are adopted in the digital LLRF controller for SSRF booster. There are five loops to stabilize the two 5-cell cavities operation: an amplitude and phase loop with the vector sum of two cavities, a tuning loop and a field flatness loop for each cavity, which will be described together with the amplitude ramping curve.

Table 1 presents the performance of the new developed LLRF controller which achieves the requirements of SSRF booster RF system, where the data are measured since August, 2014 on-line operation with beam.

TABLE 1.
Performance of SSRF booster RF system with new LLRF controller
Parameter Value
Nominal RF frequency (MHz) 499.654
Repetition(ramping) (Hz) 2
the max of RF voltage (MV) 1.8
Phase control range (°) ± 180
Phase stability during rampinga (°) ± 2
Field flatness (%) ± 1
Show more
a Estimated for two cavities driven by on klystron

II. DESIGN OF THE DIGITAL LLRF CONTROLLER

A. Ramping curve

The energy of electron beam in booster increases with the RF cavity voltage in the first 250 ms of a period. The RF cavity voltage is ramped to compensate the momentum variation due to the magnets ramping and the energy loss due to radiation, the latter becoming predominant at higher energies. The RF voltage is given by Eq. (1) [10]:

VRF(t)=V0+K1dB/dt+K2[E(t)]4, (1)

where, V0 is the capture voltage, B is the magnetic flux density of dipole, K1 is proportional to the maximum energy variation, and K2 is a coefficient related to the radiation losses and the condition on the quantum lifetime.

It is required that during the injection, the starting RF voltage of ramping should be considered reasonably to avoid strong longitudinal oscillation, which causes beam loss of injection. The results, calculated with the SSRF design parameters of energy and arrival time jitter of the electron beam from the linac, show that there is no beam loss if the starting RF voltage is below 600 kV at the booster; but if the starting RF voltage was less than 200 kV, Robinson instability would occur during injection because of the large impedance of the two 5-cell cavities, especially in multi-bunch mode operation [2]. The cavity voltage ramping curve adopted in the digital LLRF controller is shown in Fig. 1. The starting voltage at the injection time is optimized at 400 kV holding 0.04 s, before it ramps linearly to 1.8 MV in 0.18 s. At 1.8 MV it stays for 0.04 s, before extraction of 0.25 s after injection.

B. Amplitude and phase loop with vector sum of the two cavities

The amplitude and phase control loop, using a feedback method, is shown schematically in Fig. 3. With the ramping curve in Fig. 2, totally 50 sets of points are designed through the operation interface, which are amplitude of the vector sum of the two 5-cell cavities. By calculating with corresponding phase, 100 values including 50 I-data and 50 Q-data are obtained. The 100 values are downloaded to the 100 specified registers in FPGA through network, when the digital LLRF controller just reboot. The algorithms of the vector of signals, CORDIC (Coordinate Rotation Digital Computer) [11, 12], rotation, and PI are used.

Fig. 3.
Diagram of the amplitude and phase control loop in the digital LLRF of SSRF booster. CORDIC: coordinate rotation digital computer, Rot.: rotation by matrix, P.I.: proportional and integral.
pic
Fig. 2.
Ramping curve of RF voltage of the digital LLRF at SSRF booster.
pic

The 5-cell cavity can be regarded as five magnetically coupled resonators. Due to the π accelerating mode, the whole 5-cell cavity can be modeled as a single RLC parallel circuit [13] with the following transfer function [14]:

G(s)=2σRss2+2σs+ωR2,ωR=1LC,σ=ωR2Q,Q=RCL, (2)

where s is Laplacian, ωR is the resonant frequency, σ is the damping rate (s-1), and Q is the quality factor. Equation (2) can be simplified to a classical first-order low-pass filter when the cavity is centered at the resonance frequency [6, 14]:

G(s)=σRs+σ. (3)

The transfer function of the cavity model with feedback is shown in Fig. 4, where kp is the gain value of the proportional and ki is the integral in PI algorithm. The feedback model can absorb the forward delay (τf) and reverse delay (τp), which limits the gain loop.

Fig. 4.
The feedback model of the transfer function.
pic
C. Tuning loop and field flatness loop

The tuning loop and field flatness loop of the digital LLRF controller is shown schematically in Fig. 5. Each cavity has a tuning loop and a field flatness loop. Tuning loop controls the resonance frequency of the 5-cell cavity, while the field flatness loop is for the 5-cell cavity to equalize the amplitude of the electric field in all the cells [15, 16].

Fig. 5.
Diagram of the tuning loops and field flatness loops at SSRF booster.
pic

With the tuning loop, two plungers mounted on Cells 2 and 4 of the 5-cell cavity are driven in the same direction, the phase difference between the forward power and cavity voltage should remain as close as possible to the value of reference phase, which is chosen as having the minimum reflected power from the cavity and providing stable Robinson operation. Regarding to the field flatness loop, the two plungers of a cavity are driven in opposite directions, and the voltage difference between the Cells 2 and 4 should remain as small as possible.

The tuning loop and field flatness loop in the digital LLRF are also based on digital IQ technology. The FPGA board has six ADCs. Six RF signals (Fwd1, Pc1c2, Pc1c4, Fwd2, Pc2c2 and Pc2c4 in Fig. 1) are sampled by the LLRF controller. The phase difference between the voltages of forward and Cell 2 in a cavity is calculated using Eq. (4), and the normalized amplitude difference between the signals of Cells 2 and 4 in a cavity is obtained by Eq. (5):

Δθ(Vfwd,Vcell2)=arctan2(Ifwd,Qfwd)arctan2(Icell2,Qcell2), (4) Δamp(Vcell2,Vcell4)=Icell22+Qcell22Icell42+Qcell42Icell22+Qcell22. (5)

According to the Δθ(Vfwd, Vcell2) and Δamp(Vcell2, Vcell4) values for a cavity, three signals of enable, direction and pulse are sent to each motor driver from FPGA. The drivers move the two plungers (for a cavity) in right direction independently, making the Δθ(Vfwd, Vcell2) be as close as possible to reference value and the Δamp(Vcell2, Vcell4) as close as possible to zero. This is done by defining two windows with thresholds of ±C1 and ±C2(C2 resides within C1). C1 defines acceptable range of the parameter, and C2 (-C2) defines the range the parameter shall be reduced to when it exceeds the C1 (-C1) thresholds. This is illustrated in Fig. 6 for tuning thresholds and the status of plunger.

Fig. 6.
Tuning thresholds and status of plunger. Solid arrow: the plunger moves; dotted arrow the plunger stops.
pic
D. Hardware

As mentioned above, there are eleven signals should be controlled and monitored (Fig. 1). Because of the lack of ADC channels on the digital signal processing board, the digital LLRF controller system was divided into two controllers, the amplitude and phase loop controller, and the frequency and field flatness loop controller.

Two different control cards are used in the updated LLRF controller (Fig. 7). One is the RF front-end card, the other is the data processing card. The former is in charge of the local oscillator (LO) signal, the down-converter and the up-converter. The latter is integrated with the ADCs, the DACs, the I/O connectors and the clock distribution part. The gain value of the down-converter is greater than 10 dB, while the up-converter is greater than 12 dB. The isolation value of all channels is more than 80 dB.

Fig. 7.
(Color online) Chart of the digital LLRF controller box.
pic

As shown in Fig. 8, three different types of chips, such as the complex programmable logic device (CPLD), the frequency divider and the fan-out chip (1:8), are used in the clock distribution system. The CPLD is used to save the configuration program for frequency divider where the configuration program can be downloaded automatically when the power is switched on. The frequency divider is the main chip to generate various different frequency clock signals (i.e. the ADCs signal (25 MHz), the DAC signal (100 MHz), the FPGA signal (25 MHz), and the intermediate frequency (IF) signal (31.25 MHz)) by dividing the reference signal. And the fan-out chip can output eight clock signals for FPGA and ADCs from one input signal with the same frequency.

Fig. 8.
The clock distribution system.
pic

III. RESULTS AND DISCUSSION

The digital LLRF controller was put into operation with beam at SSRF booster RF system in August 2014 at ramping mode. The maximum reflected power is less than 300 W for each cavity. Two signals are traced by oscilloscope (Fig. 9). C1 indicates the trigger from timing, which is 2 Hz in repetition rate. C2 is the RF output from DAC, which is the input signal of 40 W pre-amplifier. In full energy operation, the power is ramping from 3 kW to 60 kW, corresponding to 0.4–1.8 MV across the sum of two 5-cell cavities.

Fig. 9.
(Color online) The RF output form DAC and the trigger traced by oscilloscope. C1: the trigger, C2: RF output.
pic

Stability of the frequency and field flatness at ramping mode in ten hours are shown in Fig. 10. The frequency stability (Fig. 10(a)) is better than ± 2°and the field flatness stability (Fig. 10(b)) is better than ± 1%.

Fig. 10.
Stability of the frequency (a) and field flatness (b) at ramping mode. The data were recorded every second in ten hours.
pic

Stability of the vector sum of phase at ramping mode with open and closed loop in ten hours is shown in Fig. 11, where we can see the stability is improved from ± 1.5° with open loop (Fig. 11(a) to better than ± 0.15° (RMS) with closed loop (Fig. 11(b)) which is better than requirements of booster RF system (± 4°). And there is no beam loss with closed loop which means the problem from old analogue LLRF controller has been solved.

Fig. 11.
The phase stability at ramping mode with open (a) and closed (b) loop in ten hours.
pic

IV. CONCLUSION

A new digital LLRF controller based on FPGA technology has been developed to replace the old analogue controller. The function to ramp the electrons energy from 150 MeV to 3.5 GeV with 2 Hz repetition rate is realized. Long time online operation with beam at SSRF booster under the new controller shows the stability of frequency, field flatness and phase is better than ±2°, ± 1% and ±0.15°, respectively. Furthermore, the beam loss when control loop is closed with the old analogue controller has been solved. In general, the performances of the digital LLRF controller have reached the requirements of the SSRF booster RF system.

References
[1] M H Jiang, X Yang, H J Xu, et al.

Shanghai synchrotron radiation facility

. Chinese Sci Bull, 2009, 54: 4171-4181. DOI: 10.1007/S11434-009-0689-y
Baidu ScholarGoogle Scholar
[2] Q Gu, L X Chen, M Chen, et al.

RF system for the SSRF booster synchrotron

, Proceedings of the 11th European Particle Accelerator Conference (EPAC08), Genoa, Italy, Jun. 2008, 754-756.
Baidu ScholarGoogle Scholar
[3] H Hassanzadegan and F Perez.

Analogue LLRF for the ALBL Booster

, Proceedings of the 11th European Particle Accelerator Conference (EPAC08), Genoa, Italy, Jun. 2008, 1416-1418.
Baidu ScholarGoogle Scholar
[4] C Christou, V C Kempson, K Dunkel, et al.

The Diamond Light Source booster RF system

, Proceedings of the 10th European Particle Accelerator Conference (EPAC2006), Edinburgh, Scotland, Jun. 2006,1295-1297.
Baidu ScholarGoogle Scholar
[5] A Salon and F Perez.

Digital LLRF for ALBL storage ring

, Proceedings of the 11th European Particle Accelerator Conference (EPAC08), Genoa, Italy, Jun. 2008, 1419-1421.
Baidu ScholarGoogle Scholar
[6] Y B Zhao, Z T Zhao, C K Yin, et al.

Digital prototype of LLRF system for SSRF

. Chinese Phys C, 2008, 32: 758-760. DOI: 10.1088/1674-1137/32/9/015
Baidu ScholarGoogle Scholar
[7] M Diop, P Marchand, F Ribeiro, et al.

Digital low level RF system for SOLRIL

, Proceedings of the 11th European Particle Accelerator Conference (EPAC08), Genoa, Italy, Jun. 2008, 1407-1409.
Baidu ScholarGoogle Scholar
[8] Z G Zhang, Y B Zhao, K Xu, et al.

Calibration method and experiment based on I/Q demodulation principle

. Nucl Tech, 2015, 38: 030102. (in Chinese) DOI: 10.11889/j.0253-3219.2015.hjs.38.030102
Baidu ScholarGoogle Scholar
[9] S P Zhong, M H Zhao and J Q Zhang.

Digital I/Q technology used for magnetron frequency control

. Nucl Tech, 2014, 37: 040103. (in Chinese) DOI: 10.11889/j.0253-3219.2014.hjs.37.040103
Baidu ScholarGoogle Scholar
[10] A Fabris, M Bocciai, L Bortolossi, et al.

Installation and commissioning of the RF system for the new Elettra Booster

, Proceedings of the 11th European Particle Accelerator Conference (EPAC08), Genoa, Italy, Jun. 2008, 745-747.
Baidu ScholarGoogle Scholar
[11] R Liu, Z Wang, W P Pan, et al.

FPGA-based amplitude and phase detection in DLLRF

. Chinese Phys C, 2009, 33: 594-598. DOI: 10.1088/1674-1137/33/7/017
Baidu ScholarGoogle Scholar
[12] M Bekooij, J Huisken and K Nowak.

Numerical accuracy of fast Fourier transforms with CORDIC arithmetic

. J VLSI Sig Proc Syst, 2000, 25: 187-193. DOI: 10.1023/A:10081792225059
Baidu ScholarGoogle Scholar
[13] S Simrock and Z Q Geng.

Introduction to the cavity model

, Proceedings of the LC school, Beijing, China, 2009.
Baidu ScholarGoogle Scholar
[14] G F Franklin, D Powell and A Emami-Naeini. Feedback of control of dynamic systems. California (USA): Addison-Wesley world student series, 1994, 157-175.
[15] J Q Zhang,L Y Yu, C X Yin, et al.

Algorithm improvement for phase control of subharmonic buncher

. High Power Laser Part Beam, 2011, 23: 2179-2182. (in Chinese) DOI: 10.3788/HPLPB20112308.2179
Baidu ScholarGoogle Scholar
[16] Z B Tang, Z Y Ma, H T Hou, et al.

Frequency control and pre-tuning of a large aperture 500 MHz 5-cell superconducting RF cavity

. Nucl Sci Tech, 2014, 25: 030102. DOI: 10.13538/j.1001-8042/nst.25.030102
Baidu ScholarGoogle Scholar