E l s e v i e r Science P u b l i s h e r s B.V., A m s t e r d a m - P r i n t e d i n T h e N e t h e r l a n d s 33
ABSTRACT
This paper describes why process selection plays a very important role in the modern factory, and describes how to build systems for process selection, that can be used by the designer while he is creating the design. Artificial intelligence and knowledge engineering offers new possibilities for automation of process selection and many other areas within manufacturing, and it will be discussed how production knowledge can be represented and handled in an expert system. Furthermore a system for selection of surface treatment processes that uses advanced knowledge engineering techniques will be presented. Surface treatment is a fast developing area with many new and improved processes, and is therefore an excellent area for investigating the possibilities for expert consulting systems. The system is based on an programming environment for expert system development , where knowledge is represented as frames and rules. This prototype system is developed as a joint program with a major Danish company.
INTRODUCTION
CIM
are carried out jointly under the title aided process planning (ref.3).
and production
(CIM Minilab)
a test environment
1988 E l s e v i e r Science P u b l i s h e r s B . .
84
C I P - C o m p u t e r Integrated P r o d u c t , o n
De-e,~,n
Design by
~E
Design for Production
/
,~ Rough plann/ng
CAD
c dough ~( -a,~,. )
.L P'an J
Produc ~on preparmt/on
iPrductinI
G~,
,Process data
.Tool data
.Fixturc/Pallstte
dala
C:lO~AMam [ ~ _ ,
{N
Product/on
Production Control (Philosophy/S~ategy, make detailed plan, Real time control)l Parts Fixtures Tools Inspec~on Gauging Packing I - ~ i v e r } IDispatching I d~Nen#j
A P - CLP87 AB
(CIP)
A very important step is the integration of process and production knowledge into the design activities. This integration of on autoset the to between of CAD and CAM is partly obtained through the use instructions which normally are based
degree is tailored to this particular process, get the right product at the lowest price the designer can make it
can only produce good plans when this is given as input. necessary decisions. that qualified
manufacturing
To do this the designer needs supporting tools that can requirements that those processes imply. Quick and
35 answers e.g. can are needed to questions that arise in the a certain material be welded, can it be what processes can produce a special design used in phase, acid or
environments,
geometry
information on design rules for diecast parts. While the is using the CAD system he should be able to get such from the design procedure.
designer of
information
When discussing integrated production it is important to on how design and production information correlate. The
focus
designer
is with his decisions responsible for 80-90% of the product costs, since raw materials, processes, production methods incl. more or less are determined in this phase. CAD systems modelling the product and storing this model in a assembly enable but
database,
there is no access to production knowledge, that could to a more optimal design. There is therefore a need for
contribute advanced
information systems that can supply the designer with the relevant information, relevant design rules and company standards. Through possible processes, the and use of knowledge engineering techniques about it is
possibilities,
ces, and use this in intelligent consulting systems for or process planners. Knowledge Engineering tasks like advanced motion In Knowledge Engineering
procedural know-
control
ledge, which means that domain knowledge is not mixed with program and data structures. what to In other words it is possible to It is tell the
systems possible
therefore rather
itself
than on program details, and therefore use more time to experiment with prototypes and in that way reach a better result.
Changes
only
concern
(facts e.g. machine dimensions) but also (rules e.g. IF a fine surface traditional handled in is usually the condition programming program e.g. new
structure
itself.
is not w i t h o u t problems.
For one t h i n g it r e q u i r e s t h a t
program makes
source code is a v a i l a b l e and second that the p e r s o n the changes is a skilled programmer. W i t h KE t e c h n i q u e s
An systems
topic and
of
such
intelligent Many
computer
systems.
p r o d u c t s are today m o d e l l e d on CAD systems and it w o u l d be hand natural to e x t r a c t p r o d u c t i n f o r m a t i o n d i r e c t l y from and use it in expert c o n s u l t i n g systems. On g r a p h i c s can be a v e r y p o w e r f u l tool to illustrate database
l i m i t a t i o n s and capabilities.
of
not
yet
is use to such In a
(ref.4+5). The reason is that CAD s y s t e m s primitives like arcs and lines or that only solids uses and a data s t r u c t u r e
model,
p r i m i t i v e s can not r e p r e s e n t r e l a t i o n s b e t w e e n the p r i m i t i v e s . CAD part, rent systems today do the d e s i g n e r t r a n s l a t e his ideas about
w h i c h includes the functional r e l a t i o n s b e t w e e n the primitives part into is the CAD s y s t e m lost. W h e n a representation planner since the or
diffethe is
where
relational program
process
computer relational
p r o b l e m s i n t e r p r e t i n g the i n f o r m a t i o n right,
This
is
the
CAD
the a to of
p r i m i t i v e s c a l l e d features
relates Examples
families of
p r o d u c t i o n or o t h e r s i m i l a r i t i e s
shafts or pump houses). An e x a m p l e of an FBD system is the Part F a m i l y D e s i g n and M a n u f a c t u r i n g system on (PFDM) d e v e l o p e d at IME (ref.l-3). P F D M is based A u t o t r o l $7000 C A D / C A M s o f t w a r e and the DCLASS tree processor
procedures
done
and used
by a
are b u i l d into DCLASS d e c i s i o n trees, w h i c h a l s o are The d e s i g n is d e f i n i n g a m a i n shape and t h e r e a f t e r a n u m b e r of Currently the s y s t e m w o r k s w i t h two p a r t
c o n t r o l the g r a p h i c r o u t i n e s in S7000.
geometric
features.
families,
r o t a t i o n a l and a prismatic.
The meaning, A
word
process
is u s e d in
many
contexts
with
p r o c e s s can g e n e r a l l y be d e s c r i b e d as an a c t i v i t y
rial,
e n e r g y and i n f o r m a t i o n are t r a n s f o r m e d into the d e s i r e d p a r t In this c o n t e x t a p r o c e s s is u s e d as a e.g. turning, drilling, synonym for a or
(ref.6).
forging a a
A m a c h i n e can n o r m a l l y
t u r n i n g on a lathe),
but in some
covers m o r e p r o c e s s e s In o t h e r words,
(drilling and m i l l i n g on a
a p r o c e s s is a g e n e r a l t e r m t h a t
a g r o u p of m a c h i n e s or m a n u f a c t u r i n g m e t h o d s w i t h c o m m o n c h a r a c t e ristics.
DESCRIBING
PROCESS SELECTION
Before
to
describe so a
and s p e c i f y g o a l s and
d e s c r i b e s h o w to do of specification, Kim
d e t a i l e d levels
(ref.8) finished
s i m i l a r approach,
the
as an extra level. Kim also e m p h a s i z e s t h a t the initial from p r o b l e m for a k n o w l e d g e a b e n e f i t / c o s t criteria. based system of
selection must be
evaluated
In the case
For p r o c e s s considering
the m a i n p r o b l e m is to d e t e r m i n e w h a t p r o c e s s
functional requirements).
D o m a i n k n o w l e d g e for p r o c e s s s e l e c t i o n i n c l u d e s on the one hand different machines hand types of m a n u f a c t u r i n g k n o w l e d g e about availability, cost), (e.g. h i s t o r y of g o o d and processes bad and (e.g. capabilities, and on the other designs). the sources and
product experience
and it is one of
combined and
books
among e x p e r i e n c e d p e o p l e
departments,
to
s o l u t i o n s include a n s w e r input
types and
g r a p h i c interface)
and h a r d w a r e c o n s i d e r a t i o n
(central/de-
central solutions).
The f u n c t i o n level At the f u n c t i o n level problems, are with d e t a i l e d further. problems as s o l u t i o n s and d o m a i n knowledge
input
At this p o i n t d i f f e r e n t It is a m o n g o t h e r
The p r o q r a m level At this level the d e s c r i p t i o n that was d e t a i l e d at the f u n c t i o n level is translated Depending it into s t r u c t u r e s t h a t can be used on be the a computer. other hand on the type of s o f t w a r e u s e d this can job using more
On the
primitive
system
overview
KE AND
OTHER
REPRESENTATION
TECHNIQUES
(KE)
is a very is
fast
developing divided In
area into
computer
Knowledge knowledge
roughly
procedural
(ref. 9) .
traditional
programming those two are separated since the procedural knowledge is represented as the program itself and the declarative knowledge is kept on files as data. The consequence static and hard to change. In knowledge is that the programs are engineering declarative
and procedural knowledge are represented together and this gives a number of advantages and possibilities.
Another the of
word for procedural knowledge is decision tree method data relations are
logic. in
One In a is A
way to represent the decision logic is through decision trees. decision conditions, systemized hierarchical structure
the part of the tree structure that is connected to the branch. decision tree contains both the single condition/action and how they are interrelated. engineering, is the order of which the rules can fire
fixed to their position in the tree structure, that decision trees are a very well
representation
Declarative knowledqe In knowledge engineering can facts, what also are called referred Predicate Such
declarative
knowledge,
to as p r e d i c a t e calculus,
(ref.10).
s t r u c t u r e s are b u i l d up from terms and p r e d i c a t e terms are used for the name of things An e x a m p l e and of
represent
the r e l a t i o n s b e t w e e n things.
c a l c u l u s is the s t a t e m e n t
that in o t h e r w o r d s e x p r e s s e s the fact that a shaft is a bar. words Logical like "shaft" and "bar" are terms w h i l e "is-a" is like "and", "or" and "not", and a connectors
The
"for
possible
d e c l a r a t i v e k n o w l e d g e in a useful way.
I
Fig. 4. A s e m a n t i c n e t w o r k for m a c h i n e s in a c o m p a n y Semantic tures
>[
>I
i
struc-
n e t w o r k s r e p r e s e n t k n o w l e d g e b a s e d on n e t w o r k
(ref.ll). A s e m a n t i c n e t w o r k c o n s i s t s of p o i n t s c a l l e d nodes
41 connected the nodes. by links Similar nodes and called arcs d e s c r i b i n g and the relations in between predicate An
to the t e r m s
calculus, example
arcs r e p r e s e n t s net
relations.
of a s i m p l e
semantic
is s h o w n
in Fig.
w a y of r e p r e s e n t i n g (ref.ll).
declarative
knowledge
is
frames
It r e m i n d s
of s e m a n t i c In frames
networks, several
are h e r e m o r e than
just names.
attributes of a frame
can be a t t a c h e d in Fig.
An example to
is s h o w n
5. N o d e s
referred
as objects.
Power
instance
knowledqe the r e l a t i o n s Procedural or o b j e c t in the between facts are also be called proceusing rules
about
knowledge. rules
knowledge
can
expressed Production
production
oriented
programming.
can be e x p r e s s e d
form
IF
(condition)
THEN
(action).
of a rule
is s a t i s f i e d is
by the
facts, When
the this
is p o s s i b l e the action
seem to b e d i f f i c u l t
as the n u m b e r
rules
42
increase
(ref.12).
can to a
large
extent
be
a v o i d e d by o r g a n i z i n g
logically
in sets.
oriented
programming
is a m e t h o d
where
objects is
can a
w i t h each o t h e r by s e n d i n g c o u l d be a p h y s i c a l is sent to an o b j e c t
messages. thing it
An object
like a car or a lamp. invokes a procedure The same If a the "give data thinks the
effects. "car", If
example
object
procedure same
in "car" will
interpret
as "drive". it as
message
it w o u l d u n d e r s t a n d programming units
light". is of,
Advantages organized
oriented
easily
in the same l o g i c a l l y of a p r o c e d u r e
that
and that
the d e f i n i t i o n
is c o n n e c t e d
with
object.
Inference The
engine in an e x p e r t structure. rules and system The is the inference engine engine
third element
the control
inference This
is used to through is
h o w to a c c e s s forward chaining
facts.
can be Forward
done
or b a c k w a r d
chaining.
chaining
also c a l l e d part of
data d r i v e n The
it starts checks
in the
condition parts
inference
associated and so on
actions unt i l a
action
has
reached.
inference
engine
compares
the goal w i t h
If a m a t c h This
a subgoal.
compared
with
and if no m a t c h engine
is found a q u e s t i o n in w h a t
is a s k e d to o r d e r the
inference
also c o n t r o l s
are searched,
and w h a t to do w h e n rules
conflict.
The
inference
engine
keeps
in a t e m p o r a exaif
(an a s s e r t i o n
is u s e d to
if some answers
and to b a c k t r a c k The
that he has g i v e n be
answer.
u s e d to show the of r e a s o n i n g
current
status,
conclusions
and lines
found by the s y s t e m
43 C h o i c e of r e p r e s e n t a t i o n m e t h o d s The c h o i c e of r e p r e s e n t a t i o n m e t h o d s d e p e n d s a m o n g o t h e r things upon the task the s y s t e m is g o i n g to solve. Tasks that are are in ends
i n t e r e s t i n g in c o n n e c t i o n w i t h C o m p u t e r I n t e g r a t e d P r o d u c t i o n consulting simple and planning. Where consulting systems results a n s w e r s like w h a t a p r o c e s s to use, p l a n n i n g s y s t e m s
up w i t h m o r e c o m p l e x answers like a s e q u e n c e of machines. The previous mentioned in representation techniques LISP or the can be
programmed Another
directly
a b a s i c l a n g u a g e like
PROLOG. expert
possibility
languages a
LISP and PROLOG a l m o s t a n y t h i n g can be p r o g r a m m e d but it can be v e r y large job. techniques In the shells and in the ESDE m a n y of
programming or
are i m p l e m e n t e d in a way,
so they can be u s e d m o r e
less generally.
t a t i o n t e c h n i q u e s and are u s u a l l y c l o s e d systems, w h e r e t h e r e only is l i m i t e d access to add user d e f i n e d programs. ESDE are larger and programming systems that until r e c e n t l y w e r e v e r y expensive
(so-called L I S P - m a c h i to very
PC's.
The ESDE offers m o s t of the p r o g r a m m i n g t e c h n i q u e s and it is easy to add own p r o g r a m m i n g at m a n y levels. A lot of data and r e l a t i o n s are subject to frequent
changes
tools, materials,
is a need for a d y n a m i c k n o w l e d g e
that several p e o p l e in d i f f e r e n t d e p a r t m e n t s
must
to b o t h t h o s e needs is the use of an i n t e g r a t i o n b e t w e e n d a t a b a s e t e c h n o l o g y and k n o w l e d g e b a s e d systems. database have access two techniques for the s t o r a g e One is by and the
right
data
format
programs. have
w i t h d e c e n t r a l i z e d data storage,
central d a t a b a s e s
44
MODEL FOR A PROCESS SELECTION SYSTEM
the f o l l o w i n g
it will be d e s c r i b e d selection
h o w to s p e c i f y using the
and
build
manufacturing described
process
systems
previous
methods.
in any expert
as well
as o t h e r so
computer he/she
systems under-
seems t r a n s p a r e n t
to the user,
as a b l a c k box w h e r e might
input and o u t p u t
consequence ly also if t h e r e
e a s i l y be a s y s t e m that errors
is not used,
particularIt is and
or w r o n g can
conclusions. correct is
important
user e a s i l y
errors that
supplement
information.
Another
important
issue
systems the
If for i n s t a n c e
fea t u r e s
that will
Knowledqe
level level d e m a n d s Here regarding problem, that the than profile knowledge problem it and of
set up.
it is r e a l i z e d
a manufacturing
process
is m o r e c o m p l e x
first
seems to be.
If it was p o s s i b l e
to set up a final
requirements. first
the p r o b l e m simple
is i t e r a t i v e that
designer many
establishes Looking
profile
probably processes
matches the
into t h o s e d i f f e r e n t requirements
and he t h e r e f o r e be able to
handle
iterative
type of consulting.
way
of h a n d l i n g
is to
divide a
handles
fast
for p o s s i b l e
few
access of
by "trial solutions
This p r o c e d u r e the
after which
second
subsystem
Here m o r e d e t a i l e d that
analyses
are c a r r i e d
process
can be used.
One of the a d v a n t a g e s
the p r o b l e m
is that only k n o w l e d g e
relevant
45
actual p r o c e s s will be u s e d in s t e p 2.
to and how
( i l l u s t r a t i o n s of questions,
R e q u i r e m e n t s of answer on
questions be
those the he
can s e l e c t from,
Much
k n o w l e d g e is c o m m o n to a g r o u p of p r o c e s s e s and it
t h e r e f o r e be r e a s o n a b l e to store this k n o w l e d g e at one place. e x a m p l e do all n i c k e l - p r o c e s s e s share the p r o p e r t i e s of the nickel, place. and This t h o s e p r o p e r t i e s s h o u l d t h e r e f o r e be s t o r e d leads to a need for a hierarchical
representation
w h e r e data can be r e p r e s e n t e d d e p e n d i n g on its g e n e r a l i t y . General v i e w s on h a r d w a r e also b e l o n g s to the k n o w l e d g e In this case it is i m p o r t a n t that the d e s i g n e r has e a s y and to the e x p e r t s y s t e m and to the knowledge, b a s e and a fast w o r k s t a t i o n or t e r m i n a l and are a level. fast
access
central therefore
knowledge essential.
m e t h o d s are selected. The n e e d for h i e r a r c h i c a l both semantic nets where r e p r e s e n t a t i o n can be a c c o m p l i s h e d by Frames are the most both advanced detailed
and frames.
representation
it is p o s s i b l e to r e p r e s e n t for an object.
i n f o r m a t i o n and p r o c e d u r e s
Procedural
k n o w l e d g e for p r o c e s s s e l e c t i o n can be
handled
by of This be
programtype of
function
l o g i c a l l y b e l o n g s to some o b j e c t e.g.
function
46 that use rent d i s p l a y s special extra i n f o r m a t i o n about a process. is to p l a c e d i f f e r e n t functions w i t h the same name at objects, and w h e n the function is called, on the object. For it will a Another diffebehave display be by
depending
example,
For
many
d i f f e r e n t requirements, solution.
reasonable if it
has any rules w h e r e the c o n d i t i o n part m a t c h e s the input. trigger Forward different other rules, and e v e n t u a l l y select a possible of
reasoning input
words
u s e d iteratively.
[
Designer
CADSystem
[Interactive modeling
/ , /
Expert Consulting
Manufacturing
database
System
i .
Search for solutions Examination of each. ~..o.lution Show p.rocess capabilities ~ma =imitations Design rules .Cos.tle,s.ti~ation ~vzulapl~y E-xpenence , , ~oml:~nystanoaras
~.
Fig. 6. A m o d e l for a c o n s u l t i n g s y s t e m for p r o c e s s selection.
more
47 suitable. set up. condition A goal, e.g. "check if process #x can be used" Where part the consequent part of a may rule is put rise questions, that is to the can be the user.
matched,
Subsystem two asks the questions it needs to determine whether the process can be used or not. Proqram level At this level relevant computer structures and languages are
both forward and backward reasoning. It would be convenient if the developing system has an open architecture where it is possible to modify and include using user defined low level programming. the expert system development environments (ESDE) can Only
fulfill
those demands.
ESOP
- AN
EXPERT
SYSTEM
FOR
SELECTION
OF
SURFACE
TREATMENT
PROCESSES.
At ped. of used
the The
Technical University of Denmark an expert of surface treatment processes ESOP project is a joint program with a
system major
for
selection company,
(ESOP) is being
Industry and Trade in Denmark. In the development of a general expert system development environment
Goldworks RAM
(TM) (ref.13). ESOP works on personal computers with extended and disk memory.
In ESOP the iterative process selection is handled through steps like in the previous described model. First a limit a the number of screen processes to enter few
two
questions Through
examine and
working
change
requirements to the process and immediately see the result as many processes wants that to now match the profile set up. When
designer
processes
further,
selects it and hereby activates a step 2, where the expert in more detail asks questions to find out if the process
system can be
used.
48 Declarative are r e p r e s e n t e d stance of a k n o w l e d g e about processes, frame. A frame can both m a t e r i a l s and data products is an slots For inand
frame.
P r o c e d u r a l k n o w l e d g e includes rules about a d v a n t a g e s and disadv a n t a g e s for a process, special r e l a t i o n s that c a n n o t be e x p r e s s e d and
Both rules and object o r i e n t e d p r o g r a m m i n g are Rules are u s e d for and for of the
condi-
processes a
(e.g. if acid e n v i r o n m e n t and sharp edges t h e n p o o r a d h e s i o n is risk.). for a O b j e c t o r i e n t e d p r o g r a m m i n g is u s e d w h e r e there is a function in the d e c l a r a t i v e k n o w l e d g e (the frames).
need An
example is b o o k k e e p i n g functions that counts and u p d a t e s tion a b o u t the results that are found. ESOP knowledge and database knowledge is d e s i g n e d to help the d e s i g n e r but since m u c h can be u s e d by o t h e r c o m p a n y control departments) III) (DBASE is incorporated. functions to the Much of an i n t e r f a c e a
informa-
of
the
quality
accessed
It is the basic idea that E S O P can be u s e d by d e t e r m i n e w h a t surface t r e a t m e n t s he is to supply a tool t h a t can can
purpose
trigger
CONCLUSION
The
paper
d e s c r i b e s the i m p o r t a n c e of p r o c e s s
selection
it as a m e a n of i n t e g r a t i n g d e s i g n and production. selection situation of the right p r o c e s s e s for the company. are vital to that
Expert systems
process
do also p r e s e n t new p o s s i b i l i t i e s
49 have thought of. A method is processes for developing is introduced. advanced for systems selection for of
process
selection
described
and a system
surface treatment
REFERENCES
2 3 4 5
6 7 8
9 I0 ii 12
13
Lenau T., Alting L. XPLAN - An expert process planning system. The Second International Expert Systems Conference, London, UK, Sept/Oct. 1986. Lenau T., Alting L. Tutorial on Computer Aided Process Planning The Autofact Conference, Detroit, Michigan, USA, Nov. 1986. Alting L. Integration of Engineering Function/disciplines in CIM. CIRP General Assembly, August 1986, Israel. Chang T.C., Wysk R.A. An Introduction to automated process planning systems, Prentice-Hall, 1985. Zucherman, M.I. A knowledge base development for producibility analysis in mechanical design, CIRP Seminar on Computer Aided Process Planing, Pensylvania State University, PA, USA, June 1987. Alting L. Manufacturing Engineering Processes, Marcell Dekker Inc. New York, USA, 1982. Tong, Christopher Toward an engineering science of knowledge-based design. Artificial Intelligence in Engineering, 1987, Vol.2, No.3. Kim, S.H. Managing the development of advanced knowledge-based systems, CIRP Seminar on Computer Aided Process Planing, Pensylvania State University, PA, USA, June 1987. Nilsson, Nils J. Principles of Artificial Intelligence, Springer-Verlag, 1982. Hayes-Roth F. et al. Building Expert Systems, Addison-Westley Publishing Company, Inc., 1983. Waterman, Donald A. Aguide to expert systems, Addison-westley Publishing Company Inc., 1986. Allen D.K., Computer aided process planning: Software Tools, Integrated and Intelligent Manufacturing, Anaheim, CA, USA, 1986. Goldworks (TM) Goldhill Computers Inc., 163 Harward Street, Cambridge, MA 02139, USA.