KEKB and SuperKEKB Controls< kazuro.furukawa @ kek.jp >Control System Achievement at KEKB andUpgrade Design for SuperKEKB

K. Furukawa, A. Akiyama, E. Kadokura, T. Kudou,
M. Kurashina, S. Kusano, K. Mikawa, F. Miyahara,
T.T. Nakamura, T. Nakamura, J. Odagiri, T. Okazaki,
M. Satoh, T. Suwada, K. Yoshii(Control Group, SuperKEKB Ring/Linac)
October 2011.

Kazuro Furukawa, KEK, Oct.2011.

1

KEKB and SuperKEKB Controls

Earthquake in March – Thanks
Thank you so much for your warm messages
from all over the world.

Operation will be normal soon.
Kazuro Furukawa, KEK, Oct.2011.

2KEKB and SuperKEKB Controls

KEKB

KEKB Controls 1998 - 2010
EPICS as Main control Software Toolkit
Became one of de-facto standard at 1995
Several fieldbuses were incorporated
 VME, VXI, CAMAC, ArcNet, GPIB, etc

Reduced software design efforts much

Scripting Languages for Operational Software
SADscript/Tk, Python/Tk, Tcl/Tk used much
 Especially, SADscript as a bridge btw. Accelerator simulation,
Numeric manipulation, Graphic interface and EPICS controls

Bright new idea in the morning meeting could make theoperation much advanced in the evening Great tool to optimize the operation
Kazuro Furukawa, KEK, Oct.2011.

3

KEKB

KEKB and SuperKEKB Controls

SADscripts/Tk
Many machine diagnostic and correction/
feedback tools should be provided

Hundred of 1% improvements will provide twice
better performance, rapidness is important
Kazuro Furukawa, KEK, Oct.2011.

4KEKB and SuperKEKB Controls

KEKB

Change in Operation Modes at KEKB
Belle/KEK

May.2000
Apr.2003
Dual Bunch e+Feb.2005
ContinuousInjections
Dec.2008
Crab Cavities andSimultaneous Injection
Kazuro Furukawa, KEK, Oct.2011.

5KEKB and SuperKEKB Controls

SuperKEKBSuperKEKBElectron-positron asymmetriccollider
Based on a decade of successful operation at KEKB

Aims at 40-times higher luminosity
8 x 1035cm-2s-1 for further flavor physics studies
7GeV / 2.6A electron, 4GeV / 3.6A positron
y* ~ 0.3mm, x /y ~ 4nm/9pm, y ~ 50nm, z ~ 6mm
Ante chamber, longer bend, damping ring, rf gun,etc
Kazuro Furukawa, KEK, Oct.2011.

6KEKB and SuperKEKB Controls

SuperKEKBSuperKEKB Controls
Inherit Good part of KEKB Controls
EPICS
Scripting languages
With simple rejuvenation of software/hardware

Two Additional Concepts

Kazuro Furukawa, KEK, Oct.2011.

7

SuperKEKB

KEKB and SuperKEKB Controls

1st: CA EverywhereEPICS Channel Access (CA) EverywhereEmbed EPICS control software (IOC) everywhere
possibleReduce efforts on protocol design, testing, etc

Kazuro Furukawa, KEK, Oct.2011.

8

KEKB and SuperKEKB Controls

CA Everywhere

Transition of Architecture
Mini
Computer

Mini
ComputerDevices

1990~

1993~

2005~

Unix

Unix

OPI

TCP/RPC/CA

ChannelAccess

ChannelAccess

VMEVME/IOCIOC

FieldNetworks

TCP/IP

ChannelAccessDeviceController

DeviceController

DeviceIOC
Kazuro Furukawa, KEK, Oct.2011.

9CA Everywhere

KEKB and SuperKEKB Controls

Overview of controls at KEKVME + Unix (1990~)
Standard model (later EPICS) configuration
With several fieldbusesEvery controller on IP network (1993~)
2-layer physical, 3-layer in logical (Linac, J-PARC)

Every controller with EPICS IOC (2005~)
Channel Access everywhere (CA Everywhere)
Good for rapid development and smooth maintenanceMay need some consideration on network management
Kazuro Furukawa, KEK, Oct.2011.

10

CA Everywhere

KEKB and SuperKEKB Controls

Embedded EPICS IOCs at (Super)KEKB
Not only information server, but also the same
software framework on every controller Rapid development and smooth maintenanceμTCA LLRF module: Linux/FPGA (Odagiri…)
THDAULT05
Yokogawa PLC: Linux CPU (Odagiri…)
Oscillo. 50Hz measurement: Windows (Satoh…)
OPI
MPS management :Linux/FPGA (Akiyama…)
CATiming TDC: Linux/Arm (Kusano…)
Power modulator: Linux/FPGA (Kusano…)
IOCLibera BPM at 50Hz: Linux/FPGA (Satoh…)CANI cRIO : CAS/FPGA (Odagiri…)
DeviceIOC
Many more…
Kazuro Furukawa, KEK, Oct.2011.

11

KEKB and SuperKEKB Controls

CA Everywhere

Simpler PLC Usage under EPICS
Conventional PLC usageOPICA Clients

with asynchronous accessIOC(Logics)

OPI
CA Clients

LadderCPU
(Logics)

FAM3 PLC
I/O Modules

F3RP61
IOC

FAM3 PLC
I/O ModulesIf necessary, we can combine
OPICA Clients

F3RP61IOC

LadderCPU

FAM3 PLC
I/O Modules

Logics are confined in PLC, and management is easier
Kazuro Furukawa, KEK, Oct.2011.

12

SuperKEKBKEKB and SuperKEKB Controls

2nd: Dual-layer Controls
Another layer in addition to EPICS/CAEvent system helps EPICS with another channel
Additional functionality, synchronization and speed

Kazuro Furukawa, KEK, Oct.2011.

13KEKB and SuperKEKB Controls

Dual-layer Controls

Dual-layer Controls
IOC controls via Conventional EPICS CA
Above 1ms, ordered controls

Fast FPGA controls via SFP/Fiber10ps ~ 100ms, 114MHz synchronous controls
OPIChannel Access
IOCIOCIOCIOC

EVG

EVR

EVR

EVR

FPGA/SFP
Kazuro Furukawa, KEK, Oct.2011.

14

KEKB and SuperKEKB Controls

Dual-layer Controls

Fast Global Synchronous Controls
 MRF’s series-230 Event Generator / Receivers
114.24MHz event rate, VME64x and VxWorks v5.5.1
50Hz fiducials
 EPICS R3.14.9 with DevSup v2.4.1
More than hundred 17 event receivers up to now
50Hz-analog/timing param.
Central
Event GeneratorMulti/single-mode fiber
Timing precision is < 10ps.
 < 1ps with external module.

SH_A1
KL_B5/B6

SB_B

Injection

SB_A

-GunARC

e– BT (PF: 2.5GeV, 0.1nC)

Cont-ABC

96ns>100ns

KL_51/52
SB_C

SB_1SB_2

SB_3

SB_4

SB_5

e+ BT (KEKB: 3.5GeV, 2nC)


Cont-1

Cont-2

>100ns
96ns

Cont-3

Cont-4

Cont-5

Event Receivers

e– BT (KEKB: 8GeV, 2nC, PFAR: 3.0GeV, 0.1nC)

Kazuro Furukawa, KEK, Oct.2011.

15

KEKB and SuperKEKB Controls

Dual-layer Controls

Event Manipulation
Human Operator

Injection Programs

Flexible with script
and reliable/fastwith FPGA.

Arbitrate and Generate Beam Mode Pattern (in PythonTk)
considering priorities of the ring accelerators
equalizing pulsed power supply intervalin arrays of length 2 (40ms) to 500 (10s)each element corresponds to a 20-ms time slot and a beam mode Generate Events for the Next 20-ms Time Slot (in Event Generator)
reading two consecutive elements from the beam mode patterngenerate several events for the next pulse
generate preparation events for the next after next

Generate Signals based on Received Events (in Event Receiver)generate pulsed signals as prepared in the previous time slot
program the signals (analog value, delays, etc) for the next
start to generate analog signals for the nextKazuro Furukawa, KEK, Oct.2011.

16

KEKB and SuperKEKB Controls

Dual-layer Controls

One Machine, Multiple Virtual Accelerators (VAs)
 Control/Monitor are carried dependent on a VA
 Mostly independent between VAs

 Independent parameter set for each VA, one of the VAs is controlled ata time VAs for Injections (HER (e-), LER (e+), PF, PF-AR) and Linac-only in SuperKEKB projecte Gune– BT (PF: 2.5GeV, 0.1nC)

PF Injection

ARC

e+ Target

Event-basedControl Systeme GunARCKEKB-LER Injection

Primary e– (4GeV, 10nC)

e+ BT (KEKB: 3.5GeV, 0.6nC)

e+ Targete GunARC

KEKB-HER Injection
e+ Target
e– BT (KEKB: 8GeV, 1.2nC)

Kazuro Furukawa, KEK, Oct.2011.

17

KEKB and SuperKEKB Controls

Dual-layer Controls

Multiple Closed Loop Controls OverlappedClosed loops can be installed on each VA independently
 Tested at KEKBe Gune– BT (PF: 2.5GeV, 0.1nC)

PF Injection

ARC

e+ Targete Gun

Event-basedControl SystemARCKEKB-LER Injection

Primary e– (4GeV, 10nC)

e+ BT (KEKB: 3.5GeV, 0.6nC)

e+ Targete GunARC

KEKB-HER Injection
e+ Target
e– BT (KEKB: 8GeV, 1.2nC)

Kazuro Furukawa, KEK, Oct.2011.

18

KEKB and SuperKEKB Controls

Towards SuperKEKB
Upgrade of controllers for each type of device
Discussions with device groups, for aging controllers

Base software components, OS, EPICS, CSS,(Scripting) Languages
Especially EPICS Collaboration-based software

Operational software
Archiver, Archive viewer, Alarm, e-Log, etc

Information sharing to offices
More Web based application softwareSeminar and training
IP Networking, Wireless LAN, Console Desk, etc
Kazuro Furukawa, KEK, Oct.2011.

19

KEKB and SuperKEKB Controls

Accelerator Controls
It’s a fan to interact with all the componentsof the accelerator through control hardware
and software
It’s a fan to interact with all the staff
members of the project in order to design
and improve controls
We can contribute to the machine
performance and the results even without
realizing it
Kazuro Furukawa, KEK, Oct.2011.

20

KEKB and SuperKEKB Controls

Conclusion
Control efforts have contacts with allactivities in the particle accelerator. We areat the privileged position to enjoy it.
Based on existent KEKB controls,“CA Everywhere” and “Dual-layer Controls”
should be enforced.
With some Phronesis (Greek: practicalwisdom, ability to understand the universaltruth), we believe we can achieve the target.
Kazuro Furukawa, KEK, Oct.2011.

21

KEKB and SuperKEKB Controls

Mt. Tsukuba

Thank you
PF-AR

SuperKEKB
dual rings

PF
Linac

Kazuro Furukawa, KEK, Oct.2011.

22

KEKB and SuperKEKB Controls

Thank you

Kazuro Furukawa, KEK, Oct.2011.

23