JAERI-Conf 95-021

PB19

Control System of SPring-S Injector LIN AC
H.SAKAKI, H.YOSHIKAWA, Y.ITOH, A.KUBA,T.TANIUCHI and H.YOKOMIZOJASRI-JAERI-RIKEN SPring-S Project Team
Karnigori, Ako-gun, Hyogo, 678-12, JAPAN• System Design using Process Standard: Inmany case, revisions happen in the software process logics, but most of processes intertwine withother processes. So revisions of software are difficult. We have a hard time of maintenance,
agam.

Abstract
In the present accelerators, it is necessary for us toconstruct the advanced control system. Because thebeam specification is requested to get higher quality.
The SPring-S injector LINAC, will be completed in
1996, has also some requirements and future plans
which except for the injection. Whatever requests,
the control system have to keep up with a efficient
improvement. It means that the control system must
be constructed a flexible one. In this case, we havecarried out the LINAC control system in accordancewith the present state of the Software Technology [1].
In this paper, the status of our software project
which accord with the Software Technology is described.

1INTRODUCTION

Figure 1 shows the present state of Software Technology. The system of until 1990's have discussed
one's problems which like as follows.

Subject

Programming
Technique/IJI1fvalioM/"":*'O::::"Y mtllrtlsnstlos /-h_,. ,/ _,._ /•t:;.<torlolllld«<dpiOIDtyping cause the LINAC component process, called Object,prognmmJng

Tools

complier /Ksy-words

--~~

L

Dsta

Team

expemlve.-

Our software project suits the using DOA. Be-

triBsy*"'Project• The fundamental data in the system is stable.
Compare with the system process, almost one'sdata do not rearrange. It is effective that thedata is standardized.

Objsct Engineering

Sdtwsre Engineering/mporlBnt

Now, the Object Engineering has become themainstream. This is good approach to the above
problems. And it introduce Data Oriented Approach(DOA). This approach is based as follows.

'90

'80

'70

• Inconsistent Project Team: The system thatis imagined by designers, programmer and coordinators differ from the ideal system that isimagined by users. When the system operate,
many users will complain about it. Until thesystem operate, the project staff have to play adesigner, programmer, coordinator and user. In
the 1990's, the project have to be a elitism.

__,D,DLIRM

L

l'fiP06/ll>ly

TSS
SGL

/

4GL,G4SE
DID.DBMS/~~elitism

M/»ndon ~/modolng

DiD=-.:::SIS
S/

RDBMS

will replace many times for the beam requirement,
however almost fundamental LINAC data do notrearrange. We have carried out the LINAC control
system in accordance with DOA.

IRM

~Syotom~Dmln•lztrg,
DQ4,00D,R

2

DATA ORIENTED APPROACH

2.1

DOA Framework

RDBMSIOODBMSFigure 1: Present State of Software Technology• Closed System Environment: The hardware
and the software in the system depend on thesupply of industrial makers. On these system,
it is so robust that we have a hard time of maintenance.

Figure 2 shows the framework of DOA. (a) isthe general DOA framework for business, and (b)is SPring-S LINAC DOA framework [2]. At the general, many problems in the system are able to be
stored on a operation. However our project is newone, so it is difficult to expect and pick up all the system problems. (Whatever happens, on the commissioning etc., the system problems have to be recorded
and be reflected in next revision.) On DOA, themodeling is based on the picked up problems. Our
DOA is shown next section.

-301-

JAERI-Conf 95-021
Bus!,_ Ran

IJONRo«/1,.,_( R1ln Plant~ ( 2fJ.,..,n llBmJt'8'tD81td;;>/~-~I~

I~lng

I:=

I

Provess-.g .~progtfiSS=Ot1fbBaf0-

Ussr-nwlaw

FIEler---/ I!_hJs.-.Evt!Uionlt

I sv-n Opersllonl(II) g<IMni/DOA fratneworlc'111111

Sldlt.p

Prolotyp/IJIll'rogtBss

Ptoductlon md TIS'91

M«<II1Ji(Z)-i~TsL--.{Commls/odiJIlI

I sv-n C/psllffaJ Iw

uw;

-o•s
AlodBifrriw(b) SPrll'lfl-8 UNACDOA fnlmBwork

Figure 2: Data Oriented Approach framework

2.2 LINAC System Modeling
In general DOA framework, "Cooperate Modeling" means examining of the system problems, andmake a rough system modeling. It means the sameas "LINAC System Modeling" in our DOA. We thinkthat the our control system problems as follows.
• Computer Network speed and reliability:
The LINAC control data have to send quickly
and reliably.

For Network speed, we selected the connectionlesstype Network protocol. The connectionless type service(UDP /IP) has smaller over head, and it is fasterthan connection-type(TCP /IP) service in our traffic condition. But it will happen that transport error, loss of packets and mistake, because of the easeof error check in UDP /IP. It is necessary to reinforce the error check. So it motivated us to develope the SPring-S LINAC machine Control Datagram(SCD)protocol. The Communication Process play tosend SCC through the our Network protocol SCD.
And the Communication Process is interface of EWSand VME.
C language Devive Drivers : When the VME
CPU board power and Operation System (OS) do
not reach the user's requirement, the system haveto be quick to adapt to the trend of hardware andOS on VME's. We must consider high portabilityof hardware and OS. Figure 3 shows the example ofmodification of CPU boards. If Device Drivers ofconstructed VME system are written by Assembler
language, when CPU boards are modified high power
CPU, all Device Drivers have to be also modified.
Because Device Drivers by Assembler language correspond only one CPU. We tried Device Drivers by Clanguage. So that, when CPU boards are modified
high power CPU, we will modify only an interfacepart by Assembler language. The system will gethigh portability of the hardware and OS.

• High portability of hardware and OS:
The system have to be quick to adapt to thetrend of hardware and OS on VME's.
• Flexible control system:
Whatever requests, the control system have tokeep up with a efficient improvement.
As a solution to these problems, we got three keywords in the process of "LINAC System Modeling".
They are, Communication Process [3], C language
Device Drivers [4] , and Object Oriented Programming (OOP) [5]. At the follows modeling, they aremodeled the details.
(a) assem bier language drivers(b) C language driverS

2.3 LINAC Machine ModelingThis modeling make the keywords the details.

Figure 3: modification of CPU board

Communication Process : Assuming that
Linac is constructed by similar simple components,
we got unification command of constructed all devices. That is SPring-S LINAC machine Control
Commands (SCC). Further, every behavior of all devices is also standardized in SCC. We think thatsec is the most stable data in our system and sec
is the standardized message for communication between objects. So, whatever we start to think, SCC
is based on one's discussion.

Object Oriented Programming : For the expansive and efficient at the system, OOP is adopted.
First, we design the Super Class "MACHINE" thatis core of Object. Figure 4 shows the Super Class"MACHINE" and the Sub Classes of it. Main attributes of"MACHINE" are the "parameter and status" and the "Behavior". The "parameter and sta--302-

JAERI-Conf 95-021

tus" means the operation elements of Object, andthe "Behavior" means the transitional status of Object standardized by SCC. So that, the Super Classcan recognize SCC. The Super Class is inherited toSub Classes.
These Object is constructed on VME software

Element of SUper Class'MACHINE'
Super C/sss 'MACHINE"( Architecture of Machine Control Object In VME (OOPS~ MMIF

Figure 5: Construction of LINAC using OOP

e.t.c
Magno! power

designer and coodinator. When the operation start,
the system will happen many problems and troubles,
because of new system. However the system will beable to correspond flexibly. Next step, we have tomodel for database in accordance with DOA.

ModiM!c< & Kl)lslron

SubC/aSS66

Figure 4: Super Class of LINAC

4which like figure 5. As the LINAC hardware component and Object in the VME are in a one-to-one
ratio, if the LINAC hardware component, GUN etc.,
is replaced, Object in the VME is also replaced.

2.4 Prototyping and Test
At our system using DOA, the modeling designer,coordinator and programmer is not a same person.
So the designer showed prototype software which isreflected modeling. The programmer read the prototype source software, and understand it's modelingconcepts. At the same time, the designer and coordinator explained to the programmer the constructed
LINAC devices and it's operation. The programmer
understand the user's concepts, too. This flow repeated several times. The software that is imaginedby programmers became more and more like the designer's image.

3REFERENCES[1] M.Hayashi, "The System Design technique for DOA
and RAD" , Soft Research Center CO., Ver.l (1995)[2] H.Yoshikawa et al., "Control of SPring-8 Injector
LINAC" , Proceedings of 20th linac accelerator meeting in Japan, in Osaka (1995)[3] H.Sakaki et al.,"DESIGN OF SPring-8 LINAC CONTROL SYSTEM USING OBJECT ORIENTED
CONCEPT", Proceedings of Particle Accelerator
Conference and International Conference On HighEnergy Accelerators, in Texas USA (199.5)[4] K.Tamezane et al.,"Device driver users manual for
Linac control system", JAERI-memo 05-262(1993)[5] H.Sakaki et al., "Low Level Process with Object Oriented Modeling for SPring-8 LIN AC" , Proceedingsof 19th linac accelerator meeting in Japan, in lbaraki.
(1994)

CONCLUSION

The software project in our system, it is quite
large, should carry out the using DOA.
We have SCC which base on our common concept.
It is getting easy to model the system. And, we could
make efficently the software which is imagined by-303-