Some Communication Problems of KB-Controlled

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

EngngApplic. Artif. Intell. Vol. 10, No. 2, pp.

225-230, 1997
© 1997 Elsevier Science Ltd
Pergamon Printed in Great Britain. All rights reserved
PII :S0952-1976(97)00005-5 0952-1976197 $17.00+0.00

Contributed Paper

Some Communication Problems of KB-controlled


Manufacturing Systems
G E O R G E L. K O V A C S
Computer and Automation Research Institute of HAS, Budapest, Hungary

J/kNOS N A C S A
Computer and Automation Research Institute of HAS, Budapest, Hungary

(Received September 1996)

Knowledge-based or intelligent control of flexible manufacturing systems (FMS) involves the continuous or
frequent observation and evaluation of the status and condition of the system performance, decision-making
based both on the evaluation results and on pre-defined knowledge, and then system operation according to
these decisions. In the case of normal, scheduled operation, there is no need for either intelligence or
interactions to modify the operation. The procedure given above may, however, help if any kind of disturbance
or irregularity happens, as is rather common in the case of highly sophisticated, complex systems. This paper
deals with control and communication problems in flexible manufacturing systems using programs based on a
real-time expert-system environment, taking into consideration the requirement for openness in up-to-date
systems. Two robot applications will be discussed as demonstrations.
© 1997 Elsevier Science Ltd. All rights reserved

Keywords: Flexible manufacturing systems, open systems, expert systems, arc welding, robot control,
industrial networking.

I. INTRODUCTION designated as "intelligent" control. Most of them are


speaking only about process control, and not about discrete
Recent discrete manufacturing and/or assembly systems
manufacturing or robot control; however the control tasks
(FMS/FMA) are more and more often controlled using
and problems of manufacturing systems are basically
MAP/MMS (Manufacturing Automation Protocol, Manu-
similar to those of batch-like process control. Without going
facturing Message Specification) (Brill and Gramm, 1991)
into further discussion of this issue however, the authors of
because this technology is widely available from many
this paper accept the necessity for intelligent control, which
vendors and gives really safe and open solutions according
is often provided by using expert systems. Some commer-
to the demands of OS[ (Open System Interconnection).
cial expert systems already provide good
Many users are not aware that they have such inter-
connections; they just enjoy the useful features of MAP. It problem-description and software-development tools,
must also be admitted that MAP or MAP-related solutions where the programming is closer to the problem to be
are still rather expensive. solved and to the user, and limited real-time facilities are
supported as well (Laffey et al., 1988).
On the other hand, so-called "intelligent control" is
increasingly in general demand. There is lively discussion The next section briefly introduces the basic system, from
in the literature and in private communications among which the developments described later, started. Section 3
control engineers about the existence of, and need for, discusses the communication problems of expert systems in
intelligent control (Franklin and Meystel, 1994). Some FMS applications, and gives a problem decomposition.
experts claim that there is no such thing, that could really be Later on, there is a brief description of the features of the
MAP-based Virtual Manufacturing Device model, used in
Correspondence should be sent to: Dr G. L. Kowics, CIM Research
intelligent control. Finally, there is a presentation of the
Laboratory, Computer and Automation Research Institute of HAS, POB detailed basic definitions in the context of an "intelligent
63, 1518 Budapest, Hungary. robot cell controller with open communication".
225
226 GEORGE L. KOVACS and JANOS NACSA: KB-CONTROLLED SYSTEMS

2. A K N O W L E D G E - B A S E D HYBRID tools, robots, transfer units such as AGVs, etc.), together


SIMULATION-SCHEDULER SYSTEM with the possibilities for downloading CNC control pro-
grams to all equipment. It is also necessary to accept and
The first prototype to be developed in this work was a
evaluate different signals from the equipment, etc. The
knowledge-based simulation-scheduler system called Sim-
times of loading/unloading should be calculated too.
Sched-Q (Kovzics et al., 1993). In the SimSched-Q system
(Fig. 1) the simulation was implemented in a "traditional"
simulation/animation system called SIMAN/Cinema that
3. COMMUNICATION WITH EXPERT SYSTEMS
could, however, be used throughout the world. This was
surrounded by expert-system modules (preparation, on-line The practical problems of the communication of expert
quality and scheduler advisor, and evaluation), implemented systems in CIM (Computer Integrated Manufacturing)
in the same G2 Vet. 3.0 object-oriented real-time intelligent applications can be divided into two parts. One is the
environment. The study in this paper refers specifically to hardware-software connection (physical) and the other is
the SimSched-Q system, as the resulting scheduling data the logical connection between the controller(s) and the
provide the basic input for (intelligent) FMS control. controlled devices. This decomposition was found to be
Similar efforts are, however, also being made elsewhere very useful, in both the design and implementation phases
(e.g. Somlo and Buzidi, 1996). during recent projects in the authors' CIM Laboratory. If
There are four expert systems involved: two of these are this decomposition is not so sharp, many problems may
shallowly coupled with the simulation (Preparation and occur during the development, and especially in main-
Evaluation), while the other two are deeply coupled (the tenance later on.
Quality and Scheduler advisors). The structure and func- There are relatively easy programming interfaces (C/
tionality of the system were designed and developed in ouch C + + , etc.) in most available ES shells. These interfaces
a way that the simulation might later be replaced by a real provide capabilities for data transfer and communication
FMS environment, and the ES would become the real-time with external tasks, stations, etc. They support clear and
controller. easy programming to reach objects, to call procedures, to set
The prototype application was developed using real data and get variables, etc. The interfaces are dedicated to
(layout, capacities, process plans, machine parameters, etc.) specific software tools of the ES, and they are generally
from some existing FMS, for example the Pilot FMS at the aimed towards the external world without being able to take
Technical University of Budapest. This system contains four account of the specific requirements of the given applica-
"holon-like" cells (storage with AGV, measurement, assem- tion. So almost all CIM implementations require the
bly and metal-cutting consisting of a CNC lathe and a CNC development of special software to cover this gap between
machining center served by robots) on a network. the external world and the ES.
To address real-time control in this sense, all the Clearly, the communication functions depend on the
scheduling data is needed--such as the starting and capabilities of the expert system. The methods of learning
finishing dates of all operations of all equipment (machine- and knowledge handling determine the logical levels of the

Preparation cell configuration,orders,


qualitymeasurementsetups
Expert System

Online schedulir
~ Simulation
Scheduling
Expert System ges

asurements /J
Online Quality ! of quality
Expert System
/ j StMAN IV. ! Cinema

/"~chedule, statistics

Expert System !

Fig. 1. SimSched-Qsystem:traditional simulationsurrounded with expert systemswithin one shell.


GEORGE L. KOV,A,CS and J,/~NOS NACSA: KB-CONTROLLED SYSTEMS 227

communication. Three different types of working mode, and Arcwelding R o b o t VMD


different levels of the communication of an intelligent cell- (KUKA-ESS)
controller in a CIM environment, have been defined (Nacsa
and Kovfics, 1994). These levels are implemented--of Vendor, Model, Revision
Physical & Logical Status
course--within the same protocol. The lowest level (Data
Acquisition and Control Level) has the basic control and
data-acquisition type messages. The other two levels
(Knowledge Acquisition and Knowledge Communication
Levels) have messages if and only if the "intelligence of the
cell controller is not hidden". "Hidden" intelligence means
in this context that the knowledge-based technology is
applied only inside the cell controller, and it has no specific
actions via the communication channel. A typical example
of the hidden case occurs if a KB system is built up on the
top of a traditional control system, using its original Fig. 2. Virtual ManufacturingDevicemodel of a robot (an example).
communication. On the highest logical level the knowledge
acquisition and the so-called "knowledge communications"
with a given object of the VMD) are defined and are
have been separated. The former contains specific data for
working in the MMS networks.
modifying or verifying the knowledge of the given con-
troller. When a KB system shares its knowledge (new or
modified), it belongs to the knowledge communication level
5. AN EXPERIMENTAL ROBOT CONTROL
(Buta and Springer, 1992). The communication messages of
SYSTEM
most real and pilot KB applications for FMS control belong
to the lowest, or possibly to the middle, logical level. As the goal of this work was to provide real-time,
intelligent control of FMS systems, the next step was to
apply all the development results, and to integrate the
4. MMS--AN OBJECT-ORIENTED
independently working and tested software-hardware mod-
COMMUNICATION TOOL
ules.
Going back to the so-called "physical" connection, there As a first experimental set-up (Fig. 3) a simple configura-
are many possibilities to follow. Most controller and tion was chosen. From earlier projects a Mitsubishi robot
controlled-device vendors offer good (proprietary) solutions was available, with a serial DNC connection to a PC that
to be used to communicate; vendor-independent standards had a MAP interface. The trivial TIC-TAC-TOE game was
are also available. served by the robot in the following manner: a user could
Also in the CIM area, there are other accepted models or play against the G2 system. Of course, this is not a problem
modeling tools to describe the objects of an FMS. From the for which such an intelligent system is needed, but this well-
communication point of view, the most promising one is the known game is able to demonstrate clearly the "intelligent"
object-oriented view of the so-called MMS (Manufacturing features of the control. On the other hand, the full capability
Message Specification), which was originally an applica- of MMS networking was used.
tion-layer protocol in the MAP OSI networks. It was later The structure of the setup shows that a special gateway
realized that this specification is also good on the higher was developed between the G2 based controller and the
level of the FMS (Nagy and Haidegger, 1994), to give a robot. This couples the G2 system interface (called GSI) to
communication-oriented view of the network elements and the MMS standard communication (MMS-EASE, 1994). In
their resources. this case, this was the "gap-bridging software" mentioned in
MMS gives a so-called VMD (Virtual Manufacturing Section 3. This special gateway of the G2 allows any
Device) view of each resource of the FMS. All the objects discrete manufacturing applications to be developed in G2
of the MMS (e.g. VMD, domains, different types of using the MMS standard interface, and without having to
variables, program invocations) are object-oriented, with modify the interface. In the demonstration version, the
special sets of attributes and actions (called "services" in gateway supports the context management and some
MMS) belonging to a given object type. Figure 2 shows a program invocation services of MMS.
simple, but rather general, type of VMD: an arc-welding For this solution a special object hierarchy called MLGO
robot VMD. In a VMD it is possible to create, read and (MMS-like G2 objects) and a procedure set were needed
write different types of variables, to up- and download within the G2 to make up the knowledge base to handle the
domains (which can be programs or machine data), to start MMS interface. Three solutions were examined before
and stop different tasks (with program invocations) and to developing the MLGO:
handle events. The object-oriented view of MMS allows the
VMD model of a certain device to be designed, and it is • The first study considered how the complete MMS object
immediately possible to use this model as a specification of structure could be built up within the G2. This took a lot
the communication, where the services (what one can do of effort and gave a relatively complicated and not very
228 GEORGE L. KOV.A,CS and JANOS NACSA: KB-CONTROLLED SYSTEMS

INTELLIGENT [GSI GATEWAY


GS[
CONTROLLER ,,/obj. &
C
(G2 " proce- inter-
ENVIRONMENT) dures ik
face
MMS like G2 objects I MM client ]

CONTROL CONTROL
RESPONSE REQUEST

M M S s e r v e r of r o b o t ( P N I U )

//3 IB' Ill/

Fig. 3. Knowledge-based control of a robot with OSI network.

useful structure. Because of the different services and a limited number of external GSI procedure calls, but
their parameters, many external procedure calls are gives a rather general interface (with few limitations) to
defined by big parameter sets. All implemented MMS MMS.
services have their own GSI procedures, and all MMS
object types have their internal G2 object descriptions. A simple example of the method can be seen in Fig. 4.
The complexity of the inner structure is the same as that When the user wants to take a box to a given place, he or
of the MMS itself. It did not give a clear and easy-to-use she should click the mouse above the place. A G2 "user-
tool for the G2 user. defined-action" belongs to the place, and starts the
• It would also have been possible to define independent next-move procedure. It will pick up the parameters of a
procedures for all cases when MMS services should be start-program-invocation MMS service from the MLGO
used. In this case, the whole MMS functionality would be and call the GSI mms-serv external procedure that sends the
implemented within the gateway. This is the solution request to the robot across the gateway. This method is
without any MLGO support. rather general, and other MMS Application Enabler pro-
• The third solution reduced the number of necessary grams on the market are using similar solutions (e.g.
objects and procedures to some general terms. It also uses EasyMAP, 1993).

Operation "StartPl"
Param I3
Last value -1
R e m o t e appl "pc.mms"
M ms object type )rog-inv
IV M ms object name "R-GET"
start next-move Domain ....
(u s e r , P L A C E 3 ) Named type ....

call mms-s erv(operation,


remo te-ap p 1,object,d o main,
type, param) across mygsi-1

Fig. 4. Realization of MMS within the G2 system.


GEORGE L. KOVACS and JANOS NACSA: KB-CONTROLLED SYSTEMS 229

PROARC system G2
environnmt
AutoCADR13 ~1~,~ fir~on calls Welding
features
- - °
AutoC~~ ~" Modelling andv,elding
plmningrr,tx~ule
.. Wor el
STEPfile~, RCM3fie
~ Knov,led~ based
[ Progr~n generationmodule ~Z iv- conlrolsystem
~th MMS interface

Cormaunacationmodule

MlVlS network
i i
Fig. 5. Structureof the dual system:PROARCand G2-basedKB environment.

6. K N O W L E D G E - B A S E D C O N T R O L OF AN ARC- There are several possibilities to increase the "intelli-


W E L D I N G ROBOT gence" of the recent PROARC system:
In the last two years a CAD/CAM integrated robot
• The similarities between the workpiece families could be
programming system (PROARC) has been developed, in
managed and analyzed in a more sophisticated way, even
co-operation with German and Hungarian participants,
if this feature is a special one in PROARC. The intelligent
within the framework of an EC East-West project (Week et
comparison of workpieces in the design phase can assist
al., 1995). The goal of the system is to assist arc-welding
in re-using welding settings, or even pieces of robot
with robots in SMEs, mostly for small and medium lot sizes,
program parts.
with a PC-based, interactive, off-line robot programming
• The present system already supports the unskilled user by
system. Most commercially available systems are either too
offering default values of the different welding variables,
expensive, or cannot provide enough features for arc-
but a knowledge-based tool could expand the capacity of
welding. CAD/CAM integration means that after adding the
this feature.
necessary technological information to the AutoCAD-based
geometric design, the appropriate programs provide auto- • Currently, the system uses only a simple tactile sensor to
provide safe welding. The intelligent evaluation of sensor
matic program generation and remote control for the applied
information could help in making the system more
robot to execute the welding tasks.
reliable, by means of analysis and forecasting proce-
The PROARC system can be divided into different
dures.
modules: Modelling, Welding Planning, Program Genera-
• The area of the first experiments assists in performing the
tion and Communication. In this functional division of the
system the different phases of an offline session are mapped. control tasks of the system. This means that the
However, the underlying structure is not that separable, Communication Module of the PROARC system is
especially not for the first two modules. In the Modelling completely replaced by the G2-based control with MMS
interface.
Module, basically, the welding cell and its components are
input into the system. The Welding Planning Module As the PROARC is completely PC-based and the
provides the capabilities to associate seams to the modelled recent G2 version is running on a SUN, some additional
workpieces, and to generate all movements during the interfacing problems have to be solved, which are not
welding session. The Program Generation generates the shown in Fig. 5. The big arrows show the data flow
robot-specific code, including some system- and environ- through the system in the first version; the little ones are
ment-specific features as well. The Communication Module the potential or alternative connections.
provides the connection to the robot controller.
Figure 5 shows the connections of the KB-based control 7. CONCLUSIONS
and the PROARC system, where the original communica- The paper deals with intelligent real-time control of FMS.
tion module of PROARC has been replaced with the KB As examples, the simulation of a real FMS, then a robotics
control module. This modification will lead to the integra- cell (where the robot is defined as a virtual manufacturing
tion of more parts into the KB, and then the real features and device (VMD)) and finally an arc-welding robot controlled
power of the integrated KB tool will appear. by a real-time computer system, are presented. The control
230 GEORGE L. KOV,~CS and JANOS NACSA: KB-CONTROLLED SYSTEMS

software has been i m p l e m e n t e d using a real-time intelligent Buta, P. and Springer, S. (1992) Communicating the knowledge in
knowledge-based systems. Expert Systems with Applications, 5,
e n v i r o n m e n t (G2). 389-394.
An interfacing p r o b l e m was solved w h e n the G2 system EasyMAP (1993) User Guide. CRI, Denmark.
and the M A P / M M S network were connected to achieve Franklin, G., Meystel, A., et al. (1994) Private discussion by E-mail in
Architectures for Intelligent Control Systems Discussion List (AICSL
real-time intelligent control. @UBVM.CC > BUFFALO.EDU).
These results will be very useful and interesting in the Kov~cs, G. L., et al. (1993) Integrated application of real-time expert
future, w h e n they will be applied to more c o m p l e x and systems for FMS evaluation and control. Applications of Artificial
Intelligence in Engineering VIII, ed. Rzevski, Pastor, Adey, Vol. 2, pp.
sophisticated large-scale manufacturing and assembly sys- 835-847. Elsevier, Amsterdam.
tems which are hard to design and control without using Laffrey, T. J. et al. (1988) Real-time knowledge based systems. AI
simulation and expert systems. Magazine, 9(1 ), 27-45.
MMS-EASE (1994) User Guide. SISCO Inc., MI.
Nacsa, J. and Kov~ics, G. L. (1994) Communication problems of expert
systems in manufacturing environment. In AIRTC '94, Valencia, Spain,
Acknowledgements--ThePROARC project (Ref. No. 7831) was partly ed. Crespo. Preprints of the Symposium on Artificial Intelligence in
supported by the EC, in the framework of Copernicus '93. The authors are Real-time Control, IFAC, pp. 377-38 I.
grateful to the partners, the WZL of RWTH Aachen and the University of Nagy, G. and Haidegger, G. (1994) Object oriented approach for analyzing,
Veszpr6m, for their contributions. This work was partly supported by the designing and controlling manufacturing cells. In Proceedings of
Hungarian Research Fund (OTKA), projects T 4122 and T 14549. AUTOFACT '94, Detroit, ed. Moody. SME, pp. 12/1-10.
Somlo, J. and El Buzidi, A. (1996) Reverse scheduling, a new approach to
the solution of FMS scheduling problems. RAAD '96, Proceedings of the
5th International Workshop on Robotics, Alpe-Adria-Danube Region,
REFERENCES Budapest, Hungary, pp. 417-425.
Weck, M., et al. (1995) A PC-based offline programming system to assist
Brill, M. and Gramm, U. (1991) MMS: MAP application services for the robotized welding. ICRAM '95, Proceedings of the International
manufacturing industry. Computer Networks and ISDN Systems, 21, Conference On Recent Advances in Mechatronics, Istanbul, Turkey, pp.
357-380. 533-538.

You might also like