IMPROVEMENT OF THE CONTROL SYSTEM FOR LINAC AND PULSE BEAM STRECHERAT TOHOKU UNIVERSITY
Masakatsu Mutoh, Yoshinobu Shibasaki and Tadahiro Oonuma
Laboratory of Nuclear Science, Tohoku University

ABSTRACTETHERNET

A computer of the control system for
Linac and Pulse Beam Strecher was replaced byMicro VAX II. On this occasion, acontrol
loop as a private network using optical fiber
cable and an intelligent controllers based on
VME bus were added. Consequently, an abilityof the control system has been very improved.
INTRODUCTIONCONTROL LOOP

For the improvement of the control
ability, the reconstruction of the control
system for Linac and Pulse Beam Strecher has
been started since December of 198 7 1 > 2 > • The
contents are as follows:l)To exchange MELCOM-70 mini computer for
Micro VAX II,2)to exchange CAMAC modules for intelligent
conrollers based on VME bus in the Linac
control system,3)to adopt a control loop using
opticalfiber cable and4)to adopt graphic displays and mice forcontrol device on the operator's console.
Consequently, the operation parameterswhich are necessary for their control havebeen determined very reproductively and it isvery useful for the Accerelator operation.
With this control system their parameters
can be monitored via a TAINS(Tohoku University
academic/All-round/Advanced~nformationNetwork System) computer network.

OPERATOR'SCONSOLE--~SERIAL HIGHWAY- ..,PULSE BEAM
STRECHER

HARDWARE

I

BiRa1501

EXPERIMENTAL ROOM

The control computer and interface system
are shown in Fig.l. Two CAMAC crates in thecontrol room are driven by Kinetic systems
2922 Q-bus adapter and Kinetec systems 3922
crate controllers. The control loop to control
the linac, touch panels, push buttons andgraphic displays on the operator's console areconnected with the crates.

Canon
LBP-8406

Fig.l

Block diagram of the computersystem.

CAMACcontrol

Micro VAXCONTROL LOOP (OPTICAL FIBER CABLE) 64KBIT/SEC HDLCICONSOLEDISPLAYI' 'Q MAGNET

ANA,ECSMAGNETISTEERING
COIL

' 'r

KLYSTRON
MODULATOR

Fig. 2 Block diagram of the control loop in the Lin'ac.

-240-

COOLING,
VACUUM

A CAMAC crate in the second experimentalroom that is used for the operation of thePulse Beam Strecher is driven by a Bira 1401
serial driver and a Bira 1501 type L2 cratecontroller. Both the 1401 and 1501 are jointed
by a bit serial line and its transmission
speed is 1 Mbps. The power supplies of various
magnets and various beam monitors for Pulse
Beam Strecher are connected with its crate andall the equipments are controlled by thecomputer.
CONTROL LOOP
Fig. 2 shows the layout of the loop todevicesofMost
Linac.
thecontrol
constructing linac are connected with thecomputer via the loop. The loop driver is astandard single-width CAMAC module with amicroprocessor and it is originally designed.
The node control devices provide the abilityreceiving and transmitting messages
ofthrc;ugh the loop, and they are originallydes1gned, too. The node control devices areconnected with VME which controles a power
supply or connected with a personal computerfor graphic display by the use of an RS-232C
communication line. Table 1 shows typical
specifications of the loop.
Table 1

respond to the master with a receive ready(RR)
message or a receive not ready(RNR) message if
it has no information, and it must respond tothe master with unnumbered information (UI)
message if it has information, and the mastergenerates LAM (Look-At-Me) signal on a CAMAC
dataway. In the case of Fig.3(c), many data
are communicated between the master and slave.
VME CONTROLLER
VME bus is adopted, because it is more
inexpensive than CAMAC and moreover because of
the intelligent microprocessor of the VME theload of the host computer can be reduced. Forinstance, as shown in fig. 4 it works as acontroller31, it can
klystron modulator
simultaneously set DC-voltage and de-Q' ing
level for five klystron modulators, it cancontrol thirty four phase shifters and it canprocess fifty five shutdown statuses. OS-9 andOS-9/68K-C are used for operating system andfor language, respectively, in their VMEcontrollers.

KLYSTRON MODULATOR
H.V

12BIT
DAC

Typical specifications of the controlloop.

ProtocolTransmission speed
Transmission line
Cable length
Transmitter/Receiver
Number of nodes

HDLC
64Kbit/sec NRZI
Optical cable
200m
DLR-BN1500/BR1500

CONSOLE PANELv

SHUTDOWNSTATUS
32BIT
DIGITALINPUT

8REMOTE/LOCAL

E

64BIT
DIGITALOUTPUT

PHASE SHIFTERATTENUATOR
12BIT
ADC

HELl POTSLAVEDIGITALp

MASTERSIM

UAF

I o.op(a) Initialization.

MASTER

H.V Ot>VOFF

L.V OWOFF

M

A loop driver which works as a mastercommunicates with node controllers which work
as slaves through the loop by a polling
method. Typical communication sequences areshown in Fig.3. In the case of Fig.3(a), whenthe master demands initialization of theinternal
itsclearsslave
theslave,registers. In the case of Fig.3(b), the mastertransmits polling message to each receiver.
When the slave received the message, it must

MASTER

de-Oing

I 1.0

SLAVE

UPP---....

RRl

SLAVE

ANALOGCONSOLE-........

---....._...--_..-.----...

Fig.4 Block diagram of the VME controller for
the klystron modulator.

I 0.2
F11.2

(c) Block data transfer.

(b) Polling.
Fig.3 The communication sequences between
master and slave.

theOPERATOR'S CONSOLEA DEC terminal VR2 90 and a personal
computer(FM-16fil with a touch panel are used
for a graphic display on the operater • sconsole of the Linac. A personal computer fora graphic display, an exclusive touch panel
statuscharacter display for aand aindication are used on the operater's consoleof the Pulse Beam Strecher41 .

-241-SOFTWAREINFORMATION SERVICE USING NETWORKThe block diagram of the software is shownin Fig.S. Data base is a core in the system.
The contents are informations of the control
devices constructing Accerelator,, those are,device conditions(normal or breakdown), input
procedures
ofvoltage,current
andstatus (CAMAC N .A.F and multiplexer channel
number of ADC module etc.) , device charactersand old and new acutual operation values.
Basic programs are dispersed around the database inqependently.
When an accerelator operator handles themice, touch panels and push buttons on theconsole, the information is transferred todata base. Then, the data base program
accesses CAMAC handling program to meet an
operator's requirement according to a control
procedure list.
The CAMAC handling program
outputs the command to the Accerelator andinputs acutual operational conditions of theAccerelator and sends informations from theAccerelator to the data base. The program fordisplay on the operator's console can always
get new operating informations from the database.
Other control programs provide many useful
informations during the Accerelator operation.
All the control programs are written using
the C programing language.

Since the control computer is connectedwith TAINS through communication server(CS),it has been able to be accessed from, any
personal computers in the campus. Operational
informations of the Accerelator are obtained
as a following procedure: after the login toVAX, Fig. 6 (a) is displayed on a screen,, thenif '1' is selected, Fig,6(b) is displayed.
To give the more available informations
graphically at real time, programing is now
under going.
ACKNOWLEDGEMENTS
The authors wish to thank the KEK online
group for providing CAMAC driver routines.
REFERENCES
1) M.Mutoh et al.,Reserch Report of Laboratoryof Nuclear Science, Tohoku University 20(1987) 393.
2) M.Mutoh et al.,Proc. Linac. Meeting Japan(1988)223) T.Oonuma et al.,Proc. Linac. Meeting Japan(1989) 3164) M.Mutoh et al.,Reserch Report of Laboratoryof Nuclear Science, Tohoku University 15(1982)164.

««< Main Menu »»>I -Litre operation data
2 - SSlR operation data
LOOPCONTROL

3-4~-6 -Exit
Enter a nunber :OUTPUT(a)••PRINT OUTPUT,SAVE/LOAD««< Litre ope rat ion data »»>ganma-PAI
FocusGll
FocusG12
FocusGI3
FocusAll
FocusA12FocusA13

204.0(MeV)
0.000 A
0.000 A
0.000 A
67.91 A
85.71 A
95.21 A

10-IDV-1989 13:~62-straisht

AccQOI
AccQ02
AccQ03
AccQ04

AccQO~

AccQ06
AccQ07
AccQ08
AccQ09AccQIO

6.670 A
4.470 ,A
15.21 A
20.01 A
17.34 A
19.30 A
6. 010 A
6. 990 A
3. 7~0 A
11.20 A

AccStc03 -1.35 A
AccStc04 -0.02 A
AccStc05 0.00 A
AccStc06 0.00 A
AccStc07 -0.14 A

AccStc08
AccStc09
AccStclO
AccStcll
AccStcl2
AccStcl3
AccStcl4
AccStcl~AccStcl6AccStcl7
AccStcl8
AccStcl9
AccStc20
AccStc21
AccStc22-0.22 A
-0.88 A
O.IJ A-0.42 A0.~6 A-0.16 A
0.92 A-0.02 A
0.05 A-0.59 A
0.44 A-0.46 A
0.40 A
1.00 A-0.01 AEnter(l:next page, 2:Exit) :1(b)Fig.S Block diagram of the control software.

Fig.6 Operational information of the Accerelator.

-242-