EPICS-based controlof FFAG
Yasutoshi KURIYAMA (RRI, Kyoto Univ.)

京都大学 原子炉実験所
Kyoto University Research Reactor InstituteContents•FFAG Construction History•

Control of FFAG Accelerator Complex•

PLC + LabVIEW based Control•

Timing System•

PLC + EPICS based Control•

Next Plan2

京都大学 原子炉実験所
Kyoto University Research Reactor InstituteFFAG Construction

世界初の加速器駆動未臨界炉実験が始まりました

FY2002 KART (ADS) Project started
FY2004 Building Construction was finishedKUCA

FY2005 Construction of Accelerator complex started
FY2008 Authorized as a radiation generating device

FY2009First ADS Experiment（100MeV - 2pA@Neutron Production target)

イノベーションリサーチラボラトリ

5. KUCA2009年3月4日
世界初の核破砕中性子による加速器駆動未臨界炉実験の開始

FY2011 Injector to the MR was changed to Linac
Energy upgraded 100 MeV to 150 MeV
FY2012 Beam current upgraded to 10 nA with 20 Hz Rep.
Irradiation experiment was started
FY2015

Beam cannot provide from October 2015 to now
now because of RFQ Trouble
3

1. Ion source

2. Injector

3. Booster

4. Main ring

加速器駆動未臨界炉とは？

京都大学 原子炉実験所

加速器により加速した高エネルギー陽子を重金属ターゲットに導き、核破砕反応で生じた中性子をKyoto University Research Reactor Institute
未臨界状態の原子炉(停止中の原子炉)に打ち込んAccelerator Group•The number of research staﬀ is ﬁve …

No one is control system expert!!

京都大学 原子炉実験所
Kyoto University Research Reactor InstituteControl system
Network PLC based Control System
Proceedings of EPAC08, Genoa, Italy

Control RoomPCPCPC

1 Gbps Ethernet
Master
PLC
Block

TUPP014

Accelerator & Power supply RoomControl Rooma kind of database server in operation without any setup, oncontrary to the case of EPICS in which a series of setup isrequired for starting up a CA server.
The other difference is that the data transfer protocol isstandardized and abstracted, and developers eventually do
not care for data transfer between PCs and PLCs. This kindof abstraction drastically reduces the difficulty for technical
Slave on the actual control system.
staffs to start a development

HardwarePCPCPC

100 Mbps ethernet

PLC

PLC

RoomCPUodule

PLC Master BlockPLC Slave Block

PLC
SlaveBlock

PLC
Block

FA-M3R series by Yokogawa Electric Corporation is Figure 2: Hardware configuration of the present control
chosen as the PLC in the present control system. This series system.
Master is well adapted to IP-based network, e.g., FA-M3R allows
maintenances except hardware troubles over IP-based
PLC allnetwork.
Block FA-M3R also has a bus extension capability by opticalfibers. Up to 32 module blocks in remote places connectedby optical fibers can work as if they are one large module
block, enabling CPU Opticalto be kept away from the high noiseor radiation environment. FA-M3R series also has another
OpticalBus on its backup system. All ladder sequences areadvantage
stored with the complete copy of these ladder sequenceson the RAM. FA-M3R automatically restores error blocks
from the normal copy as soon as check-sum error is foundin either of these ladder sequences. The built-in backup
battery can maintain the data on the memory for ten years
Figure 3: A typical implementation of a slave module. Awithout external power supply. With these features, FAslave module block is implemented in the power supply andM3R obtains the durability for the memory lost without
connected with the control board over I/O bus line.
losing the flexibility to the modification of codes.
＊NIMA “Controlsystemfor ofthe
FFAGcomplex
at KURRI”, M.Tanigaki, et al.
The hardware
configuration
the currentcontrolsystem
is shown in Fig. 2. All the devices are arranged to several process and support of various operating systems.
groups based on the hardware configuration of accelerator
The conceptual diagram of softwares is shown in Fig. 4.
such as “ion source” or “booster”, and one CPU is assigned
Each remote PC has one or more MMIs, and communifor each group. In the current configuration, more than 10cation VIs
responsiblefor thecommunication
remoteKyoto
UniversityResearch
Reactorwith
InstituteCPUs are used and placed in the control room to prevent
PLCs over TCP/IP. All the communications are initiated byOptical Bus

PLC Master BlockCPU Ethernet
CPUOptical
OpticalBus

PLC Slave Block

Optical Bus

I/O

I/O

Device Device
DeviceDevice

5

京都大学 原子炉実験所

LabVIEW based Control•

Development of OPIs
had been started withLabVIEW + Windows XP•

Easy to start for the beginner•

Suitable for small group•

There is no expert in theaccelerator group6

京都大学 原子炉実験所
Kyoto University Research Reactor InstituteTiming Control• Variable Repetition (1 to 120 Hz)• Control objects• Trigger for @ NIS• Trigger for Beam Chopper @ LEBT• Trigger for RF @ LINAC (RFQ,DTL1,DTL2)• LLRF for Cavity @ MR
• Trigger for two Extraction Kicker @ MR
• Trigger for Extraction Septum @ MR
7

京都大学 原子炉実験所
Kyoto University Research Reactor InstituteTiming Control• Trigger :• NF (waveform generator) +NIM module• LLRF :• Tektronix AWG series

8

京都大学 原子炉実験所
Kyoto University Research Reactor InstituteLabVIEW to EPICS• In 2009, thanks to KEK/J-PARC Control Group(especially Yamamoto-san & Kamikubota-san)control system for the new beam line from MR to thereactor had been constructed with EPICS• Motivation :• Reduce the cost of License fee (Windows, LabVIEW)• Avoid Windows Security Issue ( I don’t WannaCry )• Get Stability
9京都大学 原子炉実験所
Kyoto University Research Reactor InstituteLabVIEW to EPICSLabVIEW based

EPICS based• PLC w/ Ladder• PLC w/o Ladder• IOC(?) : PLC only

• IOC : PLC + PC (NetDeV)• Device• Device

Single operator

10

Multi operator

京都大学 原子炉実験所
Kyoto University Research Reactor InstituteEPICS based Control•

Development of OPIs
using EDM/MEDM•

Communicate with PLC: netDev developed byOdagiri (KEK)11京都大学 原子炉実験所
Kyoto University Research Reactor InstituteAccess Control to theAccelerator Room
• In 2016, Update to Raspberry
Pi from Windows + VB6 basedsystem•

Used for Beam Interlock• Raspberry pi + PLC (withLadder)•

QR code reader : usb-cam•Software : ZBar + Python
Developed by Yuya HORITA

12

京都大学 原子炉実験所
Kyoto University Research Reactor InstituteBeam Interlock
1 5 0 M E V - F FA G M A I N R I N GBeam Intensity Interlock
H- IONSOURCE

Radiation Dose Rate (air) Interlock

11MEV LINAC

30kV

100MeV

11MeV
H-KUCA

CABT

H+150MeV

Charge Exchange Foil

TargetIrradiation-BT
2015/09/04更新

主リングビーム電流モニター（PC名・プログラム名追記）

新CA計算機室中性子検出器概念図（PC名・プログラム名追記）

波形データー吸い上げ

線量データー保存

線量データー吸い上げFile server“bordel3”(付属ソフト使用)
仮想Windows PC
データロガー“win7vm”

線量データ吸い上げ

ca-monitor2.sh(Read_GL220_CSV)

オシロスコープ(get_mdo3014_waveform.cpp)“MDO3014”

Ethernet

Linux PC“ffag-ci3-lin01”

ビーム電流値送信
バンチ信号

Ethernet

BNC“GL220”Linux PC“ffag-ath-lin01”

線量データー送信

Windows PC“lenovo-z480”

プリアンプ“NF SA-???”(Rec.端子使用)
PLCへインターロック信号送信

comm_plc3.sh(tcp_client)

バンチ信号

Ethernet

Cu Plate

3He neutron detector

PLCへインターロック信号送信(インターロックVI)

Comunicate
w/ intelock-PLC(EPICS IOC)Interlock PLCInterlock PLC

静電ピックアップ型バンチモニター

13

京都大学 原子炉実験所
Kyoto University Research Reactor InstituteNext Task
Integration of GPIB control program to EPICS
GPIB Control used forOld Power Supply ( too much old but too expensive to replace )Stepping Motor Control
Tektronix AWG430 ( LLRF@MR )Build parameter archiving system (CSS Archiver?)
Shell script is used for saving parameter value

Integration of beam monitors to EPICS
Beam monitors are operating independentlyof control system
14

京都大学 原子炉実験所
Kyoto University Research Reactor Institute