KEK-PS OPERATION RECORD AND ITS STATISTICALCALCULATION BY COMPUTER
E.Kadokura, T.Kawakubo, KEK,Tsukuba-shi,305,Japan
M.Saotome, Mitsubishi,Tokyo,101,Japansoftware), SQL data access and many PLC Device
Drivers.

Abstract
During the accelerator operation period of KEK-PS,
it is very important to take the operation record, which
includes the beam supply time for users, the shut-downtime caused by various machine (Pre-injector, LINAC,
40MeV-BT, Booster ring, Main ring, etc.) troubles, andthe beam intensity to different users. By analyzing ofthese data, we can determine the reliability of every
machine and the contribution of PS to users. All of thiswork has been done by one person, which takes many
hours. Therefore, we plan to manage the above work bycomputer: i.e. taking all data by beam switch PLC(programmable logic controller), communicating with
PLC by the InTouch software, and calculating by
EXCEL.

1 INTRODUCTION
KEK-PS is an accelerator complex composed of a750keV Pre-Injector (Cockcroft-Walton type), a 40MeV
LINAC, a 500MeV Booster ring and a 12GeV Main ring,which is operated in various machine modes for machinetuning, studies and users. The beam is accelerated by theBooster ring, and supplied to NML (neutron and mesonscience laboratory); also, one by the Main ring issupplied to the North Counter Hall and the East CounterHall by slow extraction. We will supply the beam to theNorth Counter Hall by fast extraction for neutrino
experiments from January, 1999. In order to evaluate thecontribution of this machine complex to users, and tomaintain operation with less maintenance troubles, it isvery important to get the information of the averaged
beam intensity supplied to the users and the integration
time of every machine trouble. For this task, one person
must collect data from the machine operation log, andcalculate the time with the greatest care for many hours.
Although this task is very complicated, it is mostly afixed job. Therefore, we will introduce a computer forthis task. These days, since the cost and calculating speedof a personal computer are being greatly improved, thetrend to use computer in the factory automation trade isbecoming stronger and stronger. We will use “EXCEL”
as the calculation software and “InTouch” as the SCADA(Supervisory Control and Data Acquisition) software.
“InTouch” is software of the PLC controller package, andhas GP Editor (easily usable software), Net DDE(Dynamic Data Exchange: easy Network communication

2 SYSTEM STRUCTURE
For the above purpose, a personal computer(“Operation Record Computer”) is inserted into the PS
operation control system. As shown in Fig.1, the machine
operator changes the operation mode and turns on/off thebeam by a Beam Switch on the control panel. All of these
operations are governed by PLC of the Beam Switch,which keeps watch over the various device statuses. ThisPLC also observes the beam intensities in various
accelerator complex, and integrates them. It is connectedto the computer through an I/O server. Therefore, thecomputer receives precise information about theoperation mode, machine statuses of the accelerator
complex, and beam intensities at various locations of theaccelerator complex. We use the PC/AT machine(WindowsNT) for the Computer, Ethernet for thecomputer network, Omron (CV2000) for the PLC andSysnet for the PLC local network.

Figure1: System structure to input the operation
mode and beam intensity

2.1 Integration of beam intensity
In order to achieve integration of the beam intensities(in the booster for NML user, in the booster to main ringand in the main ring for main ring user), sample holdsignals of the beam-intensity monitors (at the booster andthe main ring) are connected to the A/D input modules of
the PLC. For their triggers, the beam-timing signals

synchronized with the accelerated beams (in the booster
and the main ring) are connected to digital input modules.
The integration of the main-ring intensity is done onceper 3 or 4 seconds, and integration of the booster beam
intensity is done once per 50ms, which is possible,
because the scan time of the PLC is 2ms. The PLC alsocounts the acceleration numbers in the booster and themain ring.

3 SOFTWARE STRUCTURE
The “Operation Record Computer” takes data
concerning the ON/OFF time of operation, the operation
status, the place of machine trouble and integration of thebeam intensities. The software structure is shown in Fig.2.
An explanation of how to obtain a data log is as follows:• The ON/OFF signal from the PLC for beam SW isused for the ON/OFF time data.
• In the case of beam ON, the operation status is
input by InTouch.
• In the case of beam OFF, the reason for themachine stop is input by InTouch.

Figure3: Console panel for the input data log

4 OUTPUTS
By the above processes, we can obtain outputs of theoperation record and statistical calculations. Figs. 4 show
typical outputs. Fig.4a shows the item of the 12GeV PSmachine time. From this graph, we can know the ratio of
the PS machine time to various areas. Fig.4b shows theitem of machine trouble in the accelerator complex,
which tells us the reliability of every machine part. Also,
Fig.4c shows the fiscal year dependence of the averaged
main ring beam intensity. We can know the activity ofour machine from the past to the present by this graph.

Figure2: Structure of software to obtain, calculate
and record data
Fig.3 shows the console panel for the input data log.
Concerning the operation status, there are two mainbranches, which are “for NML” and “for main ring”. In
every branch, there are more concrete statuses, such as“ACC (accelerator) Tuning”, “ACC Study” and “BeamUtility”. In the case of machine stop, there are statuses as“Scheduled Shut Down”, “Set Up” and “MachineTrouble”, including the machine part name. All input
data are transferred to EXCEL sheets by a macroprogram. It can be re-entered within 20seconds; after that,the data are confirmed and recorded into comment
columns of the data sheet in which the text form iswritten in CVS. The machine-trouble time is integrated inevery machine part by EXCEL, in which the trouble isconsidered to be repaired at the next beam on. Theintensity data are recorded every eight hours.

Figure4a: Item of 12GeV PS machine time

REFERENCES[ 1] E.Kadokura et al.," Improvement of the Beam on/off
Control System for KEK Proton Synchrotron Security System - " KEK Internal 90-21 August
1990 A[ 2] E.Kadokura et al., " The improvement of the KEK
PS control system " International Workshop on
Controls for Small-and Medium-Scale Accelerators
KEK,Tsukuba,JAPAN November 11-15,1996,pp103105[ 3] Omron company, " The technical data of Sysmac "[ 4] Sumitomo control engineering company, " Thetechnical data of InTouch"

Figure4b: Item of machine trouble in the accelerator
complex

Figure4c: Fiscal year dependence of averaged
main ring beam intensity

5 FUTURE IMPROVEMENTS
The operator’s load to input the data should be as
small as possible by improving the software. Also, theoutputs can be obtained by general users through the Web.