You are on page 1of 764

Version: 10.

1
Course Code: PLT101
Updated: January 2012
Publication Number: MTXP101-S-101

Plant Simulation Basics /Methods

Plant Simulation Basics, Methods,


and Strategies Student Guide

q~==`=

m~=p~=_~I=
jI=~=p~=
p=d=
g~~=OMNO=
miqNMN==s=NMKN=

=
m~=k=
jqumNMNJpJNMN=

=m~=p~=_~I=jI=~=p~=p=d=

Manual History=
=
j~~=
o=

m=
s=

m~=
a~=

^=

s=VKMKN=

k=OMMV=

_=

s=NMKN=

g~~=OMNO=

=
q===~==K=
=
=
=
=
=
=
=
=
=
=
=
=
=

Siemens Product Lifecycle Management Software Inc.


All rights reserved.
Printed in the United States of America.

q~==`=

Proprietary and Restricted


Rights Notices
q==~=~====~K=
q=d========~=
W=
q=d=~=~=~===
p=m=i=j~~=p~=fK=p=
~========~=
=~==~===m~=p~K=
k=~====~====~==I=
==~=======~=~I=
==~~I======
==p=m=i=j~~=p~=
fK=
q==~=~=~=====~=~=
=K=q=~====~=~=~=
==~==K=
q=~========~=
K=q=~=~=======
~~=====~=~K=
f~===d====~==K=
`~=~=~=~=~=~~===~=
=~====K=
q=~=~=~=~=~=~==p=
m=i=j~~=p~=fK=ifjfq^qflkp=ql=
rKpK=dlsbokjbkq=ofdeqpK=rkmr_ifpeba==ofdeqp=
obpbosba=rkabo=qeb=`lmvofdeq=i^tp=lc=qeb=rkfqba=
pq^qbpK=q==~=~=~==~=
~=~====~=~==
~=~======K===

=m~=p~=_~I=jI=~=p~=p=d=

f===~=~==~=~=~=~=
9~==E~=~=====c^o=OKNMNFI==I=
~=====rKpK=d======
~==~=====p=m=i=j~~=
p~=fK=~====~=~L=~=~=
==c^o=NOONO=~=c^o=OTKQMREFEOFEF=E=~=~F=~==
ac^op=OOTKTOMONE~F=~=ac^op=OOTJTOMOJPE~F=E==a~==
aFI==~===~=~I=~=~~==~=~=
===K==f===~=~==~==
=~=~=9~=I===~=9==
~=~=~===9=I=~===~=
====rKpK=d======~=
=~====c^o=OTKQMQEF=~=c^o=ROOOTNQ=E=~=
~FI=~=ac^op=OOTKTOMPREF=~=ac^op=OROKOOTTMNQ=E==
a~==aFI==~===~=~I=~=~~=
=~=~====K==p=m=i=j~~=
p~=fKI=RUMM=d~=m~~I=p=SMMI=m~I=q~=TRMOQI=rp^K=
`=OMNO=p=m=i=j~~=p~=
fK=^==K=
q~I=kuI=q~I=p=bI=jJm~I=jpI=
m=aI=m=p~I=tJ_~=_lm=j~~I=tf=
_=pI=m=o=pI=o~I=olpbI=m~=
p~=m~I=`jj=f=m~I=`jj=
f=bI=`jj=f=b=f=
cI=s~~=^~I=j~=i=m~I=o~=
pI=o~=m~I=o~=^I=c~`^aI=s=sp^I=
c~cI=c~jX=~==q~I=kuI=
q~I=p=bI=~=p==~=~~==
p=m=i=j~~=p~=fK=
l=~=~=~==~==~=~=~~==
=~~====K=

q~==`=

Table of Contents
`~=NW=f==p~=p=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=NJN=
i=NW=q~=f=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=NJO==
i=OW=p~=`=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=NJS=
i=PW=d=p~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNJNU=
i=QW=m~=p~=f=m~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNJOP=
i=RW=m~=p~=d~~=r=f~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNJOU=
i=SW==`=j=~=q=_~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNJQM=
i=TW=f==j=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNJQS=

`~=OW=_~==j~~=c=l=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=OJN=
i=NW=t=t=l=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=OJP=
i=OW=e=^=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOJNV=
i=PW=_~=l=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOJON=
i=QW=f==j~~=c=l=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOJOT=
i=RW=`=j~~=c=l=m=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOJPV=
i=SW=a~=_~=_~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOJRT=
i=TW=a~=~===~=jr==~==~=KKKKKKKKKKKKKKKKKKKKKKKOJSN=
i=UW=f==_=^~=~=p~=l=KKKKKKKKKKKKKKKKKKKKKKKOJTN=
i=VW=p~=~=`~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOJTU=
i=NMW=j=`~=q=El~=iFKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOJVN=

`~=PW=e~I=fI=~=f~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=PJN=
i=NW=e~=~=f~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=PJP=
i=OW=q=j=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKPJNO=
i=PW=^=`==~=j=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKPJNT=
i=QW=l=p=q=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKPJON=
i=RW=f=b=~=`=o~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKPJOR=

=m~=p~=_~I=jI=~=p~=p=d=

i=SW=^~=f=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=PJPV=
i=TW=l=f=b=q=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=PJQT=
i=UW=s=d~=~=`=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=PJRO=
i=VW=`~I=f~I=~=f~=f=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=PJSM=
i=NMW=j==`~I=f~=~=f~KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=PJTP=

`~=QW=j=_I=^=i=~=c~=KKKKKKKKKKK=QJN=
i=NW=j~=c~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=QJP=
i=OW=_=~=l=j~~=c=l==~=`~~=[=N=KKKKKKKKKKKKKKK=QJNP=
i=PW=f==i=l=l=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=QJOP=
i=QW=q~I=q~I=~=q~=p~=l=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=QJPS=
i=RW=p=qI=^I=~=a~=l=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=QJRP=
i=SW=^=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=QJSU=
i=TW=a~~=q=~=rJ=^=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=QJTN=
i=UW=t==q~c=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=QJTT=
i=VW=m=p=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=QJUR=
i=NMW=b=a=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=QJVS=

`~=RW=t=~=l=p=q=KKKKKKKKKKKKKKKKKKKKKKKKKKKK=RJN=
i=NW=p=`~~KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=RJP=
i=OW=o=b=~=f=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=RJNS=
i=PW=t=_~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=RJPM=
i=QW=c~=~=p=`~~==o=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=RJQM=
i=RW=t=`~=m~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=RJRM=
i=SW=t=`~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=RJRV=
i=TW=c~=f=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=RJSP=
i=UW=^=t===m~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=RJSQ=
i=VW=q=p=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=RJSV=
i=NMW=^=~=p=p~=l=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=RJUO=

q~==`=

i=NNW=i~=~=`^a=j=~=~=_~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKRJUR=
i=NOW=m==b=j~~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKRJVO=
i=NPW=m~==o==`=o=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKRJNMN=
i=NQW=m=f=^=qKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKRJNNR=

`~=SW=f==j=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=SJN=
i=NW=l=q~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=SJP=
i=OW=f===l=j=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=SJT=
i=PW=q=p~==t=~=j=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKSJNT=
i=QW=q=j=a=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKSJOV=
i=R=W=k~I=fI=m~I=~=^=f=KKKKKKKKKKKKKKKKKKKKKKKKKKKKSJPS=
i=SW=p=j=`~KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKSJQU=
i=TW=b~=~=b=`=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKSJRP=

`~=TW=j==j=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=TJN=
i=NW=p~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=TJP=
i=OW=`~=p~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKTJNM=
i=PW=q~=~=d~=s~~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKTJNQ=
i=QW=r=a=c==j=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKTJPO=
i=RW=l~=`=a~~=q=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKTJPV=
i=SW=`=a~~=q=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKTJQQ=
i=TW=iKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKTJQT=
i=UW=`~=p==~=~==KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKTJRP=
i=VW=j==^==^=l=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKTJRS=
i=NMW=^==`==~=l==~=j=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKTJRV=
i=NNW=`~==^=`=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKTJSS=
i=NOW=`~=j=~=c~=`=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKTJTT=
i=NPW=EoF=_=`=^~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKTJUQ=
i=NQW=j=q~=p=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKTJVR=

=m~=p~=_~I=jI=~=p~=p=d=

i=NRW=q=~=i=i=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=TJNNO=
i=NSW=m~~=~=j~~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=TJNPQ=
i=NTW=l=p=q=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=TJNQO=

`~=UW=m~=p~=a~~=^=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=UJN=
i=NW=l==`=p~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=UJP=
i=OW=j==`=p~~=s~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=UJQ=
i=PW=q=b=`=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=UJOP=
i=QW=p~=~=m~=p~=q~=~=~=q=c=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=UJOR=
i=RW=i~=~=q=c==~=m~=p~=q~KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=UJPT=
i=SW=f~==l=^~=l=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=UJQS=
i=TW=c=f~==l=^~=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=UJQU=
i=UW=`~=f~==l=^~=El~=iF=KKKKKK=UJRT=
i=VW=^u=~=m~=p~=b~=El~=iF=KKKKKKKKKKKKKKKKKKKKKKK=UJSS=
i=NMW=m=f=^=q=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=UJTT=
i=NNW=t=a==d=c=e\=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=UJTV=

=
=
=

f==p~=p=
CHAPTER 1

Chapter 1

Introduction to
Simulation
Studies

About This Chapter


q=~==~=~==~==m~=
p~==I=~=~===
W=
i=NW=q~=fI=~=NJOI===
~~=====p=dK=
i=OW=p~=`=El~=qFI=~=NJSI=
=~=~=K=
i=PW=d=p~I=~=NJNUI=~=m~=p~I=
~=~=~=K=
i=QW=m~=p~=f=m~I=~=NJOPI==
==~=~===f=m~K=
i=RW=m~=p~=d~~=r=f~I=~=NJ
OUI=====~====m~=
p~=K=
i=SW=`=j=~=q~I=~=NJQMI=
=~=====~=~K=
i=TW=f==jI=~=NJQSI==~=
==~=K=
=

NJN=

NJO=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 1: Training
Introduction
Introduction to the Training
Manual Structure
q=~=~~====~=~=~=
====m~=p~=~K===
q====~=~=W=
r=

jp=
t~=
q=

r=f=

f=

`=

~~=

p=

`=

N=

p=

`=

O=

p=

`=

P=

p=

`=

Q=

p=

`=

R=

p=

`=

S=

p=

`=

T=

p=

`=

U=

p=

`=

V=

f==p~=p=
CHAPTER 1

Student Guide Typographical


Conventions
f==~==~=~==~==~==
~==K==q==~~==
=====p=dW=
^=~=~~=====~==~=
~K=
q=~=~=J=====~=
~==W====~===K=
q==~=~=======
=====~===K==q==
~======W=

Bullet Conventions:

 = q======~=~=J==~=
==K==r~=======
==K=
= q=========~=K==f===
~===~=K=

 = q=========~===
=~====~===~=K==p=
=~===~====J====
=~K=

Informational Sidebar Conventions:

q========~=~K==q=
=====K===
q=======~=~===~=~K==
q=~~=~==~=~=~====K=

NJP=

NJQ=

=m~=p~=_~I=jI=~=p~=p=d=

q======~~===~=1~=
=~=K==f==~==~==I===
~I========~=K==e=
=~~=~=~====~K=

Basic Exercise Conventions:

b~====~==~=~====
=bK==^===~====~K=
b~===~==~==~K===
q====~===~====
~K===
a~=J=~====~=
=K===
c=~W==e==~=JK=
f===~==~=~=====
~=~====K==q=====
J==~=======K=

Exercise Button Click Conventions:

f======I=JI=~I==
I=~===~K=
f=~=======EKK=~=FI=
~===K==c=~W=I=I=I==
K=
eI==xlhzI=x`~zI=xvzI=~=xkz==~=
==~K=
p~====~=~===~K==c=
~W=xbzI=x^zI=x`zI=xazI==
t=~=~======~====~=
=====~=~=====~=
=~=K==c=~W=c=J[=bK==

f==p~=p=
CHAPTER 1

t=~=====~====~=
~~I==~====~~======
===K==c=~W=l=j

K=

Example Usage of Exercise Conventions:

1 q=~==~====~=====~=p~W=
=
c==c=I==p~K==q====~K===
l=

p=c=J[=p~=j

K=q====~K==

2 e===~===~=~=====~=W=
=

`=p~=j=

===p~~=~K==

3 e===~====~==~====
~======~=W=
=

m==xbz=K=
`=xlhzK=
=
=

NJR=

NJS=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 2: Simulation Concepts


(Optional Topic)
Introduction
qefp=ibpplk=`^k=phfmmba=_v=`i^ppbp=`lkq^fkfkd=
pqrabkqp=qe^q=^ob=^iob^av=c^jfif^o=tfqe=afp`obqb=
bsbkq=pfjri^qflkK=

Definition of Simulation
p~===~==~=~===~===
~=~==~=~==~==~=K=
l=
1p~===~==~====~=
==~===~==K=f=~=~=~=
=~=~==~==~K=Esaf=PSPPI=_~=NI=NVVPFK=

Discrete Event Simulation


a==~=~==~=~====
=~====~=K=r=~=
~======~==~I===
===~========
=K=b=~=====~=~=~=
=~=~I====~====~=~=
=~==~K=

f==p~=p=
CHAPTER 1

NOTE

Discrete event-oriented simulation only shows the state changes of the model
components at certain points in time, not continually over time. When certain events
take place, certain model components change their state and thus control the
simulation. Plant Simulation considers these events in a discrete way, step by step.
The main advantage of this approach is, that Plant Simulation skips the time
between the events.
In addition, Plant Simulation is an object-oriented application, that allows child
objects to inherit properties from a parent object

Simulation Uses


To plan a new facility:

a=~====~==K=
a==K=
a====~K=
f~====~K=
a=~=K=
d~==~==~===~K=
a=~==~=
b~~==~~K=

To optimize an existing facility:

l==~K=
l====K=
q==~=K=

To execute a plan:

m=~=~==~===~K=
q==~===~J=~===
~K=
q~==~===~====~===
~K=

NJT=

NJU=

=m~=p~=_~I=jI=~=p~=p=d=

Simulation can:

f~==~===~W=
f~=
q=
o=~K=
r~===~=
a=
l~===
k==~=~=^ds=
k====~K=
m==~==
a~K=
q==
o==
p~==
l=
s~~======~=K=
f=K=
o=tfm=E==FK=
b~~====~~===~==
K=
l==~=
^=~==
m==

Avoid These Common Errors in


Simulation
f~~=~=~=~~===~=
=~=~==~=K=
^=~~=~===~=~K=

f==p~=p=
CHAPTER 1

^===~~=====~===
==K=q=~===~====
=====~=~K=
^==~===~=~===~=~==
===~==~==~K=
^==~===~~I===~==~=
K=
^==~~=K=
f=~K=

Benefit of Simulation
q===~==~===safJ=PSPP=
OMB==~===~====~=
OBJQB=====
MIRB=J=NB=~=====~=

The Phases of a Simulation Study


q==~=E~==saf==PSPP=~=^pfj=
====~===~=I=NVVTFW=
NOTE

The VDI (German abbreviation for the Association of German Engineers)


recommendation 3633 (VDI Richtlinie 3633) defines accordingly: "simulation is a
procedure for the reproduction of a system with its dynamic processes in an
experimentable model, in order to arrive at realizations, which are transferable to
the reality. In the broader sense by simulation preparing, accomplishing and
evaluating purposeful experiments with a simulation model are understood. With
the help of the simulation the temporal expiration operational sequence of complex
systems can be examined."
ASIM is a simulation conference held every year in Germany for approximately the
last 20 years. According to their website: The goal of the Symposium on
Simulation Techniques is the exchange of information and experience between
experts from industry, science, and education.

1 m~~=
aW===~\=

NJV=

NJNM=

=m~=p~=_~I=jI=~=p~=p=d=

a=~=~=~=
b~==
a~~W=~I=~I==
^~~==~=
`~=~=~~=~==

2 b=
m~=~==
b=~==
s~~=~==
3 b~~=
c~==
f==
a==

Proceeding Through a Simulation


Project


Preparation

1 a===~=~=
_~====
f====~=~\=
a=~===~==
b~W=
b~====~=
a====
o~~==~=
l~====~==
2 ^~===
a======~=
a=====

f==p~=p=
CHAPTER 1

NJNN=

a=====~=E===
F=

=
3 ^=~~=
_~===~~===
^===~==~=

=
4 `~==
q~~===~===~=====
5 s~~==
b~~====~==~==
=

Execution

6 b=~=~~==

NJNO=

=m~=p~=_~I=jI=~=p~=p=d=

Evaluation

7 b~~==
8 o~=

f==p~=p=
CHAPTER 1

a===~=~=

^~==

^=~~=

`~==

s~~==

b=~=~~==

b~~==

o~=
=

NJNP=

NJNQ=

=m~=p~=_~I=jI=~=p~=p=d=

Distribution of Efforts

=
NOTE

IWB is a German abbreviation for the Institute for machine tools and industrial
engineering sciences (Institutes fr Werkzeugmaschinen und
Betriebswissenschaften).

f==p~=p=
CHAPTER 1

NJNR=

p=mij=
`=

Planning of Experiments
aD=~=~~=~====
m~===~=
s~~==
a==~~=~=~==
`~===~=~=~=I=~=~~=~==
p~==~=~~=

NJNS=

=m~=p~=_~I=jI=~=p~=p=d=

Basic Simulation Work Flow

=
q=~~==~=====~=
~=K=f==~=~==~===~=
~==~==~======~~==
~K=l==~=~=====~===
~=~~=K=t=I==~===
==~==~======~=
=I====~=~=~==~==
K=l====I====~~K=_~=
~=====~====~===~=
==K=f=====~===~=
=~K=`~========~=~=I==
==~=K=l==~====
=~=~=====K=b=
=====~=~=~===
~====~=~=~====~=
K==

f==p~=p=
CHAPTER 1

f====~==~=~~=~==~=
~=====K=q=~W==
t~===~=====\=
t~=~~======~=~\=
e=~==~~=~\=
=

NJNT=

NJNU=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 3: Getting Started


NOTE FOR PREVIOUS PLANT SIMULATION USERS

Plant Simulation is no longer developed on the TUNE infrastructure to allow for


increased tool flexibility.

Plant Simulation: Discrete EventOriented Simulation




Why Use Plant Simulation?

a=J=~====~=~==
===~=~===I==~=
=K=t=~==~=~I=~==
=~==~=~====~K=
m~=p~=====~==~I===
K=q=~=~~~===~~==~=m~=p~=
=====K==
NOTE:

Plant Simulation is a Discrete Event simulation tool. In other words, a dynamic


simulation of manufacturing processes over time. It allows you to perform stochastic
(partially unpredictable) experiments of your manufacturing facility; for statistical
modeling of facilities where throughput, machine capacity constraints, queuing
constraints, are important.

f=~I=m~=p~==~=J=~~=~=
~=======~=~=K==t=
=====~=~=~==~K=
NOTE:

The object-oriented structure of Plant Simulation allows greater flexibility and


maintainability of complex, changing models. The model is made up of a collection
of units (objects) that act on each other. Each object can receive, process, and
send data. Each object can be viewed as an independent little machine or actor
with a distinct role or responsibility.
Simple objects (parent objects) can be used as the building blocks to create more
complex objects (child objects). This is call inheritance.

f==p~=p=
CHAPTER 1

Starting Plant Simulation




Method 1:

aJ===m~=p~=NMKN====K==
q=m~=p~=~=~K==

Method 2:

p=p~=J[=m~=J[=q~=J[=b=
^~=J[=m~=p~=m~=J[=m~=p~=
m~K==q=m~=p~=~=~K=

Plant Simulation Interface Overview

p~=m~=p~===~==~=
==~=~I===qI==`~=
i~I==Pa=i~I==`I=~==p~=m~K=
q=p~=m~====~===
=~=~=~=~=~====
=f=m~K=
p=s=J[=p~=m~=
====p~=m~=
=~~K=
t=======~=K=

First Option of the View Menu

p=s=J[=^~=i=~======
=K==q=~==l=OMMT=J[=_=pK=

NJNV=

NJOM=

=m~=p~=_~I=jI=~=p~=p=d=

First Option of the File Menu

p=c=J[=k=j= ===~===K=q=
=~==`~=i~====J=m~=
p~=K=

Ways to Open an Plant Simulation


Model File


Method 1:

p=c=J[=l=j

K==

_====~=~====~==
=========~===lK=

Method 2:

a~=~==~=====`~=i~K=
=

Method 3:

`=l=j=
==K=

==p~~=~===~=

Method 4:

p=c=J[=o=cK==q=======~=
=====K=

Method 5:

p====o=j====p~=m~=
K==q=======~====
==K=

f==p~=p=
CHAPTER 1

Ways to Close an Plant Simulation


Model File


Method 1:

p=c=J[=`=j
====~K=

Method 2:

p==`=j=

K=m~=p~==~===

=f===p~~==~K=

Method 3:

`=u=====~====~=K=

Method 4:

l=~=====~===m~=
p~=EeI=m~=p~=~====
~===~=FK=

Exiting Plant Simulation




Method 1:

p=c=J[=bK=f===~====m~=p~=
=~=======~K=

Method 2:

`=u=====~====~=m~=
p~=K=

Exercise: Starting Out


lW=q=K=
1 a===q~=m~=p~=NMKN====
K===

NJON=

NJOO=

=m~=p~=_~I=jI=~=p~=p=d=

=
NOTE

A license for Plant Simulation is not required until a model file is opened.

2 l=~===K=
p=c=J[=k=j

K=

=
`=xlhzK=
^==~=kk~K==~=~=K=
q====q=~====~=~=
~==~==Eq==~===
=~==miqNMN=~=miqPMMFK=
3 k~=~=======m~=p~K=
4 p~===K=
p=c=J[=p~ K=
_===~=~~=====
K==q====~=~=~==~=
=~~K=
c==k~I==cKK=
`=p~K=
kW=a======~==K=
=
=

f==p~=p=
CHAPTER 1

Lesson 4: Plant Simulation


Info Pages
Info Pages of the Start Page
q=f=m~===p~=m~==~=~===
=~==m~=p~==~==~=~=
=K==EKK=====~=~==~I=~=
I=~=~=~=~==~JFK==t==
====~===K=

To Open the Info Pages:

c==p~=m~I==f=m~K==

Plant Simulation Licensing




Primary License types:

m~=p~=p~~=
j=W==j~~=I=q~=I=~=~~I=`=
I=b~~I=~=`~=
i==QIMMM=~~===
m~=p~=m~=Ej==~~F=
`~====~~==W=
b=~~I=p~=Ea~~cFI=eqjiJoI=
mI=jLr~I=^=bI=uji=~==
a~=I=d=^=
k=======

Other License types:

m~=p~=^~==
^===~~==
m~=p~=o=

NJOP=

NJOQ=

=m~=p~=_~I=jI=~=p~=p=d=

i===~=~=~=K=
j=~==~K=
`~==~~====~=~~=
~=~=~=
m~=p~=s=
i~=~=~==m~=p~==EOa=H=
PaF==~=K=
i~W==I==~~=~I==fJ==
l=
m~=p~=Bp~=m~~=
c==~==
k=~~=~=

Optional Plant Simulation Options:

m~=p~=Pa=
f=~=~=~==Pa=~K===
f=~===Oa=~==Pa=~=K=
m~=p~=f~=m~~=
f==~=~==~=~~~=~=^uI=`I=
la_`I=pI==l~=pniK=
m~=p~=d~=
f==~=d~=~~===~=~=~=
~=~~===~K=a~~==~=
~==~=~==~=d~=~~=~=
~==~K=

Optional Plant Simulation Integrations (Additional Cost):

m~=p~=c~`^a=EpauF=f~=
f====~~=~==c~=~=E~=
=^`^a=L=c~`^aF====
~==m~=p~K=
m=a=f~=

f==p~=p=
CHAPTER 1

a~~=~==m=a=~=~~==
~=

Optional Plant Simulation Libraries (Free):

^dspI=^~===~==~~==I=
`k`|j~I=Pa=`~=oI=`I=`=PaI=
blj=Eb=l~=j~FI=blj=PaI=c=iI=
e_t=Ee=_~=t~FI=Pa=e_tI=h~~I=j~=PaI=
p=iI=~=Pa=qK==

Optional Plant Simulation Libraries (Additional Cost):

^=i~=
f==~==~==I=~=~=
~~=~=K===t=I===
=~~=~=~K==j~~====~=
~=~=~==~====
===~~=~=~~===
~===~=~=I=~==
~~I=~~=I==~~K=q=
~=~=~=QP=K==j===~====
~K=
p=i~=
f==~==i~======
===~~====
====K==q=~=
~=~=NQ=K==j===~====~K=
q~=i~=
f=~====~~=W=^dsp=
E^~=d=s=pFI=`I=blj=
Eb=l~=j~F=~=e_t=Ee=_~=
t~FK==q=~====~~==K==
q=~=~=~=OR=K=
c=p~=j~=i~=

NJOR=

NJOS=

=m~=p~=_~I=jI=~=p~=p=d=

q====cpj=~=Ec=p~=j~F=~=
====~~===~===
===~==EKK=~=
~~==mi`===FK==q=~=
~=~=T=K=
m=i~=
f===~=~=~~===~==
~K==q=~=~=~=O=K=
^=W=^jdI=^=iI=c~`^aI=~=i=
~K=

Many Other Optional Objects. For example:

d=^=
f=~=~~=~K=f=~==~=~=
~~==~~===~===
=====~===~K=q=
~~==~====~=~==~==
=~~===~=~=~=~~K==
q~=~~==d=^=W==i=
=~=C==~I=i~=~I=
m=~==~~I=`~~=
a~I=~=j==J=K=

Exercise: Using the Info Pages


lW=q==~==K=
1 i=~==f=m~K=
p=s=J[=p~=m~
c==p~=m~

K=

I==b~LfK=

f==p~=p=
CHAPTER 1

NJOT=

=
p===~K=
2 i=~=~==m~=p~=m~==K=
`=m~=p~=m~=K=
p=K=

p~===K=
p=K===
f=======I==_~
`=_~ K=

K=

NJOU=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 5: Plant Simulation


Graphical User Interface
Introduction
m~=p~==~=J=~=~===
t=~~K=q=~=~======
EF=~======I=~===~=
===~~~K=

Options can be accessed from the following three places:

j=~W=q==~==~=~=====m~=
p~=K=f=~====m~=p~I=
=~===I=~====~==
==K=
=
q~W=_=~I==~=~=~=====
===~=~~K=q=~====
~~~====~K==
=
oJ==W=a===~=~=
=J=~=m~=p~=K=t==~=
=~===~K=

Window Types


Plant Simulation has three types of windows:

s=
l=t=
a~=t=

f==p~=p=
CHAPTER 1

Plant Simulation Viewers


q=~=~==~~~==m~=p~W=
q=Pa=i~
K=

==~=~===Pa====

q=`~=i~
=K=

==~=~===Oa===

q=c~ ==~====~=~=
==EKK=~I=I=~=~=F=
q=`
==~=~=~=~=
=====~=K=
q=q ==~===~==
==`~=i~K=

Each of these will be explained briefly in this section:

l=~=`=s==s=~=====
~=~=I=~==K=
a==c~=s==s=~===JJ
I==~=~===I==~=~=~=
I=~==K=
l=a~=t=s=J=^===~==
~==~==~I====
~==~=~K===

To open or close a Viewer:

q======~=~W=b===
====~======s=J[=
q~=~=a=t=K=

To close a Viewer you can also:

`=`=

===J~=====K=

NJOV=

NJPM=

=m~=p~=_~I=jI=~=p~=p=d=

m~=p~==~=~~=jp=t=~~==
~K==f=~====K=a~==
~=~~=~====~==K=
v=~===j=~=~==q~=~==~==
~=~====s=K=

Plant Simulation Object Windows




Object windows:

c~=
j=
q~=

f==p~=p=
CHAPTER 1

Docked and Floating Viewers and


Toolbars


To undock (float) a viewer or toolbar:

q=~=======W=
j=NW=a~======~~===
K===
j=OW=a====~~K=

=
a~========~~I==~===
~~======~==K=

To dock a floating viewer:

j==o===m=a=mW=
a===~===
j==`~==a=mW=
_=~==E~==F=====
~~===K===

=
j=NW=j~==~==~=~===~=W=
a~=~=======~==~=
K=
j=OW=p~Lp~=s=^~=bW==
a~=~========~===
~=K=

NJPN=

NJPO=

=m~=p~=_~I=jI=~=p~=p=d=

=
j=PW=t=s=^~=bW=
a~=~==========
=~~K=
q====~=~==~=~===
==~~=K=

On Demand Window Viewing


_=~==l~=q====1l=a~K==q=
~=~===~==~======m=
p~==~=l~=qK===

=
f====I=====K==q===
~=~===~======
l~=q===K=

f==p~=p=
CHAPTER 1

=
q=~==~=~===l~=q=~I=
===~= ========K=
=

Arranging Windows
l=t==c~I=jI=~=i==~I=~=~=
I=~===~=K=v=~=~==
===~=K=
l===~=~~=~=====
K=
l=~==~=~~=~=====
=~==K==
s~=~=====K=
p=~=====K=

You can arrange the open object windows with these


commands:

t=J[=`~~

t=J[=q=e~
t=J[=q=s~

=
=

NJPP=

NJPQ=

=m~=p~=_~I=jI=~=p~=p=d=

Toolbox Viewer
=

Basic Content:

_=~I===~==~W=j~~=cI=oI=
f~=cI=r=f~I=~=qK==q=~==
===~=~==~===m~=p~=K=
q=j~~=c=~=~==~===
==m~=p~K=
q=o=~=~====K=
q=f~=c=~=~==~=~====
~~========~=m~=
p~====~===K=
q=r=f~=~=~=~===~=~I=
~I==
q=j=r=~=~======
==~=W==
b=EKK=~F==
`~=EKK=~=~I=~I=I=~I=F=
q~=EKK=I=^dsI=I=F====
q=q=~=~=~===~===
~~K=
NOTE

Other tabs can be added either by adding additional build-in objects to this model,
or by creating additional tabs yourself (More this later).

f==p~=p=
CHAPTER 1

Adding to the Class Library and


Toolbox
t=~====~=EKK=c=J[=k=jFI==~=
=`~=i~===J=m~=p~=K===
p=c=J[=j~~=`~=i~
====~==
==J=m~=p~==~====
K==p=~J=~==~==~=K=
NOTE

The Manage Class Library window:


- Shows the version number of loaded libraries
- Highlights in red libraries for which a newer version is available
- Can select and update single or multiple libraries

^=~===~=I====~==~=~=
I====~==~=~===
==~===~===~~K=

ActiveX

^===~===~~==
Ej=^u=F==~=~=~~=~==
~=~~======~K===
`=~==^u====t=
bI=tI=b=~==~=~K=`=t=
=~==~===~==
~=K=b=~~=~==
~===~=~=^sf==jmP==~==
~===~=K=

GA

d=~==~===~~~===
K===
q~=~~==m~=p~=d=^=
W=
i==~=C==~=

NJPR=

NJPS=

=m~=p~=_~I=jI=~=p~=p=d=

i~=~=
m=~==~~=
`~~=a~=
j==J==

GanttChart

q=d~=~==~===~~=~=~==
~===~K===
a~~==~=~==~=~==~=d~=~~=
~=~==~K=^===~=~===
===~~K==q=~~=~==~~~==
==~==~==~~K=

ODBC

^=~==J~=~~=~==m~=
p~=~=~===la_`=El=a~~~=
`F====jp=tK==la_`==~=
~~=~~~==K===
la_`=~I==~I=~~==~===
~~~===K=^=~==~====
=~=~~~K=

Oracle (9i, 10g, 11g)

^=~====~=l~=~~=~==
===K===
pni=~=~===m~=p~===~~~K=
q=~===~~~=====
~~~=~======m~=
p~K===
f==~====~==~=pni=~~~===
~==~=m~=p~==~=~==
===~===~~~K=

f==p~=p=
CHAPTER 1

Socket

^=~==~J==~==q`mLfm=m=EKK=
==~F==m~=p~=~==
~~==~=p=f~K===
q==~==~==~=~===
==K=t==~I=~=~===
===~~K==
j~===m~=p~=~I==~=~=~I==
=~=K=
`~==~=m~=p~==
o~==~===~=~=
~~=~~===Ep^m=oLP==~=F=
f~==m~=p~===~=KK=^ofpK=
`~=~=~~==EqI=mlmPI=
tttI=KF=

And More

Exercise: Start Plant Simulation


lW=q=p~=m~=p~K=
3 p~=m~=p~I=====~~=~K=
4 q==1=~=~=====~=K=
m======`~=i~=K=
=
j==`~=i~=======K=

NJPT=

NJPU=

=m~=p~=_~I=jI=~=p~=p=d=

=
q===K===
t=======`~=i~====
~~K==

=
j==`~=i~=======K=
=
m===~=K=
5 ^====~=~=~=qW=
p=c=J[=j~~=`~=i~
K==
f==j~~=`~=i~=I===i~=~K=
`====p~~=qK=

f==p~=p=
CHAPTER 1

NJPV=

=
`=xlhzK=
^==p~~=q=~==~===qK==q=
~=~==a~~c=K==

NJQM=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 6: Customizing Menus


and Toolbars
Toolbars
e=~==~==~~=~=~=~=~=
~=====~K==_=~==~=====
~=~~=====W=
q=p~~=q~=
=
q=p~=q~=
=
b==

Customizing the Toolbar


v=~====~=~==m~=p~W=

f==p~=p=
CHAPTER 1

=
oJ===~==~==~===~=
===~=`====K=q=
==`=K==
f=~==`~==~K==t=~=~==
==~~==~=~==~=~=
==`~=~K=

NJQN=

NJQO=

=m~=p~=_~I=jI=~=p~=p=d=

=
p=~=~===I=~===~=~=====
==~===~=~=~===K==

Customizing the Names of Menus


and the Icons Used for Displaying
Them
`=~==K=
o=====~==_=^~~K=

f==p~=p=
CHAPTER 1

=
v=~===~===~=~==
~===K==

=
`=====`===K=
q==~=======~===
K=

Example:

v==~=e=J[=`==e=J[=l=eK=

NJQP=

NJQQ=

=m~=p~=_~I=jI=~=p~=p=d=

Exercise: Customizing the Menu


Bar and the Toolbars
lW=q====~=~=~=~==
=~~====K=
1 ^=====~=p=p=j==
=p~~=~K=
p=q=J[=`K=
f==`=I===`~=~K=
p==s=~K=
p===`~===p~=m~==K===

=
a~=~======p~~=~K=
`=`K=
2 q=====~===~K=
c==~I==p~=m~ K=

f==p~=p=
CHAPTER 1

`===K===
3 `====~===~K=
p=c=J[=`=j

K=

=
p=kK=
=
=
=
=
=
=
=
=
=
=
=
=

NJQR=

NJQS=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 7: Introduction to
Modeling
Introduction
f=m~=p~====~=j=K==^===~=
~=~=~==~=K=
cI==~=~==~====
=~K=c=========
~=I====~=====~K=
t==~==~~=~======
=======~K==

Modeling Strategies


Top-down strategy:

f=~~==~====~==~==
JJK=q=====I===
~==K=q=~~==~=~===
~~K=q=====K=

Bottom-up strategy:

f=~~==~=~==~===~~=
==~=~=~===~~K=q=~=~=
=~~===~I==~==~====
=K=
f==~=====J=~=~==~==
J=~K=

f==p~=p=
CHAPTER 1

j=~=~===~=K=q=~=~=~=I=
~=~=~=~~==~==K=l==~=
~===~I=~~====~=~==
====K==j=~===~=
===~===I==~===
~I=~=~=====~===K=^=~=
=~==b`===~====
~K=

The objects we will use for our basic model are:

c~=q==~=~=~==K==b==
~=~=~==~K=
b==^==~=====~===
=
p==^====~====K=
a~==^====~====K=
pm==^==~=====~=
~==K=
b=`==q====~I=I=
~=~=~=~K==

The Default Class Library of a


Model File
^===~===~=~==~=~~=
K==
q===~===~=K==
v=~==~=~===~===
===~=K==

NJQT=

NJQU=

=m~=p~=_~I=jI=~=p~=p=d=

=
v=I==~I=~=~~===~==
~=I====~=====
==K=
NOTE

* MUs are the moving objects, that move from material flow object to material flow
object in the simulation model

Organizing the Class Library


q=~=~==cI=c~I==q~W=f==`~=i~I=
==`~=i~=~K==oJ======
===~====~==k=J[=cK=

Moving a Folder


To Move Within the Same Structure:

q==~===~====~=I===
==I=~===~=~=~===K==

To Move to Anther Structure:

q==~===~===~=I===
I====xpz=I=~===~=~=~=
==K==

f==p~=p=
CHAPTER 1

CAUTION:

Be aware that changing the structure and the names of folders in an existing
simulation model may cause this model to not function any more.

Renaming a Folder


You can rename an object in several ways:

_=J=K=
_===xcOz=K=
_==o~=====K===
NOTE

For all objects except folders: when selecting Rename from the right click menu,
the Rename window is opened allowing entering a name and a label for the object.
We will talk more about labels later in this course.

=
NOTE

Another way to rename an open frame, make it the active window, press the [F4]
key, type in the new name into the Rename window, and click [OK].

User-defined Names
rJ=~=EF=~==~==~=
==~=~==~=K==q=~==
~===~W=
q=~=~====~=I===I=
===JK==
p~=~~=~==~=EKK==~I=~I=AI=CI=
FK=

NJQV=

NJRM=

=m~=p~=_~I=jI=~=p~=p=d=

^=~=~=~=~=~==OM=~~=
k=======~=~==I==
~W=I=I=I=I=I=I=I=I=I==
^=~=~===~===~==~=~~=
q=~===~==J=~=J
~JK=KK=m=Z=pfkdib`KKK=

Examples:
~W= ~|NI=p~NI=I=~I=I=
j~I=I=~=

=~W=~=NI=fcI=PRJJI=OTRp~=

Saving a Model File


q=~===I==p~=j
q~===c=J[=p~=j

===p~~=

K==

t==~======I=m~=p~=
~=~=====KK==
^==m~=p~=~==~======
==EGKFK==
^==~==m~=p~=~===~=
======~=~=====
KK~K=
q=~==~==~=~=~===K=q=
===~I=~==~=~==~=~==
=I===~=K=
HINT

Select File -> Show Model History


modified and saved.

to see when and by whom the model was

f==p~=p=
CHAPTER 1

NJRN=

Opening a Backup File


p=c=J[=l K==f==l=I====
==~=====J===c==W=
K=E=F==K~=E~=FK==

=
t==~=~=~====Pa=I==~=~=
==~=~====K=

Exercise: Adding Folders to the


Class Library
=lW=^======`~=i~=~==
==K==q==c===~===
`~=i~=~===K==q=====
~W=
b=
c~`=
qj=
mW=
1 l==miqNMN|p~j|sNMNK=K=
c==m~=p~=I==c=J[=l=
j K=
c==l=I====miqNMN|NMN=
=~====K=
p=~===miqNMN|p~j|sNMNK=K=
`=lK=
2 p~====~=~K=
c==q=jI==c=J[=p~=j=^

K=

NJRO=

=m~=p~=_~I=jI=~=p~=p=d=

c==p~=~=I==~=~====
===~K==c=~W=
miqNMN|p~jJjk~|sNMNK=
kW=m~=~=jk~====EF=~K=
`=p~K=
3 `~=~==K=
f==`~=i~I====_~= =~==k=J
[=c=====K=
o======~==o~=E==
=xcOz=F=~==bK=

=
4 o~====~====~=~==
c~`=~=qjK==q=`~=i~==
====K==

f==p~=p=
CHAPTER 1

=
5 p~===
c==q=jI==c=J[=p~

K=

kW=f==~==~==~=~=~===
=p=dK=
6 j=====~==~=~===
jr=~=q=K=
a~=~===b====q=K==
NOTES:

If a folder is dragged and dropped onto another folder with the [Shift] key pressed, it
becomes a child of that folder. If the no keys are depressed during the drag and
drop, it will be placed at the same level in the tree one level higher in the list.

o~=========~K=

NJRP=

NJRQ=

=m~=p~=_~I=jI=~=p~=p=d=

=
=
=
=

f==p~=p=
CHAPTER 1

Chapter Summary
f==~===~=~W=
p~=`=
p~=m~=p~=
^~==p~=
q=====~~~==m~=p~I=
==~=I=~==~===m~=p~=
l=K==
q==~=~==~~~==m~=p~K=
f~===~=J===~~~==
m~=p~K=
e========~===
d~=sI=~==~=~===~==
==~===~=K=
q=~=~===`==~=
=~=~====~K=
`~===~==K=
=
=
=
=
=
=
=
=

NJRR=

NJRS=

=m~=p~=_~I=jI=~=p~=p=d=

=
=

_~==j~~=c=l=
_~==j~~=c=l
CHAPTER 2

Chapter 2

Basics of
Material Flow
Objects

About This Chapter


q=~==~=~==~==m~=
q=~==~=~==~==
p~==I=~=~===
p~ =I=~=~===
W==
i=NW=t==lI=~=OJPI===
i=NW=t==l
I===
===~=~=~=K=
===~=~=~=K=
i=OW=e=^I=~=OJNVI==~=~==
i=OW=
I==~=~==
~==K=
~==K
i=PW=_~=lI=~=OJONI===
i
I====
===~=~=~==~==~K
===~=~=~==~==~K=
i=QW=f==j~~=c=~=jr
i=QW=f==j~~=c=~=jrI=~=OJOTI=
===~~===~=jrK
===
~=jrK=
i=RW=`=j~~=c=l=m
i=R
mI=~=OJ
PVI====~=~=~===
I====~=~=~===
~~==K==
~~==K
i=SW=a~=_~=~I=~=OJRT
i=S
RTI===
~=~K=
~=~K
i=TW=a~=~===~=jr==~==
i=T a~=~===~=jr==~==
~I=~=OJSNI==~==~
~
~=~=
==~~=K=
==~~=K

OJN=

OJO=

=m~=p~=_~I=jI=~=p~=p=d=

i=UW=f===_=^~=~=p~=
lI=~=OJTNI=======
~~=~=p~=K=
i=VW=p~=~=`~I=~=OJTUI==
m=p~=~=o=p~K=
i=NMW=j=`~=q=El~=iFI=~=OJ
VNI===~===~=K=
=
=
=

_~==j~~=c=l=
CHAPTER 2

Lesson 1: Working with


Objects
Introduction
q=~==~=======~=I=
~I=pmI=I=~==K=

Frames
`~==~===~=~=I===~=
==~~====K=v=~===
~==K==
v=~=~=~====~==~====
~===`~=i~=W=oJ===
~==~==k=J[=c~====K=

Units Setup
q=~===I==q=J[=m====
~===q=J[=j=p==~==
===K==f==m==E=j=
p=FI===r=~K=
m~=p~=~~~===~====
=====~===j~I=p=~==i==
==~==K==
c==i==~=~==~=i=r=~===
I==~=Nir=Z=MKPQN=K=

OJP=

OJQ=

=m~=p~=_~I=jI=~=p~=p=d=

=
m~=p~=====~===`K=
j~==q=~========
~====K=

Inserting Objects
l=~====~===~=~==
===q====~=~===
=`~=i~K=

_~==j~~=c=l=
CHAPTER 2

Here are the steps to insert an object:

p=====q=K=
j========~===
~====K==
^==J====K==
NOTES:

An object can be inserted from the Toolbox by drag and drop as well.
NOTES:

To insert more object of the same type, hold the [CTRL] key then click in all the
desired locations for the selected Toolbox viewer object.

Aligning and Distributing Objects:

q====~===W=
=p==~==~=~==~===K==
a==~=~=~==~==
~=~K=
o=====~=~===W=
^~=f=J[=^=e~=
^~=f=J[=^=s~=
^~=f=J[=a=e~=
^~=f=J[=a=s~=
^~=f=J[=o=l=e~=
^~=f=J[=o=l=s~=

OJR=

OJS=

=m~=p~=_~I=jI=~=p~=p=d=

Connecting Objects
^=~==~=======~=~=
`==E==~===~=~FK==

To Add a Connector to the Model:

c==q=I===j~~=c=~=~=
=`=

==~====K=

m=====jfaaib=====~==
=coljK==

=
q=====~==~K=`=lk`b=~=~K=
q===~====~K==

=
j=====jfaaib=====~==
=ql=~===~=~K=

=
q====~=~=~===~~=
==K=

_~==j~~=c=l=
CHAPTER 2

t====~==~====
~==colj==~==~======
=====~K=q==~===~==
=====~======
K=

==

Moving the end of a Connector from one object to anther:

m===
m====~==~======
a~=~======~==

Other Selected Topics




Graphical Simulation:

d~~=p~=~====~==
c==~=m~=p~=I==s=J[=jr=
^~ K=
c==~=m~=p~=I==s=J[=f=
^~

K=

Window Management:

c==~I==pLe=a~
==q==
~=====E==~=~=
F=
p=t=J[=`~~
==d=~===~=
=~======~====
=~~K=

OJT=

OJU=

=m~=p~=_~I=jI=~=p~=p=d=

Simulating a Facility
f==~=I====~=~=~==
~W=
c=~=~=~===~J==K==
q===~======~JK==
^=~=~=~==~==~J===K=
q=~==~==~==~==~=
====~=~=~==~=K==
q=^=~=~==~J===~JK=
q==~=====m~=~I==
=~=~==pK=
q=~~=~====p=~=====
=K=
cI==~=~==~====
=~K=c=========
~=I====~=====~K=
t==~==~~=~======
=======~K==
q=~==~======~===m~=
p~I=~==~=====K=f=~==
~===~=~=~=K=

States of Material Flow Objects


a=~=~I=~~=====~=
~K==q==~==~=t=E=ibaFI=t~=
E~=ibaFI=_=E=ibaFI=~=c~=E=ibaFK==q=
=====~=m~=p~=K==e==~=
=====~==~~==W=

_~==j~~=c=l=
CHAPTER 2

OJV=

Exercise 1: Modeling the


Production Facility
lW=q==~==~===~==
~K=
lW=_=~=~=K==
q=m~==~===W=
^=p=
R=pm=
^=a~=
^=b=`=
mW==
1 l==~=~=K=
2 `~=~==c~K===
`===`~=i~K=
o====j==~==k=J[=c~K=

OJNM=

=m~=p~=_~I=jI=~=p~=p=d=

3 o~===~==m~|NK===
f==`~=i~I====~K=
m==xcOz=K=

=
f==o~=I=b=m~|NK=
`=xlhzK=
NOTE

Rename Frame Method 2: Another way to rename an open frame, make it the
active window, press the [F4] key, type in the new name, and click [OK].
Rename Frame Method 3: Right click the frame in the Class Library and select
Rename.

4 l===~=E====~~=FK=
a====m~|N=~===K===
q=KjKm~|N=~=

==K=

=
5 ^=~=====~====~===
K==
a~=~===p=
====j~~=
c=~===q====KjKm~|N=
~=

=K===

6 k~====b~K=
f==KjKm~|N=~=
=I===pK=
m==xcOz=K==q=o~==K=

_~==j~~=c=l=
CHAPTER 2

OJNN=

f==o~=I==b~===k~K=
`=xlhzK=
7 ^==p=m=EpmF===~K==
TIME SAVER

Two material flow objects will connect themselves if the small line protruding from their sides
touch.

`===E=~F==pm=
===
j~~=c=~===q====~K=
e===x`z=I==~~====K===
kW=^=====m~=p~===~==
W=
=
m=R===~====KjKm~|N=~=
=
K==
o~==x`z=K=
o====~=pmK=
m===pm==~===xcOz=K=
f==o~=I==~=k~==`qpK=
kW=p~=~==~===k~I===~=~==
=i~K==j===~K=
`=xlhzK=
k~===W=jK=
k~===W=m~K=
k~===W=^K=
k~===W=m~K=
NOTE

To insert an object more than once, hold down [CTRL] while inserting the objects.
Please note that objects cannot be inserted on top of each other.

OJNO=

=m~=p~=_~I=jI=~=p~=p=d=

=
TIME SAVER

If you drag and drop one object onto the connector of another, they will become
automatically connected. Or you can connect them manually, as we will do in this
exercise.

8 `~=~========K==
a~=~===p=
===j~~=c=~==
=q====~K==
NOTE

Parts (a.k.a. MUs) enter the line (or plant) from a source and exit line (or plant) at
the sink (a.k.a. drain) .

k~====pK=

=
TIME SAVER

A quick way to connect material flow objects to touch the tail of one object with the
tail of another. Then will automatically connect.

9 `~====~==~==W=
NOTE

If you want to connect again you can hold the [CTRL] key while connecting so you
can keep using the connector line.

`===`=
~===qK=

====j~~==

_~==j~~=c=l=

OJNP=

CHAPTER 2

=f==m~|N=c~=I=======
==~====EKK=b~FI==
kW=i===~=~K===a=====
=K==
e===x`z=K=
q=========~===
=EKK=`qpFK==
`=~=======
=W==m=====`qp=~~=~==
jI=====
o~==x`z==~====K=
10 ^~====~K=
p=~=====~==~=~==
=~======K=
o=====~==^~=f=
J[=^=e~K=
o=====~==^~=f=
J[=a=e~K=

=
11 ^=~=====~K=
a~=~===b=`=
===j~~=
c=~===q====~K=

OJNQ=

=m~=p~=_~I=jI=~=p~=p=d=

NOTE

Optionally, a method object named reset can b e added to the frame. This method
will change the behavior of the Reset
button on the Event Controller. This is
a method (we will learn more about methods later in this course). It is used to
delete MUs when the simulation is reset. The default is to leave the MUs in model.
This is not what we want in class. This can also be accomplished by checking the
Delete MUs on reset checkbox on the Settings tab of the Event Controller.

12 r==~=

====~=~==~K=

c==~=

=I==p~=

t===p~
o

K=

=~~====~===

K=

13 o==~K=
a===b=`=
====~K==
q=b=`==K=
f==b=`=I===p=~K=

=
s==a=jr=====K=
`==`=~K=

_~==j~~=c=l=
CHAPTER 2

=
cI==o
K==Ef==~===~=
====FK=
`=p~

===b=`=K=

t===p~
=o

=~~====~==

K=

14 o==~=~==K===
`=p~
===b=`=K=
q=I=~====c~==pK=

=
k==~K=
^===~==c~K=
t===p~
=o

=~~====~==

K=

15 p=~=====~K=

OJNR=

OJNS=

=m~=p~=_~I=jI=~=p~=p=d=

kW==~===~==~===~=
~~K=
f==b=`=I===p=~K=
c=bI==RWWW=
`==p=~==K==
kW=t===~I==~=~~==K==
b~=~~=~==K==q=~===~====
I==I==I=~=~=~K==f==
~=~I==~==R=~K==t~====
=~====~========
=====~======K=
o===`=~=~==o
p~

=~==

K=

kW=q=~=~===~I=~======
~K==q=o=====~==
E==~=~==FK=
i=~==o=~===K=
`=xlhz====b=`=K=
16 `==~=~====R=~K=
f==~I====p=~=K=
p==p~=~=~==~==~K=
=
`=xlhz====p==K=
kW=q=o=====~==
E==~=~==FK=
t=I==o

K=

_~==j~~=c=l=
CHAPTER 2

OJNT=

Exercise 2: Changing the


Processing Time of the Milling
Object
lW=q=~====~K=
1 `~=======K=
a===j===K==
s=~==~===q=~K==Ef=I===q=
~FK=
b=UW=EU=F===m==K=

=
NOTE

The default Processing time is 1 minute (1:00).

OJNU=

=m~=p~=_~I=jI=~=p~=p=d=

`=xlhzK=
2 `==~=~====R=~=~==
=~K=
kW=i~========b=j~~==
~~=~=~====~=~~==K=
c==b=`I==p~
K=
f==~I====p=~=K=
p==p~=~=~==~==~K=
=
`=xlhz====p==K=

c==b=`I==o
K=
f==b=`=I===p=~K=
r==p=~==K==
`==b=`===xlhzK=

3 p~==K=
p=c=J[=p~
=
=
=
=
=
=
=
=
=
=

K=

_~==j~~=c=l=
CHAPTER 2

Lesson 2: Help Access


Introduction


Quick Help

j==~====~K==n=====
~=~=====m~=p~=K=
n==~==~===~=~===~=
========~==
xcNzK=

Full Help

j=~==~====~===
~K==
j=NW=f==~=~==I==e=J[=e=l=
l====~=~====K=
j=OW=f==~=^=~=j==I=
===~=~==xcNzK==t==~==
~===~==~K=
j=PW=^====K=
c==~=m~=p~=I==e=J[=

` K=
p==p~=~K=
b=~=K=
m=xbzK=
a=======~=K=
p==`=~=~==~=K=

q======~=~=~=W===
t~=k======~====
=m~=p~=

OJNV=

OJOM=

=m~=p~=_~I=jI=~=p~=p=d=

pJJp=e=E=~===~==m~=
p~F=
q~=m~=p~=o==~=~=
=EJJF==m~=p~===
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=

_~==j~~=c=l=
CHAPTER 2

OJON=

Lesson 3: Basic Objects


Introduction
f======~===m~=
p~K==p======~===~=
~======~=~K=

Material Flow and MUs


q==~=====~~====K==
l==~======EKK=p=
mF===~=~K==q=~====
jr=E~=FW=~I=~=~I=~=~K=
q=~=~=~=======W=
q=j~~=c=~===q=K===

=
q=j=r=~===q=K===

=
q=j~~c=~=jr====`~=i~K=

OJOO=

=m~=p~=_~I=jI=~=p~=p=d=

NOTE

The Box, TableTop, TableLeg, and Truck are not part of the standard list of MUs
in the Class Library. However, they are included in the starting model file used in
this training class. This is the only difference between the training model and the
default model file.

Resource Objects
q==~=======~==
=K==q=~==~=======
W=
q=o=~===q=K=

=
q=o====`~=i~K=

_~==j~~=c=l=
CHAPTER 2

OJOP=

Information Flow Objects


q==~====~I=~=~=
~====K==q=~==~===
====W=
q=f~=c=~===q=K=

=
q=f~=c====`~=i~K=

OJOQ=

=m~=p~=_~I=jI=~=p~=p=d=

User Interface Objects


q==~===~==I==~=r=f~K==
q=~==~=======W=
q=r=f~=~===q=K=

q=r=f~====`~=i~K=

_~==j~~=c=l=

OJOR=

CHAPTER 2

Tools
q==~===~=~=Ep~I=
_=~F==~==E~=~==~=~FK==
q=~==~=======W=
q=q=~===q=K=

=
q=q====`~=i~K=

Viewing Information about Library objects:

o==~=I==~=_^~===q=
===`~=i~I=~==b=i~=f~K=

OJOS=

=m~=p~=_~I=jI=~=p~=p=d=

=
=
=
=
=
=
=
=
=
=
=

_~==j~~=c=l=
CHAPTER 2

Lesson 4: Introduction to
Material Flow and MUs
Introduction
f======~=~~===~=
==E~KK~K=jrFK===

The Source
c==q=I===j~~=c=~=~==
p=
==~====K==f===~=~K===
e=~====~==~=K=

OJOT=

OJOU=

=m~=p~=_~I=jI=~=p~=p=d=

=
`~~=Z=N=
^=~~===

Time of Creation

`~=jr=E=F=~====W=
k=^~W=`~=~==~=
f~=^~W=`~=~=~=~=~==

MU Selection

q=p===jr=~======
==J===jr=W=
`~W=t==jr===~~==~=E~FK=

_~==j~~=c=l=
CHAPTER 2

p=`~W=^=======~=
~I==~=~=~=~=~~=~K==m~=
p~===~=~K=
pW=m~=p~===~I==~==
I===K=
o~W=m~=p~=~==jrI=====
=~I=~===~====K=

Type of MU

=
l=====^=~I=====jrK=

=
NOTE

.MUs.Entity is the Absolute path, whereas ~.~..MUs.Entity is a relative path. The


default in previous versions was Absolute path. More on this later.

OJOV=

OJPM=

=m~=p~=_~I=jI=~=p~=p=d=

q===jrI=========jrW==
p==jr====p=l=K==
p==jr=========jr=K=
k=~==~=~==jr===~=~===jr=
===`~=i~K=
NOTE

If you would like to select MUs from another folder, specify it in the Path field in the
Select Object window.

The SingleProc
c==q=I===j~~=c=~=~==
pm=
==~====K==f===~=~=
K==e=~====~===pmK=

_~==j~~=c=l=
CHAPTER 2

OJPN=

=
`~~=Z=N=
^=~~===
q~==N=jr=~=~=====p~I=~==
m=~=pJr=q=~=~K==f====jr==
===I==pm=~=~==J==
=K=
NOTE

Whether a SingleProc needs to set-up is determined by the processing


requirements of the selected MU on a given machine in a plant.

OJPO=

=m~=p~=_~I=jI=~=p~=p=d=

The Drain
c==q=I===j~~=c=~=~==
a~=
==~====K==f===~=~==
K==e=~====~==~=~K=

`~~=Z=N=
^=~~===
^==~=pJrJ=~=~I====jrK===

Statistics

q=~==~~=~===jr=~K=

_~==j~~=c=l=
CHAPTER 2

OJPP=

q=~~=~~===jr=~===~=~=~=~=
~=~==~=======jrK==^=~=
~I==~=~====q=p~=~K=

=
`~=~==Ec====F=s=J[=p~=
oW=

OJPQ=

=m~=p~=_~I=jI=~=p~=p=d=

The Entity
^=b=
~=K=

===~=K==e=~====~==

_~==j~~=c=l=
CHAPTER 2

OJPR=

=
`~~W=M=
j~=j~~===
f====EjrF=~=~==~==~~=
===X====~=~~==~=~=
=K=

The Event Controller


c==q=I===j~~=c=~=~==
b`=
==~====K===f=~=~=
===~K==e=~====~===
b=`W=

OJPS=

=m~=p~=_~I=jI=~=p~=p=d=

=
`~~W=M=
f~===

Controls Tab

`==o
==~==~==~====
=~==K===f===I==
=~===MI===~I=~=~=~=~=
=~=~K==^==~=I====~===
b`K==
`=p~Lp

====~K==f=====

~=====o
=I=m~=p~=
=~=f====K===
`=p~Lp=

=~~====~K=q=

~=~=====p~Lp

K=====

_~==j~~=c=l=
CHAPTER 2

OJPT=

Settings Tab

=
NOTE

It is recommended to leave the Delete MUs on reset checkbox checked.

b==~====~=~=Ea~F=~==~=
=~====EbF===p=~K==b====
b`===~=~=~==p~=
~=~~K=
NOTE

The Statistics field in the Event Controller window represents the warm-up time. The default
value is zero. It is important to warm-up a simulation (i.e. run it until it reaches a steady
state) before collecting statistics.
NOTE

It is recommended to Reset

and initialize the model before running any simulation.

Material Flow Object States


q=~==j~~=c=l=~==~=
~=K=_=a~=~=~=iba==~~=~=====
=~===~===K=

=
k=a===J=====~~=~==
o=a==J====~=

OJPU=

=m~=p~=_~I=jI=~=p~=p=d=

_=a==J====~=
d=a==J=====
v=a==J=====
_=a==J======
i=_=a==J====o=

Frame Window Toolbar


=

Selected buttons of this toolbar:

kW=t======~===K=
l==

=E=~=~===F=

=I=p~Lp

=~==a==

w=

I=~==p~==~~

==

w=

==

p==
p=k~

p=`
p=
p=
e
=

=
=

_~==j~~=c=l=
CHAPTER 2

Lesson 5: Common Material


Flow Object Properties
Introduction
b~====~======~=~==
~=======m~=p~=~===
~=~==~=~=~==K==l===
~~====~======~===
~==~=~=K=^==~=~==
~=~=~=~=K==

Stationary Resources
j~===~~===~====~~K=q=
pm==~==~==~====~===
~=~=~=~==~~K=

Times Tab
^=====~=====K=^====
=====m~=p~K==

OJPV=

OJQM=

=m~=p~=_~I=jI=~=p~=p=d=

=
m=q===~===~=~=~=====
=EKK======~FK==f====
_=qI=a=qI==
pJr=q=J=r===~===~=K=
o=q=J=q=========
=~=~==~==~=~~=====~=~=
jr===~K=q=======
~~=~=I==~=~=I=~==~=
~===========
~K=t===M==~==~~=I=~=~=~=
~=M===~====~=~==~===
==jr=~===K==

_~==j~~=c=l=
CHAPTER 2

`=q=J=q==========
~=~==~==~=~~====~==
~I=~==jr===K=q====
===~===~==~=~=~=
=~=~~==~====~~~K=^==
~=~=~=~=~====~K=r===
~==~======~=====~=
~=====~=~=~==~=~K=

Set Up Tab
q======~==K=f=~==
~====~=~=======~=
~======K=l===~=~=
=~===~=~K==

Failures Tab
q=~====~==~~=~===~K==
t=~=~=~=~========~==
====~~=K=k=~=~=~=
===~====~K=

OJQN=

OJQO=

=m~=p~=_~I=jI=~=p~=p=d=

NOTE

By default there is no failure profile defined for an object. Each can have its own
distribution function and start/stop times. We will discuss failure profiles in more
detail later in this course and the PLT300 course. However, to create a new one
with a default 95% availability, click New and [OK].

=
^=========~===
====~====K==
p~=J=q====~=~=~===~K=f=
=~======~==~=~===
~=~K=
p=J=q====~=~====~=
~=K=
NOTE

On the Failures tab, Availability must be unchecked to display Interval and


Duration.

f~=J=j~=q=_=c~=Ejq_cF===~==
=~===~K===
a~=J=j~=q=q=o~=EjqqoF===~===
=~==K=

_~==j~~=c=l=
CHAPTER 2

MU Failure tab:

kW=^====j~~=c=~===q=~=~=
~====K==c=q~=jrI===
q~==~=~=~=~==K===

Controls
`=~==~====~==miqPMM=K=
q=~==~===~=EF=~==~=
=~==~==~===~=~=
K=

Exit Strategy
l=~=~~==I===~======
====~=~===K==t====
==~=~===K=

OJQP=

OJQQ=

=m~=p~=_~I=jI=~=p~=p=d=

Statistics
l=~=~~==I==~=~==
====o=p~==~==
^K=p==~=~=~=~===~=~=
=~=~=~=~~~===~=~====
=o=p~=q~K==
=
=

_~==j~~=c=l=
CHAPTER 2

Importer and Failure Importer Tab


q=~==EF==~=~===I=
I==~==K=s===~===
==~=~~=====
~=K=q=~I=~====~=
=I=~==~====~===miqPMM=
=EfI=_I=~=b======
~=~===FK=

User-Attributes Tab
j===m~=p~=~==~===~=
====EJF=~K=q=
~=~=====~I===
I===~===~=~=~~==
~=K=

OJQR=

OJQS=

=m~=p~=_~I=jI=~=p~=p=d=

Global Options Window


q=~==~==~==l=====~=
W=
j=NW=d~==
NOTES:

The default measurement units, the model limits, the simulation time options and
the defaults for the method editor are set here.

c==m~=p~==I==q=J[=
mK=
j=OW=c~===E=~=F=
c==~==

=I==s=J[=lK=

_~==j~~=c=l=
CHAPTER 2

=
q~I====~==~=~=m~=
p~K==p=~I====~I=~==
~I==~=~=~==K=

General Tab

q=d~=~=~=====~~=~===
~K==

OJQT=

OJQU=

=m~=p~=_~I=jI=~=p~=p=d=

Modeling Tab

q=j=~=~==~====~=~=
~=~K==f==l=I===j=~K=

_~==j~~=c=l=
CHAPTER 2

OJQV=

Simulation Tab

q=p~=~=~=====~=
=~==~====~==~=
K==

OJRM=

=m~=p~=_~I=jI=~=p~=p=d=

Units Tab

q=r=~=~====~=~==~=
K==

_~==j~~=c=l=
CHAPTER 2

OJRN=

User Interface Tab

q=r=f~=~=~======`=
I===I=~==~~K=
p=mij=p~==~==a==
`=========m~=
p~K=

Editor Tab

q=b=~=~==~=====K=
j=~=~=~~==~=~==~===
K=

OJRO=

=m~=p~=_~I=jI=~=p~=p=d=

License Tab

r==fq====~====K=

The Icons Menu


f==~= =I===~===~=fK==v=
~======EKK=f=m=~=^=
=dFI==~=EKK=j=s~=~=o~FI===
=EKK=b~=EOF=~=o=ELOFF=======
~==~===K==
q=f===~=====~===~=
~=

=K=

Using Object Labels


f=~===k~I==~=~==~=i~==~=K==
NOTE

The Name field must be filled in and must be unique. However, the Label field
doesnt need to be entered. The Name field is how the object is referenced by
various parts of the model during simulation. The Label is text which appears
under the object in a frame. If the Label is not entered, the Name will be used for
the Label.

q=====~=~L==~==W=

Displaying Labels:

kW==k~===k~==i~==~I===
K==q====k~W=f==l=I==p=
l=k~=

K=E==F=

c==~=I==s=J[=lK=
f==l=I==p=l=i~K==E==
F=

_~==j~~=c=l=
CHAPTER 2

Add Labels to Objects:

p=~===~=~=~===xcOz=K=
NOTE

In some cases (like this one), pressing the [F4] key is the same as pressing the [F2]
key.

b==i~=~==xlhzK=

How to Continue with the


Exercises
f=~=~==~========
I=KK===~====~=~==~=
K==
c==~I====~==c~===`~=
i~W=
f==`~=i~I=====~=~==
a~K==
m===~=~===xcOz===~=K=
El~F=j===~======
xpz==~=~=~==K=
v=~=~======~J=K=

Copying the Contents of a Frame


q==~=======~=====~=
~==~=~K=
f===~I======~=~=~=
=~===K=
`=====~==b=J[=`=E=
x`zJx`zFK=
l==~=~K=
=

OJRP=

OJRQ=

=m~=p~=_~I=jI=~=p~=p=d=

m~=====~==b=J[=m~=E=x`zJ
xszFK=

Exercise: Using Menu Commands


to Display Objects in a Frame
lW=q=====K=
1 `====c~|N==~==~===b=
cK=
f==`~=i~=I====x`z==~=
~=m~|N=~=====b=K=

=
k~===m~|NK=
2 m~=~==K=
l=m~|N=======`~=
i~K=
p==`qp==~==x`zJxqz==~=K=

=
a~==`qp==~==~K=
k=~===~~====~====
K==q====~=c=p==
K=

_~==j~~=c=l=
CHAPTER 2

=
3 q===K=
p=q=J[=j=pK=
NOTE

Making changes in Tools -> Model Settings only affects the current model.
Making changes in Tools -> Preferences affects every model opened from this
point onwards. The options shown on the Model Settings window are a subset of
the options on the Preferences window.

f==j=p=I===j=~K=
c==mI==^JK==
`=xlhzK=
a~==`qp==~=====E==~=
==~=~~FK=
`==~==~==~K=
k=~===~~=======
===~====K==q====~=
c=p==K=

=
4 m~=~I=I=~=~===K=
`===w==
=~=w=
===~=K=
5 e=~=~==~=~=~K=

====

OJRR=

OJRS=

=m~=p~=_~I=jI=~=p~=p=d=

c==c~= ==I==s=J[=l=
==~K=
p=~====~~~=K=
l==K=
6 p~=====c=J[=p~
=
=
=
=
=
=
=
=
=
=
=
=

K=

_~==j~~=c=l=
CHAPTER 2

OJRT=

Lesson 6: Default Branching


Behavior
The Layout
q===~==~===~===~==
====K==o===~=~===~=~=
==K=

Adding a Second Milling Machine


f==~=I===~===?J?===
K=c==~I=~==~=~~===
===~K=q===~=~=~==
===P=K=

OJRU=

=m~=p~=_~I=jI=~=p~=p=d=

Allocation of Material Flow


^==~=======~=
====I=====~=
==~K=

Exercise: Converging and


Diverging
lW=q=~=~=~=~=~K=
lW=
q=j=~======K=b=
=~==~~====~==~~==
==K==EkW=t======
~~=~====~===miqPMM=KF==
^=~=====~===K==
^===`qp=I==b====
=O==~K=b~==~===K=

=
mW=
1 `==m~|N=~K==e=~==W=
i~=m~|N===j====`~=i~K===
o===~==a~====K===
o~===~I=m~|O=E==xcOz=FK=
2 `=~===c~=

=K=

_~==j~~=c=l=
CHAPTER 2

OJRV=

3 ^======~W=
l==m~|O=~=======`~=
i~I=====~~=K=
f==c~= =I=~==j===
jN=E==~===~F===xcOz=K=
a~======~=~===~=====
=~K=
f==c~= =I=~=jN===x`z==
=E===a~F==~=~===I=
=~===~K==
o~=jNN==jO===xcOz=K=
p==`=
====j~~=c=~=
==q=K=
e===x`z=K=
m=====`qpI==jOI==
jO=~~I=~==m~K=
o~==x`z==~=====K=
4 ^=~====P===jOK==e=====
~W=
l=jO====K=
=f==m=q====q=~I==PW=EP=
FK=

=
`=xlhzK=
5 o==~K=
f==c~=
K=

=I====b=`=

OJSM=

=m~=p~=_~I=jI=~=p~=p=d=

o=====~=====~==
==K=

=
`=o=

K=

`=p~Lp=
====~=~==
==~K==
kW=f==~=~=~========~=
=R=~=~=E~==FK=
a===pK=
p==p~=~K=
j~=~======bK=
`=xlhzK=
a======jNK=
kW=_=~====jNK==v===
======I===b=jr====
==K==Ef========jN=I==
=~~===b======FK=
p==p~=~K=
j~=~======bK=
`=xlhzK=
a======jOK=
p==p~=~K=
j~=~======bK=
`=xlhzK=
`=o=
====jr===~=
~===~=~=~==~K=
6 p~==K=
p=c=J[=p~
=

K=

_~==j~~=c=l=
CHAPTER 2

Lesson 7: Default strategy for


moving a MU from station to
station
Introduction
_=~I=m~=p~==~=~=~=~==
~=====K==q=~=~==~==
===~======~=~===
K=
=
=

ENF=

=
EOF=

a==

=
=

=
pEF=

q=~===~=~===~=~K=
q=jr=~==~==J_K==m~=p~=
~==jr=~====K==t=
==I=~===~===
I==jr=====K===
e====~==~==I=~==
=I=~===~===X==
jr=~=====~====jrK=
=

OJSN=

OJSO=

=m~=p~=_~I=jI=~=p~=p=d=

The Standard Converging


Behavior
=

ENF=

=
=
=
=

EOF=
=
=

`==

EF=

==
t=====~~I=m~=p~=~=
=jr=~=====~I=====EcfclFK=
t====I==jr=====
c~=_=i==~=K=

Setting Up Exit Strategies


b=~=~=====~=pm====
~=~=~==~==EKK=c`FK==q=
c`===~====~====
E~=~===~===pm===~=~=
b=`=~FK=
q==~==~=~~=======b=
p~=~K==q==~=====~=
=jr====EFK=
t==~==_=I==~~===
==jr==~=====~===K==
p=~I==~=m~I==~~==
~====K=

_~==j~~=c=l=
CHAPTER 2

Modifying Exit Strategy Behavior




Available Exit Strategies for SingleProc objects:

p==~==~~========
jr===W==
q=~==t=~==jr===~=I==
`~=~=~~K==
q===jr=~======I==
`K==
q=~===jr===D==~=
====I======I=
=`=K==
q===jr====~=~==~==
==~=jrI==i~==~K==

OJSP=

OJSQ=

=m~=p~=_~I=jI=~=p~=p=d=

q===jr===~~==D===~=
~=~I=~=====I==
====I==i~=K==
q===jr====~=~==~=
==jrI==j~K=K==
q===jr====~====jrI=
=j~K=K=K==
q===jr========
I==j~K=K=K==
q===jr=======~=
~I==j~K=K=K=
q===jr=======J=I=
=j~K=J=K==
q===jr====~=~==~=
==jrI==jK=K==
q===jr====~===~=
==jrI==jK=K=K==
q===jr========
I==jK=K=K==
q===jr=======~=
~I==jK=K=K=
q===jr=======J=I=
=jK=J=K==
q===jr====~=~==~==
~=~====~=jrI==j==~K==
q===jr==~==~===~==~=
~===jrI==jr=^K=
q===jr====~==~=~=
I==m~K==
q===jr=====~=~=~I==
o~K==

_~==j~~=c=l=
CHAPTER 2

OJSR=

q=~~===jr===D====
=NI==p~=~==NK==

The FlowControl
q=c`=
==E==~==I===
~==~==~====~~==F=
==~==~====~=K==f====
=====~==
~L~K==f====~~====J=
b=p~=~=~=~~=b=p~K=
kW=l=~~===~=~===~==
=~==~=~===`=~K==q===
=~===K==

OJSS=

=m~=p~=_~I=jI=~=p~=p=d=

q=c`=~====~==~=~=
K=
q=b=p~=E_~F=~====~====
~K==b~=======~====
K=
q=b=p~=E_~F=~====~====
~K==b~=======~=~===
=K=
kW=q===========
===K=

Exercise 1: SingleProc Exit


Strategies
lW=q==~=~=~=pm===~=i~=
=~=b=p~K=
lW=
`==~=~====~K=
mW=
1 `~=~=~==m~|O=~=~==m~|PK=
i~=m~|O===j====`~=i~K===
o===~==a~====K===
o~===~I=m~|P=E==xcOz=FK=
2 `==m~|O=~I=~==m~|PK=
3 p==b=p~===`qp=pmK=
a====`qpK=
p==b=p~=~K=
f==b=p~=~===pm
=_==K=

=I=~=

kW=l===~======~K=

_~==j~~=c=l=
CHAPTER 2

f==b=p~=~===pm =I==
=======p~=~==i~=
=~K==
kW=q===jr====~=~==~==
==~=jrI==i~==~K==
=`=xlhzK=
4 o==~K=
c==~===~I==o=

K=

c==~===~I==p~Lp=
=~=~====~K==

===

kW=f==~=~=~========~=
=R=~=~=~=E~==FK=
a===pK=
p==p~=~K=
j~=~======bK=
`=xlhzK=
a======jNK=
p==p~=~K=
j~=~======bK=
`=xlhzK=
a======jOK=
p==p~=~K=
j~=~======bK=
`=xlhzK=
`=o=
====jr===~=
~===~=~=~==~K=

OJST=

OJSU=

=m~=p~=_~I=jI=~=p~=p=d=

Exercise 2: SingleProc Percentage


Exit Strategies
lW=q==~=~=~=~==~K=
lW=
`==~=~====~K=
mW=
1 a~=m~|O=~=~=m~|P~K=
2 p==b=p~===`qp=pmK=
a====`qpK=
p==b=p~=~K=
j~==~==_===K=
f==b=p~=~===pm=I===
======p~=~==m~K=

=
`=^K==q=l=i==~~===b=
p~=~K=
`=l=iK=
j~=jN=E==F==OTBK=
j~=jO=E==F==TPB===
jr=~=~=~K=
kW=^~==~==~===~====
~==f=oK=

_~==j~~=c=l=

OJSV=

CHAPTER 2

=
`=xlhzK=
`=xlhzK=
3 =o==~K=
c==~===c~=

=I==o=

K=

`=p~Lp=
====~=~==
==~K==
kW=f==~=~=~========~=
=R=~=~=~=E~==FK=
a===pK=
p==p~=~K=
j~=~======bK=
`=xlhzK=
a======jNK=
p==p~=~K=
j~=~======bK=
`=xlhzK=
a======jOK=
p==p~=~K=
j~=~======bK=
`=xlhzK=

OJTM=

=m~=p~=_~I=jI=~=p~=p=d=

t~==~==~====~==
=j\=
`=o
====jr===~=~=
==~=~=~==~K=
4 p~==K=
p=c=J[=p~
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=

K=

_~==j~~=c=l=
CHAPTER 2

Lesson 8: Introduction to the


Bottleneck Analyzer and
Sankey Objects
Introduction
f=========~=~~===
=m~=p~K==p~==~====~===
=~===miqPMM=K=

BottleNeck Analyzer
f==~=~~======E~=~F=
=~=K==

Basic Usage:

1 ^=_=^~=
q=~===qK=

====~===

OJTN=

OJTO=

=m~=p~=_~I=jI=~=p~=p=d=

2 m~==~K=
3 o====_=^~=~==^~K==
p~=~=~===~=~===~=
====~===~=~K=
NOTE

Analyze Colors:

Gray bar - waiting

Green bar - working

Yellow bar - blocked

Red bar failed

Blue bar - paused

4 c==~===EF=~===~=~==
=NMMB=EF=~====~=~=~==
~=E~FK=

Sankey Diagram
f==~===~==~~=K==q==~=
==~=~====~=~=
K==^========K==
NOTE

According to www.Wikipedia.org:
Sankey diagrams are a specific type of flow diagram, in which the width of the
arrows is shown proportionally to the flow quantity. They are typically used to
visualize energy or material transfers between processes. Sankey diagrams are
named after Irish Captain Matthew Henry Phineas Riall Sankey, who is considered
to have been the first to use this type of diagram in 1898 in a publication on the
energy efficiency of a steam engine

_~==j~~=c=l=
CHAPTER 2

Basic Usage

1 ^=p~=a~~=
~===qK=

====~===q=

2 p==p~K=Ea~=~====jr===
p~=a~~K==q========d~FK=

=
3 m~==~K=
4 o====p~=a~~=~==p~K===

OJTP=

OJTQ=

=m~=p~=_~I=jI=~=p~=p=d=

Exercise 1: Sankey Diagram


lW=q===~=~~=K=
1 p=~===m~|P=~K=
a===m~|P=~===`~=i~K=
2 `~==b~==~=q~q=~==bK=
c==`~=i~I====jr=K=
a~=~===q~q===b~K=
f==~= =I====b~===
~==~=K=
kW=q=jr=~==~=~=~==KjrKq~qK=
`=xlhzK=
3 ^=~=p~a~~=K=

_~==j~~=c=l=
CHAPTER 2

c==q=~===qI=~=~==~=
p~a~~=

===~K=

4 p==p~a~~K=
c==`~=i~I====jr=K=
a~=~===q~q===p~a~~K=
a===p~a~~K=
c=j~===I==NOK=

=
`=xlhzK=
5 p~

==~I======~=K=

6 s==p~=a~~K=
o====p~=a~~=~==a~=
p~=a~~K=
k=~~=======~=K=

OJTR=

OJTS=

=m~=p~=_~I=jI=~=p~=p=d=

NOTE

Later in this course we will create a multi-hierarchical model. The Sankey will be
viewable on all levels of the models (i.e. within the sub-frames). However there
must be at least two supported object types at that level (i.e. SingleProc, Buffer,
etc). A Sankey can be created for each MU type in the model.

7 o=
8 p~=

==~K=
==K=

Exercise 2: Bottleneck Analyzer


lW=q===~=~~=K=
1 `====~===K=
2 ^=~=_=^~=K=
c==q=~===qI=~=~==~=
_=^~=

===~K=

3 p~==~=E====FK=
4 ^~==~==K=
o====_=^~===c~=
=~==^~K===
NOTE

Small charts are shown over each station showing the amount of time of the station
spends in each state. Here is a key to the analyze chart colors:

Gray bar - waiting

Green bar - working

Yellow bar - blocked

Red bar failed

Blue bar - paused

c==~===EF=====~=
==NMMB=EF=~====~==~==
~=E~FK=

_~==j~~=c=l=
CHAPTER 2

=
kW=f=~=~=~==pm=====
==~===_^~=~K==Ev==
=~==I=====~=~==~K=
NOTE

Here are a couple ways to improve this bottleneck. For example:

Find a way to decrease the processing time of this problematic

Add another object to do parallel processing

5 o=
6 p~=
=
=
=
=
=
=

==~K=
==K=

OJTT=

OJTU=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 9: Statistics and Charts


Introduction
kW=j==~I=~I=I=~I=~=
~~====~====~===
miqPMM=K=

Statistic Tables

^=~==~===~=~K=a~~===
~====o=~==m=~=
==p~=~===K=
m~=p~====~=~=~===
p~=~==m=~K=
^=~~===~=~======
~=~===o=p~=q~I==m=
p~=q~====`=p~=q~K=

Statistic Values

t===o
===b`I=m~=p~=
==~=~==MK==
t===a~=p~=q~I=m~=p~==~=
~=~=~=~=~====~=~=K=
q==~=~=~===l=e=E~==
a~=p~=q~FK==
v=~==~=~===a~=p~=q~==
=~=~===~==~=~=K=

_~==j~~=c=l=
CHAPTER 2

Collecting Statistics


Different types of statistics:

a===I==~~===~==jr=
====~~=~W=
o=p~=
m=p~=
a=p~===
q=p~=
p~=o==
NOTE

The statistics tab displays a snapshot in time. Each time that you view this tab,
while a simulation is running, the statistics will change.

t=====~=~=~==~=UK=

Resource Statistics
q=~==~==~=~~===~==
======EI=~I==~FK==
q=~==~=~===p~=~K=

Resource Types:

m==~==pmI=m~~mI=^I=
~=a~p~==
q~==~==m~_I=_I=pI=q~I=iI=
q~=~=`~==
p~==~==p==

Production Statistics Comparison Example:

o~====b==jN=~=jO===
m~P=~W=
o~====b==jN=~=jO===
m~P~=~W=

OJTV=

OJUM=

=m~=p~=_~I=jI=~=p~=p=d=

Product Statistics
q=~==~==~==K==q=~==~=
~===m=p~=~==jrK=

=
p=~====~=~==~==~==
~=~~=K==q=m=p~====
=K==_=~I====K==q=~~=~~===
=~==o ===b`K=

_~==j~~=c=l=
CHAPTER 2

Driving Statistics
f=~===~==~I==q~=
==~=~~=~==~=l=I=
l=I=e=I=o~I=c~I=m~I=r~I=
=~==~=====K==q=
~====_~=~=~=~===p~=~K==
q===~===~==~K=

Type Statistics
l=a~=I==~====q=p~=~I=
~===a~=p~=q~K==^=~~====
~=~====~=jr=E==~=jrFK=

Statistics Report
f==~=~==xcSz====l=s=K==f=~=
~=~==~==oI=mI=~=a=p~=
=======~=~K=
v=~=~=~~=~===~===
~=~==O~KKKOK==t=====~===
K=
q==~=~=~===l=e===
=p~=oK=

Statistics Tables
^=~==~===~=~K=a~~===
~==o=~=~=m=~==
==p~=~K=
m~=p~====~=~=~===
p~=~==m=~=~K=

OJUN=

OJUO=

=m~=p~=_~I=jI=~=p~=p=d=

Statistics Values
q==~=~==~==I==xcRz===
s=J[=o====K=
t===o
===b`I=m~=p~=
==~=~==MK==

The Chart Object


c==q=I===r=f~=~=~==
`~=
==~====K==f=~=~=~~=~=
~====~~=~======
~=K==k===~=I=~I=I=
~I=~=~==~=~===~K=

_~==j~~=c=l=
CHAPTER 2

q=`~=~=~=~~=~=~====
~~=~======~=K==k==
=~=I=~I=I=~I=~=~==~=~=
==~K=
f==`~===c~K=q=~==~~===
=~==~==~I======`~=~=
==K==

Display Panel
^=~=~==~=~=~===~=~=
~==~=K==f=~==~=~=
~======~JJ====
==~===K=
f==~==~=~~===~==~=~~~=
======~=K==eI===~=
=~K=

=
o==~=~~===~==b=a~=m~==
====~~=K=

OJUP=

OJUQ=

=m~=p~=_~I=jI=~=p~=p=d=

Exercise 1: Resource and


Production Statistics
lW=q==~==~K=
lW=i=~==o=p~K=
l=m~|PK==
`==o=p~=====jN=~=
jOK=
i==~==~===~=~=K=
l==o=p~=~=~==~==~K=
`=o=p~K=q~=~====~=
~K=
mW=
1 `=~=c~=

=K=

2 l==m~|P=c~=

=K=

3 l==m~|P=c~= =I===jN=~=
jOK==
a===jNK=
a===jOK=
4 q===~=K=
k=~I===I==o=p~=
==K==

=
5 p~

==~=~====~=K=

_~==j~~=c=l=
CHAPTER 2

6 s==~=~~=~~K=
f===I==s=J[=oI==~=
==~K=
i=~====b=~=bK=
kW=f==~===~=~=I==~=~==
~==~=I==^K==q==~==
~==b=~=bK=

=
7 f=~===`~= ====m~|P=c~K=
p==r=f~=~===qK=
a~=~=`~=

===c~=

=K==

f==c~=
=I=~=~==jN=~=
jO===`~K=

OJUR=

OJUS=

=m~=p~=_~I=jI=~=p~=p=d=

=
kW=f=~=~=~====pm===
==K==t=====~=~===
K=

=
t~==~=~K=

_~==j~~=c=l=
CHAPTER 2

8 s==~=~~=~~==~==~~=
K=
c===I==s=J[=p~=oK=
o~=======~=K==
9 t~===~=t=B=~=t~=B=~\=
10 o

==~K=

11 p~==K=
p=c=J[=p~

K=

Exercise 2: Setting up a Display


Panel for an Object
lW=q==~=~=~=====~K=
1 `===~=K=
2 p=~=~=~==jNK=
o===jN=~==b=a~=m~K=
f==a~=m~=I===^=K=
c=m=uI==JOQK=
c=m=vI==JPRK=
c=tI==NMMK=
`==_=`=~=~==~====
==K=

OJUT=

OJUU=

=m~=p~=_~I=jI=~=p~=p=d=

=
3 p=~=~===~===~K=
f==a~=m~===bI==kK=
f==a~=m~=b===qI==p~=
qK=
c=p~=qI==tW==
c=m=uI==OK=
c=mvI==PK=
`==q~~=K=
NOTE

Transparent is used to make the element on the display panel transparent so that
the Background color of the display panel shines through.

=
`=xlhzK=
4 p==~===~K=

_~==j~~=c=l=
CHAPTER 2

f==a~=m~===bI==kK=
f==a~=m~=b=I==p=l=

==s~K=
f==p=l=I==~tmK=
`=xlhzK=
c=m=uI==RRK=
c=m=vI==PK=
`==q~~=K=
`==a~=~=~=m~=K=

=
`=xlhzK=

OJUV=

OJVM=

=m~=p~=_~I=jI=~=p~=p=d=

Ea===a~=m~==jN=FK=
5 p=~=~=~==jO===~=K=
kW=^=~==~===I==~==~~==
jN=I===a~=m~K==q===jN=
=~=jOK==^=======p~Li~==
~K=
=f==a~=m~===jNI==p~K=
f==p~=~=I==aNK=~==p~K=
`=xlhz====a~=m~===jNK=
o===jO=~==b=a~=m~K=
f==a~=m~===jOI==i~K=
f==l=I==aNK=~==lK=
k=~======~=~===
K=
c=m=uI==JOQK=
c=tI==NMMK=
`=xlhz====a~=m~===jOK=

=
6 p~==K=
p=c=J[=p~
=
=

K=

_~==j~~=c=l=
CHAPTER 2

=
=
=
=
=
=
=
=

Lesson 10: More Chart


Techniques (Optional Lesson)
Introduction
q=`~==~======~W=
`~

e~
m

=
=

l=~=W=
a~
=J===~=~~===~=
~I==~=====~==~~==
==
d~t~

=J=a~=~=d~=~=

OJVN=

OJVO=

=m~=p~=_~I=jI=~=p~=p=d=

Chart object settings:

=
q=~===~==~=I======k=
uJ~K=q=k==~=====~===
==~=K=

=
f==a~~=p====a~~=~I==~==~==
=~===~==~=~K=f==~===~=
~==~==~K=

_~==j~~=c=l=

OJVP=

CHAPTER 2

Histogram
^=`~=
=~==~==~=e~=
==~=K=

I====

=
q=e~==~====~=`~=K==c=
~I==~==~======K=q=
~=~=====~=====`~==
~==~=~==~======`~K=q==
~=~~~=~=~=~=~==K==

OJVQ=

=m~=p~=_~I=jI=~=p~=p=d=

kW=q=~=~=====~=_==~=
`~~==NM===m~=~=^=E=
^=~=~=m===QWMNFK==q===~===
=K=

Plotter
^=`~=

=~==~==~=m

I=~=K=

q=m==~====~=`~==~=~==
=~===~K==f====~==
~==~=~=~=K=q==~=~~~K=

Example Plotter:

_~==j~~=c=l=

OJVR=

CHAPTER 2

Display
c==q=I===r=f~=~=~==
a~=

==~====K===

`~~W=M=
^=~===

=
t==a~==~=~==~=~=~====
~~==~==~===~==~=~=
~=~=~==~==K=q=~=~=====
~~=~=~=~======jj~K=q==
~===~=====s~=K=

OJVS=

=m~=p~=_~I=jI=~=p~=p=d=

Gantt Wizard
q======miqPMM=Em~=p~=^~F=
K==
q=d~t~=
j~~=`~=i~

=~==~======
K=

f==~~==~=d~=~==~=~K=f~==
==~I==~=~===~~==~=~K=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=

_~==j~~=c=l=
CHAPTER 2

=
=
=

Chapter Summary
f==~=====W=
q====~=~=~=K=
q=====~=~=~==~=
=~K=
q==~~===~=jrK=
q==~=~=~===~~==
K==
q=~=~K=
p~==m~=p~I=_=^~I=p~=
~~I=~=`~==K=
=
=
=
=
=
=
=
=
=
=

OJVT=

OJVU=

=m~=p~=_~I=jI=~=p~=p=d=

=
=
=
=
=
=
=

e~I=fI=~=f~=
CHAPTER 3

Chapter 3

Hierarchy, Icons,
and Inheritance

About This Chapter


q=~==~===~I=I=~=
~=~=~===W=
i=NW=e~=~=f~I=~=PJPI===
J====~====~=~=
~====K=
i=OW=q=jI=~=PJNOI=====
=====~=~=K=
i=PW=^=`==~=jI=~=PJNTI=
======~=~===
K=
i=QW=l=p=qI=~=PJONI===
=====K=
i=RW=f=b=~=`=o~I=~=PJ
ORI====~===~===~=m~=
p~==~===~====
=~=~K=
i=SW=^~=fI=~=PJPVI====
~~======K=
i=TW=l=f=b=qI=~=PJQTI===
======~==~K=

PJN=

PJO=

=m~=p~=_~I=jI=~=p~=p=d=

i=UW=s=d~=~=`I=~=PJROI=
=====~=~===~==
=~==~=~K=
i=VW=`~I=f~=~=f~=fI=
~=PJSMI===~=~=E=m~=F=~==
~~=~==~==~=~===~=
====~=~K=
i=NMW=j==`~I=f~=~=f~I=~=PJ
TPI===~===K=
=

e~I=fI=~=f~=
CHAPTER 3

PJP=

Lesson 1: Hierarchy and


Interfaces
Introduction
e~======E~F=~===
=E~FK=b~===~=~==~====
==~==~==~=K=q=~=~=~=
~=~==~=======K=
q=~==~==~===~====
=~===~=====K=
v=~=======~===~J=
~K=v=~======EJ
=F====J==~====
=K==
e~~==~=~==~=~====
~=K=

PJQ=

=m~=p~=_~I=jI=~=p~=p=d=

Building a Component
t======`~=i~=~=~==c~=~=
========K==t====
===~==~========
J=I=KK==~=~=====~===
K==t=~=~===~=~=I===~=
=~==~=K=

To Reuse a Component in Other Model Files:

f==`~=i~I=====~==p~=
l=^K==^=Kl_g===~=~=~====
=K==E^=~==~=====~=
F=

e~I=fI=~=f~=
CHAPTER 3

Interfaces
c==q=I===j~~=c=~=~==
f~=
==~====K==^=~==~=~===
~=~======~==~K=
`~~W=M=
j~~===

=
q=f~====~==~=jr===
~==~====K==q=~===
==~=~====~=~~=I=
~=======K=q====
=~=========~=K==f==
=====c~====~~==~==
=c~K=
j~=b~=`==q====
~=~==~===~K=

PJR=

PJS=

=m~=p~=_~I=jI=~=p~=p=d=

m==B=J=q=~=====~~=
===~====K=
p==t=====~~====~K=

The Hierarchical Structure of the


Model
r=I=KK=J=I====~=
c~==~=~===~====K=`~==
==~=======~===~==
=~~==K=v=~==J====
=~=K==
j===c~=~===~=
=~=~=K=

Selecting and Copying Objects


l=~=====~=K=^==
=~=========K=j=
=~========~==
===K=j==~=~==
==~=~==~==K=

e~I=fI=~=f~=
CHAPTER 3

p==~=========
=I=======~=====
=~=x`zJx`zK=
`==~==~===~==~==~I===
~==~=K=

EXERCISE: Model Hierarchy and


Using Interfaces
lW=q==~==~=~===~=
===m~=p~=K=

Overview:

`~=~==c~===c~`==~=~=
==`jK=
a~==jNI=~=jO=====~K=
j~========~=~=
~K==
^==f~=K=h=~=======
=K=

PJT=

PJU=

=m~=p~=_~I=jI=~=p~=p=d=

Procedure

1 `~=~==c~===c~`=K=
f==`~=i~I====c~`=
=~==k=J[=c~K==
f==`~=i~I=~===`j=~=
E==xcOz=FK=
=
2 `==j==m~|PK=
f==`~=i~=j=I==m~|P===
=K==
t=====I=~=~===
~====~K=
NOTE

Or hold down the [Shift] key and select the objects by pointing at them individually
and pressing the left mouse button. Remember that the connectors are also
objects so they must be selected as well.

t==x`z=I=~=====~K=

e~I=fI=~=f~=
CHAPTER 3

t==x`z===E=FI=~==`~==
m~|P===`j=~K=

3 f==f~=K=
f==f~=W=======j=~=
======jK=
NOTE

While connecting with the Connector, make sure to aim the tip of the connecting
tool arrow directly in the middle of the target object.

4 =o~==f~===fNI=fOI=~=lK=
k~==f~=====fNK=
k~==f~=====fOK=
k~==f~====lK==

PJV=

PJNM=

=m~=p~=_~I=jI=~=p~=p=d=

5 `==fN=f~==jNK=
6 `==fO=f~==jOK=
7 `======l=f~K=
8 `~=======fNK=
a===fN=K=
b=PM===m==BK=
`=xlhzK=
9 `~=======fOK=
a===fO=K=
b=TM===m==BK=
`=xlhzK=
10 `~======~====~~=K=
a===l==~===~~==
E=~=FK==
s=~=o=====pK==
kW=q=~==i=====~=~==
====~F===
NOTE

When connecting the frame to outside objects, the connections will appear to enter
on the left and exit on right side.

e~I=fI=~=f~=
CHAPTER 3

=
`xlhzK==
NOTE

The CompMilling object is just like the standard objects in that it can be inserted
into other models

11 `==`j=~=K=
12 p~==K=
13 p=c=J[=p~=j
=
=
=
=
=
=
=

K=

PJNN=

PJNO=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 2: Test models


Introduction
f==~~===~==~==~=~~=
===K==^===~==I==
~=~=====K=
_===~~=I====~==I=~====
~~I=====K=

Testing a Module of the


Simulation Model
q==~====EJ=F==
========~K=

e~I=fI=~=f~=
CHAPTER 3

=
=

EXERCISE: Model Hierarchy Test


Environment
lW=q==~==K==

Overview:

_====`j===~=I===
~~====~==~==K==

PJNP=

PJNQ=

=m~=p~=_~I=jI=~=p~=p=d=

Procedure

1 `~=~==c~===qj==~=~==
qjK==
f==`~=i~I====qj==~=
=k=J[=c~K==
f==`~=i~I=~===qj=~=
E==xcOz=FK=
=

2 p==~K=
c==`~=i~I===qj=~K=
f=~=pI=a~I=~=~=b`K==
3 p===~===p==i~=o=a~K=
a===p===qj=~K=
p==b=p~=~K=
p=i~=o=a~K=
`=xlhzK=
4 s==b=`=====jr==K=
l==b`=p=~I==a=jr==
==K=
=

e~I=fI=~=f~=
CHAPTER 3

5 f==`j=K=
a~=~===`j===
c~`===qj===
p=~==a~=
`~=~====p=~==
`j=K=

=
f==p=f~=I===fNK=
`~=~====p=~==
`j=I=~~K=
f==p=f~=I===fOK=
`~=~====`j====
a~=K=

6 m=q~q===pK==
c==`~=i~=jr=I=~=~===
q~q===p==qjK=
7 p~=

==~K=

8 v=~===q~q===`j===K=
a===`jK=

PJNR=

PJNS=

=m~=p~=_~I=jI=~=p~=p=d=

CAUTION:

Ensure that any changes made in the CompMilling frame are done to the
CompMilling Class object in the FacilityComponents of the Class Library.

9 o

==~K=

10 p~==K=
=
=
=
=
=
=
=
=
=
=
=
=
=

e~I=fI=~=f~=
CHAPTER 3

Lesson 3: Adding Components


to a Model
Introduction
^==~===~===I==
=~==~===K=q==~==
~===~==~====~=K=
q==========
===~=K=

Toolbox Viewer
q~=~==~===q=s=E=~F==
~=~=~===`~=i~K=q==~==~=
=====~=~=====~=
K=

PJNT=

PJNU=

=m~=p~=_~I=jI=~=p~=p=d=

EXERCISE: Adding Components to


Models
lW=q=~===K=

Overview:

`~=~=======~=~===
`j=K==

Procedure

1 `~=~=~===m~|P=~=~=~===
~=m~|QK==
2 `=~==~K=
3 l=m~|QK=
4 m~===`j======
~K=
e===x`z=K=

e~I=fI=~=f~=
CHAPTER 3

p===~==m~|QK=
o==~===~==aK=
e===xpz==~==vK=

5 f=`jK=
a~=~===`j===`~=i~=
c~`===m~|Q==`qp=
~=m~K=
`~=~====`qp=~==
`j=K=

=
f==p=f~=I===fNK=
`~=~====`qp=~==
`j=I=~~K=
f==p=f~=I===fOK=
`~=~====`j====
m~=K=

6 c==~=E=~=~=~===FK=
kW=t====I=====
`j=====~=E~==~=
====~=~FK==eI======
=~===~===~=====
~K=
a==`~===m~|Q=~K=
^=~==`~===m~|Q=~K=
a====`j===m~|Q=~K=
a~=~=jN=~=jO===`~K=

7 p~

==~K=

NOTE

In order to see the TableTop run through the milling process, open the
CompMilling frame in the frame.

PJNV=

PJOM=

=m~=p~=_~I=jI=~=p~=p=d=

IMPORTANT NOTE

If you skipped step 6 above, the method debugger will open when you try to start
the simulation (because the chart refers to Milling objects that no longer
exist at the specified level in your simulation). To stop the method debugger so that
you can do step 7, click Terminate Simulation

8 o

==~K=

9 p~===K=
=
=
=
=
=
=
=
=
=
=
=
=
=

in the Debugger

window.

e~I=fI=~=f~=
CHAPTER 3

Lesson 4: Other Selected


Topics
Re-using User-defined Objects


Save an Object Out of the Model

a~======`~=i~==~==~=
~===~=~===GK=
o===~====`~=i~=~==p~=l=
^K=

Load an Object into a Model

i~=====`~=i~==~==
o===~====`~=i~=~==i~=
lK=
f==~========~=~~====
`~=i~I====~==~=======
`~=i~====~==~=====`~=i~=
=~==~K=

PJON=

PJOO=

=m~=p~=_~I=jI=~=p~=p=d=

Exercise: Reusing a Custom Object


lW=q==~==K=

1 `====~===K=
2 b====
f==`~=i~I=====`j==
~==p~=l=^K=
f==p~=^=I==`j===c=
~K==
p====~=====~=~~K=
`=p~K=
3 p~=~=====K=
p=c=J[=p~

K=

p=c=J[=`
p=kK=

K=

4 l=~===K=
p=c=J[=k
`=xlhzK=

K=

e~I=fI=~=f~=
CHAPTER 3

5 f======K=
f==`~=i~I=====j=E===
=`~=i~F=~==p~=L=i~=l=J[=i~=
lK=
f==l=I==`jKl_gK=
`=lK=

=
`=o~=^K=

6 r==K=
a~====c~K=
kW=v====~=====K==
eI===~=~====~=~=
===miqPMM=K=

PJOP=

PJOQ=

=m~=p~=_~I=jI=~=p~=p=d=

7 `=====E==~====~==
=FK=
p=c=J[=`
p=kK=

K=

8 l====K=
c==p~=m~I===miqNMN|p~j|sNMNJ
vk~KK=
=
=
=
=
=
=
=
=
=
=

e~I=fI=~=f~=
CHAPTER 3

Lesson 5: Icon Editor and


Component
Representation
Icons
m~=p~=====~=====`~=
i~I==qI=~===c~K=q==~=~===
~==~==~===I==~=~I=~I=
K=j==J=I===~~=~I==
=====f=b=

=K=

Before:

After

PJOR=

PJOS=

=m~=p~=_~I=jI=~=p~=p=d=

Icon Editor
r==f=b=
=I==~==~==
=~====~===~~K=
l=~====f=b=
======~=
===~=~=~===b=fK=
v=~=~===f=b=
=====
===~J=x`zJxfzK=
NOTE

Icons are a class property, i.e. an object in the Class Library and all of its instances
have the same set of icons. Modifying the icons of one instance will change the
icons for the entire object class.

The Icon Editors Main Window

f====
c~=
f=~=
f==
f===
q~~==
^=~==
=

e~I=fI=~=f~=
CHAPTER 3

PJOT=

About Icons
j=====`~=i~=~=q==~==
=====J=K=
b~===~=~====K==^=~==
=~=====K==q=~=~===I=
~=~=~=~===~~===~=K=
q=====~=~===K=
q=~===QMMM==QMMM==
^==~==~=~=~===~I=~===
==~====~==K=^====
===~=K=t====~====
~I==~==~===~=====
=E=~=~=~=FK=q===~=
==~==I==~==b`I==
c`==`K=

The Icon Toolbar, Draw Mode


=

Creating a New Icon


1 l==f=b=

========

`~=i~===b=c~=f=
=~K=

===c~=

2 c==f=b=
=I==f=J[=k===
f=j=_~==~=~==K=
3 c==f=b=
=I==f=J[=p===
f=j=_~==~=====K=

PJOU=

=m~=p~=_~I=jI=~=p~=p=d=

=
4 c==f=b=
=I===q=J[=`~=
i~==c=J[=l========
K==

Using the Clipart Library


v=~==~=====`~=i~==~=~=
====~=~===f=bK==
kW=q=~=~===~=~~===f=bK==

=
f===f=~==~=====
==~===~=~K=f=j=f=b=
=I=~=~=~===~===f=bK=l=
=~======~=~=K=
NOTE

Make sure before inserting any icon from the internet that it is freely available (i.e.
shareware) or if it is copyrighted, trademarked, or otherwise controlled, that you
have permission to use the icon.

e~I=fI=~=f~=
CHAPTER 3

PJOV=

Importing Images and Drawings


v=~==~=~==^`^a=~===
W===
c==f=b=

=I==c=J[=lK=

p====~==~==K==
NOTE

Autodesk drawings are automatically converted to pixel graphics.

=
f==l=I==~====K=
`=lK=

Transparent Icons


To make portions of an icon transparent:

f==f=b=~===~===~==K=
f==`=I====MINOUINOU===oI=dI=
~=_=~=====K==`=xlhzK=
r==f=b==~======~~==
=K=
c==f=b=I==f=J[=q~~K=

Exercise 1: Modifying Icons and


Setting Animation Points
lW=q=~=~==~==~~=K=

PJPM=

=m~=p~=_~I=jI=~=p~=p=d=

Model before exercise:

=====================

Model after exercise:

e~I=fI=~=f~=
CHAPTER 3

Procedure

1 `===~=K=
2 l==qj=~=~==~====
`jK=

3 `=~==~K=
kW=q===~====~I======
====~====K=

4 l======`j=~W=
f==`~=i~=c~`=I===
=`j=~=~==b=fK=
NOTE

If the frame is already open for CompMilling, its icons can be edited by clicking
Edit Frame Icons

PJPN=

PJPO=

=m~=p~=_~I=jI=~=p~=p=d=

5 ^=~====`jK=
f==f=b=
==I==f=J[=kK==
^=~=====~K=

e~I=fI=~=f~=
CHAPTER 3

6 f=~====~=~K=
c==f=b=
==I==c=J[=
lK===
^==~==j=b===~=
~====~=K=
`~===~==
=J[=i~=f =E=
j=t=TI==s=J[=q~===
j=t=umF=

PJPP=

PJPQ=

=m~=p~=_~I=jI=~=p~=p=d=

kW=q====j=t=TK=
f==l=I====~=~~=K===

=
kW=^=====~~==~===
I===~=~K=
p=K=~==lK=
c==f=b=I==f=J[=q~~I===
=~~=K=
c==f=b=I==f=J[=q~~I==
=K=
kW=q==~=~==~===c~====
=====~~==E==~=~==
=f=b=FK=

e~I=fI=~=f~=
CHAPTER 3

PJPR=

=
`~==~=====I=~===
`=K=

=
NOTE

To save changes without exiting, select File -> Apply Changes


Changes

7 `====~=~=~===K=

or click Apply

PJPS=

=m~=p~=_~I=jI=~=p~=p=d=

c==f=b=
`~=~=`K==

=I==c=J[=^=

8 l==qj=~=~==~====
`jK=

Exercise 2: Changing component


representation in a frame
lW=q=~==~===`j=~=
==qj=~K=

1 p~=====~=W=

e~I=fI=~=f~=
CHAPTER 3

PJPT=

2 `~==~===K=
l==`j=~K=
f==`j=~I==s=J[=o~K=
c=o~=I==`K=
c=^=I==u=Z=OMM=~=v=Z=NRMK=
`=xlhzK=
3 i=~==~===qj=~K==Eq====
`j=~=~===FK=
kW=q=I======I===
==^=K=

PJPU=

=m~=p~=_~I=jI=~=p~=p=d=

4 `~==~===K=
l==`j=~K=
f==`j=~I==s=J[=o~K=
c=o~=I==fK=
`=xlhzK=
5 i=~==~===qj=~K==Eq====
`j=~=~===FK=
6 p~===K=
p=c=J[=p~

K=

e~I=fI=~=f~=
CHAPTER 3

PJPV=

Lesson 6: Animating an Icon


The Icon Toolbar, Animation Mode
=
^=~==~=~====~==~=
~=K=

Symbolic Level
q=====~===K=

Logical Level
q=~=======K=

PJQM=

=m~=p~=_~I=jI=~=p~=p=d=

Animating a Picture Using


Animation Points
f=====jrD=====~I=~~=
=======K=

e~I=fI=~=f~=

PJQN=

CHAPTER 3

=
^~=m=~=~====~====
=jrD=~=====~K=

PJQO=

=m~=p~=_~I=jI=~=p~=p=d=

Connecting the Animation Points


p~===^~=j====~~====
==~======K==`=iLr=
^~=m====~~====K=
m~=p~=~~~====~=~=~==
======~=~====
K=

EXERCISE 1: Setting Animation


Points
lW=q=~=~~====K=

Procedure

1 `===~=K=
2 l==f=b==Kc~`K`jK=
f==`~=i~=c~`=I===
=`j=~=~==b=fK=
3 q===^~=K=
c==f=b=
j=

==~I==^~=

K=

4 a~=~=~~===~==~K=
c==f=b=

=I==^Lo=

^~=m
====~K==Ea==
~FK=
`=======~~===
=E=====~===`j=
FK==
`=======~~==
==E=====~===
`j=FK==

e~I=fI=~=f~=
CHAPTER 3

PJQP=

=
CAUTION:

Be careful not to make extra clicks because each click in the picture will set an
animation point. To delete an animation point, right click on it. Or click Delete All
and you will delete all animation structures.

PJQQ=

=m~=p~=_~I=jI=~=p~=p=d=

5 t========K=

EXERCISE 2: Linking Animation


Points
lW=q=~=~=~~===~~=K=
m=

1 ^~==~~=K=
f====~~=I==^~=j

K==

NOTE

Dont forget to deactivate the Erase


than intended.

button, otherwise more could get deleted

2 q===~~===~=====~W=
c==f=b=

=I====iLr=

^~=m=
=K=
m====~~====K==m~=
p~====~=~===K==
p======~~====
W=jNK==
q==~~====~==~===
~====K=
r==~=====~~===
jOK=

e~I=fI=~=f~=
CHAPTER 3

=
3 p~===E~=~~=FK=
c==f=b=

=I==c=J[=^=

`~===^=`~=

K==

4 `===K=
c==f=b=
=I==c=J[=^=
`~=~=`=====u=====J
~====K==

5 l==qj=~=====~~=K=
6 p~= ==~==qj=~====
~~==`j=f=~==~==~=
=jrK=

PJQR=

PJQS=

=m~=p~=_~I=jI=~=p~=p=d=

7 o

==~K=

8 p~==K=
=
=
=
=
=
=
=
=
=
=
=
=

e~I=fI=~=f~=
CHAPTER 3

Lesson 7: Other Icon Editor


Topics (Optional)
Introduction
f==I=~==~====I==~=
==~I===K===

Automatic Icon Control (State


Icons)
kW=p~==~====~=~=E=~===
==~=FK==j===~KKK=
m~=p~=~~~===I==
==~===I=~=I===~=
=~K==
^~==~~=~=jr=~~==~K==
m~=p~====J=~=K=
j~~===~===~=~~~=
~==~==I====~==~K=q=
=I====~===~===~=~=
~===W=

To use the state icons:

p====c==f=b=
=I==
l=J[=p~=f=L=iba=J[=r=p~=fK=
NOTE

By default, the material flow objects do not provide predefined state icons. If you
want to use icons for the different states of the object, you have to create these
icons yourself.

^====~====~W=

PJQT=

PJQU=

=m~=p~=_~I=jI=~=p~=p=d=

c=~~=W=
~~=
~=
~=
=
~==
c=~=W= =
~~=
~=
f=~==~W=
~=
~=

Frame Background Image


f=~=====~=_~I======
==~=~==~====~K==t==
======~=~K=

Moving an Icon Reference Point


b~==~=~==K=m~=p~====
===========~=
c~K=_=~=====~=====
===K==

To move the icon reference point:

c==f=b=
~~K=

=I==~=a~=j

c==f=b=

=I==p=o=m

K==
m===~====K=

==

e~I=fI=~=f~=
CHAPTER 3

Moving an Icon Animation Point




To move the animation point:

=c==f=b=

=I==~=^~=j=

==~~K=
c==f=b=
m=

=I==j=^~=

==

a~=~===~~=====~===
K=

Icons in the Toolbox




To add toolbars for the objects you defined:

f==`~=i~I====~==E=_~F=~==
k=J[=q~K==^==q~==~===qK=
v=~======~=======
q~=======qK=

To change the icon of the objects in the Toolbox viewer:

l==f=b=

====K=

kW=b~==~=~=====M=EF=~=
a~=~=~=~===QM==QM=K=q=====
======`~=i~K=

PJQV=

PJRM=

=m~=p~=_~I=jI=~=p~=p=d=

=
b===k=M===k~==a~K===q=~=
~===m~=p~=~Lq~==EKK==
=`j=I=K===FK=
p~==~K===
p~===K=
`========~K=

To extend or modify the Toolbox Toolbars:

a~=====`~=i~===q=~==
=K=

e~I=fI=~=f~=
CHAPTER 3

Exercise: Creating a custom


toolbar in the Toolbox (Optional)
lW=q=~=~==~===qK=
1 `~=~==~K=
f==`~=i~I=====c~`=
=~==k=J[=q~K==^==~==~=
==qK=
m==q~==~==xcOzK=
c==k~I==jqK=
c==i~==j==qK=
`=xlhzK==
2 ^==`j=====~K=
f==qI===j==q=~K=
a~==`j====`~=i~===
j==q=~===qK=
=
=
=
=
=
=

PJRN=

PJRO=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 8: Vector Graphics and


Comments
Introduction
f==========~==
=====~K==^====~=~=
^`^a=~===~K==t====
===~=~===KK==

Using Vector Graphics in the


Background of a Frame
q=~~==~=I===c~

===

s=d~=j
K=t====~I==~=
=~=====~K=q===~=I=
===~~K==
NOTE

The Vector Graphics Mode is a toggle that turns Vector Graphics Mode on and
off.

f====~===~==X==~=
===~==K=p~==~===
K==
=
q==~===~=~=~=~=~=~I====
=~=~=~=====~=_~=Ef=
`~=V====~=^`^a=~=~=~=~==
=~=m~=~FK=

e~I=fI=~=f~=
CHAPTER 3

PJRP=

Adding Comments to a Frame


`=
==~=====~==~=
===~===~K=

==

Modifying the Frame Display




Setting the Background Color of a Frame

c==c~=
J[=p=`K=
p=~=K=

===I==s=J[=_~=

PJRQ=

=m~=p~=_~I=jI=~=p~=p=d=

`=xlhzK=

Show / Hide Information in a Frame

=J=p=L===~===

=J=p=L======

=J=p=L==`==

=J=p=L====

Exercise: Making an Attractive


Frame
lW=q===~I=~=I=~=
==~=~=~==~~K=
1 l==qj=~K=
2 ^=~=~=K=
c==c~ ===I==s=J[=
_~=J[=p=`K=
p=~=K=
`=xlhzK=
3 ^~===~=K=
f==c~
j

==~I==s=d~=

K=
=

4 ^===~=~K=
c==c~

==~I==c=o~

K=
a~=~==~=====~K=
5 j==c=o~K=

e~I=fI=~=f~=
CHAPTER 3

f==p==p=l====I=

===~=~===d~=p= =
===~=E====~FK=
`==c=I=====~~=K=
a=====~==`K=
c=`I=====K=
c=d~I==q==_K=

=
`=xlhzK=
6 ^===~=K=
c==c~=

==~I==_~=

q K=
m===~K=
f===~==I==qj===qK=

PJRR=

PJRS=

=m~=p~=_~I=jI=~=p~=p=d=

=
`=xlhzK=
7 j==_~=qK=
a====qj=_~=qK=
f==p==p=l=I==~=c=
==OMK=

=
`=xlhzK=

e~I=fI=~=f~=
CHAPTER 3

PJRT=

=
8 a~~===~==K=
f==c~=
j=

==~I==s=d~=

K=

9 q=~=~=`W=
c==r=f~=~===qI=~=~==~=
`=

===c~=

=K=

10 j==q=`K=
a====q=`===c~= =
K=
qW=e=~==~====~==
~K=

PJRU=

=m~=p~=_~I=jI=~=p~=p=d=

=
kW=v=~=~==~=~=~===~==
=EKK=j=tFK=
p==a~=~I==o~=jK=
`==q~~=K=
`=xlhzK=

=
11 s==`K=

e~I=fI=~=f~=
CHAPTER 3

a====o~=j=`===c~=
K=
`==`=

PJRV=

=K=

12 e===~=~=K=
c==c~=
~==K=

==~I==

=====

c==c~=
K=

==~I==

====

=
13 p~==K=
=
=
=

PJSM=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 9: Classes, Instances


and Inheritance Introduction
Inheritance Basics
l====~=~==J=~==
f~K==
^======m~=p~=`~=i~=~=
~K=
v=~=~==~===~=~==~==
~=~=====~=~K=
t==~====~=I==~=
=~I=~=~=~=~=~=======
===K==
_=~=~====~=I==~=~=
==~=~===~K=q====J
=~=~==~=~===~=~==
~=K=

Classes and Instances


`~=J=^====`~=i~=~==~=~=?~?K=
q==~=~=~===~=~=~===~=
~K===
c=~I==~=~==~=~=~=~=
^K==l==~====~==~=
E~=~F=~=~===~=~K=
p~=J=q==~====`~=i~=~==
==~=~K==^=~=E~=~F===
~=~=~====~K===

e~I=fI=~=f~=
CHAPTER 3

PJSN=

c=~I==~=~==~=~=~==
^=~=c=bK==q=~===
~==~=E~=~F==^X==
~====~~=~=~=~==
====~K=
f~=J=^=~==~==~=~===~=
~===`~=i~I=~=~===~K==^=~=
=~=~==~===~==~==~=~K===
c=~I==~=~==~=~=~===c=
b=~==~==~=~=~=j|d~~K=====
^=~==~=~~=~~===j|d~~==
=~=~K=
f~=J=^=~==~==~===~=
~==~==K==b~=~=E~=~F===
==~=~==~=~===~=~=
~===~=E=J~F==~=K=
IMPORTANT

Changes valid for all examples of an object should always be done in the object
class (in the Class Library). If you change the object instance in a frame, the
change will only affect that instance.

Example for Class and Instance

`~=b~=J=q==~=`j===`~=
i~==

=
f~=b~=J=q=`j=~===
qj=~K=

PJSO=

=m~=p~=_~I=jI=~=p~=p=d=

Example for Class and Subclass

q=i=~======I==~==
I=~=I=~~I=K=
t=====~~=i===i==~=
~===K=^=======
~K==
1 f==j~~c====`~=i~I====
i=~==aK==
2 f==j~~c====`~=i~I====
==iNK==
3 l==^=~I===~=~===
=====K==`===E==iN=
p~F===~=~===O====~==
~==K=

e~I=fI=~=f~=
CHAPTER 3

4 b=~==~=====~=NMMK==q=
~====~=~=~===K==
q=~=====K=

=
5 eI=iN===~=====i=
~====`~=i~K=

Inheritance
aI=~~~====~====`~=
i~I===~=~=======~=K=
q====~=~=I==~~==~=
===~=K=q====~=~=~K==

PJSP=

PJSQ=

=m~=p~=_~I=jI=~=p~=p=d=

=
a~I=~~~====~====`~=
i~I===~=~=======~=K=
q====~=~=I====~=~=
~====~=K===q====~=
~=K==

Example of Inheritance

`~=~=~=`j=~=~=`j=~==
=j=~===`~=i~K==q===~=
=~=K==t=====`j=~==
~=~==~K=

e~I=fI=~=f~=
CHAPTER 3

PJSR=

PJSS=

=m~=p~=_~I=jI=~=p~=p=d=

=
^=~==~I=~=~==~===~=~=
~====~K==q=~====~===
~~===~I=~=~=~=~=~=I=
==~==~=K=

e~I=fI=~=f~=
CHAPTER 3

PJST=

PJSU=

=m~=p~=_~I=jI=~=p~=p=d=

Recognizing Inheritance Structures: Frame

q=l=l===~====c~=~=~=
K=t====I=m~=p~===
===c~K=

e~I=fI=~=f~=
CHAPTER 3

PJSV=

q=~=~=m~=p~=~=~==~===
~======K=m~=p~==
=====f~==~==~====
~~=~=`===c~K==

Recognizing Inheritance Structures: Objects

q~=~==~========~=~===
==~==~==K==
^=~==E~====~==F=~=~=
~===~K=s~====~===
=I==~===~I====~=K==

=
^===E~=~=F=~=~=~==~K=
q===I=KK=I==~===~=
K==

PJTM=

=m~=p~=_~I=jI=~=p~=p=d=

Exercise 1: Inheritance Basics


lW=q=~=~===~=K=
lW=
a~=~====~=~=K=j~=~==
=~=~=~======~=~=
~K=_~==~==~=~=~=~~K=
mW=
1 a~==`j====`~=i~K==
f==c~`====`~=i~I==
==`j=~==a~K=
k~==~==`j|a~K=

=
2 a=~====`j====`~=i~K==
f==c~`====`~=i~I==
==`j=~==aK=
k~====`j|aK=

e~I=fI=~=f~=
CHAPTER 3

=
3 l=~===~K=
a===~=K=
4 `~==~=`j=W=
^=~=pmK==
k=~==~=~=~======
`j|aI===~=
`j|a~==~==~==~=
~==~K=
5 o==pm==~K=
6 p~==K=

Exercise 2: Creating a custom


SingleProc and Buffer
lW=q===~=I===pm=~=
_I=~=~===~==K=
kW=q========~==~===
==K==q=~==~=~=~==~K==t==
======~===~====
===~=~~=K==eI======
~=~==E==~==~=~==~==~=
~~=I===~===~=~===
==~==FK=
1 `~=~==pmK=
f==`~=i~I====pm=~==
aK=
e===xpz=K=
a~=~==pmN===c~`=
K=

PJTN=

PJTO=

=m~=p~=_~I=jI=~=p~=p=d=

o~=pmN==jpmK=
a==jpmK=
`~==m=q==jpm==PM=
=EMWPMFK=
2 i=~===~==m~K=
j~==~==~=m~|=~===EKK=m~|QFK=
f==m~|=~I===m~K=
k==m=q==NWMMK=
`=====m~K==
3 o~==~==m~==jpmK=
e===x^z=K=
c==`~=i~=c~`=I=~=
jpm=~====m~K=
4 i=~===~==m~K=
a==m~K=
k==m=q===MWPMKK=
`=====m~K==
5 `~=~==_K=
f==`~=i~I====_=~==aK=
e===xpz=K=
a~=~==_N===c~`=K=
o~=pmN==j_K=
a==j_K=
`~==m=q==jpm==M=K=
kW=t=====~===K=
6 p~==K=
=
=
=

e~I=fI=~=f~=
CHAPTER 3

Lesson 10: More on Classes,


Instances and Inheritance
Showing Inheritance Structures
p=====~===k~~===~=
K==t=====~~===~=
K==

These menu options are located on the frame Navigate


menu:

l=i~= ==q======`~=i~=
====~K==t==~=~==
~=======I=l=i~===
=~==~K=
l=l=
=J=q======~=~==
==~=~==K=
d=q=l=J=q===~=~=l=lI==~=
=~===~=K=
l=`~=J=q=========
K=

PJTP=

PJTQ=

=m~=p~=_~I=jI=~=p~=p=d=

d=q=`~=J=q======~=~I==
==~=~==K=
r==i=
E~FK=

=J=q========~=

t==~=~==~======
=I=l=i~====~==~K=

Changing which class that an instance inherits from:

a~=~====~===~===x^z==
K=
kW=q==~==W=l======
~=~==k~~=J[=l=l=Eq=~=~==
~=====FK=

These menu options are located on the Class Library right


click:

p=l==p======I=KK=m~=
p~======`~=i~===~=
~====~==K=
p=p=J=q==~===~====~=
==K=

e~I=fI=~=f~=
CHAPTER 3

p=f~=J=q===~===~===
===K=

=
NOTE

When no inheritance relation to an object higher up in the structure exists, Open


Location is the only active menu command.

Paths and Name Space


b~==~=====~==~K=^=~=
===~=~=I=~=~=K==
^===~======
~=EKK=~=~===~=F==~=~=
~K=
t=~=~=~I=~===~===K=k=
==~===~==~=~K=
f~=~=~=~==~~=~====
~=~K=

The Relative Path


^=~=~===~=~=~=~==~===
=~===~K=t==~==~===
=~=~====~==K=c=~I==
`j=~==~=~=~K=t==~=~==
~==~===~K=q=~===jN=
==`j=~===~=jNK=

PJTR=

PJTS=

=m~=p~=_~I=jI=~=p~=p=d=

The Absolute Path


^=~=~=~====~=~====
~====K=^=~=~=~~=~===
~=~=~======K=b~====
~=E~F=====~~==K==

=
q=~=~====jN=W=
Kc~`K`jKjN=
q=~==~====~===~=

=K=

r==f~= I=~=~==~=~===
~====~=K=
=

e~I=fI=~=f~=
CHAPTER 3

Chapter Summary
q====K=
e~=====J=E~F=~==
==E~FK==b~=J==~=~==~=
=====~==~==~=K=q=
~=~=~=~=~==~=====
==K=
rJ==~===J=m~=p~=
K=
v=~===J===~===
==~=J==~=~====K=
q=~~=~==~==~==~==
=f=b=

=K=

b~==~=~=~=K==f=====
=~=~=`===f=b=

=K=

f==~===~=~I=m~=p~==
~~~==I====~K=^~=
======jrD=====
~=K=
a=====~==~===
~==~=c~=

=K=

f~======~=E~F==~=
==~=~=~==~=~==m~====~=
~K=`~=~==~=~===~=~===
~K=

PJTT=

PJTU=

=m~=p~=_~I=jI=~=p~=p=d=

f====~==~=~=~=
~K==c==~==~==~==
~=~===~=~===~=~K==
q=~==~=====~==
K=
=
=
=
=
=
=
=
=
=

j=_I=^=i=~=c~=
CHAPTER 4

Chapter 4

Modeling
Buffers,
Assembly Lines
and Failures

About This Chapter


q=~==~====I=
~=I=~=~K==f=~===W=
i=NW=j~=c~I=~=QJPI=====
~===~======
K=
i=OW=_=~=l=j~~=c=l==~=
`~~=d~=q~=lI=~=QJNPI====
===~~==~=~==~==
K==q=_I=m~~=mI=~=p=~=~==
K=
i=PW=f==i=l=lI=~=QJOPI=
==~==~~=~==~=
==~=~=~=K=
i=QW=q~I=q~I=~=q~=p~=lI=
~=QJPSI======~I=~I=~=
~=p~=K=

QJN=

QJO=

=m~=p~=_~I=jI=~=p~=p=d=

i=RW=p=qI=^I=~=a~=lI=~=
QJRPI=====~=~===
~~==~=K=
i=SW=^I=~=QJSUI==~===
~K=
i=TW=a~~=q=~=rJ=^I=~=QJTNI=
==~=~~=~===~==~=K==
i=UW=t==q~cI=~=QJTTI===
===q~cK=
i=VW=m=pI=~=QJURI====
=~==K=
i=NMW=b=aI=~=QJVSI=====
=~===~===~=~=K=
=
=
=
=
=
=
=
=
=
=
=
=
=
=

j=_I=^=i=~=c~=
CHAPTER 4

Lesson 1: Machine Failures


Introduction to Machine Failures
NOTE

Failure data can come from a machine manufacturer, or through individual


observation.

f=========~=~=~=
=~==m~=p~K==q====~=
===~===miqPMMK=
q===~J=~==~=~=~=I=
E=~==~==~~~=~~~===
~=~F==~==~K==
q===~=====~~==~K=
m~=p~=~==~===~====
====K==
v=~==~==~=~~==K=
q===~=====iba=~=~~=
~=======
t==~===~===~====
~I======m~=p~=I=
~=~=====f=bI=~=~==~K=
p=l=J[=p~=f=L=iba=J[=r=p~=f=
==f=bI==~====~=I=
~===ibaK=

Defining Failures
j=c~==~====~==W=
b~======
f~=~L==

QJP=

QJQ=

=m~=p~=_~I=jI=~=p~=p=d=

NOTE

On the Failures tab, click New to create a new failure profile. Each can simulate a
different reason for failure of the object.

=
NOTE

Failures can be defined on individual objects (SingleProcs) or at the class level and
inherited to all stations by default.

Two modes for entering failures

Eq=====^~~FW===
t=^~~=I===~===
~=Ejq_cF=~==~===~=EjqqoF==
~~====~=~K===

j=_I=^=i=~=c~=
CHAPTER 4

t=^~~=I===~===
~~~K=m~=p~===b~====
~=~==t====~K===
NOTE

Erlang distribution - It was developed by A. K. Erlang to examine the number


of telephone calls which might be made at the same time to the operators of
switching stations. This work on telephone traffic engineering has been
expanded to consider waiting times in queuing systems in general (according to
wikipedia.com).
Negative exponential distribution- The negative exponential distribution is
called negative because of the negative prefix of the exponent. Use it to
visualize times between independent events, and to model in-between arrival
times of customers in a service system, the duration of a repair job or the
absence of employees from their job site. The exponential distribution plays
an important role in reliability theory. The random life times of systems that fail
during a certain time interval regardless of their life time is distributed in an
exponential way.
Weibull distribution - It was named after Waloddi Weibull. It can mimic the
behavior of other statistical distributions such as the normal and the
exponential for the analysis of failure rates (i.e. failure typically occur early,
occur randomly, or occur after heavy wear (according to wikipedia.com).

m~=p~==~=======
~=~=~==~=~K=p====
=~===~~====
K===

=
m~=p~===~~==~===~=
====p~=K==

QJR=

QJS=

=m~=p~=_~I=jI=~=p~=p=d=

=
NOTE

For Normal and Erlang:

Stream the row number of the seed table.

Mu The mean.

Sigma the range that the number can vary from Mu.

Lower Bound and Upper Bound are optional.

Failure mode relates to:

p~=q==o~====~==
Ep~===~===~=~==L===
~F=
m=q==o~====~=jr==~==
K==
l~=q==o~===~=~===
=~====~=Eq=~====~==
~====~=~FK=

Random Number Streams-Seed


Values
c==m~=p~=I==q=J[=o~=
k=p=s~=====~=~K=
q=o~=k=p=s~=~===~=
=~===I=KK=====
=======~==~K=

j=_I=^=i=~=c~=
CHAPTER 4

=
b~========~K=q=~=
=====~==~=m~=
p~=~K=
a=~==~==~==~=
~==~===~=K=

How are Random Number Streams


Accessed
f=~I====~======~==
~==~~K==c=~=====
=~========~X===
=======~I===pI===
pm===~=~==~=~==K=
q======~==~=
~=~I==q=J[=o=o~=k=p~==
o===b=`==W===
`====~=~==~==
m~=p~==~=o
K=q=~=~==
~==~==~=~====
=~==K==

QJT=

QJU=

=m~=p~=_~I=jI=~=p~=p=d=

t===I=~=o
===~==
~==~=~K=q=~=~=~==
~======~=~=K=c==
~==~=====~=K=

Exercise 1: Forcing Failures in


Packing
lW=q=~=~=~K=
mW=

1 `===~==K=
2 `=~==c~=
c~K=
3 p~=

====~=m~|=

==~K=

4 c=~=~K=
a===m~K=
p==c~=~K=
r==^=K=
`==c~=K=
`=^K=
5 i=~==~=~K=
p==p~=~K=
p=s=J[=o=E==^FK=
i=~==~=~K=
6 i=~====~K=
c==m~====s=J[=`K=
E`=FK=
`==`=~=K=
7 i=~==~=~=====~K=

j=_I=^=i=~=c~=
CHAPTER 4

c==m~====s=J[=c~=
_=iK=
Ep==~=~=====~FK=
`==`=~=K=

8 o===~K=
r==c~=K=
`=^K=
`==m~==K=
9 o

==~K=

Exercise 2: Failures in Packing in


the Plant Model
lW=q=~=~=~K=
mW=

1 `===~==K=
2 `=~==c~=
c~K=

====~=m~|=

3 p==~=~K=
a===~=m~|=c~I=====~~=
K=

f==c~= =I=J==m~~K=
p==c~=~K=
`==^=K=
`=kK=
p==^~~==VRBK=
p==jqqo==NIOMWMMK=

NOTE

MTTR is an abbreviation for Mean Time To Repair (i.e. the duration). 1,20:00
specifies to use random number stream 1 to vary the availability from the MTTR of
20 minutes. This is the way to specify failures when Availability is checked. When
it is not checked, the interval between failures can also be specified.

QJV=

QJNM=

=m~=p~=_~I=jI=~=p~=p=d=

p=c~==~=I==l~=qK=
`=^K=

=
`=xlhzK=

=
`=xlhzK=

4 ^=~=~=~===m~===~c~m==
~====~=~==~=K=
o====m~==~==b=a~=
m~K=
l==a~=m~=b=I==^K=
`=kK=
c==s~==p=l=

K=

j=_I=^=i=~=c~=
CHAPTER 4

f==p=l=I==~c~mK=
`=xlhzK=
l==a~=m~=b=I==a~=~=
~K=
`=xlhzK=

5 o==~K=
o=

=~=p~=

===~K=

6 i=~==~====K=
a===m~K=
p==p~=~K=
i=~==c~=~K=

=
p=s=J[=o===^K=
i=~==c~=~K=
t=I=Ep=~F=o=

==~K=

Exercise 3: Simulating wide


spread failures
lW=q=~~=~==~=pm=K=
kW=_=~~=~==~==~=^ii=pm==
~===K==l=~=====~==
======~=E=~===
~~=FK=

1 p==~=~==jpm=K=
f==`~=i~=c~`=I===
jpmK=
`==c~=~K=
`=^K=

QJNN=

QJNO=

=m~=p~=_~I=jI=~=p~=p=d=

r==^====c~=K=
kW=v=~=~==~==~==~=~=I=
======~K===
p==c~===~==bK=
r=^~~I====K=
c=f~I==k=~==NITWWW==
c=a~I==b~=~==NI=UWWI=OWWMM=
c=c~=~=I==l~=qK=
`=^K=

=
kW=q=m~=p~=p~~=q=~==~=
~=~==~=~==I===~=
==I=~==~======
K==q==~====miqPMM=K=
`=xlhzK=
`=xlhzK=
kW=k=m~=~==~====K==l=~=
====m~=pm=~=~=~=~=
==jpmK=

2 o==~K=
o=

=~=p~=

3 p~===K=

===~K=

j=_I=^=i=~=c~=
CHAPTER 4

Lesson 2: Buffers and Other


Material Flow Objects with
a Capacity Greater Than
One
Introduction
f=====~====~=~=
~~====~=~~=~=~=K==q==
~====I===~=~=K==

The Buffer
c==q=I===j~~=c=~=~==
_=

==~====K=

`~~W===
i~J=~~===

QJNP=

QJNQ=

=m~=p~=_~I=jI=~=p~=p=d=

=
q==~=_=I=====~==
m~_K==eI==~=~==~====
=~~==~K===

kW=q=~===E~F==~===N=K=

The PlaceBuffer
c==q=I===j~~=c=~=~==
m~_=

==~====K=

`~~W===
i~J=~~===

j=_I=^=i=~=c~=
CHAPTER 4

QJNR=

=
q=m~_=~=~===~I=~~==~=I==
==K=f=~====~===jrK=
v=~========_I====
=~=~=~=~==K==f====
=~=====~I=KK===
=====jr=~===~=~K=k=~==
jr=~=~=~=K==eI==~=~==~=
===M=K=

The Sorter
c==q=I===j~~=c=~=~==
p=

==~====K=

QJNS=

=m~=p~=_~I=jI=~=p~=p=d=

`~~W==K=
i~J=~~==K=

q=p===jr=~====~==~==
K=q=====jr======
K=q=p===jr=====I=
~====K==a=====jr==
=p==~===lK=

The Parallel Proc


c==q=I===j~~=c=~=~==
m~~m=

==~====K=

`~~W==I=~J~=

j=_I=^=i=~=c~=
CHAPTER 4

QJNT=

i~J=~~===
q=m~~m==~=~=~====
==~~K==
v=~=~====~=~===K=q==
=~=jr=~===~===m~~mK=
q=~=jr=~=~=~=K=

The Pick and Place Robot


kW=q======j~~=c=~===qK=
m^m~=
=J=~==~===~=~===
~=~===~====~=~K==

QJNU=

=m~=p~=_~I=jI=~=p~=p=d=

Others Covered in PLT300


q=p~`~=
=E==~=~=m~`~F==
~===`~=~===qK==f=~==~==~=
===`~===i~=~===j~~=
`~=i~=K====
f==~=~==~=I==~==~==~=
~=~===~==~==K=f=~=
=~=~===uI=vI=~=w=K=v=~=
=====~=~~I====
=~=~=~========~K=

j=_I=^=i=~=c~=
CHAPTER 4

q=jm~`~
==~===`~=~===
qK==f=~==~==~====`~==
=i~=~===j~~=`~=i~=K==f=~=
=~==~====`~===i~=~=
==j~~=`~=i~=K=======
`~==~=E~F=~===
~K=
q=p=
==~=~===j~~=c=~===
qK=
f==~===jr==K=q=~===
p======~=jK=

Others Covered in this Chapter


i=
q~=
`~=
q~=

Exercise: Enhancing the Milling


Component
lW=q=~===~=====
K===

1 `=~==c~=K=
2 ^===~===~===~K=
c==c~`====`~=i~I=
===`jK==
j==l=~==~======
==~==K=

QJNV=

QJOM=

=m~=p~=_~I=jI=~=p~=p=d=

a=========
l=~=K===
c==j~~=c=~===qI=~=~==~=
m^m~
====c~= ==~==
==K==
c==c~`====`~=i~I=
~=~==~=j_===c~=
m^m~=K=
`==~==K=

==~==

=
c==j~~=c=~===qI=~=~==~=
m^m~======_O=
~==jO=~=K=

3 ^=~==~=~===~==~K=
f==c~= I=~=~===~==
===f=~=K=
j====~========
~==K=
c==c~`====`~=i~I=
~=~==~=j_=====fN=
~=jNK=
c==c~`====`~=i~I=
~=~==~=j_=====fO=
~=jOK=

j=_I=^=i=~=c~=
CHAPTER 4

QJON=

c==j~~=c=~===qI=~=~==~=
m^m~======_N=
~==jN=~=K=

4 ^=~=~===~==~====K=
c==r=f~=~===qI=~=~==~=
`~===c~K=
o~==_`~K=
a~=~==~==I==~=~=I===
_`~=K=
`==`j=

=~K=

5 o==~====K=
c==qj====`~=i~I==
==qjK==
a===`j====~K=
o=

=~=p~=

==~K=

kW=k~=~======~==~==
=~=K=
o=
==~K=
`=~==~K=

6 o==~===~=K=

QJOO=

=m~=p~=_~I=jI=~=p~=p=d=

c==j====`~=i~I====
=~=m~|=~K==
o=

=~=p~=

==~K=

kW=k~=~======~==~==
=~=K=
o=
==~K=
`=~==~K=

7 p~===K=
=
=
=
=
=
=
=
=
=
=
=
=
=

j=_I=^=i=~=c~=
CHAPTER 4

Lesson 3: Introduction to
Length Oriented Objects
Introduction
f========K==q==
========K=

Primary Length Oriented Objects:

i=EKK=`F==q==~==b=EKK=~F=
~=`~=jrK==q======iK=
q~=EKK=o~F==q==~=q~=jr=EKK=
===~==~=~F====K==q=
=====q~K=
c~=EKK=fF==a~=~~==t==
~=~K==q======t=~=
~K==t=======~K=
kW=j==========~=
==miqPMM=K=

Other Length Oriented Objects covered in PLT300:

^~`
=J=~=====
=======~==
====~K==
`=
=J====~~=~=K=
t==~====`I===~=
~=====I======~=
~~==~===~==~=~==
=~~=====K==m~=~=~==~=
=~====~=I==~==~K=

QJOP=

QJOQ=

=m~=p~=_~I=jI=~=p~=p=d=

==

qq~
=J=~=~=~I====~==
==~==~~===E==
q~=`F=~L===~=E==m=`FK=
q~
J=~=~=~I==~==~=
~=E===VMF=~====~==
=~=~K=^=~=~====~~==
==~=~~=~===~==~==
==~=~=~=~=~~~=~==~=
==~=~K=
=`p`~=
=J=~~=I=~=~=J=
=~===~~=~===
=~K=f==~======~==
===~=K=
=q=qi~q~
==~=~~=~===j~~=
c=~===qK==q=~=~===~=
===~=~W=
q~=~==o=~=EKK======
rp^F====~=EKK=====bF=

=
p~~=~=~==~====~=^=~=
~=_===~K=
`=~=b=l~=j~=EbljF=~=

j=_I=^=i=~=c~=
CHAPTER 4

QJOR=

kW=q=Pa====~=~====miqNNM=
m~=p~=Pa=K==

The Line
c==q=I===j~~=c=~=~==
i=

==~====K=

`~~W=r=I===
iJ=~~===

=
t=~=i==I===~=~=K==oJ=
===K==

QJOS=

=m~=p~=_~I=jI=~=p~=p=d=

=
q=i=====~=jrK=q=~===
====~=====K==t====
=~==I==~==~=I===
~===~~K==^=~~==N=~=~==
~~===~========jr=~=
=====K=
f=^~====~~=~==~~==
==~===~======~==
==~~==~K==
r==`=~I====~=~==K==
c=~I=~=====~==K=

Exercise 1: Modeling the


PaintShop
lW=q==~===~~=m~=~K==

Procedure

1 `~=~==~====W=

j=_I=^=i=~=c~=
CHAPTER 4

o===c~`==~==k=J
[=c~K===
o~===`m~K=

=
2 l==`m~=~K=
a===`m~=~I=====~~=
K=
NOTE

Keep inheritance relations in mind: Change the CompPaintshop frame only in the
class, not in the instance found in a Plant_ frame. To do this, always open it for
editing from the Class Library, not from another frame that uses it.

3 f======~=~=~===
~===~W=
c==j~~=c=~===qI===
f~=K=
k~==f=~=lK=
f==jpm====
c~`====`~=i~K=
k~==m~m~I=m~m~I=~=m~c~K=
f=~=a~K=
`===W=

QJOT=

QJOU=

=m~=p~=_~I=jI=~=p~=p=d=

4 k==l=f~=p====o=E~===
=FK=
a===lK=

=
`=xlhzK=

j=_I=^=i=~=c~=
CHAPTER 4

5 ^=~=K=
c==j~~=c=~===qI===i=
K=
j==b=m~~==`=====~=
E===FK=
f==c~I==~======m~m~=~==
J~K=
m=~==~=U==~~=E~=U===
~~FK=
kW=q=~==EF=====b=
m~~==`=K=a=X==~=~==
===~===~=K=
c==W=b=====c===
b=m~~==`=K=

=
o~==i==m~aK=

6 ^=~=m^m~=K=
c==j~~=c=~===qI=~=~==~=
m^m~====c~====m~a=
=~==m~m~Lm~c~=pm=K=
c==c~= ==I==s=J[=l=
J[=p=pK=
`==~=I===m^m~===
m~m~=====m~c~K=

QJOV=

QJPM=

=m~=p~=_~I=jI=~=p~=p=d=

`=~==c~=K=
a===m^m~=K=
l==b=p~=~==p~I==o~K=
`=^K==

=
c==NI==VMK=
c==OI==NMK=
`=xlhzK=

7 j======m~=K=
c==c~`====`~=i~I=
===`m~=~==b=fK=
f==f=b=
==I==f=J[=kK==
^=~=====~K=
c==f=b=
lK===

==I==c=J[=

j=_I=^=i=~=c~=
CHAPTER 4

QJPN=

^==~==j=b===~=
~====~=K=
f==~~==~I=~===~==i~=
f =E=j=t=TI==s=J[=q~==
=j=t=umF=

=
kW=q====j=t=TK=
f==l=I====~=~~=I==
=~==~~=K===

=
p=~K=~==lK=
c==f=b=I==f=J[=q~~K=
c==f=b=I==f=J[=q~~I=
~~I=
`~==~=====K=
j~========`=
K=
`=^=`~

K=

QJPO=

=m~=p~=_~I=jI=~=p~=p=d=

8 ^~=~=K=
c==f=b=
j=

==I===^~=

=K=

t=^Lo=^~=m=
=I==~=
===~=~I==~I=~==~=E=
~=FK=

=
c==f=b=

==I==iLr=

^~=m=
K=
i=~=~~===~====pm=
W=m~m~=E~~==NFI=m~m~=
E~~==OFI=~=m~c~=E~~==PFK=

j=_I=^=i=~=c~=
CHAPTER 4

QJPP=

=
c==f=b=
`~

==I==^=

K=

`==f=b=

=K=

9 p~===K=

Exercise 2: Using the Paintshop


Component
lW=q==~===m~=K=

1 `~=~==~===m~=K=

QJPQ=

=m~=p~=_~I=jI=~=p~=p=d=

f==`~=i~I====qj==~=
=k=J[=cK=
k~==qm~K=

2 p==K=
^=~=b`I=~=pI=~=~=a~=K=
c==`~=i~I=~==`m~=~==
m~|RK==
`===W=

3 o==~====K=
c==qj====`~=i~I==
==qjK==
o=

=~=p~=

==~K=

kW=k~=~======~==~==
=~=K=
o=
==~K=
`=~==c~=K=

4 p~===K=

j=_I=^=i=~=c~=
CHAPTER 4

Exercise 3: Hierarchy of the Plant


Model
lW=f==`m~=~===m~=
K=

1 a~==m~|Q=~=~===m~|RK=
2 m~====`m~K=
f=m~|RI===m~=K=
`=vK=
j======`j===~=
===`m~K==
3 f==`m~=~==m~|RK==
c==`~=i~I=~==`m~=~==
m~|RK==
j~====`j===
`m~=~K===
^==`m~==^K==
4 o==p~K=
a===b`K=
c==b=`=

=I=o=

=~=

p~
==~K=
a~===~=~=~=~K=
p=

=~=o=

5 p~===K=
=
=
=
=
=

==~==K=

QJPR=

QJPS=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 4: Tracks and Transfer


Station Objects
Introduction
f======~I=~=~=~=
~K==t======~======
~===~==~====~K==q=
==~=~===miqPMM=K=

Track Object


Track Attributes:

q=~==~====~=~==~K=

=
q=~=~=======~K=
q=~=~====~===k=
~~===K=

Source Attributes for Tracks:

kW=q~===~=E=m~==~===
=FK=
a====~==K=

j=_I=^=i=~=c~=
CHAPTER 4

QJPT=

a==~=~=jr=K=

Loading and Unloading


c=~=~=~===~=~=
^==~=~====~==

QJPU=

=m~=p~=_~I=jI=~=p~=p=d=

Transfer Station: Loading


a=~=~=~=~=~=
p===~==~=
a===~==~=

j=_I=^=i=~=c~=
CHAPTER 4

QJPV=

=
f=~===~===~=~==I===
===~L~=

Loading parameters

a==~====q=~=
a==~==~==~=~====
=~=

QJQM=

=m~=p~=_~I=jI=~=p~=p=d=

=
q==~=~==~====~=

Transfer Station: Unloading


a=~=~=~=~=~=
p======~==~K=

j=_I=^=i=~=c~=
CHAPTER 4

QJQN=

=
a===~==~K=

Unloading parameter

a=~====q=~K=
r~=~=~===~K=

QJQO=

=m~=p~=_~I=jI=~=p~=p=d=

=
p=~==~K=

Exercise 1: Basic Track Routing


lW=q===~=~===~=~=
~K=

1 l===~K==f==~===~=~=~=~=
==~K=
c==`~=i~=I====j=
K=
`~=~===~=q~=K=
`~=~==c~=~=q~NK=
a====q~N=

=~K=

2 r==q~==E==j~~=c=~===
qF=~=~=~=~=~K=

j=_I=^=i=~=c~=
CHAPTER 4

QJQP=

3 ^=~=b`=~=~=pK=
4 `==~=W=

5 j====~==q~K=
a====pK=
c=q==~I==k=^~K=
c=jrI==p=lK=
p=q~K=
`=^=m~K=
`=xlhzK=

QJQQ=

=m~=p~=_~I=jI=~=p~=p=d=

=
`=xlhzK=

6 q=K=
p==~====b`=~=
p~=
==~K==l=~==~===
=~==K=
o=

==~K=

Exercise 2: Tracks, Transfer


Stations, and Buffers
lW=q====~==~=q~OK=

j=_I=^=i=~=c~=
CHAPTER 4

1 `==q~N=

QJQR=

=~K=

2 a~=q~N=~=~===q~OK=
3 ^=~=q~p~====~=~===
~K=
c==q=~===qI=~=~==~=
q~p~====~=~=~==i~K=
4 ^=~=q~p~====~=~=
==~K=
c==q=~===qI=~=~==~=
q~p~====~=~=~==r~K=

=
p==`~=q===p==NMW=ENM=FK=

5 g===i~=q~p~I=~=~==~=pI=
=pmI=~=~=_K=

QJQS=

=m~=p~=_~I=jI=~=p~=p=d=

=
6 g=~==r~=q~p~I=~=~===
pmI=~=~=a~K=

7 p==i~=~K=
a~=~===q~===i~=~K=

j=_I=^=i=~=c~=
CHAPTER 4

=
`=q~=~K=
c=p=I==QK=
`=^K=
s=~===EF=======i~=
~I=~===xlhzK=
a~=~===_===i~=~K=
`=m~=~K=

=
`=xlhzK=

8 p==r~=~K=
a~=~===q~N===r~=~K=
`=r~K=

QJQT=

QJQU=

=m~=p~=_~I=jI=~=p~=p=d=

=
`=m~=~K=
c=p=I==QK=
`=^K=
s=~===EF=======r~=
~I=~===xlhzK=
a~=~===pmP=pm===r~=~K=
`=q~=~K=

=
`=xlhzK=

9 q=K=

j=_I=^=i=~=c~=
CHAPTER 4

p==~====b`=~=
==~K==m~==~==~==~=
=~===~K====
NOTE

Notice that the simulation has to warn up (the buffer has to fill) before the parts
load onto the transporter.

p=

=~=o=

==~K=

10 p~==K=
p=c=J[=p~

K=

Exercise 3: Tracks, Transfer


Stations and ParallelProcs
lW=q====~==~=q~PK=

1 `==q~O=

=~K=

2 a~=q~O=~=~===q~PK=
3 a==_K=
4 o~==_==~=~~mK=

=
5 b==m~~m===q~N=~=~===uJ
==PK=

QJQV=

QJRM=

=m~=p~=_~I=jI=~=p~=p=d=

=
NOTE

3x2 is what the Transporter holds.

6 p==i~=~K=
a~=~===m~~m===i~=~K=
`=m~=~K=

=
`=xlhzK=

7 q=K=
p==~====b`=~=
p~=
o=

==~K====
==~K=

j=_I=^=i=~=c~=
CHAPTER 4

Exercise 4: Tracks and Product


Sequences
lW=q====~==~=q~QK=

1 `==q~P=

=~K=

2 a~=q~P=~=~===q~QK=
3 ^=~=q~c===~K=
4 p==pN====q~cK=
a===pNK=
c=jr=I==p=`~K=
c=q~I==~==q~cK=
`=xlhzK=
5 b==~~===~W=
a====q~cK=
NOTE

Notice that it has been setup by checking the Format table checkbox in the
previous step. Warning: When leaving this checkbox checked when pointing to a
table with data you are given the option to delete all the data and reformat the table.

b==~~====W=

=
`==q~cK=

6 q=K=
p==~====b`=~=
p~=

==~K====

QJRN=

QJRO=

=m~=p~=_~I=jI=~=p~=p=d=

NOTE

Look at the Detailed Statistics Table on the Type Statistics tab of the Drain.

o=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=

==~K=

j=_I=^=i=~=c~=
CHAPTER 4

Lesson 5: Setup Time,


Assembly, and Dismantle
Objects
Introduction
q====~=~=~=~=K=
k==~====^=~====~K==
t==~=~==~===~=~==~===
~==~===~=====K==

MUs with a Capacity


q=q~=
q=`~=
c==q=I===j~~=c=~=~==
`~=

==q~==~====K=

q=`~=======~=~=~==
~==j=l==~=~=~I=I===~=
~==~=~K=
q=~=~=====~=~====
Q==~~==~=~K=

QJRP=

QJRQ=

=m~=p~=_~I=jI=~=p~=p=d=

The Assembly Station


c==q=I===j~~=c=~=~==
^=

==~====K==f====~=jrK=

`~~W=N=~=~I==~=
q=^=~=~==~==~=~=~I==
~==~===~=~=K=f====
~====~=jr~===~====
=^=q~===K==
t==~===I==~=~==
====^=~===~=~=
K=

j=_I=^=i=~=c~=
CHAPTER 4

QJRR=

=
^=~=W=p=k===~===~===
~=I===m==jr=qI==
==q~c=~=~======
===~===jr=K=

=
j~=jr==W=b=====
=Eq=J[=l=J[=j=J[=p=
mFK=

QJRS=

=m~=p~=_~I=jI=~=p~=p=d=

NOTE

The Show Predecessor option displays the number of processors on the


connectors in a frame. This option can be toggled on and off as needed.

^=W=p=a=jr=====
~=~==~===^~=jr==~==
=~===~=jrK=
b=jrW=p===^=~===j~=jr=
==k=jr=====K=

The Dismantle Station


c==q=I===j~~=c=~=~==
a~p~=
~=jrK=

==~====K==f====

`~~W=N=~=jrI===~K=
i~J=~~==K=
q=a~=p~====~===
~=jr==~==K=r====~=
K=

j=_I=^=i=~=c~=
CHAPTER 4

QJRT=

Exercise 1: Using the Assembly


Object
lW=q=~==q~i===q~q===
`^=~K=
m=

1 `~=~==~===~=K=
f==`~=i~=I=====
c~`==~==k=J[=c~K=
m===~=~=~===xcOz=K=
b=`^===~K=

QJRU=

=m~=p~=_~I=jI=~=p~=p=d=

2 p==~K=
c==`^=~= ==~I==
s=J[=l=J[=p=mK=
^=P=f~=K=
k~==fq~qI=fq~iI=~=lq~K=
^=N=i=K=
k~==c=q~iK=
^=O=jpm=K=
k~==cq~q=~=cq~lK=
^=N=^=K=
m~=~====~===~==
=K==j~====cq~q==
^===cq~i==K==

j=_I=^=i=~=c~=
CHAPTER 4

OPTIONAL MODELING METHOD:

Another good way to model this component, would be to model the


FeedTableTops as a Buffer with a Capacity of 4 (Processing Time of 0) and
FeedTableLegs as a Buffer with a Capacity of 16 (Processing Time of 0).
NOTES:

If you have Fix Side option set for connector positioning: Another option that can be
done is to rotate the object on the frame: Select the object in the frame. From the
Frame

window menu, select Icons -> Rotate (or press [Ctrl]-[T]).

NOTES:

If you have Angle-dependant option set for connector positioning: your picture will
look different:

3 p==fq~i=~===_===N=~=
K=

=
4 b=~===~=====^=
K=
a====^=~K=
p==q=~K=
b=~=m===OWMMK=
b=~=pJ===NWMMK=

QJRV=

QJSM=

=m~=p~=_~I=jI=~=p~=p=d=

kW=t===~=======
==~===K=
p==pJ=~K=
`==^=N=~=K=
a====K=

5 p==^=~K=
p==^=~K=
c=^=~I==mK=
c=j~=jr==I==NK==E~KK~K==
q~qF=
c=^=I==^~=jrK=

=
c=b=jrI==j~=jrK=

6 b=====I====
q~iI===~=~K==
`=lK=
c==mI==OK=
c==kI==Q=EKK==Q====~FK=

j=_I=^=i=~=c~=
CHAPTER 4

QJSN=

=
`=xlhz=~=xlhz=~~K=

7 ^==`^=~=~==K=
c==`~=i~I===`^=~=
=b=fK=
c==f=b

==I==f=J[=kK=

c==f=b ==I==c=J[=lK===
c==I===^mK=~==
lK=

=
`==`=K=
p=f=J[=q~~K=
p=f=J[=q~~I=~~K=
c==f=b=
`~

==~I==^=

K=

8 p===~~====K=
c==f=b=
j

K=

==~I==^~=

QJSO=

=m~=p~=_~I=jI=~=p~=p=d=

^===~~==~=====
===~K=

=
c==f=b=
`~=

==~I==^=

==

`==f=b=

=K=

9 p~===
p=c=J[=p~

K=

Exercise 2: Testing the Assembly


Component
lW=q=~==~=======
~K=

j=_I=^=i=~=c~=
CHAPTER 4

Procedure

1 `~=~==~===`^K=
f==`~=i~I====qj==~=
=k=J[=c~K=
m===~=~=~===xcOz=K=
b=q^===~K=
f==pI=~=a~I=~=b`=~==
^=~===q^=~K=
o~=====p|q~iK=
q=~=p|q~iI===~==f=J[=
o~==K=
`~=~====p===`^=
~K=

=
f==p=f~=I==fq~qK=
`=xlhzK=
`~=~====p|q~i===
`^=~K=

=
f==p=f~=I==fq~iK=
`=xlhzK=
`~=~====`^===a~K=
m==~==W==

QJSP=

QJSQ=

=m~=p~=_~I=jI=~=p~=p=d=

=
2 j~==~==p=~=====jrK=
a~=~===q~q===`~=i~=jr=
===pK=
a~=~===q~i===`~=i~=jr=
===p|q~iK=

3 o==~=====
c==c~= ==~I==p~Lp=
=
==~==~K=
f==q^=~I====`^=
=~==~=~==K=
k=~==~==~=~=~==~====
~=~K==q====~K=
c==c~= ==~I==o=
=~=~==EF==jrK=

4 `=~==~K=
5 p~===
p=c=J[=p~

K=

===

j=_I=^=i=~=c~=
CHAPTER 4

QJSR=

Exercise 3: Using the Assembly


Component in the Plant

lW=q===^====~=~=K======================================
mW=

1 ^=`^==~=~===m~|K=
f==j====`~=i~I=~=m~|RK===
k~==m~|SK=
l=m~|S=~K=
a==^=pm===m~|S=~K==
j========`m~p==
~===`^K=
^==~===`^=~=E==
q^=~FI=~=~==~==I===
~===^=pmK=
f=~=pK==
a~=~===q~i===`~=i~=jr=
===p|q~iK=

QJSS=

=m~=p~=_~I=jI=~=p~=p=d=

`=p|q~i===`^=K===
t====`^I===
fq~i=~K=

=
`=xlhzK=
^=~====`m~===
`^K=
`==fq~q=~K=

=
kW=q==~=~===fq~i=~==~==
~=====K=
`=xlhzK=
^=~====`^==m~~K=

2 o==~K=
c==~=~I==p~Lp=
~==~K=

===

j=_I=^=i=~=c~=
CHAPTER 4

QJST=

=
kW=l=k~=
=~K=

=~=====~=~=~=

c==~=~I==o=
====
~=~==EF==jrK=

3 p~===
p=c=J[=p~
=

K=

QJSU=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 6: Attributes
Introduction to Attributes
b~===m~=p~=~=~===J=~=
E=~=I=I==~~I=~=~====
I=KF=~==E=~=~^I=a~I=
qcI=KFK=
^=~===~==~==~=K=^==
=~==~==~==~=~K=f=~~=~=
~=~L=~===~=~=~===~=
==K=
q=p=^=~=j==~=~=J=
~=~====K=l===J==
=~====~=
p=^=~=j=======~=
W=
f==`~=i~=
f==q=
f=~=c~=
p=^=~=j===l====
c~K=
v=~=~====~==xcUzK=
f=~==~==~===JI==
~K=m~=p~=~==~====J
=~K=

Attributes of Objects
aJ==~===~===~=~===
~===~===~K=

j=_I=^=i=~=c~=
CHAPTER 4

k~==~===~===
p~==~~====~I====~=
s~==l=~=~=~=~K==a====K=
f=L=k=f==p===~===EF==
==EF=
t~~==p==m~=p~=~=~==~=
==~=

Exercise: Viewing All Object


Attributes
mW=

1 `=~==~K=
2 l====~===pmK=
f==`~=i~I====j~~c=K=
o===pm=~==p=^=~=
jK=
3 c==~======~====
E~KK~K===~==~~=~==FK=
f==p=^=~=j=I==
^Lj==p~~=r
^Lj==^~=r=

K==Eq=
=~=

^Lj==b=r=~=
=~=FK=
`=p=o~=l=^=
K=
`=p=j=

~=

===~==

===~==K=

QJSV=

QJTM=

=m~=p~=_~I=jI=~=p~=p=d=

4 i~=~=~~=~==~=pmK=
i~==mq=~K=
f===~===~=~=~=I===~=
=NWMMKMMMMI==~====~=~=~=
==m~=p~=~=~=K===
m==mq=~=~==xcNzK==q=e=
=~=~=~==~K=
`==e=K=
5 `==p=^=~=j===
6 l====~===q~qK=
f==`~=i~I====jr=K=
o===q~q=~==p=^=~=
jK=
k=====~==~=K=
i===~====~===K=
=
=
=
=

j=_I=^=i=~=c~=
CHAPTER 4

Lesson 7: Data Types and


User-Defined Attributes
Data Types
a~~====~=~===~~====~=
=~~==~=~~K=m~=p~==~===~~=
K==
c==~~==I==~I==~===~=
=K=c==~~==_~==~===
qorb=~=c^ipbK=

a~~=q=

s~=

_~=

q==c~=

f=

t=k=

o~I=iI=pI=tI=
j=

k=

a~=

~=~=
ELjjLF=

q=

=~=
EWWKF=

a~=

~=~I==
==ELjjL=
WWF=

iI=p~I=n=

====

q~=

=====
=

l=

o==~===

QJTN=

QJTO=

=m~=p~=_~I=jI=~=p~=p=d=

===

User Defined Attributes


a=~=J=~==~==~=~==~=
=======K=a==
~=I=m~=p~=~=I=~====
~====J=~K=
v=I==~I==~==~===I=
I===~I==I=K=v=~==~==
==~K==

=
v=~===k~I==a~~=qI=~=~=s~==~==
~K=v=~==~=~=~===~==
=~I===~=~=~===~===
=~=K==

j=_I=^=i=~=c~=
CHAPTER 4

QJTP=

Defining a User-defined Attribute

a===~===r=a=^=~==
==K=q===~====
~==~=~~=K==
`=k====rJa=^=K=p=~=
~~==~==~=~K=

Exercise: Creating Custom


Attributes
mW=
`=~==~K=

1 l======q~qK=
f==`~=i~I====jr=K=
a===q~qK=
2 `~=~===~=
f==KjrKq~q==I===rJ
a=^=~K=

QJTQ=

=m~=p~=_~I=jI=~=p~=p=d=

`=kK=
b=jc^===k~K=
c==a~~=I==K=
c==~=s~I==K=

=
`=xlhzK=
`=xlhzK=

3 m~==~===~=m~|=~===E===
FK=
4 i=~====q~q====~K=
a======q~q===m~|=~K=
`==rJ=^=~K=
k==~==J=~===~===
K===

j=_I=^=i=~=c~=
CHAPTER 4

QJTR=

5 l====~===q~qK=
f==`~=i~I====jr=K=
o===q~q=~==p=^=~=
jK=

QJTS=

=m~=p~=_~I=jI=~=p~=p=d=

=
i=====~===~=
~===K=
kW=q==~======~=====
====K==v==~==~==~=
==~===I=====p~~=

=E=

~=~=d~
=~=^
====~===
~===~===~K==
t===========
~==~====~=~=n~K=
=
=

j=_I=^=i=~=c~=
CHAPTER 4

QJTT=

Lesson 8: Working with


TableFiles
Introduction to TableFiles
c==q=I===f~=c=~=~=
=q~c=

==~====K=

kW=^=q~c===~=~=K==f==~==~=~==m~=
p~K=
v=~=~==q~c=~===W=v=~==
=k==LI==~~====I==
~==~I=~=~=I=~=~=~=`=~L=~=
o=====~==~====K==

Inherit Contents/Inherit Format

p=====~===~==
~==~~====EFW=
a~~===~=~===~===
==f=c~==Ep=f~FK=

QJTU=

=m~=p~=_~I=jI=~=p~=p=d=

=
^==~~=f=`I==~===
===~K=
^==~~=f=c~I==~===~=
==~K=q=~=~~=f=`K=

Activating Column Index and Row Index

^~====~L===W=b=
~=~==~==~==~~K=
m~=p~=====~====
=~==~=~===L=MK=
p====`=f=~==o=f==
===~===c~=K=

j=_I=^=i=~=c~=
CHAPTER 4

Settings of the TableFile

q=~====~=I======
==K===q=~======q~cI=
=p=^========q~c=E===
b=J[=p=^=~FK==p=c~=J[=c~=~==
==~====q~cK=

QJTV=

QJUM=

=m~=p~=_~I=jI=~=p~=p=d=

A TableFile Including Subtables

q=~=~=~I=~==~I==~=q~cK==q=~=
W===~====q~c=~==c~K==f==
i=c~=I===a~~=q=~K==c==a~~=I=
=q~K=

=
v=~==~==~===q~c=~=~=m~=
p~==~~K==f~~==~=E=~==F=
~=J====~==l=lK==l=aJ
=====q~c====~K=

Exporting and Importing Data


q=~~==~=~=~===~=~====~==~==
=~~K==c==~===~~=L=
j=b==Kuip==~=~===~=~K==q=
=~=~=~===~=~==~=~====
=~=K=

j=_I=^=i=~=c~=
CHAPTER 4

QJUN=

Tables Defining How the Source


Creates Parts
f=~=p==jr=I====~==
`~I==~=W=
b==~==~=q~c=~==^=
kW=m~=p~=~~~=~==~===
==~==^K=
^==~==~I====jr==~=
=~=~=~===~K=

QJUO=

=m~=p~=_~I=jI=~=p~=p=d=

The TableFile Sequence of the


Source
l==q~c=~=====
jrW=a~==jr=====jr===`~=i~==
==jrK=
kW=b=~==K=
k~W=f==~=I==~=~=~=~===jrK=
^W=b=~=~===J~I=~===J~==
J=K=b==J=~=~L===
~===~=~==~====~~=
K=

Using Attributes of MUs as an Exit


Strategy
l==pmI===b=p~=~K==c==p~I=
=^==~==pm==~=~==
jr=~===~==~=~==K=
q===`=^=~~====J==
^=I=~==^K=
`=l=i=~===~===~===~=
I===~=~=~===E===
`F==jr=====~K=
q=a~========NK=f==
~==~=~===I=m~=p~===
jr====N========
====K=

j=_I=^=i=~=c~=
CHAPTER 4

Introduction
q=~====~==~===~===
~=W===~K=
t=~==~=~==~==NMBK=
c==~==~=~====~=W=b~=
NM=~======~=~=K=
q=~=======~==~==
=====~K==
c====~=~=~~=I=~=~=
J=K=

=
b~===m~=p~=~=~===J=~=
E=~=I=I==~~I=~=~====
I=KF=~==E=~=~^I=a~I=
qcI=KFK=
^=~===~==~==~=K=^==
=~==~==~==~=~K=f=
~~=~=~=~L=~===~=~=~==
=~===K=
q=p=^=~=j==~=~=J=
~=~====K=l===J==
=~====~=

QJUP=

QJUQ=

=m~=p~=_~I=jI=~=p~=p=d=

p=^=~=j=======~=
W=
f==`~=i~=
f==q=
f=~=c~=
p=^=~=j===l====
c~K=
v=~=~====~==xcUzK=

v=~==~===J=rJa=
^=E`=^FK=m~=p~=~==
~====J=~K=
=

j=_I=^=i=~=c~=
CHAPTER 4

Lesson 9: Production
Schedules
Introduction
q=~=~=~====jr=~===~W=
f=~~===~==E`~F=
f===~==~=~=====W=
p===jr=====E~=
~F====
p=~===jr====
=E~=~F====
o~===jr===~==~=~==
~=====
m~===jr=~===~==
=~=

Cyclical Source Sequence


l==p==~==jr=pI==p=
~==~==jr==~=~=K=
q=======~=~===~=
=jr=~K=q=~==~=I==~=
~====~=====~===~=
====K=p==~==~==I=
===~==~K=k===~=~==
===~K=

QJUR=

QJUS=

=m~=p~=_~I=jI=~=p~=p=d=

Exercise 1: Enhancing the


Assembly Component to use a
Product Schedule
lW=q=~==~===~==P=
=~=Q==~K=
mW=

1 f=~=q~cW=
c==`~=i~=c~`=I==
==q^=~K=
c==f~=c=~===qI=~=~=
=~=q~c===q^K=
o~==q~c==mpK=

2 o==m=pK=
a====pK=
p==^=~K=
c=jr===p=`~K=

j=_I=^=i=~=c~=
CHAPTER 4

c=q~==p=l
K=
f==p=l=I===mp=
~K=

=
`=xlhz=~==xlhz=~~K=
NOTE

The tablefile is now properly formatted. Sequence Cyclical will cycle through the
MUs in the list in same order each time. Other options, such as Random, could
also be used.

3 p==m=pK=
f==qm~^
=~=I===
==mpK=
f==`~=i~I====jr=K=
a~=~===q~q===N=EjrFI=N==
=~===mp=

=K=

=
a~=~===q~q===OI=N===
~===mp= =K=
b==~===~====~W==

QJUT=

QJUU=

=m~=p~=_~I=jI=~=p~=p=d=

==
NOTE

For Sequence Cyclical the second column specifies how many MUs of each row
to create. For Random the second column specifies the percent of the MUs in the
row to create (in this case 70% and 30%). For the amount created to stabilize at
these frequencies on the Detailed Statistics Table (on the Drain), several
thousand objects should be created.

kW=P=Ek~F===~=~===~===jrI=
~Q=E^F===~==~=J~K=
o====~=~=EJ~F=~==l=
l=E===FK=
f===~=I==ua===k~==
^=~=N==OK=
f===~=I==va===k~==
^=~=Q==OK=
kW=c=~=jrI===ua===va===
==~~===jrK=

=
`==K==

j=_I=^=i=~=c~=
CHAPTER 4

o=====~=EJ~FI==l=
l=E===FK=
f===~=I==ua===k~==
^=~=N==OK=
f===~=I==va===k~==
^=~=P==OK=
`==K==
`==mp=

=K=

4 b~==~=~~==~=P==~=Q==
~K=
kW=i~===I=========
=~===~=~==~====
J==I==~==E===~=~~=
~=FK=
c==c~`====`~=i~I=
===`^=~K=
a~=~===~=cq~q=~=^K=
a~=~=====c~===x`z==
K=

QJUV=

QJVM=

=m~=p~=_~I=jI=~=p~=p=d=

=
o~===cq~q=~=^===
cq~qQ=~=^Q=K=
o~===cq~qN=~=^N==
=cq~qP=~=^P=K=
a===^PK=
f==^====^=~I==lK=
f==~====kI=~==Q==~=PK=
`=xlhz====~=K=
f==^=I==xlhzK=
p=~===~=W=

j=_I=^=i=~=c~=
CHAPTER 4

QJVN=

5 b~~====q~q===~~===~=
P===Q=K=
a===fq~q=~=K=
p==b=p~=~K=
`=_K=
`~==p~===jr=^K=
`=^K=
p==^===fK=
`=xlhzK=
a===fq~q=~=K=
NOTE

Exit Strategy Range Values: In this example we will specify where the MUs go
based on an attribute (3 legged table or 4 legged table). We could also specify
ranges to control where the final MU went. The Exit control would then need to be
a Method. We will discuss how to setup and use Methods later in this course.

l==b=p~=~I===l=i=K=
c=^I==vaK=
c=s~I==PK==

QJVO=

=m~=p~=_~I=jI=~=p~=p=d=

NOTE

The value is case sensitive if it is a string.

c=pI==OK=
kW=cq~qP===O=~==~==
~=cq~qQK=

=
`=xlhz=~=xlhz=~~K=
`=~==~=K=

6 q==~===~K=
c==qj====`~=i~I==
==q^K=
a===b`K=
c==b=`=

=I=o=

=~=

p~=
==~K=
a~===~=~=~=~K=
o=
=

==~==K=

NOTE

For example, a product schedule to control a product variant such as color of table
tops could also be added.

7 p~==K=
c==m~=p~=I==c=J[=p~

K=

j=_I=^=i=~=c~=
CHAPTER 4

Exercise 2: Adding the ProductList


to the Class Library
lW=q=~==mp===~=~K===p=
=~====mp=~I=~===
====pI===X====
===`~=i~K=

1 `==m=iK=
p==mp=q~c===q^=
~K=
`====~==b=J[=`=E=x`zJx`zFK=
2 m~==m=i=
f==`~=i~I====c~`=
=~==m~K=

=
3 o==m=p===~=m~|=~K=
c==j====`~=i~I===
=~=m~|=~K=
c==c~`====`~=i~I=
~=~===mp=q~c===~=
m~|=~K=

4 o==m=pK=
f==~=m~|=~I=====b~=
p=K=
p==^=~K=
c=jr===p=`~K=

QJVP=

QJVQ=

=m~=p~=_~I=jI=~=p~=p=d=

c=q~==p=l
K=
f==p=l=I===mp=
~K=
`=xlhz=~==xlhz=~~K=
`=~==~=K=

5 p~==K=
c==m~=p~=I==c=J[=p~=

K=

Exercise 3: Enhancing the Milling


Component to use a Product
Schedule
lW=q=~=======~=
~===~===~==~==~=~K=

1 p===~===~=~I=~===
====~==~I======
K=
c==j====`~=i~I===
=~=`j=~K=
a===jNK=
p==q=~K=
c=m=I==c~I=~==]Kva=G=
NRK=
kW=q=======va====
~===~=Eq=]==~=~=K==t==
~=~====~===FK==f==~I=va=
=~==P=EF==Q=EFK==p======
=QR===SM=K=
c=pJ=I==MWPMK=
kW=f==~=N======~==~=
==~K=

j=_I=^=i=~=c~=
CHAPTER 4

QJVR=

=
`=xlhzK=
c=jOI==~=m==~==]Kva=G=
QRI=~=~=pJ===MWPMK=

2 o==m=p===qj=~K=
c==j====`~=i~I===
=~=qj=~K=
c==c~`====`~=i~I=
~=~===mp=q~c===
qj=~K=
3 o==m=pK=
f==~=qj=~I=====pK=
p==^=~K=
c=jr===p=`~K=
c=q~==p=l
K=
f==p=l=I===mp=
~K=
`=xlhz=~==xlhz=~~K=

4 p~==qj=~K=
o
=~=p~
==~K=
i=~==q=p~===~=~==kf==
===~K=
o

==~K=

5 p~==K=
c==m~=p~=I==c=J[=p~
=

K=

QJVS=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 10: The Event


Debugger
Introduction
f============m~=
p~W=
b=a=J=q======miqPMM=K===
j=a=J=q=======~==
=miqPMM=K=

Event Debugger
r==ba==~==m~=p~==
=~===~=~=K==
r=======K=f=~=~==~=~=
=====~=K==
f=~=~====~==~=====
===

The Event Debugger Can Be Used To:

p=======~=~=K=
p=_~====~=K=

To close it:

`=`K=

j=_I=^=i=~=c~=
CHAPTER 4

Finding Objects and Text


q=c=l=====~=~===~==~=
I==~==~===~====~==
==~====~=K=

Examples of Event Debugger


Usage


Example 1

f==~==~=~==ElF====b==
=fa=NI=~=~==~====b=~==
=~~K=

=
f=====~=~=~==~=bI===
fa===jrK=

Example 2

f==~=~=jr=~=pmN==~=~K=

QJVT=

QJVU=

=m~=p~=_~I=jI=~=p~=p=d=

=
q======~=oI=~==~==
b`===~=~==~=~=~K=q=
p==pmNK=

Example 3

f==~==jr==~=~=~=~==pmN=
=~=~==~=~==~K=

=
m~=p~==~=~==~=~===~=
KjrKb=~==pmN=~=~=l===
N==~=P=K=

j=_I=^=i=~=c~=
CHAPTER 4

^====~===~==~=
=~=K=b=========
`K=^==~==~=~=~==~=~==
=~===I=KKI=~I===~K=
v=~=~==I==~=~=~=~=~=I=
====~~K=

Example 4

f==~===~====~=~=~===~=
~K=

=
m~=p~==~=~I==~=~===~=
KjrKbI====~=NMM==I=~=~=l=
==pmNK=k=~=======
===q=J[=j=pLm=J[=r=J
[=iK=
f====m~=p~==~=~=~==~=~=
~=I==~=~=====q~=c===b=
a==~===q~=~=K=
f=====~=~=~===~=~=I==~=
=~=====q~=c===_~=K=

Example 5

f==~==~====b===fa=V=~=
=~=~==~===~==~=~=K=

QJVV=

QJNMM=

=m~=p~=_~I=jI=~=p~=p=d=

=
t======~=~I=m~=p~=
=~=~==~=l====b===fa=P=
~=======Wyby~PKK=k=~=
=======q~=~===
=b=a=K=t==~===_~=
~=I=m~=p~===~===
==~==~=~K=
f==~=~====l=K=v=~I==
I=~==~===~~~===I=~==
i==p=bK=

Exercise: Using the Event


Debugger
lW=q======K=
mW=

1 l==~=m~|=~K=
2 l==b=a=K=
a===b`K=
`=i=

3 p~=

===b=`=K==

==~K=

j=_I=^=i=~=c~=
CHAPTER 4

QJNMN=

4 i=~=~===K=
p
==~K=
o========b=a=
=~==l=p=oK=
`===K=

5 =`==b=a=K=
6 c=~==~====E=~====
==~=====FK=
f==`~=i~I====_~= =~==c=
lK=
f==c=l=I==jNK=
`=cK=

QJNMO=

=m~=p~=_~I=jI=~=p~=p=d=

=
o====c=l===~==
lKK=
`===K=
o====c=l===~==
pK==q====E===`~=i~=
=====~FK=
`==c=l=K=

7 c=~=====~=K=
f==`~=i~I====m~|S=~==c=
lK=
c=k~I==jNK=
`=cK=

j=_I=^=i=~=c~=
CHAPTER 4

QJNMP=

=
`==c=l=K=
=

QJNMQ=

=m~=p~=_~I=jI=~=p~=p=d=

Chapter Summary
f==~===~=~W=
e===~===~=====
=K=
e===~~==~=~==~==
K==q=_I=m~~=mI=~=p=~=~==
K=
e======~=~===~~=
=~=K=
e===~~=~==~===~=
~=~=K=
e====~===~===~=
~=K=
=
=
=
=
=
=
=

t=~=l=p=q=
CHAPTER 5

Chapter 5

Workers and
Other Selected
Topics

About This Chapter


q=~==~===I=~I=~I=
~=~===W=
i=NW=p=`~~I=~=RJPI==~====
=~==~=====~=~K====
i=OW=o=b=~=fI=~=RJNSI=
=====I=I=~=K=
i=PW=t=_~I=~=RJPMI====
K=
i=QW=c~=~=p=`~~==oI=~=RJ
QMI=========K=
i=RW=t=`~=m~I=~=RJRMI====
===~=~K==
i=SW=t=`~I=~=RJRVI===~=
=K==
i=TW=c~=fI=~=RJSPI=====
==~=~K=
i=UW=^=t===m~I=~=RJSQI==
===~====~K=

RJN=

RJO=

=m~=p~=_~I=jI=~=p~=p=d=

i=VW=q=pI=~=RJSVI==~===
==~===~==~K=
i=NMW=^=~=p=p~=lI=~=RJUOI=
=====~~===~===
K=
i=NNW=i~=~=`^a=j=~=~=_~I=~=RJURI=
===~=~=`^a==~=~=~K=
i=NOW=m==b=j~~I=~=RJVOI=
=~==~=~=====~~K=
i=NPW=m~==o==`=oI=~=RJ
NMNI=====~==~==K=
i=NQW=m=f=^=qI=~=RJNNRI==~==
=====K=
=
=
=
=
=
=
=
=
=
=
=

t=~=l=p=q=
CHAPTER 5

Lesson 1: Shift Calendar


Introduction
f==I=====p=`~~=K==r===
=======~K==f====
=~=~====~===~=~===K==
_~=E~F=~=~=~=~==K===
_=~~=~===~===p=`~~=~=
=~==~=~===~=~==
~~==j~=~=t~I==~==
====~====E=~===
5=~=~===FK=

Shift Calendar Object


c==q=I===o=~=~==
p`~~=

==~====K=

`~~W=M=
f~===

Shift Times tab:

a===p`~~===~=~====
=K=

RJP=

RJQ=

=m~=p~=_~I=jI=~=p~=p=d=

=
_====I=~~=f~=~==
^K=
b==~===pI====~=EcFI=====
EqFI=~==~==m~===p=q=~K=q==
=====~I======jI=qI=
tI=qI=cI=p~I=pK==
k=~==~=~K=t====I==
==~=~K=m~=p~====~=
r~q===~=~K=

t=~=l=p=q=

RJR=

CHAPTER 5

The ShiftCalendarReduced Times




Calendar tab:=

=
b==~====~====~=~=Ea~=
cI=~=a~=qF====~====Eo=qFI=
~=~=`======`~=~K=v=~=
====g~~=OMNO==~=~=MOKMNKOMNO==~=
OMMOLMNLMOK==
b======~~==~===
====o=qK=c======
~==~=~=I========
p=q=~K=
t==~~====~=~==~=~=~I==
==~===o=q=K=

RJS=

=m~=p~=_~I=jI=~=p~=p=d=

Importing a Shift Calendar=

=
v=~==~=~~=~=~==~=~==
~===~=~J==W=
`==~===`~~=~=~==fK=

t=~=l=p=q=
CHAPTER 5

RJT=

Activating the ShiftCalendar=

=
q=~~=~====p`~~I=====
W=
j=NW=a~====p`~~==~====
E~=~=F=
j=OW=b==~===p`~~====
`=~===~~===E~=~=FK==
j=PW=a~==~~===~=====
p`~~==E~=~=FK=

RJU=

=m~=p~=_~I=jI=~=p~=p=d=

Exercise: Controlling Pauses Using


the Shift Calendar
lW=q===~=~~=~=~===
===m~=~K=

Overview:

q=~===~===~=K=q===
==m~=~====~==~K=

Procedure

1 `~==m~=`K=
`~=~==c~===c~`=K===
k~==`m~K=
^==f~=K=
k~==f=~=lK=
^=~=j_=K=
^=~=^=K=
k~==m~NK=
^=~=p==
k~=_pK=
`===W=

t=~=l=p=q=
CHAPTER 5

RJV=

f~=kW=k==_p=~===m~N=
=_=~K=

=
2 p===`~~K=
aJ===j_K=
b=~=`~~==NMMK=
`=xlhzK=
3 ^=~=p`~~=~=~~====m~N=K=
c==o=~===qI=~=~=
p`~~K=
a~=~===m~N====p`~~K=
kW=q=p`~~======`=~==
=m~=K=
4 b====~==~====~==
=K==
a====p`~~K=
l==p=q=~I===~=K=

RJNM=

=m~=p~=_~I=jI=~=p~=p=d=

b===~W=

=
m~==t~W=NMWMMJNMWNRX=NOWMMJNOWPMX=NRWMMJ
NRWNRK=
m~==tW=NMWMMJNMWNRK==
`=xlhzK=
5 p==_pK=
c==jr====`~=i~I=~=~===
_=~===_pK=
6 p==m~N=~=K=
f==c~I===m~NK=
c=^=~I==mK=
c==^=I==^~=jrK=
`=^K=
`=lK=
c=m==OI=~==k==NK=
`=xlhzK=
p==q=~I=~==RWMM===m=K=
`=xlhzK=
7 p=m~O=~=K=
f==c~I=~=~==m~N===x`z==
=K=
o~=m~NN==m~OK=

t=~=l=p=q=
CHAPTER 5

`===W==Ek=~=_p==~=
==m~O==_====FK=

=
8 p=~=~~=~====`m~K===
`=~==c~=K=
r==f=b==~K===
~=~~====`m~=K===

=
p===~==`==~=~==q~~K==
`~=~===~~====
`m~K==q======EF=~==
==~=E=~FK=

RJNN=

RJNO=

=m~=p~=_~I=jI=~=p~=p=d=

=
f==f=bI==~=~=~===
`m~=K=
9 q==`m~=~=====m~|=
~K==
`~=~=qm~=~===qj====
`~=i~K=
^=~=pI=~=a~I=~=~=b`K=
^==`m~=~K=
`====p=~=a~K=

t=~=l=p=q=
CHAPTER 5

=
a====b`K=
f==b`I==p=~K=
b==~=~=a~W=s=~=~=~===
===a~=K=
`=qK=

=
`=^K=
p~
==qm~=~K==
`==~===~=~=E~==~=
====b`FK=
o
==~K=
`==qm~=~K=
10 p=~==m~|==`m~K=

RJNP=

RJNQ=

=m~=p~=_~I=jI=~=p~=p=d=

a~=m~|SI=~==m~|TK=
l=m~|TK=
a==m~=pm==m~|TK=
j~======p=K=

kW=t===~==~===~===
~~====E~====FK==k==~=
=~=p`~~=~K==t======~=
====~=pm===~=~=
K=
f==`m~=~=~===m~=
pmK=
`==`m~K=

=
p==b`W=b==~=a~===
b`=p=~K=
`=q=====~=Eq===~=FK=
11 o==~=m~|=K=

t=~=l=p=q=

RJNR=

CHAPTER 5

==~K=

p~
==~K=
s=`m~===~==K=

==~K=

12 p~==K=
p=c=J[=p~=j
=
=
=
=
=
=

K=

RJNS=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 2: Resource Exporters


and Importers
Introduction
q=======_=
b=

I=fI=~=

K=

The Concept
t=~====~~I====~=~==~=
~===~=K==m==~==
==~=~~~I==~=~=I==
~=I=~~=~I=J=~==
q=~====~==~=~=jr=~I==
~~==f===K=
m~=p~=~======_==~==
=======~K=
q=b==~===~===~=
~L~~===~======_K=
NOTE

An Exporter is an individual (or a group of people whose members you cannot


distinguish individually).

q=_=~~====~=~===
=~~~K==

t=~=l=p=q=
CHAPTER 5

RJNT=

Types of Importers
q=~======m~=p~W=
p===r===K==i~===
f=~K==`~==~===~~==
==
m===r===K==i~==
=f=~K==`~==~===~~==
==
c~=E~F===`~===~=pm=EKK=
~FK==i~===c~=f=~K=
t=======~==~====
=~====~K=

Importer Settings
p====f=~===pm=K=a==
====^=K==

RJNU=

=m~=p~=_~I=jI=~=p~=p=d=

v=~==~=o=I=~=o=I=~=~=o~=
=======K=

=
NOTE

To fail a station based on the provided services: On the Importer tab of the
SingleProc, uncheck Release when services are failed. For requested Services,
enter Expert. On the Exporter set up the available Services to be Unskilled.
When you run the simulation, the SingleProc will fail when an MU enters the station.

b=~=~~=K==

t=~=l=p=q=
CHAPTER 5

Exporter Settings
a==`~~=E~=====~==~=F=~=
=_=E=~~F===p=E=FK==^=
m==NM===~=NK==

RJNV=

RJOM=

=m~=p~=_~I=jI=~=p~=p=d=

=
`=p=~=====b=K==

t=~=l=p=q=
CHAPTER 5

Exercise 1: Introduction to
Importers and Exporters
lW=q====K=
1 `=~==~K=
2 l===~K=
c==`~=i~=I====b=
K=
`~=~==~==~=~==p|_K=
3 p=====~K=
^=N=pI=N=a~I=N=b`=~=P=pm=
K=
`==~=W=

=
4 ^==_=~=bK=
c==o=~===qI=~=~==~=
_=
===p_=~K=
c==o=~===qI=~=~===
b=
===p_=~K=
k~=====b|gNK=
k~====b|gOK=

RJON=

RJOO=

=m~=p~=_~I=jI=~=p~=p=d=

=
5 b=~=`~~==N==~=bK==
a===b|gN=bK=
l==^=~I===`~~====NK=
NOTE

Because the capacity is set to 1, this exporter will represent one person.

s==_====_K=
`==f~===pK=
`=p==
b==N====E~=FK===

=
`=xlhzK=

t=~=l=p=q=
CHAPTER 5

RJOP=

=
`=xlhzK=
o~=====b|O=I==
~=====O=K=
6 ^~==_====pmK=
a~=~======bN=K=
a~=~======bO=K=
a~=~======bP=K=
7 p===pm=K=
a===bN=K=
p==f=~K=
`==^=K=
`==f~===p==pJr=
~=mK=

RJOQ=

=m~=p~=_~I=jI=~=p~=p=d=

`=p==pJr=~=mK=
c=pI==N=E~=FK===
`=xlhzK=
c==~====bO===~==
==OK=
c==~====bP===~==
==NK=

8 `==~K=
p==~====b`=~=
p~=

==~K=

=
t~==b=~====iba===~=
K==

=
NOTE

Another option: Plant Simulation automatically switches the icon of the Exporter,
provided you defined the operational and working icons and you activated the
usage of State Icons (Objects -> State Icons / LEDs -> Use State Icons is
checked) in the Icon Editor of the exporter.

Ep=~F=o=

==~K=

Exercise 2: Adding a Setup


Exporter
lW=q=~=~==K=
1 `====~===K=
2 ^=~=b====K==
c==o=~===q=I=~=~==
b===~K=

t=~=l=p=q=
CHAPTER 5

RJOR=

f=====~=_I=~=~===
_=====K=
o~===I==b|K=
3 p==K=
a====b|K=
`==f~===pK=
`=pK=
`~=====K===
NOTE

Whatever is entered here, it must be entered the same on the SingleProc (case
sensitive).

=
`=xlhzK=
`=xlhzK=
4 j==bN=~=====I===
=~~===pJr=~==mK=
a====bN=pmK=
p==f=~K=
r==`==K=
`=^K=

RJOS=

=m~=p~=_~I=jI=~=p~=p=d=

`=pJrK=
`=p==pJrK=
c==pI===I==xcOzI=~==K=
`=xlhzK=

NOTE

E1 is already setup to use the Job1 service Processing.

5 b=~=5=~=~=W=
l==q=~I==~=p=q==NWMMK=
NOTE

When a Setup Time is specified on the Times tab, the definition of when setup is
performed is done on the Set-up tab. In this case we will take the defaults: Perform
setup automatically when the name of the MU changes. A matrix could also be
setup in which there is a different setup time to setup the current MU which
depends on which MU was last processed.

p==pJr=~K=
i~==~==Ef==~~~===~==jr=
k~=~FK=
`=xlhzK=
6 o~==Q==bO=~=bPK=
7 `~====~==~=====~=EKK=
====~=~=FK=
^=~=q~c====c~=I===
f~=c=~===qK=
k~==K=
a===pK=
c==jr=I==o~K=
`====q~K=
j~==c~=~==K=

=
`=xlhzK=
a====q~cK=

t=~=l=p=q=
CHAPTER 5

p===~=W=

=
`==q~c=

=K=

8 ^=~=P======~=====bP=
~K=
a===b|gNK=
o~===b|gN|PK=
m=pK=
o===~====~=~==^=K=
f=====PK=

=
`=xlhzK=
`=xlhzK=
a====bP=pmK=
`==f=~K=
`=mK=
`=p==mK=
`~=====gPK=

RJOT=

RJOU=

=m~=p~=_~I=jI=~=p~=p=d=

=
`=xlhzK=
`=xlhzK=
9 q==~K=
p==~====b`=~=
p~=
p

==~K=
=~=====K=

NOTE

The Setup_Broker frame contains the finished model.

i=~==_=~W=a===_K=
p==p~=~K=

=
i=~==~=E===~=FK=
NOTE

The table shows an evaluation of the individual services provided by the exporter
(and worker) objects (i.e. the number of mediations, total time of mediated services,
mean duration of occupancy, etc)

i=~==_=~W=i~=~====
_K=
p=s=J[=l=f=E~====~==
==FK=
`===K=

t=~=l=p=q=
CHAPTER 5

p=s=J[=p~=f=E~=====
=~===FK=
`===K=
p=s=J[=b=~=s=J[=l=pK=
kW=c=qI=M=Z=c~==I=N=Z=p==
I=~=O=Z=m==K==i~=====
=~===~====~K=
`===K=
10 o=

==~K=

11 p~==jK=
p=c=J[=p~=j

K=

NOTE

We will learn how to do Broker controlled frame animation (change icon to show
worker present, not present, or failed) later in this course.

=
=
=
=
=
=
=
=
=
=

RJOV=

RJPM=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 3: Worker Basics


Introduction
f=====~======K=

The Concept
q====~===LL=
~==m~=p~I===~=====
~~=======EKK=pmI=
m~~mI=^I=~=a~F=
q=====~==~==I==~=
~====~=K=
tm=
==
^I==I=~=I=I=~==
K=
a===~~~K=f====~==
~======~=K=f==~=
==~=~====~=~~=K=
t~=
==
m~=~==~=~=~==~K=
q=~=======K=q=~=
==~==~=~K==

t=~=l=p=q=
CHAPTER 5

_=
=
o=~~I==~==~=~=
~==~K=
d~=~=====

=
a=======~=~I===
~~====~K=

WorkerPool
r=~=~=======~=tmK=
q==~=========
`~=q~=E==~~=~=I===
=~F=

RJPN=

RJPO=

=m~=p~=_~I=jI=~=p~=p=d=

=
f==~==~===~==~=~==I=
===~=~=====K=q=~==
======~~===I==~=
==RMB=====K=

Workplace
r=~=~====~=~=t~==~=~~=
=K=

t=~=l=p=q=
CHAPTER 5

RJPP=

f==~===~===~==~===
=~=~I==~===~=N=~==~=~=
~===~====K=
kI=~==~=====~==~=~=~=
K=
a==~==~==~=~=~K=

Worker Stays at Station

q=~===~=~=~=~=~====
==W=
`==t=~==~====
===t~K=

RJPQ=

=m~=p~=_~I=jI=~=p~=p=d=

=
o=~=d========
==tmK=

Assigning a Workplace to a
Station
q=~==~==~=~I======W=
b==~===~===p~==K=
a~==~===~=~===K=
f==~===~=~K=q==~~~=
~==~==~=~K=

t=~=l=p=q=
CHAPTER 5

Defining Services of a Station


l==~=EpmI=m~~mI=KKKF=~===
f=~K=
^~==K=p====~~==
K=
l===~I==~=~===~~K=
b===~==~====~=
~~K=

RJPR=

RJPS=

=m~=p~=_~I=jI=~=p~=p=d=

t=~=l=p=q=
CHAPTER 5

Defining the Worker from the


Workerpool
l==tK=
b==_=K=
l==`~=q~=====~=~===
~~~K=
b======K=

Exercise: Personnel Resources


lW=q===K=
1 `~=~==~===K=
c==`~=i~=I====b=
K=
`~=~==~==~=tNK=
^=~=b`I=pI==pm=I=
~=a~K===
`=K=

RJPT=

RJPU=

=m~=p~=_~I=jI=~=p~=p=d=

=
^=~=_I=tmI=~=t~=E~===
pmNFK=

=
2 `=W=
a~==_==pmNK=
a===pmNI==
c==f=~I===^=K=
`=xlhzK=
a~==_==tmK=
a====tm=
`==t=~=~===~=K=
`=xlhzK=

t=~=l=p=q=
CHAPTER 5

kW=q=pmN=~===t~=====
~~~K=
3 q==~K=
l==b`K=
`=m=~=p=b
K=
i=~=====~K=
q===~~=~K=

=
NOTE

In this model we define one worker doing his job at the SP1 station. As we see, the
worker is requested as soon as a part entered the SP1 station. The worker will be
released when the processing of the part is finished.
The worker goes back to the worker pool when not used. In the case where there
is no foot path defined, the worker will be beamed directly (like StarTrek) to the
worker pool and back to the station.

o
==~==
p~==K=
=
=
=
=
=
=

RJPV=

RJQM=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 4: Footpaths and Shift


Calendars for Workers
Using Footpaths
q=~=~=~===~=I===cm~=
====o=~===qK==^==
~===~===K==`====
~==~===~===~~=K==
k======~==~=====
==~=~=~=~~K=

Defining the Footpath

^==~====~====~I=~=
~~=~==I===~==~==
~~===~K=m==x`z=h=~~==
=~~K=o~==x`z==~~===
K=
f==~===~=~=~===~I====
~=======I===c=
K=

For Example:

f==~~=~==~=~===VMI=OKR==~====
=~=q~~=^=EMFI=`=~=EVMF=~=o~=
OKRK=

t=~=l=p=q=
CHAPTER 5

Automatic Selection of Footpath

f=~==~==~==tm==~=~I=
m~=p~=~~~====~K=

Workers and Shifts


p`~~==~======tm=
K=

Exercise 1: Add a Footpath


lW=q=~=~=~======
~K=
1 `===tN=~K=
2 j===~=O==~~===tm==
~===~===~K=

RJQN=

RJQO=

=m~=p~=_~I=jI=~=p~=p=d=

=
3 p~=~=~==~===tm===
t~K=
c==o=~===q=I==
cm~=
K=
m===~=~====tmK=
m=~=======tmK=
4 p===~=K===
NOTES

Note that the steps given in this exercise will create a fancy footpath. A footpath
could be made as a simple straight line. We will make a simple footpath later in
class.

f==b=m~~==`====^=
p=q~~=~I==MI=~==K=
c==^=p=^=I==QI=~===
E~F=
c==^=p=`=~I==VMI=~==
=E~FK=
c==^=p=o~I==OKRI=~==K=

t=~=l=p=q=
CHAPTER 5

=
e===x`z==~==~=====
cm~K=

=
5 `=~==~===~=~K=
o~==x`z=K=
m=~===K=
e==x`z==~==~====~=~=~=
K=
o~==x`z=K=
m=~=====t~K=
o======~==~K=
6 `==~===tm=~=t~K=

RJQP=

RJQQ=

=m~=p~=_~I=jI=~=p~=p=d=

=
7 j~=====~===t~K=
a====tmK=
r==t=~=~===~=
K=
`=xlhzK=
8 q==~K=
p==~===p~=

==~K=

=
o

==~K=

9 j~===~=~==~=~====
K=
a===tm~K=

t=~=l=p=q=
CHAPTER 5

`==t=~==~====
===t~K=
`=xlhzK=
a===tmK=
Ei~==~==d=======
===tFK=
`=xlhzK=
10 q==~K=
p==~====b`=~=
p~=

==~K=

Ep=~F=o=

==~K=

11 p~===K=
p=c=J[=p~=j

K=

Exercise 2: Automatic Footpath


Selection
lW=q=~===~====~==
======~K=
1 q==~==~===~~=~===
~K=
`===tN=~K=
^=~==~===~=~===K=
`===~===tm=~=
t~K=
p==~====b`=~=
p~= ==~K==`=======
~=K=

RJQR=

RJQS=

=m~=p~=_~I=jI=~=p~=p=d=

=
2 f~====c~N===~=~=c~K=
a===c~=E==FK=
`===EKK=ON=FK=

=
`=xlhzK=
a===c~N=E=~=FK=
p==i==OO=K===
`=xlhzK=

3 q==K=
p~=
~K=

==~K==q======

t=~=l=p=q=
CHAPTER 5

Ep=~F=o=

RJQT=

==~K=

Exercise 3: Workers and Shift


Calendars
lW=q==~==~~=====K=
1 `===tN=~K=
2 ^=~=p`~~===~K=
c==o=~===q=I=~=~=
p`~~=

===~K=

3 p====E=~FK=
a====p`~~K=
r==~====p=q=~K=
pJNW==SWMMJNQWMMI=jI=qI=tI=qI=c=
t=~=~=VWMM=J=VWNR=~=NOWMM==NOWQR=
pJOW==NQWMMJOOWMMI=jI=qI=tI=qI=c=
t=~=~=NUWMM=J=NUWPM=~=OMWPM==ONWMM=

=
`=xlhzK=
4 ^==p`~~===tmK=

RJQU=

=m~=p~=_~I=jI=~=p~=p=d=

a~=~===p`~~===tm==
==~K=
5 p ==~=~=E^===~=====
~=~FK=
a===tmK=
`==~===`~=q~K=

=
`=`~=q~K=
e======E====
=FK=
o=======~=~==`K=
o====~==^=oK=
o=====~==m~K=
c===I==pJN===p=~=~=b=
=NMMK=

t=~=l=p=q=
CHAPTER 5

RJQV=

c===I==pJO===p=~=~=
b==NMMK=
NOTE

Take care to use the same shift identifier as in the ShiftCalendar.

=
`=xlhzK=
6 p==~=~K=
=l==b`=~==q====~K=
7 q==~K=
p==~====b`=~=
p~= ==~K==v=======
=~=~=======~K===

=
o=

==~K=

8 p~==jK=
p=c=J[=p~=j
=

K=

RJRM=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 5: Workers Carrying


Parts
Introduction
f==I====~===~===~=~K==
q==W=
p==`~=m~=^~==~===~~=
==EKK=pmF=~==^K=
b====~~=E=jr=~====
~=pm==t~=F=~==^=
~~K=

=
NOTE

However, when this option is combined with a ShiftCalendar, the worker has to be
told where to put the parts he is carrying when his shift ends. This is done by
specifying a PartsBuffer on the WorkerPool object. It can be any object that has
room to hold the parts when the shift ends.

Exercise 1: Model a Worker Who


Carries a Part between
Workplaces
lW=q=~=~=t==~=~==~=
=~K=

t=~=l=p=q=
CHAPTER 5

1 `~=~==~===K=
c==`~=i~=I====b=
K=
`~=~==~=~=jq~_tK=
^=~=b`I=pI==pm=I=
~=a~K===
k~===~=pN=~===~=pOK==
`==~=K=

=
kW=^=~=======~=pN=~=_=
=~=m=q==MK=
f=~=t~===pN=E==~~=
~~~FK==k~==mK=
f=~=t~===pO=E==~~=
~~~FK==k~==alK=

RJRN=

RJRO=

=m~=p~=_~I=jI=~=p~=p=d=

=
`==t~==~=c~K==
kW=q=t=~===~===~==
=K=

=
^=~=tmK=
`==tm===m=t~==~=
c~K==

t=~=l=p=q=
CHAPTER 5

=
^=~=_K=
NOTE

Dragging and dropping the Broker onto the SingleProc objects would only add it to
their Importer tabs (which is not needed in this case). Also do not check the
Active checkbox on the Importer tab of S1 or S2 for now. This would require
adding another WorkPlace at the SingleProc objects (if you have more than one
worker): One for the station worker and one for the worker to carry the part away.

2 p===~===pN=~K==
a===pNK=
p==b=p~=~K=
`=_K=
p=`~=~=~~K===
`=^=======~K===
NOTE

The part then requests a Worker. The parts wait at the station until the Worker
arrives and picks them up. In order for this to work, a Broker must be specified on
the Edit Strategy tab.

c==_I==

=~===_K==

NOTE

Click Services to enter the names of the Services which the Broker manages and
which the transport importer provides into the services table. We accepted the
default setting, namely the StandardService.

RJRP=

RJRQ=

=m~=p~=_~I=jI=~=p~=p=d=

c==jr=~I=

=~==alK==

=
NOTE

To prevent the Worker from waiting too long for additional parts to arrive, you have
to enter the Maximum dwell time. After it has passed, he walks to the target
station, the MU target. In our example we do not need to do this.

`=xlhzK=
3 ^~==t===_K=
a~=~===_====tK=
4 q==~K=
p~
==~K=
t~======~=~==~I=~=
==~===~=~I====I=
~=~====~I=====~I=~=
=K=

t=~=l=p=q=
CHAPTER 5

Exercise 2: Model a Worker Who


Carries Several Parts
lW=q==~=tI==~=~=~K==
1 `===~=~K=
2 p====~=~===~=~K=
a=~==t======o==
==`~=i~K=
o~==jt=~=====
c~`=K=
c==c~`=I===
jtK=
q=O==`~~=E~KK~K====~===
~FK=

RJRR=

RJRS=

=m~=p~=_~I=jI=~=p~=p=d=

`=xlhzK=
a===tmK=
`==`~=q~K=
a~=~==jt======
==~K=

=
`=xlhzK=
3 p==pN=~K=
a====pN=~K=
p==b=p~=~K=

t=~=l=p=q=
CHAPTER 5

c=j~==I==OWMMK=
`=xlhzK=
NOTE

To make the Worker wait for the second part, type the desired Maximum dwell time
into pickup station. The dwell time has to be longer than the processing time.

4 q==~K=
p~
==~K=
t~=======~=~===
~I=~===~===~=~I=
===I=~=~=~====~K===
p
==~K=
i=~===~W=a=====
==~K=
p==p~=~K=
q=t===~===~=
~=~===JJ===~=
=K=Ep=J[=q~=~=p=J[=
bJ==FK==

RJRT=

RJRU=

=m~=p~=_~I=jI=~=p~=p=d=

=
p=s=J[=`K=

=
5 q==~~=~===~=I==
=t=~===xcSz====~=I==
==~===a~K=
kW=f===~=p`~~==~=tmI=~=~=_=
===~=~====tm=m~=_K==q=
m~=_==~=~====~====~==
==K==

t=~=l=p=q=
CHAPTER 5

Lesson 6: Worker Charts


Introduction
f======t=`~K=
q=t=`~=
=~=~==~==~===
=q====f=m~K=
f==~=~===~==~===~==
K==
v=~=====~=~=~==
====~==~K=v=~=~===
~I=~====K==
q==~===~=K=v=~=~=
===~==~===~K=

Usage:

^===~====E~==~F=
a~=~===t`~===q=~===
q===~K=
a~=~===tI=~~=~===~I=
==t`~K=

RJRV=

RJSM=

=m~=p~=_~I=jI=~=p~=p=d=

a====r~====~=
==~=~=K=
p~

==~=

==~K=

o====t`~=~==s=`~K=

Setting up the Worker Chart


q===~~==~==t======~=~I=
d==t==m===`~=K=v=~=
~=~==~==~=~=K=q~=
t=~=~=~I====~====~=
~K==
q=~=======~===~K=q=
t=====~=~=====
===K=q=l~====~=
===~=~====K==
_=~~=~==~==t~==jr=~=t~=
==~=======~===
~I==~=======~==~=
~K=

Exercise: Worker Charts


lW=q==~=~======~K=
1 ^=~==~===K=

p=c=J[=j~~=`~=i~
K==
f==j~~=`~=i~=I===i~=~K=
t====qI=====t=`~K=
`=^K=
`=xlhzK=

t=~=l=p=q=
CHAPTER 5

q==~===~===q=~===
qK=
2 ^=~=t=`~====~K=
c==q=~===qI=~=~===
t=`~=
~K=

===jq~_t=

3 p==t=`~K=
a~=~===tm===t`~==
~~=K=
kW=q=t`~==K=
f==t=`~=I===`~=~K=
c=q==~I==m=`~K=
`=l~=q===a~~=~K=
`=xlhzK=
4 q===~K=
p~
==~K=
o====t`~=~==s=`~K=

RJSN=

RJSO=

=m~=p~=_~I=jI=~=p~=p=d=

=
Ep=~F=o

====K=

5 q======t`~K=
l==t`~=K=
l==a~~=~I=l~=q=~=f~K=
p~
==~K=
o====t`~=~==s=`~K=
r===~===t`~=====
E==~=~=~===~FK=
6 p~==K=
=
=
=
=
=
=

t=~=l=p=q=

RJSP=

CHAPTER 5

=
=
=
=
=

Lesson 7: Failure Importers


Introduction
^=~==~==~==~=~=~K==f===
=c~=f=~===pmK==q====
EF==~===~=~K==f=~====
=~=~===~==K==

=
=
=
=

RJSQ=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 8: Adding Workers to


our Plant
Introduction
f======~=~=~==~===
===`m~=~K=
c===~==~==t~I=_=~=tm=
K==^===~=~==o=~===m~=
p~=q=K=

t=~=l=p=q=
CHAPTER 5

Exercise: Enhance the Packing


Component for Worker
Assignment
lW=q=~=~====m~N=~=m~O=
pm====`m~=~K=

Procedure:

1 ^==~===`m~=~K=
f==c~`====`~=i~I=
==`m~K=
f==qI===o=~K=
a~=~=t~
===~====m~N=
pm=K=
o~====m~O=pm=K=
a~=~=t=
a~=~=_=

===~K=

===~K=

2 `=K=
a~=~===_==m~NK=
a~=~===_==m~OK===
NOTE

The Broker attribute is filled in on the Importer tab of the packing SingleProc
objects.

a~=~==_==tmK===

RJSR=

RJSS=

=m~=p~=_~I=jI=~=p~=p=d=

NOTE

The Broker attribute was already filled in on the Workerpool.

kW=m~N=~=m~O=~=~~~=~~===
=t~==~===~==FK===
NOTE

The Station attribute is automatically filled in on the Workplace.

3 ^~==K=
a====m~N=~=K=
p==f=~K=
`==^=K=

=
`=xlhzK=
o~=====m~O=~=K=
4 `~===~K=
`~=~=c~========t=
==t~==~=====K=

t=~=l=p=q=
CHAPTER 5

RJST=

=
5 p==tmK=
a====tmK=
c=`~=q~I===~=K=

=
`=`~=q~K=
c=^I==OK=
`=xlhz=~=xlhz=~~K=
6 r==qm~=~===K===
l=qm~K=
p~= ==~K=
i===`m~=~==qm~K===
NOTE

The Worker is green. He is working when he is at this Workplace. He is available


to work when he is on the WorkerPool. You may have to slow down the simulation
to see him in the WorkerPool.

o=
==~K==
`=~==~K=

RJSU=

=m~=p~=_~I=jI=~=p~=p=d=

7 q=~=~===tm=====
p`~~K=
l==`m~=~===c~`=
==`~=i~K=
a~=~===p`~~===tmK=
l=qm~K=

p~ ==~=~===~===K=
i===`m~=~==qm~K===
o=
==~K==
`=~==~K=

8 q=~=~=~===m~=~=~===
===p`~~K=
l=`m~===`~=i~K=
a===m~N=K=
p==`=~K=
o==p`~~===p=`~~=K=
o~=====m~O=K=
l=qm~K=

p~ ==~=~===~===K=
i===`m~=~==qm~K===
o=
==~K==
`=~==~K=

9 p~==K=
p=c=J[=p~=j
=
=
=
=
=

K=

t=~=l=p=q=
CHAPTER 5

=
=
=
=
=
=

Lesson 9: Time Sequence


Layout
k==~=~==~=~===K==^==
=~=====~=~=====
===~=~~====~~K=
t=~===~I===~=~=~==
pK==t===qp=======
=~====~=~=~=~==p=
~K==c=====~kf=~===a~=
K=

RJSV=

RJTM=

=m~=p~=_~I=jI=~=p~=p=d=

The TimeSequence
c==q=I===f~=c=~=~=
=qp=

==~====K=

`~~W=M=
^=~===

t=~=l=p=q=
CHAPTER 5

RJTN=

q=qp======~==~==
~K=b=~==~~====~==~==
~~====~===K=

=
NOTE

Make sure that Resource statistics is active for the object that records the values.

Start Values Tab

p==q=o===p~=s~=~W==
=^W=b=~===K=
=o~W=b=~=~K=
f==~====~=~===~=~==
==MI==~=~==qp===~=
~=~K=

RJTO=

=m~=p~=_~I=jI=~=p~=p=d=

Record Tab

e====~===~=====K=q==
~=~=~==~=======
~K=p~=====~=~==~=
K==

=
p==j====~W=
t~W=t==~~=~=~~==~K=
p~W=m~===~=======
f~I==~===~=~~=~==K=
p====^===~===qp=
====c~I==~====~K=
NOTE

If you want to change the value in the Path text box, you have to clear the check
Active checkbox beforehand.

t=~=l=p=q=
CHAPTER 5

Exercise 1: Statistical Data


Collection, Time
lW=q====~=~====
~K==
mW=
1 `~=~==~===`p=K=
`=~==~===K=
`~=~==c~===c~`===
=`~=i~=~=~==`pK=
^=~=f~==E~=fFK==
^=~=j_=K==
^=p=~=~=a~K=
f=~=qp===f~=c=~===
qK=
`===W=Eq=p=~=a~=~=NM==NR=
=E=F=~~FK=

==
2 p==pK=

RJTP=

RJTQ=

=m~=p~=_~I=jI=~=p~=p=d=

c==jr====`~=i~I=~=~===
q===p===c~K=
3 `~=q~===p=~==a~W=
c==j~~=c=~===qI===q~=
K==
m=~==5~===p===~===q~K=
m=~==5~===a~======q~K=
o====E==cFK=
4 p=~=q~p~K=
c==q=~===qI=~=~==~=
q~p~====c~====_=
~==q~K=
o~==i~qK=
a~=~===j_===i~q=
q~p~K=
`=xlhzK=
a~=~===q~===i~q=
q~p~K=
c==p=I==QK=

=
`=xlhzK=
a===i~q=q~p~K=
c==^~=^=~===^~==
~=K=
`=xlhzK=

t=~=l=p=q=
CHAPTER 5

RJTR=

5 p==q~K=
a===q~K=
c=`~~==NK=
`=xlhzK=
6 i=~==~===_K=
p==_K=
c==c~ ==I==l=J[=p=
^=~=jK=
i~===~==~=~kl===K=

=
m=xcNz=====~=K==o~=~==~=~=
==e=K=
`==~=K=
7 p==qpK=
f======p~j===
=`~=i~K==
NOTE

This method deletes the values the TimeSequence recorded after each simulation
run. We will learn about creating methods later in this course.

a===qp=K=
p==o=~K=
c===s~===a~K~klK=
NOTE

This can be filled in by either typing the value; or clicking Select Objects, double
clicking on Drain, and selecting statNumOut. This text is not case sensitive.

RJTS=

=m~=p~=_~I=jI=~=p~=p=d=

`==^=K=

=
`=xlhzK=

=
8 p===~=~~==`pK=
`~=~=====`p=~K===
c==~=~~=I==KK=
p==~==`==~=~==~~K=

t=~=l=p=q=
CHAPTER 5

^~==`p=~=E^==~~==~=
====j_FK=

=
p~=~===f=b=~===K=
`=~==c~=

=K=

9 `~=~==m~|=~==~==`p==K=
a~=m~|T=~=~==m~|UK==
l=m~|UK=
a==p=K=
o~==p====`p=~==
=c~`==~===~=K=

RJTT=

RJTU=

=m~=p~=_~I=jI=~=p~=p=d=

=
10 q==~K=
o

==~K=

p~
===~K=
i=~==qp=====W=
a====`p===m~|V=c~=
K=
a====qpK=

t=~=l=p=q=
CHAPTER 5

RJTV=

=
o
==~K=
`=~==~K=

Exercise 2: Add a Time Sequence


and Chart to CompShip
lW=q=~=~=qp=~=~=~===
`p=~K=
1 p=~=qp===~K=
c==c~`=I===
`pK=
a~=~==~=qp===~==
=f~=c=~===qK=
o~===qp==q~fmK=

RJUM=

=m~=p~=_~I=jI=~=p~=p=d=

a===q~fm=qpK=
l==o=~==s~I==
KjrKq~qK~`K=
c=jI==p~K=
c=f~I==NWMMK=
`==^=K=
`=xlhzK=
2 j===qpK=
f=`pI===qp=~==xcOzK=
c==k~I==q~pK=
`=xlhz=
a=====K=
kW=t===~=~====~=~==
=K=
f==j=I==f=p=`= K=
o~===qpK=====W=
q~fmK=
q~pK=
p=c=J[=^=`~=~=`K=
3 ^=~=~==~=~K=
c==r=f~=~===qI=~=~==~=
`~==`pK=
o~=`~==q~p~K=
a~=~===q~q===jr====
q~p~=~K=
kW==l===~W=
m====~====~==
=~==~~===EKK=~=pmI=
^I=F=

t=~=l=p=q=
CHAPTER 5

q~~====~====~=
==~==~~===EKK=~=oI=iI=
F=
p~====~====~===~=
=~~===EKK=~=_I=F=
4 ^=~=~==~K=
^=~=`~K=
o~=`~==q~fK=
a===q~fK=
`==~===q~=cK=
c=M===NI==fK=
c=N==NI==KjrKq~qK~`K=
`==q~=cK=
c=jI==p~K=
p==a~=~K=
c==`~I==mK=
c==`~=I==iK=
`=xlhzK=
5 q==~K=
`=`pK=
l=m~|UK=
c==m~|U==~==^===
==q~fm=qpK=
p~
==~K=
i=~==`=~====qp=K=
i=~===~K=
o

==~K=

6 p~===K=
=
=

RJUN=

RJUO=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 10: Adding a Second


Sankey Object
Introduction
f========~~===~==
=K=

Exercise 1: Add a second Sankey


Diagram
lW=q=~=~==p~K=
1 ^=~=p~a~~=K=
l==~=m~|=~I=====~~=K=
f==c~I=~=p~a~~==q~qp~K=
c==q=~===qI=~=~==~=
p~a~~=
===m~=~I=~~K=
f==c~I=~=p~a~~==q~ip~K=
2 p==q~ip~K=
a~=~===q~i===jr====
q~ip~K=
a===q~ip~K=
c=`I==oK=

t=~=l=p=q=
CHAPTER 5

=
`=xlhzK=
3 s==p~=a~~K=
p~
==~=E====FK=
o====q~qp~=~==a~=
p~=a~~K=
k=~~=======~=K=
o====q~ip~=~==a~=
p~=a~~K=
a====~====m~|=
~K=
k=~~=======~=K=
NOTE

The Sankey is viewable on all levels of the models (i.e. within the sub-frames).
However there must be at least two supported object types at that level (i.e.
SingleProc, Buffer, etc)

==~K=

4 p~==K=

RJUP=

RJUQ=

=m~=p~=_~I=jI=~=p~=p=d=

Exercise 2: Run the Bottleneck


Analyzer again
lW=q====~~==~=J=KK=
1 `====~===K=
kW=v=~=~==^~====~===
K=
2 ^~==~==K=
p~
==~=E====FK=
o====_=^~=~==^~K===
NOTE

Small charts are shown over each station showing the amount of time of the station
spends in each state. Here is a key to the analyze chart colors:

Gray bar - waiting

Green bar - working

Yellow bar - blocked

Red bar failed

Blue bar - paused

a====~====m~|=
~K=
c==~===EF=====~=
==NMMB=EF=~====~==~==
~=E~FK=
kW=q==~======K=
o

==~K=

3 p~===K=
=
=
=
=
=

t=~=l=p=q=
CHAPTER 5

Lesson 11: Loading a CAD


Model as a Background
Introduction


Why use a CAD File as a Background?

_=~===~=
i=~=~=~===~=
`~==

Add a Graphic to the Background of the Frame

j~==~==^`^a=~=j~==~==
=~==~===~=~K==q=~=~=~===
~==~=c~I=====W==
a~=~=KdfcI=K_jmI=KmmjI=Kmmj=o^tI=Kauc==Katd===
=t=bI==f=_I===~=
K===~===c~=~===K==
q==~===~===~=~=
==c~K=f==~==~=~=~=I=m~=
p~=~~~=~=~=~=K=k=~=
m~=p~===~~~=~=====
~=======c~>=v=~=~=~=~=
~=====_~f~K==
a~=~=~=~==~==^===
~===c~=~===K==

RJUR=

RJUS=

=m~=p~=_~I=jI=~=p~=p=d=

v=~===~=~=~==~~=~==
=c~=~===m~=p~=====K=
q==~===~=====K=
f==~==~==~~I=====
~~I=~===~==~==~K=qI==
=~==~=~=========
c~I=~=~==jr====~~===
~~======~==~=c~K=_=~~=
~==Kauc==Katd==~==~I=~=m~=
p~===~=~K=q=~=~==~=
==~===~=====K=

Frame Grid Spacing

c==c~=I==q=J[=p~=c~K==q=p~=
c~=========K=r==~=
==MKMRI=======EOM=F==
=K=

=
kW=f==p~=c~====MKRI===~=~=
~==~==NM==~K=

Drawing Scale

b~=~=~==~===~=K=

t=~=l=p=q=
CHAPTER 5

How to Bring in an AutoCAD


Drawing and Scale it Correctly
1 =v=~=~=====^`^a=~=
E=^`^a=~=~F=~===
==K=v=~=====
=======~=~==
~=~==KK=VM=K=
2 v===~===~===~==K=q=
~=~===m~=p~==V=~==
SMMM==SMMM=K=f==~=VM=L=SMMM=Z=MKMNRK=q==
==~=~===~K=
3 f==m~=p~=~I==q=J[=p~=~I=
===~=~====~=EKK==MKMNRFK=
4 t==~=C===Katd=~===~=
~I=~===~===~=~==
=~K=f==I====~====
~===K=p===~==~=I=
===MKMMN===~K=

Exercise: Using a CAD File


lW=q==~=`^a=K==q==q~^K=~=
===K=q===~=~=~==RM==
=K=

RJUT=

RJUU=

=m~=p~=_~I=jI=~=p~=p=d=

Overview:

Procedure:

1 f==j====`~=i~I=~=m~|U=~=
~====m~|V||`^aK=
2 d=K=

j~===p=`=
=====
==~==~==`===K=
o====`==~==p=a=
lK=

=
l=j=t=b=I===
=miqNMN=~~=K=

t=~=l=p=q=
CHAPTER 5

a~=~===q~^Katd====
m~|V||`^a=EOaF=~K=
p=v====~=~==~=~K=
f==`^a=f=I=~==p~=~=NKM=E=F=
~==xlhzK=

=
i===`=~==a~===~==
===~==K==c=~==`=
=~=~W=
a~=W=QNIORTKR==OVINQUKV=x`^a=z====
a==~==SMMM==SMMM=K===
kW=q=~=====SMMMK==q~==~=~==
=`^a==~=====~========
p~=c~K==q=`^a==~=~=K==p=====I=
===NMMMK=
p=p~=c~=Z=EQNIORTKR=L=NMMM=F=L=SMMMK=
3 p==~=~K=
l=m~|V||`^aK=
c==c~==I==q=J[=p~=
c~K=
f==p~=c~=I==~=p~=c~==
MKMMSUTSORK===
`=xlhzK=
4 f==K=
l=j=t=b=I===
=miqNMN=~~=K=
a~==q~^Katd====
m~|V||`^a=~=~==K=

RJUV=

RJVM=

=m~=p~=_~I=jI=~=p~=p=d=

=
`=vK=
f==`^a=f=I===p~==MKMMNK=
kW=q====K=
`=xlhzK=
5 o~~======~K==Ep==F=
6 q===~======p=

`=

K=

t=~=l=p=q=
CHAPTER 5

RJVN=

=
kW=^=======~===
~~=~=========~K===t=
===~===f=b=~K==eI==
~~======MINOUINOU=~==f=J[=
q~~====K=
7 p~==K=

=
=
=
=
=

RJVO=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 12: Preview of the


Experiment Manager Object
Introduction
q========K==f====
=~===miqPMM=I===~=~===m~=
p~==EKK=a~~=cI=q=aI=`=
f~I=`=p~=fI=^~=l=s~~I=o=
aI=s~~=d~I=o=^~I=k~kI=
F=~=~======bj~~K=

Experiment Manager
q=~===bj~~==~==~=~=~=E=~=
==~===~F=~==~=~=~====
=EKK======FK==q=b=j~~=
===I=I=~=~~====K==t=
~====~=~=====~=~W=
a=f=s~=J=~~===~=====
====~==~K=E===F=
jJi=b~=a=J=~~~=~===
~==~=~K=E===miqPMM=F=
o=====~==~=~===
=~K=E===miqPMM=F=
a=p~===~====
==~=====K=
E===miqPMM=F=
k~=k===~=~=~==~~==
==~=======~==K=
E===miqPMM=F=
^==E===miqPMM=F=

t=~=l=p=q=
CHAPTER 5

Basic Usage:

1 ^=~==L~===~K=
2 ^==b=j~~=====~K=

==
3 p==~=
4 p==~=
5 p===~===
6 m=~==K=
7 m==~~==
8 s==K=

RJVP=

RJVQ=

=m~=p~=_~I=jI=~=p~=p=d=

==

Exercise 1: Adding a Buffer


Utilization Chart
lW=q=~=~=~K=
1 `====~===K=
2 ^=~==~=~K=
c==r=f~=~===qI=~=~=`~=

===m~|V=~K=
o~===m~_`~K=
a===`m~K=
a~=~===_==m~_`~K=
`==`m~t=~K=

3 o

=~=p~

4 i=~==K=

==~K=

t=~=l=p=q=
CHAPTER 5

RJVR=

=
k=~====~===~=K=
5 o

==~K=

6 `==~=K=
7 p~==K=

Exercise 2: Looking at the


Experiment Manager Object
lW=q===~=====~~K=
1 `====~===K=
2 ^=~==L~===~K=
a====b`K=
j~=======~=E~FK=
p==p=~K=
c=bI==TWWW=

RJVS=

=m~=p~=_~I=jI=~=p~=p=d=

`=xlhzK=
3 ^==b=j~~=====~K=
c==q=I===q=~K=

a~=~==~=b=j~~=
===
m~|V=~K===
a====b=j~~===m~|V=
~K===

==
4 p==~K=
c==a=~===bj~~==
I==a=l=s~K=
a===`pK=

t=~=l=p=q=
CHAPTER 5

a~=~===a~===`p=~==
=l=s~====l=~=K=
a========~=~=Kp~kf=

=
`=xlhzK=
`==`p=~K=
5 p==~K=
`=r==~K=
a===`m~K=
a~=~===_===f=s~====
f=~=K=
a========~=~=K`~~=

=
`=xlhzK=
`==`m~=~K=
`=a=bK=
`===`~~=K=
m=xbz==K=
a====^==E==F==~=
=E=`=L=m~==x`zx`z=~=x`zJxmzFK=
c=`~~I==RMI=NMMI=OMMI=~=OTR=E=~==
FK=

RJVT=

RJVU=

=m~=p~=_~I=jI=~=p~=p=d=

=
`=xlhzK=
6 p===~==K==q====
==~===~~=~==~=
===K=
c=l~==I==PK=
`=^K=
7 m==K=
`=oK=
`=p~K=

=
`=xlhzK=
`=xlhzK=
8 s==K=
i=~==K=
`=~===~======K==

t=~=l=p=q=
CHAPTER 5

RJVV=

RJNMM=

=m~=p~=_~I=jI=~=p~=p=d=

=
`==K=
9 `~==_==~~==PMK=

=
=
=
=
=
=
=

t=~=l=p=q=
CHAPTER 5

Lesson 13: Presentation of


Results in Custom Reports
Introduction
f==I=====o==~=eqji=t~=
K==p~=~==m~=p~====~=
=~==K==v=~=~====~===
=~K=

The HTML Wizard Object


q=eqji=t~=
~=~==~==~====
q====f=m~K==f=~=~===~=
~=K=v=~=~==~=~=eqji=K=

RJNMN=

RJNMO=

=m~=p~=_~I=jI=~=p~=p=d=

The Report Object


c==q=I===r=f~=~=~==
o=
==~====K==f====~=J
==~I=~I=~=K===K===

t=~=l=p=q=
CHAPTER 5

RJNMP=

Details on The Report Object:

mW=
fW=

`~~W=M=
^=rf~==
r==o===~==~=~=eqji=oK=
q==~==~=~=~==~=~=====
K=

RJNMQ=

=m~=p~=_~I=jI=~=p~=p=d=

Report General Parameter

d~=m~~W==v=~==~~I=~====
=~==~==I==~=
k~=~==
m==`~=
c==~==
c~==~==
b=

Report Content Definition

pW==oJ=o==~==~==~==
==~=

=
e~W=`~==~====~=E=
=F=

t=~=l=p=q=
CHAPTER 5

cI=p=~=q=`W==
a~~=~==~====P=K=c=~=
I===~===~=I===K=
b====~==~=====Ea~=~=
===F=
eqji=l=c~W==
aJ==~====I====
===~=~=~=I=~===~=K=

=
t====I==~===~=
===K=
f=~==~==~~=eqji=I=KK==
~==K=

Exercise: Report Generation


lW==q=~=~=K=
1 `=~==~===jK=
2 l==m~|U==
3 f=~=o===K=
c==r=f~=~===qI=~=~=o=

=~=====m~|U=c~=K=
4 ^=~====

RJNMR=

RJNMS=

=m~=p~=_~I=jI=~=p~=p=d=

a====o=K=
`==~==E==~FK=

=
5 a==~=~===oK=
o===m~====I=~==aK=
6 ^===~===oK=
o===o=====p=~=~==
kK=
b=i~K=
o===o=====p=~=~==
kK=
b=b=oK=
o===o=====p=~=~==
kK=
b=m~=oK=

=
7 a==i~=~====~K=
l==p=~I==i~K=

t=~=l=p=q=
CHAPTER 5

RJNMT=

c==e~I==m~=i~K=
c==`~=i~I=~=m~|U=~=====E=
==F=c======~~K=
a===KjKm~|U===c=K=
f==eqji=l=c~=I==UMM===
t=~=eK==

=
`=xlhzK=

=
8 a==b=o=~=====
~=~===~K=
l==p=~I==b=oK=
o=====~~=~==f=oI=K==
E====~======~==
=FK=
c==E===F=e~I==b=oK=
a===E==F=c=K=
f==eqji=l=c~=I==q===^K==
c=p=I==j=r~K=

RJNMU=

=m~=p~=_~I=jI=~=p~=p=d=

=
`=xlhzK=
a===E==F=c=K=
f==eqji=l=c~=I==q===^K==
c=p=I==_=r~K=
`=xlhzK=

=
a~==`~==m~|UK`j=~====
=E===F=p=`=E====
j=r~FK=
a===KjKm~|UK`~K=
f==eqji=l=c~=I==QMM===
t=~=eK==

t=~=l=p=q=
CHAPTER 5

RJNMV=

`=xlhzK=
a~==_`~==m~|UK`j=~===
==E===F=p=`=E====
_=r~FK=

=
a===KjKm~|UK=_=r~K=
f==eqji=l=c~=I==QMM===
t=~=eK==
`=xlhzK=
`=^K=
9 a==m~=o=~====~=~I=
===`p=K=
l==p=~I==m~=oK=
m==xbz==~====~=====
==~K=
c==E===F=e~I==q~=p~K=
c==~===~==
KjKm~|UK`pKq~p~====c=
======K=
p====QMM==QMMK=
c==E===F=e~I==q~=fK=
c==~===~==
KjKm~|UK`pKq~f====
c=======K=
p====QMM==QMMK=

RJNNM=

=m~=p~=_~I=jI=~=p~=p=d=

=
c==E===F=e~I==q~=pK=
c==~===~==
KjKm~|UK`pKq~p====
c=======K==
c==E===F=e~I==q~=fK=
c==~===~==
KjKm~|UK`pKq~fm====
c=======K=

=
10 a==~=~=~K=
p==d~=~K=
c=k~==~=I==q~K=
c=s==~=I==NK=
c=m==~I==q=p~=dK=

t=~=l=p=q=
CHAPTER 5

RJNNN=

=
`=xlhzK=
11 q==K=

`=o=

K=

`=p~=
==~K==q=~===
~===N==E~==~FK=
l==W=o====o==~==
pK=
f==a~=tI==i~K= =

RJNNO=

=m~=p~=_~I=jI=~=p~=p=d=

=
f==a~=tI==b=oK=

t=~=l=p=q=
CHAPTER 5

RJNNP=

=
f==a~=tI==m~=oK=

RJNNQ=

=m~=p~=_~I=jI=~=p~=p=d=

=
12 p~==K=

t=~=l=p=q=
CHAPTER 5

Lesson 14: Putting It All


Together
Introduction
^=====~==~======
m~=p~K==q=~==~====~=
m~=p~=~=~=~===~=~==~=
K==v=======~=~===
=====~I=~~=~=~I=~=
p=mij=p~=======~=
K====

RJNNR=

RJNNS=

=m~=p~=_~I=jI=~=p~=p=d=

bumboq

pvkqebpfwb

mrqqfkd=fq=
^ii=
qldbqebo

^k^ivwb
mo^`qf`b
bumlprob
kl=hkltibadb
=

Exercise: Putting It All Together


lW=q===~=Q==~==~=S==~K=
mW=
1 o=====~====~K=
2 p==~=Q==~==~=S==~W=

t=~=l=p=q=
CHAPTER 5

q~q======~~=~=NS=
===~==NQ=K==q=====
=mp=q~c=K=
b=f===q~q===S=====E~=
==~~=FK=
`~==^Q=~==~~=S=q~i===
q~qK=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=

RJNNT=

RJNNU=

=m~=p~=_~I=jI=~=p~=p=d=

Chapter Summary
f==~===~=~W=
^=====~==~=====
~=~K====
e====I=I=~=K=
q==K=
e=======K=
e=====~=~K==
l=~==K==
e=====~=~K=
q===~====~K=
^=====~===~==~K=
e==~=~=`^a==~=~=~K=
q===~~=K=
^==~=~=====~~K=
e===~==~==K=
=

f==j=
CHAPTER 6

Chapter 6

Introduction to
Methods
=
=

About This Chapter


q=~==~=~=~==~==
=~=====K=q=~=~==
=W=
i=NW=l=q~I=~=SJPI==~====
==~==~===~====K=
i=OW=f===l=jI=~=SJTI=
===K=
i=PW=q=p~==t=~=jI=~=SJNTI=
==~===~=K=
i=QW=q=j=aI=~=SJOVI===
=K=
i=RW=k~I=fI=m~=~=^=fI=
~=SJPSI===~=~=~=~=~=~=
~=E~F=K=
i=SW=p=j=`~=~=d~=s~~I=~=
SJQUI====~==K=

SJN=

SJO=

=m~=p~=_~I=jI=~=p~=p=d==

i=TW=b~=~=b=`I=~=SJRPI==
=~=~=~L=K=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
==
=

f==j=
CHAPTER 6

Lesson 1: Our Task


Introduction
e=====~=~==~W=

A Plant Producing Tables

=
f===~====~===
~~=W==

SJP=

SJQ=

=m~=p~=_~I=jI=~=p~=p=d==

f==j=
CHAPTER 6

SJR=

SJS=

=m~=p~=_~I=jI=~=p~=p=d==

=
f=====~===~=~===~=
~===E~KK~K=FK=
=
=
=
=
=
=
=
=
=

f==j=
CHAPTER 6

Lesson 2: Introduction to the


Method Object
Object-Oriented Programming
lJ=~~=~=~==~~=I=~=
==~~==~==~=EF===
K=q=~I===~~==~=I=~=
==~~=========
~==~K=q==~===~=I=~=~==
====~=~=~=~===K=
q=~===~==~=~=~==K=KKKG=
G=a=q~===j~~=Ea=~~=
=~~=FI=NUK=b=

What is a Method?
^=j==~=~=~I=~~==~===~=
===~=~~=EKK=_~I=m~~==
`HHFK=
=pq~I==~=~~==m~=p~I==~=
==~=~~=b=E~=fplJ~~=J
=~=~~FK==f===~=
~~K=
v=~=~=~=j==~==~=====
====~=~==~K=p=~=
=~===l=J[=p=^=~=j==
=~=J=~=~==~==K==
f=~==~==~===JI==
~K=

SJT=

SJU=

=m~=p~=_~I=jI=~=p~=p=d==

=q==j===~===J=
==m~=p~K=b=======
jK=q==J=f===~=
==~=K=

What Can a Method Do?




A Method can:

o~==~===~=~=K=
d=~==K=
b=~K=
j=~===~==K=
m~=~=======~=EF.

It allows you to:

f==~~X=~~=====
K=
f~=====~=K==
f~=====~==

The Method Object


r=~=j==~==~===~=~=
===~=K=

=
mW=
`~~W=M=

f==j=
CHAPTER 6

SJV=

f~===

t====~==~=j===I=m~=
p~=~~=f=p=`

K==

Toolbar of the Method

Editor Preferences
p=q=J[=mK=
f==m=I===b=~K==q=~====
====j=bK=

SJNM=

=m~=p~=_~I=jI=~=p~=p=d==

a~====J=f=====
K==q=~====~====~=~=
=====j=aK==

Simulation Preferences
p=q=J[=mK=
f==m=I===p~=~K==q=~==
======j=bK=
=

f==j=
CHAPTER 6

SJNN=

=
j~===~=J=p==~==~==
~==~=K=
j~===~=~=J=p==~==
==~=~==~=~==~=K=
j~=====J=p====
=~=~===~==~==~=~==
~===K=
NOTE

These settings can help improve simulation runtime performance.

SJNO=

=m~=p~=_~I=jI=~=p~=p=d==

Exercise 1: Look at the


Preferences Window
lW=q==~===K=

1 f====~~=~I=~=m~=p~====
=W=
`==m~=p~====I==
c==p~=I===p~=J[=m~=J[=
q~=J[=b=^~=J[=m~=
p~=J[=m~=p~=m~=E=~==
~===FK=
2 l=========K=
f=~=====I==c=J[=`K=
c==m~=p~=I==c=J[=l=
j
K=
c==l=I====miqNMN=~=
~~==~====K==
kW=j==m~=p~=======~K=
p=~===miqNMN|jj|sNMNK=K=
`=lK=
p=c=J[=p~=j=^ K=
^===~=======~W=
miqNMN|jj|sNMNJvk~KK=
`=p~K=

3 ^=~==~=~=c~|O===b=K=
f==`~=i~=~===`~=i~=I==
===b==~==k=J[=c~K=
m===~=~=~===xcOz=K=
b=c~|O===~K=
l=c~|OK=
4 f=~=j===c~|OK=

f==j=
CHAPTER 6

SJNP=

p==f~=c=~===q=K=
a~==j=
===c~|O=K=
m==jI=~===xcOz=K=
b=e=~==xlhzK=

5 l==m=K=
c==~=~I==q=J[=mK=
6 p==b=~=K=
f==m=I===b=~K==
`==a~===K=

7 p==p~=~=K=
f==m=I===p~=~K===
i=~===~K=

SJNQ=

=m~=p~=_~I=jI=~=p~=p=d==

=
`==m=W=f==m=I=
=xlhzK=

8 p~==K=
p=c=J[=p~=j

K=

Exercise 2: Defining a Simple


Method
lW=q==~==~======K=

1 `==c~|OK=
2 l==e=K=
a====e====c~|OK=

f==j=
CHAPTER 6

3 b=~==e===K=
==eI=======
f==j=
=K=
m=xbzK=
qW===9e=9X=

4 p~=~=~===j=
c==j=

==eK=

=~I==^=`~=

=E===xcTz=FK=
`==j=

=~=eK=

=
5 o==e=K=
a====e====c~|OK=
c==e==
=~I==o= =
E===xcRz=FK=
q=====~==~~===`=
K=

SJNR=

SJNS=

=m~=p~=_~I=jI=~=p~=p=d==

=
6 o==e=I=~~K=
c==e==
=~I==o= =
E===xcRz=FK=
q=====~==~~===`=
K=

=
7 j==e====b=K=
a~==e==~=====b==
==`~=i~=~===`~=i~==K=
NOTE

We will go into more detail on the syntax of a method in the next lesson.

8 p~==K=
p=c=J[=p~=j
=
=
=
=
=
=
=
=

K=

f==j=
CHAPTER 6

Lesson 3: The Syntax for


Writing a Method
Structure of a Method
q=j====~I==~===~=K==
x^z====
b==~==~=~=~=~=
~~=~===~==~=
~K=q=~=~==~==~===
~=~==~===K=q=~~==
~=~===~====~~=K=
xoz===
b==~~=====~K=f=~===~=
==~====I====~=
~K==
f==
p~~==~~==~===~~=
=~=~~K==
xi~=s~~z===
i~=~~=~===~=====
I===~K=r=======~~=
~==~===~K==
a===
b=====~=K=
xp~z===
b===I=KK=~~=I====~I=
=I==~I=~I=~=K==
bX==

SJNT=

=m~=p~=_~I=jI=~=p~=p=d==

a~======K=^===~=
==K===
NOTE

A semicolon must appear after end.

Syntax of a Method
:
(

Argument

data type

):

data type
return value

:
:

,
;

is
Variable

data type

SJNU=

do

Statements;

end;

SimTalk Operations
^=l~=
q=~=~=WZ=~=~==~==~=
~~K=
Y~~[=WZ=Y=~[X=
^=l~=
^I=~I=~I==EHI=I=GI=LF=~=
~~=I==~==I=
~I=~=~=K=
o~~=l~=

f==j=
CHAPTER 6

o~~=~=ZI=LZI=[I=[ZI=YI=YZI=~=ZZ=~=
=~K=q=I=qorb==c^ipbI===~~==
_~K=
NOTE

Tolerance for about equal (==) can be changed in Tools -> Preferences ->
Simulation.

_~=~=~I=I===K=
f=~=l=l~==
i~=~=~=~~K==

Document Conventions
k~==~===~=J~=K=b~==
=~=~===~=J~=I==~=
d~q~^K=
k~=====~=J~=K=b~==
=~=~===~=J~=I==~=
f=~=~pqK=
j=====E~=~=I=I=~=F=
~===K=

Method Templates
r=~===~=~==~=~==~==
~=====K=
q======~=~==~==
=K=
NOTE

To set the location of the method templates, select Tools -> Preferences ->
Editor-> Template Folder. Method template file syntax:
The first comment is the name shown in the user interface
The second comment is the description shown in the user interface
The rest is the inserted text

SJNV=

SJOM=

=m~=p~=_~I=jI=~=p~=p=d==

Comments
`=====~==~===
~==K=
b===J=J==~=~=J==~==~=
====K=

f==j=
CHAPTER 6

SJON=

b=~=~=~=~=~=~=ELGF==~=~===
~===~==~=~=~=~=~=EGLF==
===K=
q=j=~=======K=

Sample Statements
q==~=~=~===~=K==q==
~==~=I=~=~=~~I==~==
~=

SJOO=

=m~=p~=_~I=jI=~=p~=p=d==

Exercise 1: Using Method


Templates and Other Short-cuts
lW=q==~==~==~=~=~===
K=

1 `==c~|OK=
2 f=~=j===K=
p==f~=c=~===q=K=
a~==j= ===c~|OK=
m==I=~===xcOz=K=
b=jj~=~==xlhzK=

3 l==jj~=K=
a====jj~====
c~|OK=
4 b=~==jj~===K=
f==j=
==jj~I=====
===K=
m=xbzK=
p=q~=J[=p=q~K=
f==p=q~~=I==`=pK=
p=b=~GK=
`=xlhzK=

f==j=
CHAPTER 6

SJOP=

=
f==~=I==~_K=
f==j=I==e=J[=e==t=E=
=xcNzFK=

=
NOTE

In reading the help description, you should discover that:


- The first argument is the error message text.
- A 50 for the <real1> argument means that a Yes, No, Cancel window will be
shown.
- A 50 for the <real1> argument means that a Yes, No, Cancel window will be
shown.

k=~=~_==~==~~K==q=RM=
~=NN=~~=~====~==
~_=K=

SJOQ=

=m~=p~=_~I=jI=~=p~=p=d==

v==~=======K==
eI=====~==

5 r=~====~==jj~O===
K=
==jj~OI==~=
f==j=
=~===~=~_E=

=
m=~=~_E=~===x`zJxp~~zK=
f==j~_=m~~=I==f==~=
\=c==j~K=
c=_I==vI=kI=`~K=
c=pI==nK=

f==j=
CHAPTER 6

`=xlhzK=
k===~~==~_=~=~=
~======j~_=m~~=
K=
`~====~~=NN=E=~==
~F==~~=O=E=~==~FK=

6 p=~==jj~O===K=
o~==v=YY~[[===9d==
~K=
o~==k=YY~[[===9e~=~==
~>=
o==`~=YY~[[=~==J
K=
7 p~=~=~===j=
jj~K=
c==j=

==

=~I==^=`~=

=E===xcTz=FK=
`==j=

=~=jj~K=

8 o==K=
o====jj~==~==o

=
`=vK=
i====~===`=K=

K=

SJOR=

SJOS=

=m~=p~=_~I=jI=~=p~=p=d==

=
9 p~===K=
p=c=J[=p~=j

K=

Exercise 2: Defining Two Methods


lW=q==~==~======K=

1 `==c~|OK=
2 f==j===K=
p==f~=c=~===q=K=

a~==j= ===c~|O=K=
m===I=~===xcOz=K=
b=jN=~==xlhzK=
m===I=~===xcOz=K=
b=jO=~==xlhzK=

3 l==jN=K=
a====jN====c~|OK=

f==j=
CHAPTER 6

=
4 a=~==~~=~====~K=
f==j=
==jNI========
K=
m=xbzK==
qW===W==~X=

5 b=~==jN===K=
f==j=
==jNI=======
=K=
m=xbzK=
qW===WZ==jOENMI=TKRFX=
m=xbzK=
qW===9W=9IX=

6 p~=~=~===j=
c==j=

==jNK=

=~I==^=`~=

=E===xcTz=FK=

=
`==j=

=~=jNK=

7 c==~=======~=~=
==~===jOW=

SJOT=

SJOU=

=m~=p~=_~I=jI=~=p~=p=d==

8 p~==jN=K=
a====jN====c~|OK=
c==jN==
=~I==o= =E=
==xcRz=FK=
q=====~==~~===`=
K=

=
9 p~==K=
p=c=J[=p~=j
=
=
=
=

K=

f==j=
CHAPTER 6

Lesson 4: The Method


Debugger
The Method Debugger
m~=p~=~~~=======
=~==~======K=
q==~=~========~=
=~=~====~====~=K=

Open the debugger using one of these techniques:

c==j=

=~I==a=

l==~=E==~====j=
~==`~=_~F=~===K=

K=
=

l===j=
=~I==o=J[=
a===xcNNzK=
sbov=fjmloq^kqW=l===xpzJx^zJx`z==~=
====~====~==K=

Switch to an open debugger window:

m=xcNOz===a=J[=p==a

K=

Use the Debugger to:

t~=~=~~I=~=~=~=~==
~==~==jr=~==~=~===t~=
tK=
q~======JJK=
a====~===K=

SJOV=

SJPM=

=m~=p~=_~I=jI=~=p~=p=d==

Breakpoints: Executing a Method


Step-by-Step
p=~=====~=======
==JJK=

Setting breakpoints:

l==j=K=
o==~==`~=_~=E=~====
====~====~===xcVz=
FK=
t====~====I=m~=
p~=====~===
~K=
`=====~=====
~===~=K==

f==j=
CHAPTER 6

SJPN=

The Debugger Toolbar

Viewing a Method in the


Debugger Window
q=t~=t===jr=~=~==j=E]FI=~=
=~====~=~==j=E\FK=
t~==~==~=~==~=~~===t~=
tK=

SJPO=

=m~=p~=_~I=jI=~=p~=p=d==

Exercise: Method Debugger Basics


lW=q==~=K=

1 `==c~|OK=
2 l=~===a=

=K=

c==jN== ==~I==a=
E===xcNNz=FK==
k==~===a=

=K=
=

3 f=~=~=K=
m==W==WZ==jOENMI=TKRFX=
c==a=
o=_~=
`~=_~FK=
`==a=

==~I==f==
=E=====~==
=K=

f==j=
CHAPTER 6

NOTE

Breakpoints can also be inserted directly in the Method


clicking the line and select Class Breakpoint.

window by right

4 o==K=
c==jN=j=
==xcRz=FK=

=~I==o=

=E=

q=a= =====~==
==K=

=
5 p===jO==~==~======jN=
K=
j=~=====a=
~W=
=
t===I==p=f=
q=jO===K=

K=

==

SJPP=

SJPQ=

=m~=p~=_~I=jI=~=p~=p=d==

6 l==t~=t===K=
c==a=

==~I==t~=

t
K=
f==t~=tI===s~~=~K=
k==~K=

==

7 p===I===K=
c==a=

==~I==p=l=

=K=
f==t~=tI===~===~=
~==M==NTKR=~====K=
c==a=

==~I==p=l=

=K=
v=~==~===jN=K==q=t~=
t=====~~==jN=E~==
jOFK=

f==j=

SJPR=

CHAPTER 6

=
c==a=

==~I==`

q=t~=t=~=a=

8 `===~=c~|O=K=
9 p~==K=
p=c=J[=p~=j
=

K=

K=

==~=K=

SJPS=

=m~=p~=_~I=jI=~=p~=p=d==

Lesson 5: Names, Identifiers,


Paths and Anonymous
Identifiers
Paths
b~==~=~=~=~=====
====~=I===~=~I==
=~=~=~K=
q=~=~=~======~===
~=~=~K=
q=~=~=~======~==~=
~=K=
f=~==~==~===~=~==
=~=~=K=

Name Space
^====~=~==~=~===~=
~=~K==
t=~=~=~=~===~==~K==
t==~=~==~=~==~=~K=

f==j=
CHAPTER 6

SJPT=

Absolute Path


Example of the Absolute path to the Milling2 object:

=
f==~=~==~=I====
~====~K=
q=~=~====~=~==~==
~=~=K=

SJPU=

=m~=p~=_~I=jI=~=p~=p=d==

q=~=~=~~=~===`~=i~=~==
====~=~===K=
q=~=~~===~====~=~I=
~=I=~=~I=~====~=~==~===
K=
KY~[KY~[KKKY[=
`~==~=====~=~=~==~=
K=
t==~=~===~=~==m~=
p~=~==~==~=~K===
NOTE

Takes more processing time than a relative path.

The Relative Path




Example of the Relative path to the Milling2 object:

=
`~=~====~=~=~==~==
==~=K=

f==j=
CHAPTER 6

q=~==~==~=K=
b~====~=~==j=~=
K=
f===~======~==
~K==

Anonymous Identifiers
q=~======~=~=~=I==
~=====~==~==~=K==c=
==~==~===~=I==
=~=~K=
f====~=====~=~=
K=

Calling the MU Triggering the


Method @
@

=
q=@ ~=====jrI==~=
~|WSTNOI====j====
==K==
m~=p~===~==jrI==~=
=~=K=q=jr==~==~==~=
K==

SJPV=

SJQM=

=m~=p~=_~I=jI=~=p~=p=d==

NOTE

This is a very powerful feature.

Calling the Active Method Self


q==~====~====
=K=
pX= ==~===~===j=EKK=
KbKc~KjNFK==o==~=~K=
pK~X= ===~===j=EKK=jNFK==
o==~=~K=

Calling the Object Calling the


Method ?
q=? ~======~~====
==EjF=~=~==jK=r=?=~=~=
j=====~==~=K=

f==j=

SJQN=

CHAPTER 6

=
=

Calling the Active Frame Current


q==~====~===
==~=K=q======~==~=~=
=~=~===~==~=~=~=====
~K=

SJQO=

=m~=p~=_~I=jI=~=p~=p=d==

Calling the Location of the Active


Frame Location
q=~=====~==~==
=~===~K=q=~===jr====
===~=K=
Y[K~===~===~===
==~K=
]K~===~======jr==
~K=

Calling the Topmost Level of the


Hierarchy root
q==~=====~===
~==~K=q===~=====
===~====~=E=~=~=~===
==~FK==

f==j=
CHAPTER 6

SJQP=

Exercise: Using the Anonymous


Identifiers
lW=q===~=K=
lW=

=
mW=

1 ^=~==~=~=c~l===b=K=

SJQQ=

=m~=p~=_~I=jI=~=p~=p=d==

f==`~=i~=~===`~=i~==I=
====b==~==k=J[=c~K=
m===~=~=~===xcOz=K=
b=c~l===~K=

2 ^=~==~=~=c~f===~=K=
f==`~=i~=~===`~=i~==I=
====b==~==k=J[=c~K=
m===~=~=~===xcOz=K=
b=c~f===~K=

=
3 f=~=j===c~f=~K=
p==f~=c=~===q=K=
a~==j=

===c~fK=

4 l==j=
==K=
a====j==c~fK=
5 b====~=W=
NOTE

If a hint is displayed while typing, it can be accepted by clicking [Ctrl]-[Spacebar].

f==j=
CHAPTER 6

SJQR=

6 p~=~=~===j=
c==j=

==jNK=

=~I==^=`~=

=E===xcTz=FK=
`==j=
`=c~fK=

=~=jK=

7 l==c~l=~I=====~~=K=
c==`~=i~=~===`~=i~==
I====c~lK=
8 a~==c~f=~==K=
c==`~=i~=~===`~=i~==
I=~=c~f=~======
c~lK=

SJQS=

=m~=p~=_~I=jI=~=p~=p=d==

=
9 l=c~f=~====c~l=~K=

10 l==j===c~f=~K=

11 o=

==j====c~lK=

12 t~==~===`=K===
NOTE

You can also use the values in local variables and watch them in the Watch
Window of the Debugger.

f==j=
CHAPTER 6

NOTE

Nesting the methods demonstrates the hierarchy level of the anonymous identifier

SJQT=

SJQU=

=m~=p~=_~I=jI=~=p~=p=d==

Lesson 6: Scheduling Method


Calls and Global Variables
Variables
s~~=~====~=~K==t====
~=====~~===W=
f=====~======M~===
==K=
l=~==EKK=~=pmI=c~I=bI=F==
=q=J[=rJa=^K=
^=~=s~~=
==E~=~~F==~=~=
==f~=c=~===qK=

Events in the Model - Calling


Methods
^==~=~=~=~=~=====~=~=~=
jW=
`=====b`=~==jW=
 oW=`~=~=j=~==~====

K==
 fW=`~=~=j=~==~===K==

m~=p~===~=j=~===
~=~I=====K=

f==j=
CHAPTER 6

m~=p~=~=~=j=~=p=~====
~=~=K=

q=~====b`=~==~=
===i==p=b===m~=
p~=~=========b=
==p=~K

q=q=~==d~=~=~=~=~=jK

The Reset Method=


=
t===o
===b`I=m~=
p~=~===I==~=c~==
I==j=~==~==K=
l==j==~=jr===K==
f=~=j=====E======
====J~FI=~=~==~==K=b==
=======~K=

The Init Method


=
m~=p~=~====~=====
~=====~====~=
~K=f=j=~=~==I==~==
=~==~~I=~=jr==~~==I=K=

SJQV=

SJRM=

=m~=p~=_~I=jI=~=p~=p=d==

f=~=j====I=~======
=k~===o~=K=f===~=W=

Exercise: Creating Init and Reset


Methods
lW=q=~==~==K=

1 `==c~|OK=
2 f=~=b`K=
3 f==j===K=
p==f~=c=~===q=K=

a~==j=
===c~|O=K=
m===I=~===xcOz=K=
b=f=~==xlhzK==q=====~K=
m===I=~===xcOz=K=
b=o=~==xlhzK==q=====
~K=

=
4 ^=~=E~F=~~====~I===I=~=
~==`K=

5 l==f=K=

f==j=
CHAPTER 6

a====f====c~|OK=

=
6 b=~==f===K=
f==j=
==fI=======
=K=
m=xbzK=
qW===WZ==MX=

7 p~=~=~===j=
c==j=

==fK=

=~I==^=`~=

=E===xcTz=FK=
`==j=

=~=fK=

8 b=~==o===K=
f==j=
I========K=
m=xbzK=
qW===WZ==NX=

9 j==f=~=o====b=K=

SJRN=

SJRO=

=m~=p~=_~I=jI=~=p~=p=d==

a~==f==~=====b===
=`~=i~=~===`~=i~==K=
a~==o==~=====b==
==`~=i~=~===`~=i~==K=
a~==~===~K==k==~=~==
==~=K=

10 l==b`K=
a===b`K=
11 f=~===~K===
`=p~
K=
k==~==`K=
`=o
K=
k==~==`K=
NOTE

Init is run before every simulation (when the Start


pressed). Reset is run when the Reset

button or Init button is

button is pressed.

12 k==~===`=~~=~K=
13 p~==K=
p=c=J[=p~=j

K=

f==j=
CHAPTER 6

Lesson 7: Entrance and Exit


Controls
Introduction
v=~=~=~==b~=~=b===~=
~~==K=v==~===~===
~=~==~L===~~==K==
v=~=~~=~=j==~=====~=m~=
p~==~=~=jr===~=K=

=
v=~==~==~===EKK=jF==
======~=~===~====
==K=
t=~==J=~=J=
===K=

SJRP=

SJRQ=

=m~=p~=_~I=jI=~=p~=p=d==

Point Oriented Objects


^=~==~====~=pmI=_I==
=q=~==W=b~I=c=bI=o~=bI=pJ
I=~=mK==p======~K==q===
===W=
1 m=`=
2 pJ=`=
3 p=q=
4 pJ=`=
5 b==
6 b~=`=
7 m=q=
8 c=b=`=
9 b==
10 b===
11 o~=b=`=

Pull Control of Point Oriented Objects

m~=p~=~~===I=====
~==~=~==~=====~I==~==~==
t~=~==~K=f=====~====
=jrI=======I====
~~=~K=

Setup Control of Point Oriented Objects

m~=p~=~~===I==~=J=
=~==K=

f==j=
CHAPTER 6

Entrance Control of Point Oriented Objects

=
q==~~=~==~=~=jr===K==q=jr==
~=~==~===I====K=
NOTE

Once set, the time the MU remains on the object cannot be changed, unless a
formula is entered as a processing time.

Front-Activated Exit Control of the Point Oriented Objects

=
q==~===jr=====K=q=jr==
=~===K=
q===~==~~=~=W===jr=
~=====~====K=m~=
p~=~====~~=====
K=
NOTE

The front-activated exit control overrides the default exit strategy of Plant
Simulation, the MUs must be moved manually using methods.

Rear-Activated Exit Control of Point Oriented Objects

=
q==~===jr===K=q=jr==~==
=K=

SJRR=

SJRS=

=m~=p~=_~I=jI=~=p~=p=d==

NOTE

The rear-activated exit control is called only once and it does not override the
default strategy.

Length Oriented Objects


^=~==~====~=iI=q~I===
q=~==W=c=b~I=o~=b~I=c=
bI=o~=bI=c=_~~=b~I=o~=_~~=b~I=
c=_~~=bI=o~=_~~=bI=pI=mI=~=pK==
p======~K=

Front-Activated Entrance Control of Length Oriented


Objects

q==~=~==~=~=jr=~====K=q==
==jr==~========~K==

=
NOTE

Once set, the time the MU remains on the object cannot be changed, unless a
formula is entered as a processing time.

Rear-Activated Entrance Control of Length Oriented


Objects

q==~=======jr==~===
K=

f==j=

SJRT=

CHAPTER 6

=
NOTE

The point-in-time the MU enters the object until the point-in-time the rear-activated
entrance control is activated is the time the MU needs to entirely move onto the
object.

Front-Activated Exit Control of Length Oriented Objects

q==~===jr=====K=q=jr==
~====K==

=
=
=
NOTE

The front-activated exit control overrides the default exit strategy of


Plant Simulation. You yourself are responsible for moving the MU.

q===~==~~=~=W=t==jr=
~===I=~====I=m~=
p~=~====~~I=====
K=

SJRU=

=m~=p~=_~I=jI=~=p~=p=d==

Rear-Activated Exit Control of Length Oriented Objects

q==~===jr=~===K=q=jr==
~====K==

=
=
NOTE

The rear-activated exit control is called once only and it does not override the
default exit strategy.

Backward Entrance and Exit Controls of Length Oriented


Objects

q=jr===~==~=EKK=====~=
~======~~=======
~FK==
Front-controlled

Rear-controlled
Backward entrance control

Backward exit control

direction of motion of the simulation


direction of motion of the MU

Sensors of Length Oriented Objects

c======~=====
~=~==K==

f==j=
CHAPTER 6

SJRV=

=
`=p=====K=
`=k====p=K=

=
p=~===K=

SJSM=

=m~=p~=_~I=jI=~=p~=p=d==

NOTE

Sensors are a very powerful feature.

Moving an MU to the Next Object


q=====jr=====~=
K==m~=p~===jr==~===
====K==
move to SP2:

move to SP3:

@.move;
@.move(SP2);
@.move(1);

@.move(SP3);
@.move(2);

=
=
q=====jr====~=
K=f=~====~==~~==jrK=
b~W=]KE~IPKPFX=
~=
q=~==~==jr====~~==
K=q=~=====jr===
=I=========
~K=q=~===jr=~===~K=
b~W=]K~E~IPKPFX=
q=I=I=~=~=j==I===jr=
~=I=~I===~==K=

f==j=
CHAPTER 6

Predecessors and Successors


r=======~L===~=
W=
EY[F=
EY[F=
q=====~==~K=
p~===~===~====~==
======~=K=q=
======K=

Example:

]KEKENFFX=
]KE\KENFFX=
=KENFK~=Z=9`qp9=KKK=

Other Notes
f==~====~======~=~==
I==~====K==q=~=fI=I==~=
=~===~==\=Z=]K~K=
^=~==~=====W==f==~=f=
\K=Z=I=====~I====K=

SJSN=

SJSO=

=m~=p~=_~I=jI=~=p~=p=d==

Exercise 1: Setting Up the Basic


Data
lW=q===~=~~=~========
K=
1 ^=~==~=~=c~|Q===b=K=
f==`~=i~=~===`~=i~==I=
====b==~==k=J[=c~K=
m===~=~=~===xcOz=K=
b=c~|Q===~K=
2 ^=~=pK=
p==j~~=c=~===q=K=
a~==p=
=I==j~~=c=~===
q=I==c~|Q=K=
l==p=

=I==k=^~==NK=

3 ^==pmK=
m==pm=
===j~~=c=~===
q=K=
e===x`z=K=
m====c~|QK=
o~==x`z=K=
o====~==K=
m===pmI=~===xcOz=K=
b=pmN=~==xlhzK=
o~=====pmOK=
o~=====pmPK=
4 ^=~=a~K=
a~==a~=

===c~|Q=K=

5 ^=~=b`K=

f==j=
CHAPTER 6

a~==b`=
=I===f~=
c=~===q=I==c~|Q=K=
6 ^==j=K=
p==f~=c=~===q=K=
m==j=
===f~=c=~===
q=K=
e===x`z=K=
m====c~|QK=
o~==x`z=K=
o====~==K=
m===jI=~===xcOz=K=
b=pmN|=~==xlhzK=
o~=====pmO|K=
o~=====pmO|K=
o~=====pmP|K=
7 `==b`=
a===b`K=
p==p=~K===
s=~==a=jr==o===K=
`=xlhzK=
8 l~===~===~=~===
=

===~~==K=

SJSP=

SJSQ=

=m~=p~=_~I=jI=~=p~=p=d==

=
9 o==~==~==~====K=
f=c~|QI=====b`K=
f==b=`=I==p~K=
k==jr====pI===
pmI===a~K=
i=~==~=~===jr=~==
K=

f==j=
CHAPTER 6

SJSR=

=
`=xlhzK=
10 c==b=`=I=Ep=~F=o
~K=

==

11 p~==K=
p=c=J[=p~=j

K=

Exercise 2: Entrance and Exit


Control of a SingleProc
lW=q==~=~=====K=
1 r=~==~====K~X=~===
=~==K=

SJSS=

=m~=p~=_~I=jI=~=p~=p=d==

=
kW=l===I==~=~==W=f=\=Z=
]K~==]KX=JJ=q=c=b=`=
2 p======pmN=pmW=

f==j=
CHAPTER 6

c=c~|Q=c~=

SJST=

=I===pmNK=

`==`=~K=

=
`=p=l=

==b=EFK=

c==p=l=I==pmN|=~==
xlhzK=

=
`==E~FK=

=
`=xlhzK=
NOTE

Keep in mind how the front activated exit control works.

3 p======pmO=pmW=
c=c~|QI===pmOK=

SJSU=

=m~=p~=_~I=jI=~=p~=p=d==

`==`=~K=
`=p=l=

==b~=EFK=

c==p=l=I==pmO|=~==
xlhzK=
`=p=l=

==b=EFK=

c==p=l=I==pmO|=~==
xlhzK=
`=o~K=
r=cK=

=
=`=xlhzK=
4 p======pmP=pmW=
c=c~|QI===pmPK=
`==`=~K=
`=p=l=

==b~=EFK=

c==p=l=I==pmP|=~==
xlhzK=

f==j=
CHAPTER 6

SJSV=

=
`=xlhzK=
5 p~= ==~=~===`=K==
k=~==~=jr==~=pmNK===
NOTE

The front-activated exit control for point oriented objects overrides the default exit
strategy of Plant Simulation, the MUs must be moved manually using methods.

6 o=

==~K=

7 b==pmN|==~=~=~=====jr===
=K=

=
8 p~=~=~===j=
c==j=

K=

=~I==^=`~=

=E===xcTz=FK=

SJTM=

=m~=p~=_~I=jI=~=p~=p=d==

`==j=
9 p~=

K=

==~=~===`=K===

=
10 t~==========pmN=~=
pmO\==EpmO====~==~====~===
===~FK=
11 o=

==~K=

12 p~==K=
p=c=J[=p~=j

K=

Exercise 3: Entrance and Exit


Control of the Line Object
lW=q==~=~======
K=
1 `~=c~|R===b====`~=i~K=
2 `====c~|Q=~=~===c~|RK=
NOTE

Notice that all or part of a frame can be copied and reused.

3 f=c~|RI====pm=~==K=
4 o~==pm==i=
=K==q===
===~=~=~=~=====
K==^=~========
K=

f==j=
CHAPTER 6

SJTN=

=
IMPORTANT NOTE

In the SP1_out method, remove @move, so that it doesnt skip L2. (in other words
so that it doesnt move twice).

5 p======iN=iW=
c=c~|RI===iNK=
`==`=~K=
c==bI==pmN|lK=
`=~K=
r=K=

=
`=xlhzK=
6 p======iO=iW=
c=c~|RI===iOK=
`==`=~K=

SJTO=

=m~=p~=_~I=jI=~=p~=p=d==

c==b~I==pmO|fK=
`=~==b~K=
c==bI==pmO|K=
`=~==bK=
r=c==b~=~=bK=

=
`=xlhzK=
7 p======iP=iW=
c=c~|RI===iPK=
`==`=~K=
c==b~I==pmP|fK=
`=c==b~=E~FK=

f==j=
CHAPTER 6

`=xlhzK=
8 m~=

==~=~====K=

NOTE

The front-activated exit controls for length oriented objects overrides the default
exit strategy of Plant Simulation. You are responsible for moving the MU.
However, we are not using any in this exercise.
NOTE

L2 Front Exit control will take place before the L3 entrance control. Also the L2 rear
exit control will happen after the L3 entrance.

9 p=~=o=

==~K=

10 p~==K=
p=c=J[=p~=j
=
=
=
=
=
=
=
=
=
=
=
=
=

K=

SJTP=

SJTQ=

=m~=p~=_~I=jI=~=p~=p=d==

Chapter Summary
f==~=====W=
q=l=j=~==~===~=j= =
q=j=a=
k~=p~=~=m~=
^=f=
j=`~==
b~=~=b=`=
=
=
=
=
=
=

j==j=
CHAPTER 7

Chapter 7

More on Methods
=
=

About This Chapter


q=~===~=~==~==
=~=====K=q=~=~==
=W=
i=NW=p~I=~=TJPI=====
~K=
i=OW=`~=p~I=~=TJNMI====
=~=~==K=
i=PW=q~=~=d~=s~~I=~=TJNQI==
===~=~=~=~~K=
i=QW=r=a=c==jI=~=TJPOI=
=====K=
i=RW=l~=~=l~=mI=~=TJPVI=
=~=~=~~=K=
i=SW=`=a~~=qI=~=TJQQI==~=
=~=~=====~~=K=
i=TW=iI=~=TJQTI=====~==
=K=

TJN=

TJO=

=m~=p~=_~I=jI=~=p~=p=d==

i=UW=`~=p==~=~=I=
~=TJRPI===~=~==~=
K=
i=VW=j==^==^=lI=~=
TJRSTJRVI====~=~==~===
~==~=^=K=
i=NMW=^==`==~=l==~=
jI=~=TJRVI====~====~=
==~=K=
i=NNW=`~==^=`I=~=TJSSI==
==~==~=K=
i=NOW=`~=j=~=c~=`I=~=TJTTI=
==~=~=K=
i=NPW=EoF=_=`=^~I=~=TJ
UQI=========~~K=
i=NQW=j=q~=pI=~=TJVRI==
~=~=~====~=K=
i=NRW=q=~=i=iI=~=TJNNOI===
========~==mi`===
=~===~=~===K=
i=NSW=m~~=~=j~~I=~=TJNPQI=
===~==~K=
i=NTW=l=p=qI=~=TJNQOI===
~===K=
=
==
=

j==j=
CHAPTER 7

TJP=

Lesson 1: Statements
Introduction
q=~L==~=~=~=====p=
^=~=j====K=
q=~L====~=~===
=l=J[=p=^=~=j===c~K=

=
k~=J=k~===~==K=
p~=J=a~~====~I==~~====
~EFK=
s~=J=l=~=~=~=~K==aJ==K=
f=Lk=f=J=p===~===EF==
==EFK=
t~~=J=p==m~=p~=~=~==~=
==~K=

TJQ=

=m~=p~=_~I=jI=~=p~=p=d==

Assigning a Value
^=~=~==~====~======
~=~W=Y[=WZ=Y~[K=
b~W==K~~=WZ=UX=
=

pmKm~=WZ=X=

]Kf=WZ=Aq~qAX=

t=~=~=~=~=~=I=====~=
~K===

Using Auto Complete

r=~J====K=b====
==~~==~=I=~=~I==~==~==
x`z=H=xp~z===b=J[=^=`K=
m~=p~===I=~==~===~=
==~~==I==~I=~=
~=~==~K=

=
f==~===I=m~=p~==~===
==~=I======~=====
=~==xbz=E===FK=
NOTE

Dont forget that statements must end with a semicolon.

j==j=
CHAPTER 7

Exercise 1: Changing the


Attributes of an Object Manually
lW=q=~==~==~=m~~m=~~K=

1 ^=~==~===b====`~=i~=
~=~==c~|SK=
2 f=~=pm===c~|SK==
3 f=~=j===c~|SK=

4 l==p=^=~=j=K=
p==pmK=
c==c~|S==I==l=J[=p=
^=~=j=
5 `~===~====~==
~==p=^=~=j=K=
p======~=~=~=mqK===
NOTE

A shortcut is to type the first part of the attributes name. The Show Attributes
window will jump to the attribute.

TJR=

TJS=

=m~=p~=_~I=jI=~=p~=p=d==

=
a===mqK=
c=mq==O==EKK=OWMM=FK=

=
NOTE

This is the same as the Processing time found on the Times tab of the SingleProc
window).

`=xlhzK=
`==p=^=~=j=K=

6 `~==~===pm=K=
a====pmK=
=p==q=~K=
q=m=q==OWMMK=
c=m=q==N==EKK=NWMM=FK=
NOTE

Entering the processing time on the Show Attributes and Methods window or on the
object window has the same affect.

j==j=
CHAPTER 7

7 p~==K=
p=c=J[=p~=j

K=

Exercise 2: Changing the


Attributes of an Object with a
Method
lW=q=~==~==~====~=
jK=

1 l==j==c~|SK=
a====j==c~|SK=
2 b=~==j==K=
f==j=
==jI======
==K=
m=xbzK=
qW=pmKmq=WZ=NOMX=
NOTE

In a method, Processing Time should be entered in seconds.

3 p~=~=~===j=
c==j=

==jK=

=~I==^=`~=

=E===xcTz=FK=

4 o==K=

TJT=

TJU=

=m~=p~=_~I=jI=~=p~=p=d==

c===
=~I==o=
==xcRz=FK=

=E=

5 i=~==~===K=
a====pmK=
=p==q=~K=
q=m=q==OWMMK=
6 c==~======~===
pm===jK=
l==p=^=~=j=K=
NOTE

Use Show Attributes and Methods to get the Plant Simulation names used in
your Method. You can use technique in the method: type Single. and then press
[Ctrl]-[Space bar] to get list of options.

c==~====um==RMK=
c==~====vm==PMK=
c==~====b~i=Ei==
b~===pmFK=

=
`==p=^=~=j=K=

7 p~=~=~===j=
c==j=

==jK=

=~I==^=`~=

=E===xcTz=FK=
`==j=

=~=jK=

j==j=
CHAPTER 7

8 o=

TJV=

==K=

9 q=pm=====~==c~|SK=
10 s==~===p=^=~=j==
~==~===pm=K=

11 p~==K=
p=c=J[=p~=j
=

K=

TJNM=

=m~=p~=_~I=jI=~=p~=p=d==

Lesson 2: Conditional
Statements
Branching using If Then

if

condition

then

statement
sequence 1;

else

statement
sequence 2;

end

;
r===~==~====~=j===
===~=K==
f====I==j==~=
=NK=f====~I==j==
~==OK=
f=====I==~=~====~==
~==OK=

Example of an If statement:

q=~=~=~===jr=~=E~F==I==
====~=~~===EKK=pmFK==
lI======~~===EKK=~=
pmFK=

j==j=
CHAPTER 7

TJNN=

Branching using If Elseif


r=====~I==j=~=~===
K=m~=p~=~~====~==
=====K=q=====
~=K=f====I====~=
=~K=t===~===I=m~=p~=
=~==~==~K==

TJNO=

=m~=p~=_~I=jI=~=p~=p=d==

Example of an ElseIf statement:

q=~=~=~===jr=~=E~F==I==
====~=~~===EKK=pmFK==k==
=~=~=~==I=======~~=
==EKK=~=pmFX======~=
~~===EKK=~=pmFK=

The Inspect Statement


expression_1

inspect

when

value_n

the

statements;

n
,

else

statements;

end

j==j=
CHAPTER 7

q==~=~=m~=p~==~=~=~=
~=====~=K=q=~=
===~====JJJ~K=
NOTE

This is similar to the case statement in the C programming language.

Example of an Inspect Statement:

q==~=~~===~=~==~===
Ff=b=~K==f====~===K==q=
====~===~==~=
====~=~K==

TJNP=

TJNQ=

=m~=p~=_~I=jI=~=p~=p=d==

Lesson 3: Tables and Global


Variables
Using Tables and Global Variables
in the Paint Shop
Milling1
Store
Table-Tops

CutToSize

Paintshop

Quality
control

Milling2

Rejects

Receiving
Table-Legs

Conveyor

Buffer

Assembly

Packing

Shipping

TableFile Inheritance
q=q~c==~===~==~=~====
==~==~~===~===
c~=I=f=c~I==f=`K=
^==~~=f=`==~====
==~==~~===~=jK=

j==j=
CHAPTER 7

^==~~=f=c~==~===~==
=~K=q=~=~~=f=`K=
p=s=J[=`I=~======
=~~===~K=

Formatting the TableFile


_==~=~~=I====~==~==
==K=
p=c~=J[=c~K=
p==a~~=q=~K=
p==~~=K==
b=====~W=

TJNR=

TJNS=

=m~=p~=_~I=jI=~=p~=p=d==

Accessing the TableFile with a


Method
t=~=~=q~cI=m~=p~==~===
~===K=

j==j=
CHAPTER 7

=
o~==N==O==~=~W==q~c=xNIOzX=
t==~=~W=
=

q~c=xNIPzW=Z=AX=

=
=
=
q~c=xOIPzW=Z=NUMX=
t=xOIPz====O==PK=

e==~====~====~==~=~~I=
~I==
Yl[KqW=Z=q~c=xOINzX=

Accessing a TableFile Using a


Custom Index
v=~=~=~=~=====~==K=e==
~=====~=~~======
======OI==N===~K=
Yl[KqW=Z=q~c=xAI=Am~^zX=

TJNT=

TJNU=

=m~=p~=_~I=jI=~=p~=p=d==

Methods for Lists and Tables


=
Yq~c[K`ENINFX=

p=====
~=K=

Y[KENINKKGIGIY~[FX=

c==~===
~=~K=

Y[K`uXI=Y[K`vX=

p====~==
EuF===~==EvF=

Y[KaXI=Y[KaX=

o==~===
==~=K=

Y[KEPI~FX=

p==~===
==~===
~=K=

Y[K~s~ENINKKNIGFX=

o==~=~=
=~=~==~~==~=
====~K===

Y[K~~a~ENINKKNIGFX= o==~~=
~===~==
=~K=
Y[K~ENINKKNIGFX=

o==~=~==

j==j=
CHAPTER 7

=~K=
Y[KENINKKNIGFX=

o==~=~==
=~K=

Y[KENINKKNIGFX=

q~==~===
~K=

Y[KENINKKGINFX=

a==~===
=K=

Y~|~~[K~X=

`~==~=~=~=~=
~~I==K=

Searching a TableFile
m~=p~=~==~=~=~=====
=~==~=F=~======~=~=
===~=K=f======~=~==F~=
==
e==~=~==~=j=~=~=q~cW=

TJNV=

TJOM=

=m~=p~=_~I=jI=~=p~=p=d==

The Variable
=
`~~=Z=M=
f~=c=l=
NOTE

Programmers call this a Global Variable.

r==~~===~==~=====
==~=K=v=~=~==~=~==K=q=
~==~====~~=K=l===
=~=~==s~~K=
q===~==~=~=~====~===
=~===~=~K=

j==j=
CHAPTER 7

Exercise 1: Setting up the Painting


Method
lW=q==~==~==~=~=q~q==
=K=

1 `====K=
2 i=~=====q~qK=
f==`~=i~=~===`~=i~=I==
===q~q=~==b=fK=
=r==~==
===f=b=
==~=====q~qK=
`==f=b=

===

=K=

3 ^=~=~===~==~~~=K=
l==`m~p=~===c~`=
===`~=i~K=
p===f~=c=~===q=K=
a~==q~c=
===`m~p=K=
m==q~cI=~===xcOz=K=
b=`q~=~==xlhzK=

4 b=====~===`q~K=
a====`q~K=
c=NI==~===~=W=I=I=I=
I=~=K=

TJON=

TJOO=

=m~=p~=_~I=jI=~=p~=p=d==

=
`==`q~=K=

5 ^=~=j=~=~==m~K=
c==f~=c=~===q=I=~=
=j=
===`m~p=K=
m==jI=~===xcOz=K=
b=m~=~==xlhzK=

6 ^=~=s~~K=
c==f~=c=~===q=I=~=
=s~~=
===`m~p=K=
a===s~~K=
b=`f===k~K=
`=xlhzK=

j==j=
CHAPTER 7

=
7 p==m~=====`f==N=
~====~K=
a====m~====
`m~pK=
==m~I======
f==j=
==K=
m=xbzK=
qW==`f=WZ=`f=HNX=
m=xbzK=
qW==m=`fX=
c==j=

=~I==^=`~=

K=

8 o==m~==~=====K=
c==m~=j=

=~I==o=

==K=
q=====~==~~===
`=K=

=
==~===K=

9 j==m~=====`f==N====
~=~=======`q~K=
f==j=
==m~I======
=W==`f=WZ=`f=HNX=
m=xbzK=
p=q~=J[=f==qK=

TJOP=

TJOQ=

=m~=p~=_~I=jI=~=p~=p=d==

o~==YY[[=====`f=[=
`q~K=
o~==YY|~[[=====
qW==`f=WZ=NX=
c==j=

=~I==^=`~=

K=

10 o==m~==~=====K=
c==m~==

=~I==o=

K=
q=====~==~~===`=
K=
o=======`f===~=~=
=NK=

==
NOTE

Notice the ColorIndex value shows in the frame (and in the Console window in this
case).

j==j=
CHAPTER 7

TJOR=

=
11 b==m~==~===W=m=
`fX=

12 `=~=~==j=
K=

=~==m~=

13 p~==K=
p=c=J[=p~=j

K=

Exercise 2: Painting the TableTops


lW=q===~=====~==
q~q=jrK=

14 f=======~=j\=Eq=
~=FK=
`===`m~pK=
a====m~m~=pmK=
p==`=~K=
`=p=l=
==b~=EFK=
c==p=l=I==m~=~==
xlhzK=

=
`=xlhzK=

TJOS=

=m~=p~=_~I=jI=~=p~=p=d==

15 q==~===`m~=~K=
l==qm~=~K===
p~==~====~=~===
`m~K=

=
o==~K=
`=~==~K=

16 m~====~=m~=p~=~==
q~q======~W==j==m~=
==~==jr===EKK=jr=F==
====~K=
NOTE

Use CurrIcon attribute to change icon Use the ColorIndex to cycle through
colors in the ColorTable.

l==`m~=~===
c~`====`~=i~K=
a====m~=K=
f==j=
==K=
m=xbzK=

==m~I======

j==j=
CHAPTER 7

qW==]K`f=WZ=`q~xNI`fzX=
kW=q=====~======
q~q=====m~m~=pmK=
c==j=

=~I==^=`~=

K=

=
`==j=

=~=m~K=

17 `==`m~=~K=
18 p~==K=
p=c=J[=p~=j=

K=

Exercise 3: Test Painting


lW=q====~=======
K=

1 q==~===`m~=~K=
l==qm~p=~===qj===
=`~=i~K===

TJOT=

TJOU=

=m~=p~=_~I=jI=~=p~=p=d==

=
a~=~===q~q===jr====
`~=i~====p==qm~K=
c==qm~=~I===`m~=
~K=
NOTE

The modifications we made the CompPaintshop frame are shown here in the
TestPaintshop frame.

c==KqjKqm~K=`m~=
c~= =I=p~= ===~=~=~=
==q~q=~=~===`m~=
~K===

j==j=
CHAPTER 7

TJOV=

=
NOTE

Technically, we are not changing the color of the TableTop. We are changing the
current icon for the TableTop. It just so happens that this TableTop MU has icons
that are named the same as colors. Knowing this, how would you go about adding
a black table? There are a few steps: add black to the ColorTable, modify the
Method to increment one more (if needed), and add another icon to the TableTop
MU (i.e. right click it and select Edit Icons, etc) called black.

o=

==~K=

`==`m~=~=qm~=c~=
K=

2 m=f=^=qW=q~I==~==~==
===q~qK==t=~=~=====
=q~qK==f===~=~==q~q=jr=~=
=~=~=~==~=~=K==h=I==
===~=~=~=~=~\==q=~=~==
W===
^=~===`q~K=
j==j=====E=FK==q=
==~~=~==~======
~==~==~=~K=
b==K=

TJPM=

=m~=p~=_~I=jI=~=p~=p=d==

^=~====q~q=jr=EKK====~=
=b=fI=F=~=~K=
r=b=fI===~======
===q~q=K==
m~==~====K=
r=b=fI=~==~======
~K=
q====~=K=

3 p~==K=
p=c=J[=p~=j

K=

The StackFile, QueueFile and


CardFile
q=p~cI=nc=~=`~c=~====K==
q==~=====f~=c=~===
qK=q=~=~==K=q===
~==~I==~=====~=K=
p~c= =E===~=~~=F===
~===~=======~=~=
E=ifcl=W=i~=f=c=lFK=^=~=
=====~=~=K=
nc=
=E====~~=F=~=
=~=====~====
~=====K==E=cfcl=W=c=f=
c=lFK==v=====~===~==
~=~K=
`~c= =E====~~=F==~==~=
~=~======I===
==K=

j==j=
CHAPTER 7

Method for Writing into


StackFiles, QueueFiles and
CardFiles.
=
Y[KEY~[FX=

f==~======
=p~c===ncK=

Y[K=EPIY~[FX=

f==~=====~==
EPF===`~c=~===
====~===
==K=

Y[KxzX=

o=====~===
=p~c=~====
======ncK=q=
=====K==

Y[KxPzX=

o~=~======
==~==EPF===`~cK=q=
=====K=

Y[KX=

o~=====~====
p~c=~=~=====
====nc=~==
K==

Y[K~=EPFX=

o~====~==EPF===
`~c===K=

Y[KX=
=
=

o==~===~=K=

TJPN=

TJPO=

=m~=p~=_~I=jI=~=p~=p=d==

Lesson 4: Using Distribution


Functions in Methods
Introduction
v=~=~=~=W=
f==~===I==
t=~=s~~===~~==~I==
^==~=j===W=
kW==~====~~===~==~=
=~=K==^==~~I===I=~=~=
K=
_~=J=|~EI^~NI^~OF==
_~=J=|~EIIF==
`=b~=J=|EIq~F==
m=b~=|EIq~IF=
b~=J=|~EIjIp~F=
d~~=J=|~~EI^~I_~F=
d=J=|EIF=
e=J=|EIIIF=
i~=J=|EIjIp~F=
k~=~=J=|EI_~F=
k~=J=|~EIjIp~F=
m=J=|EIi~~F=
q~~=J=|~EII~IF=
r=J=|EIp~IpF=
t=J=|EI^~I_~F=

j==j=
CHAPTER 7

kW=t==========
~=~==miqPMM=K==q===~=~==~=~=
===K==

For example:

kW=q===~===K=
b~===I==m^m~==~==NMB=
==~==m~c~K==eI===~==~=
~==~==~==~=~==~==
~~===~K==

=
kW=f==~I==m^m~===~==
===~==jr=^K==^=~===
===~======~=K=

Exercise 1: Randomly Selecting a


Color for the TableTop
lW=q=~======q~qK===

Overview

`==~=====~=~K==k=
==~==~====~===~===
~K==

TJPP=

TJPQ=

=m~=p~=_~I=jI=~=p~=p=d==

Procedure

1 l==`m~p===c~`==
==`~=i~K=
2 b==m~=K=
`~======W=
=
= =
====`f=WZ=|EOI=NI=`q~KFX=
====]K`f=WZ=`q~xNI`fzX=
X=
3 p~

==~==qm~=====K=

kW=q======~=~=K=

4 `=~==~K=
5 o=

==~K=

6 p~==K=
p=c=J[=p~=j

K=

j==j=
CHAPTER 7

TJPR=

Exercise 2: The Paint Cycle


lW=q==~=~======F~=
q~q=jrK=

Overview

Procedure

1 l==`m~p===c~`==
==`~=i~K=
2 `~====~=~===FK=
a==a~K=
e===x^z=K=
a~=~==j_===c~`=
===m~m~K=
kW=o~=~==~==j_=`~=i~==
~==~K==f=~=~=~~==Q=~=~====MK=
p=kK=
a==~===m~c~K=

TJPS=

=m~=p~=_~I=jI=~=p~=p=d==

a~=~==jpm===c~`=
====~=m~=c~K=
k~==cm~gK=
a==cm~gK==
c=m=qI==k~K=
=c=m=qI==PI=RWMMI=OWMMI=NWMMI=NMWMM=
`==~=W=

3 q==`m~p===qm~p=c~=
K=

l==qm~p=c~= ====
qj====`~=i~K===
c==qm~m~=c~=
`m~=c~=

=I===

=K=

c==qm~=c~= I=p~= ==
~=~=~===q~q=jr=~=~==
=`m~=c~=
o=

==~K=

=K===

j==j=
CHAPTER 7

`==`m~=c~=
qm~=c~=

TJPT=

==~=

=K=

4 p~==K=
p=c=J[=p~=j

K=

Exercise 3: Test and View a Large


Model
lW=q===~===~=m~|=K==

1 s==~===~=m~|=K=
l==m~|U=c~= ====j=
===`~=i~K=

=
p~= ==~K=
i=~==~=====~K=
o=

==~K=

2 p~==K=

TJPU=

=m~=p~=_~I=jI=~=p~=p=d==

p=c=J[=p~=j

K=

j==j=
CHAPTER 7

Lesson 5: Operators and


Operator Precedence
Introduction
^===~==~==~=_~=~K=r=
==~=~=~=K=
v=~=~===~=^kaI=lo=~=klq==~~=
==~K=

Logical Operators
q==~==~===_~=~=
~===~====~=_~=~K=

Logicial Operator Basics:

l~=

p~=

o=

klq=

k=q==

c~=

k=c~==

q=

c~=Z=c~=

q=

q=Z=q==

q=

c~=LZ=q==

q=

Z==E=~=F=

LZ==E==~=F=

And Table:

f==~==~=~======~=~==
======K=
=

qorb=

c^ipb=

TJPV=

TJQM=

=m~=p~=_~I=jI=~=p~=p=d==

qorb=

qorb=

c^ipb=

c^ipb=

c^ipb=

c^ipb=

qorb=

c^ipb=

qorb=

qorb=

qorb=

c^ipb=

qorb=

c^ipb=

Or Table:

j==j=
CHAPTER 7

TJQN=

Integer Operators

Real Operators

TJQO=

=m~=p~=_~I=jI=~=p~=p=d==

String Operators

=
kW=^=~=EZZF====~=K=
~==
==
==
==
==
==
==
o==
o==
i==
i==
==

Bit Operators
m~=p~=====~~=
~===~==~W==
_^ka==
_lo==

j==j=
CHAPTER 7

_p==
_p==
_q==
_ulo==

Operator Precedence
j~~~==~=~=~=~=
==~K=m~=p~=~==
~~~=~==~=~~=~K=q===
==~=~=====~====~=
~K=v==~=========~=
=~==K=^===~===
K=t==~I=====~K=c=
~==~I=m~=p~=~~==
==K=q=~=====
~K=l~===~==~====
~=K=q=====K=

=
=
=

TJQP=

TJQQ=

=m~=p~=_~I=jI=~=p~=p=d==

Lesson 6: Converting Data


Types
Introduction
a~~==~==~=~K=k=~=~=~==
~==~=~~=K=
_=~~==~~=I===~==
===~==~K=l==~=m~=
p~===~K=

Automatic Data Conversion


p==~====~=~==EKK=
===~=FK==c=~W=
q=~==
a~=~=a~=E===~F=
f=~=o~=E==~==~===
~F=

j==j=
CHAPTER 7

Manually Converting Data Types


m~=p~==~====~~=
K=

Functions for Converting Numerical Values

||==
||==
||==
||==
==
||==
||==
||==
|==

Functions for Converting Physical Data Types

||~~=
||=
||=
||=

Functions for Converting Physical Data Types with Units


into Data Types without Units

~~||==
||==
||==
||==

TJQR=

TJQS=

=m~=p~=_~I=jI=~=p~=p=d==

||==

Functions for Converting Values without Units into


Physical Data Types with Units

||~~==
||==
||==
||==
||==

Functions for Converting References

||=
||==

Functions for Converting Times and Dates

~||==
||~==
||~==
||==
o~==
=
=
=
=
=
=

j==j=
CHAPTER 7

Lesson 7: Loops
Introduction
q===~=~====~=cI=o~J
rI=~=tK=

The For Loop


to
for

counter variable
start value

end value

loop

downto
statement
sequence;

next;

q===~==~=~==~==~=~==
~K=q==~~=~====~~===~==
====K=l====I=m~=
p~=~=N===~~=E=F===N=E=
FK=f======~===~K=
e==~=~==~========~~=~=N=
===W==

TJQT=

TJQU=

=m~=p~=_~I=jI=~=p~=p=d==

The Repeat-Until Loop


repeat

statement
sequence;

until

condition;
=

m~=p~===~==~=~==~==
====K=f======I=
m~=p~====E=====
==I=I==i==FK=
NOTE

Simulation executes the loop infinitely. You can interrupt an infinite loop by pressing
[Shift] + [Alt] + [Ctrl] to open the Debugger.

e==~=~==~=o~=r=W=

j==j=

TJQV=

CHAPTER 7

The While Loop


=
while

condition

loop

statement
sequence;

end;

m~=p~=========K=
e==~=~==~=t=iW=

TJRM=

=m~=p~=_~I=jI=~=p~=p=d==

Exercise: Loops
lW=q=~=====K=

1 `~=~==~====b==~=~==iK=
2 ^=~=j===i=~K=

=
3 ^=~=~===j===i=~=~=~=
=~=~==~==N=~=NMK=
a====j===iK=
f==j=
==jI======
==K=
qW==W=X=
==jI======
f==j=
==K=
m=xbzK=
p=q~=J[==KKK=X=

j==j=
CHAPTER 7

TJRN=

p=YY|~~[[=~===
p=YY~|~[[=~==N=
p=YY|~[[=~==NM=
p=YY|~[[=~===X=

c==j=

=~I==^=`~=

K=

4 o=
==j=~==~======
`=K=

TJRO=

=m~=p~=_~I=jI=~=p~=p=d==

5 r==a= =I====j=~=
~======~~===t~=K==
a======`~=N\==e=~==W=
c==j=

==~I==a

c==a=

K=

==~I==t~=

t
K=
f==t~=tI===s~~=~K=
c==a=

==~I==p=l=

=K=
f==t~=tI===~===~=~=
=M==N=~====K=
c==a=

==~I==p=l=

===K=

=
=

j==j=
CHAPTER 7

Lesson 8: Conditional
Suspensions waituntil and
stopuntil
Introduction


Overview:

pr=t~~`=m=t~~b=
t~r=t~~`=m=t~~b=
q=~~===~~==~=~=~K=
q=~~===~~==~==~=
===~==K=
^===NM===~=N=EKK=f=====
I=====~FK=
c=t~r===~~===~=
==~~====K=
c=pr===~~===~==
K=

More Details:

f=====I=m~=p~===
====~K==f====~=
~===~=~I==~=~=~=~=
~~K=f=======~=
K=
^==~=====~==~~=~~I=m~=
p~======~==~=
======~==~===
====~=K=

TJRP=

TJRQ=

=m~=p~=_~I=jI=~=p~=p=d==

t=~===~===~===
=I=m~=p~=~~==~==~==~=
==~====EF=~=~=K=
c====~I===J~~=
=====~=K=q=
=~~====I==~==~=
=====~~K=
c====I=m~=p~===
J~~===~~====~=
K=f=~~=~====~==~==~=
===~===~===K=

Here is an example of waituntil:

t===~===~=~======
==~==K==c=I===~==
~W=

=
NOTE

Enter the maximum number of suspended methods under Tools ->


Preferences -> Simulation.

Other Related
`~bEY~[IY[IY~[F=

j==j=
CHAPTER 7

`~=~==~===~====
~=Y~[==~====~K=^=~=
~=~=~===~=K=
`~EYL~L~[IY~[F=
 `~=~==~=====~==

Y[=~=~K=c=Y~[==Y~[=m~=
p~=~~===~===~===
b`=~==~===~==~=
Y~[==Y~[K=^=~=~===
==~=K=
aj`~=
t~EY~[F=
f==~=~=~======
~=~=Y~[K=q=b`==~=
jt~=K===
=
=
=
=
=
=
=

TJRR=

TJRS=

=m~=p~=_~I=jI=~=p~=p=d==

Lesson 9: Methods using


Attributes of Assembly
Objects
Introduction
Y[Km~ij==`~====~====
^=~===^==K=f=~==~=
~=~===~W=
k=
m=
jr==
Y[K^i==`~=====~====
^=~=l====^==K=
a====~J=~==m==jr==
===m~ijK===
c=mI=======~=
====~K=
c=jr=I=====jr=~=~==
===~K=

For example:

kW=q===~=K=
m==~==`^===~==P=
==Q==~==~=~~=~==~K==q=~=
~====~===~======
^======~~=~=~==
==K=
q=====~==~===
^=W=

j==j=
CHAPTER 7

TJRT=

=
q===~==cq~q=~=~=c=b=`W=
=
=

~=W~xIzX=

=
=

~=^K==NX=

~=WZ=^K^iX=

~xOINz=WZ=]KvaX=

^K^i=WZ=~X=

]KX=

X=

TJRU=

=m~=p~=_~I=jI=~=p~=p=d==

kW=r=====~~=~===
==~=q~qK===
kW=q====~=m~ij=Z=Am=~K==
q====~=m~ij=Z=Ajr==~I=~==
=~~===~=~==~=K=

Another Example:

q=~=====~=~==~=
=~=K==f==~I==q~q===~=~=
EKK=~FK==q=~=====~==~====
=~=E====~===~=FK==q===
===~====K=

j==j=
CHAPTER 7

Lesson 10: Accessing the


Contents of an Object with a
Method
The Container
q=~=~=~=~=~=~=~K=f=~=~=~=
~=~=jrK==
b==~~===J~=~==J~K=q=~==
=~==~~====~===~K=
`~=~=~=~=~====K=
NOTE

The default container holds 4 MUs (2x2). If this is not desirable, duplicate the
.MUs.Container object and define your own size.

TJRV=

TJSM=

=m~=p~=_~I=jI=~=p~=p=d==

Accessing the Contents of an


Object
r=====~=====~~==
=~==~K==

Example 1:

j==b===p~=~===jj~=~K=
]KEjj~FX=
]I====jr=~==j=
p~KKEjj~FX=

j==j=
CHAPTER 7

Example 2:

j==b===`~===p~=~===
jj~=~K==
]KKEjj~FX=
~KKKEjj~FX=

Saw

MillingMachine

Example 3:

j==b===p~=~===`~===
jj~=~K=
]KEjj~KFX=
~KKEjj~FX=

Saw

MillingMachine

Example 4:

j==b===NI==O====~===
=~K=
xNIOzKKX=

TJSN=

TJSO=

=m~=p~=_~I=jI=~=p~=p=d==

kW=q===~~====jr=~==~==
==I====~==jr=~=EKK=~FK=
kW=q=~=~===~=~===
~=E=KKKFK=
NOTE

You can only access the contents of an object that actually contains MUs.

The Contents of a Material Flow


Object
_=~====~=I=~==~==
=~=K=r=========
=~=====~=~~===EKK=I=~I=
=FK=
^=~~===~====~I===~==
~===K=q=======
===~=~I=~I======~=~K=

Methods for the Contents of a Material Flow Object/MU:

Y[KX==qorbI===jr==~===
~I=c^ipb==~=jr==~==K==
YKKK[KX==qorbI==~=~==~=m~~m==~=
_=~=I=c^ipb======~K=
YKKK[KX==qorbI==~=~==jr==~=
==~I=c^ipb===jr==~==K=
YKKK[xOINzKX== =qorbI==~=jr==~==
=~=====~K=
YKKK[KKX===qorbI======
=jr=~=~=~==jr==~====K=

j==j=
CHAPTER 7

YKKK[K~X==qorb======~=~=jr=
=~==K=`~===~=KK=
EkW=~==~==~KF=
Y[KX=q=jr==I====~==~=
~~===~====~=iwI==
m~I=~==c~=

Exercise: Replace the Assembly


Object with a Method
lW=q=~==^===~==~=~==
===K==t==~~==q~i=jr===
q~q=jr==~=K===
NOTE

This exercise provides an example of how to create a method that functions like a
Assembly object. It is not required to complete this exercise in order to get the final
result in our model. However, it is required in order to do the next lesson.

6 j~=~=~====`^=~=~=K=
f==c~`====`~=i~I==
=`^=~==a~K=
o~=`^N==`^_~NK==
`=~==~K=
7 _===`^=~K=
f==c~`====`~=i~I==
=`^K=
o==^=K=
h===cq~q=I====
=====~K=
^=~=jK=
k~==~K=

TJSP=

TJSQ=

=m~=p~=_~I=jI=~=p~=p=d==

8 `~==~=K=
a==cq~qK=
p==`=~K=
_=~===~====c=b=
~K==

=
`=xlhzK=
o~====cq~iK=

9 ^====~=K=
=
=

W=X=

=
=====cq~qK~=~==
====Ecq~iKkjr=[Z=cq~qKKF==
=

JJ=^==~===cq~q=~=

==WZ=N==cq~qKKK==

j==j=
CHAPTER 7

==== ==========cq~iKKEcq~qKFX=
=

=======X=

=======JJ=^==~==~I====

======cq~qKKEcq~lFX=

X=

X=

10 q==~==`^K=
l=q^K=
p~==~K=
i=~==K=
o==~K=
`=~==~K=
11 p~==K=
p=c=J[=p~=j
=
=
=
=

K=

TJSR=

TJSS=

=m~=p~=_~I=jI=~=p~=p=d==

Lesson 11: Creating the


Assembly Cycle
Introduction
t=~==~=~=~=K=t=~===~==
q~q==~I==~====~=
~K=e==q~i=~=~===q~qK=q==
~=~=====~=~I===
~=~==~===I====~~K=

To accomplish this we model:

1 i~==q~q===m~=
2 ^==q~i===q~q=
3 r~==q~q===m~=
4 `==m~=~====

j==j=
CHAPTER 7

TJST=

Exercise 1: Creating a Custom


Container
lW=q=~=~=====jrK=

1 e~==~==K=
2 j~===`~K=
c==`~=i~I====jr=K=
o===`~=~==aK=
o~=`~N==m~K=
a===m~=E=FK=
c==uJI==NK=
c==vJI==NK=
`=xlhzK=
3 p~==K=
p=c=J[=p~

K=

TJSU=

=m~=p~=_~I=jI=~=p~=p=d==

Exercise 2: Creating the Assembly


Loading Cycle
lW=q=~==~=~=K=
t=~===~==q~q==~I==~=
===~=~K=e==q~i=jr=~=~==
=q~qK=q==~=~=====
~=~I===~=~==~====~~K=

1 j~=~=~====`^=~=~=K=
f==c~`====`~=i~I==
=`^=~==a~K=
o~=`^N==`^_~OK==
`=~==~K=
2 _===`^=~K=
f==c~`====`~=i~I==
=`^K=
p=~====~==K=
f=~=p= K=
k~==m~|pK==
a~=~===`~N===Kjr====
`~=i~===p|m~K=
m==m~|p=~=~==
~~=~==W=

j==j=
CHAPTER 7

TJSV=

3 p==K=
f=~=i=
^=K=
o~==ifK=

===m~|p===

f=~=`=~=i=
=====^=
~=====ifK=
o~==ilK=
`==m~|p==ifK=

TJTM=

=m~=p~=_~I=jI=~=p~=p=d==

4 ^===~===~K=
a==cq~qK=
l==`=~I===~===
=c=b====~=K=
`=xlhzK=
a==ifK=
l==`=~===c=b=I===
~=K=
`=xlhzK=
5 f=q~p~===~=~=~==~K=
c==q=~===q=I=~=~=
q~p~
==cq~q=~=ifK==
c==q=~===q=I=~=~=
q~p~
==~=il=~=
cq~lK==

j==j=
CHAPTER 7

TJTN=

NOTE

TransferStations dont use Connectors.


NOTE

Optional step: Rotate the icon for TransferStation1 180 degrees by selecting it and
pressing [Ctrl]-[T] (or selecting Icons -> Rotate from the Frame window menu)
twice.

6 ^~==cq~q=~==if==q~p~K=
a~=~===cq~q==q~p~K==
p=cq~q=~==m~=p~K=
q=p~====i~K=

TJTO=

=m~=p~=_~I=jI=~=p~=p=d==

`=xlhzK=
a~=~===if==q~p~K==
=p=if=~==q~=p~K=
q=p=m===O=K=

=
`=xlhzK=
NOTE

The red line on the LineIn is the sensor position. This is the point on LineIn where
the parts coming from the TransferStation will be placed.

7 p==~====q~p~K=
a==q~p~K=
p==^~=^=~K=
`==^~==~=K=

j==j=
CHAPTER 7

TJTP=

`=xlhzK=

8 ^~==cq~l=~==il==
q~p~NK=
a~=~===il==q~p~NK==
p=il=~==m~=p~K=
q=p~====ri~K=
q=p=m===O=K=
`=xlhzK=
a~=~===cq~l==q~p~NK==
=p=cq~l=~==q~=p~K=
q=p~====ri~K=
`=xlhzK=
9 j==~===~==q~q===
~=~K=
a===~=K=
p=b=J[=o~=
r==o~=I==cq~i=~=~=
==ifKK=
kW==q=~===~K=
c=cq~l=~=~===ilK=
`==o~=K=
c==~===ifI==~=K=

=
`=~==~K=

TJTQ=

=m~=p~=_~I=jI=~=p~=p=d==

10 q==~==`^K=
l==q^=~K=
p~
==~K=
s=~===K=

11 f==~===W=
s=====~===~===
==~K=
s=~==q~p~===W=
==

j==j=
CHAPTER 7

NOTE

The code that we wrote for the assembly method assumes that when you assembly
a TableLeg that a TableTop is waiting in the container in the MainEntrance station.
This was a bad assumption. In this case, the first pallet that came through does not
contain a table.
There are at least two solutions to this problem:

Option 1: Modify the method so that it does not try to assemble a TableLeg
unless the pallet contains a TableTop (a.k.a. only if MainEntrance.cont not
VOID).

Option 2: Modify the attributes for the .TestAssemblyMethod.TransferStation


so that the target pallet will always stop at the station, no matter if there are
enough parts of the right type to be loaded or not (Check the Always stop
containers checkbox on the Advanced attributes of the load TransferStation
object window).

o~===~=~=====a=K=
`==a==~=o
==~K=
j==~===q~p~==~==
~=~==~~==~==~I==~===
~==~=======~==K=
o===q^j=~K=
a====q~p~K=
p==^~=^=~K=
`==^~==~=K=
`=xlhzK=
q==~~===p~
s===K===

=~K===

o
==~==K=
`=~==K=

12 l==~=m~|=~=~===~K=
l==~=m~|=~K=
p~
=~=
s==K===
o

==~==K=

13 p~==K=

TJTR=

TJTS=

=m~=p~=_~I=jI=~=p~=p=d==

p=c=J[=p~=j
=
=
=
=
=
=
=
=
=
=
=
=

K=

j==j=
CHAPTER 7

TJTT=

Lesson 12: Calling Methods


and Frame Controls
Calling Methods

TJTU=

=m~=p~=_~I=jI=~=p~=p=d==

Method Called by a Frame Control

=
c==c~==E=j~~=c==FI==
q=J[=p=`K==b==~=====~=
==K=

j==j=
CHAPTER 7

^==~~=~=~===~I===~K==c=
=c~=I==q=J[=p=p=`~~K=m~=
~==~===~=m~I==~~===
~~=K==
q=======m~==~=~==
==~=m~=~==~K=

Exercise: The Frame Control


lW=q=~==~=~====~~K=

Overview:

 working
paused 
=

Procedure:

1 ^=~=~====`m~=~=====
~~=K=
c==`~=i~I===`m~===
c~`=I=~==b=fK=
f==f=b
=I===~===
`==E=~=W==c=~=fOK=

TJTV=

TJUM=

=m~=p~=_~I=jI=~=p~=p=d==

=
f==f=b=
=I==f=J[=kK=
k~===~K===
f==f=b=
=I==c=J[=lK=
_===q~=K=
a~=~==~K===f=b=
K=

=
j~==~~K=
p~=~=~===f=b=

=K=

2 b=~=m~f==~=~====`m~=
~K=
l==`m~=~===c~`=
===`~=i~K=
^=~==j=~=~==m~fK=

j==j=
CHAPTER 7

TJUN=

3 ^~==p`~~===`m~=~=~==
m~f===~==~K=
c==c~==I==q=J[=p=
p`~~K=
`=p=l
K=
c==p=l=I===p`~~K=

=
`=xlhz=K=
c==c~==I==q=J[=p=
`K=

TJUO=

=m~=p~=_~I=jI=~=p~=p=d==

c=m~I==p=l
K=
c==p=l=I===m~fK=
`=xlhz=
c=r~=qI==p=l
K=
c==p=l=I===m~fK=
`=xlhzK=

=
`=xlhzK=

4 m~==m~f===~==~~==
====~=~===~=
~====~==~K=
a===m~f=K=
b==W=
=
=
= =K~==K~=
= =
= =
K`f=WZ=?m~?X=
= =
= =
K`f=WZ=?fO?X=
= X=
X=
p=c=J[=^=`~=~=`K=

j==j=
CHAPTER 7

5 q=====~=m~|=~K=
6 l==~=m~|=~=~===~K=
l==~=m~|=~K=
p~
=~=
s==K===
kW=v=====~======
~K==f==~I===~==I======
~I==~=EKK=~FK=
o

==~==K=

7 p~==K=
p=c=J[=p~=j
=
=
=
=
=
=
=
=
=

K=

TJUP=

TJUQ=

=m~=p~=_~I=jI=~=p~=p=d==

Lesson 13: (Resources) Broker


Controlled Animation
A Method as a Custom Attribute
^~=~==~=~==~==~==~~===~=
K===q====~=~==~=~==
~=~====K==v=~==~=
====~=~===~~==K=

j==j=
CHAPTER 7

=
q=K~||=~=~=~====
=~=~=~==~K=
q====~==I==~=~===
===K=q===~===I===
====~==~=~=K=

Brokers and Importer Logic


f==I=========~=~=
~=~~K==q======~==~=
=~===K=
f=~=~==~===~=~===~==
===~=K==q=====~==
~=pm======E=F=
==K==l=====I==
=~=~=~===K==q====~==
==~==~I===K==

Here is a logic example that would be for a custom object


that was a SingleProc:

kW=q==~=======
p~=mK=

TJUR=

TJUS=

=m~=p~=_~I=jI=~=p~=p=d==

=
kW==_====_===~K=

Here is a logic example that would be for a custom object


that was a Frame (containing one or more SingleProcs):

f==p~=pm=~=~==~=~=E~==~=
==~===FI====K=
~==\KK=
kW==_====K_===~K=

Exercise 1: Broker Controlled


Frame Animation
lW=q==~=~==~==~~====
=K=

1 `~=~==pm=~==~=~==K=

j==j=
CHAPTER 7

TJUT=

c==qI=~=~==pm===
b====`~=i~===x`z==
K=
o~===pm==p~K==

2 `~======o~=`==~=
==p~=pmK=
_===b====`~=i~K=
a===p~=pm===K=
p==f=~K=
o====o~=`==~==`~=
`K=
`=xlhzK=
b=======W=
kW=t==~=====~===~I=
I=====~K=

=
p=c=J[=^=`~=~=`K=

3 `~======o=`==~=
==p~=~K=

TJUU=

=m~=p~=_~I=jI=~=p~=p=d==

a===~===K=
p==f=~K=
o===o=`==~==`~=
`K=
`=xlhzK=
b=======W=

=
p=c=J[=^=`~=~=`K=

4 p==p~=pm=~=W=
a===p~=pmK=
p==f=~K=
`==^=K=
kW=f==o====~~=I==~=
==lo=K=
kW=f==o~====~~=I==~=
==lo~=K=
f==_===~~=I==_K=

j==j=
CHAPTER 7

TJUV=

kW=q=_====K==p=====~=
~==I======K=
r=`=K=
`=^K==f===~=~=_K=
kW=_~==~===~=~====
====I=====~==
==Jr=~=m=K=
`=xlhz===_=K=
`=pJrK=
`=xlhz===_=K=
`==~===p==pJrK=
`=p==pJrK=
b=prK=
kW=q====~=K=
`=xlhzK=
f==_===~~=I==_K=
p=mK=
`=xlhz===_=K==
`==~===p==mK=

=
`=p==mK=
b=NK=
kW=q====~=K=
`=xlhzK=
f==_===~~=I==_K=
p==q=~K=
b=~=pJ===OWPMK=

TJVM=

=m~=p~=_~I=jI=~=p~=p=d==

p==b=p~=~K=
`==_=K=
p==c~=~K=
`==^====~K=
a===~=K=
b=TMB==^~~K=
`==^====~=K=
`=xlhzK=
`=xlhz=~~====~=~=_K=

5 b===~===K=
o====p~==~==b=fK=
`~=~===~=c~K=
p==~|~K===~===~=
===~=~~K=
HINT

Select Icon -> New. Name it failure. Select File -> Open. Browse to the training
data folder. Select frame_failure.dib. Click Open. Click Apply changes

`~=~===~=o~K=
=p==~|~K===~===~=
===~=~~K=
HINT

Select Icon -> New. Name it ready. Select File -> Open. Browse to the training
data folder. Select frame_ready.dib. Click Open. Click Apply changes

p=~=~===K=
`~=~===~=pK=
p==~|K===~===~=
===~=~~K=
HINT

Select Icon -> New. Name it setup. Select File -> Open. Browse to the training
data folder. Select frame_setup.dib. Click Open. Click Apply changes

`~=~===~=tK=
p==~|K===~===~=
===~=~~K=

j==j=
CHAPTER 7

HINT

Select Icon -> New. Name it work. Select File -> Open. Browse to the training
data folder. Select frame_work.dib.. Click Open. Click Apply changes

`==f=b=K=
`==p~====~=K=

6 l==p_=~=E~=~F=~===
b=K=
7 o~==~===bNI=bOI=~=bP===p~=
pmK====
HINT

Drag and drop the Station SingleProc until the E1 with the [Alt] key depressed.
Choose No. Repeat for the other stations.

=
8 b==bO=pm==~====gO==
K==Ea=====~===
mFK=

9 q==K=
p~=
==~==~==~=m~=p~=
====K==

TJVN=

TJVO=

=m~=p~=_~I=jI=~=p~=p=d==

=
NOTE

The Broker_Animation frame displays the finished model.

==~K=

10 p~==jK=
p=c=J[=p~=j=

K=

Exercise 2: Broker Failure


Animation
lW=q==~=~=K=

1 ^=~=~=K=
c==o=~===q=I=~=~=
_=
===~K=
k~==o~|_=

2 ^=~=~=K=
c==o=~===q=I=~=~=
b=
===~K=
k~==b|o~K=
q=====~==~===
~~===o~|_K=

j==j=
CHAPTER 7

TJVP=

=
`=xlhzK=

3 p==p~====~K=
l==~=p~=pm===`~=i~=
K=
p==c~=~K=
b==~=~==~==TMB=^~~K==
p==c~=f=~K=
`==^====~K=
`==~===p==o~K=
`=p==o~K=
b=~K=
`=xlhzK===

TJVQ=

=m~=p~=_~I=jI=~=p~=p=d==

p==_==o~|_K==Ef===~=
o~|_=F=
c=o=I==K=
c=o~=I==~K=
c=mI==NK=
`=xlhzK=
`=xlhz===K=

4 q==K=
NOTE

This enters the respective failures in all stations.

p~

==~=~=~=K=

=
o

==~K=

5 p~==jK=
p=c=J[=p~=j=
=
=

K=

j==j=
CHAPTER 7

Lesson 14: Modeling


Transport Systems
Introduction
f=====~==~=~=K===q=~=
~===~===~~~==m~=
p~K=

Basic Transport System Object Types:

i=
=J=q=~=====~==~=
K==q==~==~===K=
q~=
=J=q=~======J=
~=I=^ds=I=~I=KKK==t===~=
=======K==j====
=~==~=======
miqPMM=Em~=p~=^~F=K==
^~`=
=J=`===miqPMM=Em~=
p~=^~F=K=
qq~=
=J=`===miqPMM=Em~=p~=
^~F=K=
qi~q~===
J=`===miqPMM=Em~=
p~=^~F=K=

TJVR=

TJVS=

=m~=p~=_~I=jI=~=p~=p=d==

Basic Transport System Object Characteristics:

^=~=J==
`~==I==I=~=~==
jr==~==~J===
J=======J
=K=
jr==~==J===J
==~====J=K==
Ef~==~=FK=

Modeling a Transport System with


Active Elements
t===~=~===~=I===
==i=K==^==~===~~=E~=
==~====F==J~~=E=
~~=~=~==~=FK==q=~~==~==~==
==========E~=~=
==~~====JNFK==

Adding a Line

q=~=~=I=~=~====~=~K==q===
~==~==~==K==q==
=~==~=~K====

Line Define Segments

g============
K=
q==~=====~=~=I=~~===
====x`z=K==
=

j==j=
CHAPTER 7

TJVT=

Editing a Conveyor

i=^=J=q==~~======
==K=f====I==~=~===
===`=~K=
q=p=~===~~==~===
=K=

=
b==~====K====

TJVU=

=m~=p~=_~I=jI=~=p~=p=d==

o========~==
f=mK=
p===I==~====
~K=

Conveyor (Line) Controls:

Modeling a Transport System with


Passive Elements
t===~=~===~=I==
===q~=~=q~=K==^=~==~=~=
K==t===~==~=~=~===~==
~~~K==f===~~~====~=~=~=K===

j==j=
CHAPTER 7

NOTE

To prevent MUs from automatically transferring from the previous station to the
Track, do not connect them.

The Track

=
q=q~=====~=K=f=~==
~~=K=q=q~====~==~=
===q~K=v=I==~I=====~=
^ds=K=v=~=~=~=====q~K=
mW=
f=
`~~W=~=
i==~~===
v=~===i=~==`~~K=q=q~===
==~~===~====~==~=
~=~K=q=~=~==~===~=
~====K=

TJVV=

TJNMM=

=m~=p~=_~I=jI=~=p~=p=d==

=
b===~==~=~=~===~=K=

Track Controls

The Transporter

q=q~=
=~=jr==~=====K=
v=~===~=~~K=q=q~=~==jr=
~===~=K=f==I=^dsI=K=

j==j=
CHAPTER 7

TJNMN=

=
p==^~===~===c~==~=
=^~====K=
a==j~=~=~==I===i~=~=I=
=`~~=~=pK=
l==_~=~==~====~==
q~==~=K=

Creation of a Transporter during Simulation:

q=~=~=q~==~I=====W=
j=NW=r=~==
^=~=p===~K=
`=~=p===q~K=

TJNMO=

=m~=p~=_~I=jI=~=p~=p=d==

p==q==~==k=~~==~=
^==NK=
p====~==q~=jrK=
j=OW=r=~==
^=~=j==~I=~=K=
q=f=====~=~==~=
E=F======~===
~=jr===~===~W=
KjrKq~K~Eq~I=RKNFX=

Transporter Controls

b=j===`=~====q~=
~==q~K=

=
a==J===q~==q~==K=
a~=J========
==q~=~====q~=~===
==~==K=
a~==J=~~===q~=~=
~===~K==

j==j=
CHAPTER 7

`==J=~~===q~=~==
~=q~I=KK=====~==
=~==K==
p==J=~~===q~=~==~=
=~=~~==~==~=q~=====
~=~~==~K=

Methods to Control a Transporter

m~=p~===~====~=
~======~=K=

=
f=~I==~=~====~====
K=t====~====~=
==~=I====~==~K=
q=~====~======
==~=~K=v=~=~===~I=
~=====~=~=~===~~==
~=====K=
r======~==~==~K=r==]=
==~==~I===~=~==
W=
]KX=
]KX=
]K~~=WZ=X=
~KKIKKK=

For example:

_=~=E=~=F==q~======
==~=~==K==q=~=====W=

TJNMP=

TJNMQ=

=m~=p~=_~I=jI=~=p~=p=d==

f=
a=
=

f=]K==

==

===]K~~=WZ=X=

==

bX===

bX=

Exercise: Transporting MUs


lW=q=~=~=~=~=~=~==~==
~K=

Overview:

j==j=
CHAPTER 7

TJNMR=

Procedure:

1 ^==~=W=
`~==^~b=~===b==
==`~=i~K=
l==^~b=~K=
^=~=b`K=
^=~=pK===
p====~=~=b=jr=E=~FK=
^==pm=K=
p~==~=NO==E=F=~~K=
k~==i~p~=~=r~p~K=
^=~=a~======r~p~K=
`==p===i~p~K=
`==r~p~===a~K=
2 ^=~=~===i~p~=~==
r~p~K==_=====~===~K=
m==q~===j~~=c=~===qK=
m=~==~==i~p~K=
m=~==~==r~p~K=
o======~==q~K=

TJNMS=

=m~=p~=_~I=jI=~=p~=p=d==

3 `~==~===NM=K=
a===q~K=
l==^=~I==NM===iK=
`=xlhzK=
^==~===r~p~=~=K=
4 ^=~===~=~=q~===q~==
=~=~K==
^=~=pI=~=pNI===~K=
`=pN===q~K=

=
a===pNK=
p==jr=q==~==k=~~==~=
^==NK==
p====~==q~=jrK=

j==j=
CHAPTER 7

TJNMT=

=
`=xlhzK=
NOTE

By default (without a method) the Transporter just moves to the end of the track and
stops there. We need to create a method (Loading) for the Transporter to wait until
a part is loaded before it moves to the end of the track. Next we need to add
another method (Unloading) to unload the part and move the transporter back to
the beginning.

5 ^===~=~==~=~=~K=

TJNMU=

=m~=p~=_~I=jI=~=p~=p=d==

=
NOTE

The track start up will entail the transporter moving to the end of the track empty the
first time. All other times afterward, it will move with a part loaded.

6 m~==~=K=
NOTE

In this method we will load the part from Loading station and put it on the
transporter. We want the transporter to move forward along the track (i.e.
backwards is false)

=
=
= i~p~KKE]FX=
= ]K~~=WZ=~X=
X=

7 m~=~=K=
NOTE

In this method we will unload the part from transporter and put it on the Unloading
station. Afterwards, we want the transporter to move backward along the track (i.e.
backwards is true). We must also handle the first case where the transporter will be
empty using an if statement.

=
=
= f=]K==
= =
]K~~=WZ=X=
= b=
==== =
]KKEr~p~FX=
==== =
]K~~WZ=X=

j==j=
CHAPTER 7

====bX=
X=

8 p==r~p~====M==K==
a====r~p~K=
p==q=~K=
b=M===m=qK=
`=xlhzK=
9 j==q~=K=
a====q~K=
p==`=~K=
a=~=b===~==~==Ec=
FK=
NOTE

Activate this control after the transporter has reached the end of the track.

a=~=_~~====~=~==
Eo~=FK=
NOTE

Activate this control after the transporter has returned to the beginning of the track.

TJNMV=

TJNNM=

=m~=p~=_~I=jI=~=p~=p=d==

=
`=xlhzK=

10 q=K=
p~

==~K=

j==j=
CHAPTER 7

TJNNN=

=
o

==~K=

11 j~==~===K=
`~==r~p~====NWMM=
K=
j==r~==~W=
==
=
= f=]K==
= =
]K~~=WZ=X=
= b=
=== ==
t~=r~p~K==NX=
=== =
]KKEr~p~FX=
=== =
]K~~WZ=X=
====bX=
X=
12 p~==K=
p=c=J[=p~=j

K=

TJNNO=

=m~=p~=_~I=jI=~=p~=p=d==

Lesson 15: Triggers and Line


Logic
Introduction


Triggers can be used for several things:

q=~====~==mi`=E~=====
F==~==~==~=~===
~===~=~K=
q=~=~======~==~=
p`~~I=======p`~~===
~K==e===q=~===
~=p`~~I====K=

The Trigger
c==q=I===f~=c=~=~=
=q=

==~====K=

`~~W=M=
^=~===
q=q=====~=~====
~~=~===~=~==K=

Period Tab

q=~=======~=~=====
~=~K=f==~======^=
f~K=q=======~==E=~=~=~F=
==~=~==~======
=K=c=~===~=======~=~=
~===~==~K=

j==j=
CHAPTER 7

TJNNP=

Values Tab

f=s~=~==~==~=~=====~=~=
=======~==s~K=

TJNNQ=

=m~=p~=_~I=jI=~=p~=p=d==

q==~~===~I=f=c~===~~K=
p=c~J[f=c~===K=f====
==~~K=f========~==
~==~=~===~=~==~===~===
====~=K=q=~=====

j==j=
CHAPTER 7

TJNNR=

==~=====~~====~K=

Actions Tab

q=^=~===~===~=~I=
=====~~===K==

TJNNS=

=m~=p~=_~I=jI=~=p~=p=d==

=
q===~=====~=~===
===s~=~I===~=~K=q==
~~===~I=f=c~====E~FK=
`=======~===
^K==
f======~======~==
~==~K=f======~===
~=~===~K==q====~=~==m~=
p~=====~====
K==

j==j=
CHAPTER 7

TJNNT=

=
j=~==~====~=K=l===
=======~~===~K==f=
~====E~FK=`======
=~==^K=b==~======
~===K=b====~=~====
==~=~=~====~===~===
~=~=~~K=

Representation Tab

^=~~=~=====~=~==
~~~===o~=~K=b=~==q====
=~=~~=~====~=~====
===m=~=s~=~K==

TJNNU=

=m~=p~=_~I=jI=~=p~=p=d==

How the Trigger Works


q=q==~=~====I=~=~=
==~I==~===~===~~==~I==
~=I===~========~=
q=^K==
q=q=~=~=~=I=~====~=
=~K=

j==j=
CHAPTER 7

TJNNV=

~~=
=

TJNOM=

=m~=p~=_~I=jI=~=p~=p=d==

NOTE

The Trigger could be used to change the icon of a frame when ever it is paused (i.e.
the other icon might not include the person). Typically a trigger is used to call a
method when makes something happen. The trigger will not do much without a
method.

High Speed Line Logic

=
f~=j~=_===
jr=~===j~=^==j~=_==~=~=
=K===
m~===j~=^=======~=
==~~=
f=j~=^=~=j~=_I=~==I====~=
=F~==Eq=~==~==~==~===I=
===I=I=~=I====~==F=
ee=W=f==ee=p==~=jr=~=
~~===I===~=~====
j~=^=
e=W=f==e=p==jr=~~===
I===~=~=====j~=_=
i=W=f==i=p==~=jr=~=~~=
==I===~=~====j~=^=

j==j=
CHAPTER 7

TJNON=

ii=W=f==ii=p====jr=
~~===I===~=~=====
j~=_=
kW=k~=~===~=~==qorb=
E~=~==F=~=c^ipb=E~=~===F=~==~=
~===~=~==K==eI==~===
~~I==~==K==q=~====
==qorbK==f====qorb===~=MKP=
I===~=~=~~===K==^=
j~=_==~===i====~==
==ii==K=

MU Dimensioning

TJNOO=

=m~=p~=_~I=jI=~=p~=p=d==

Exercise 1: Creating a Custom


Object that uses a Trigger like a
PLC
lW=q=~=~=====~====~=
K=
mW=

1 `~==~=======~K=
`=~=c~=K=
`~=~==~===j====`~=i~=
~=qK=
`~=~==~===q====`~=
i~K===
k~==epiK=
2 ^=~=q=~=~=j=K==
c==f~=c=~===qI=~=~=
=~=q=
===c~=K=
k~==q=mi`K=
c==~===~=~=j===c~=
K=
k~==j=mi`|iK=

3 j==qK=
a====mi`=qK=
`==o~=m~=K=
p==m===WMMKNK=

j==j=
CHAPTER 7

TJNOP=

=
p==s~=~K==

=
`=s~K=
f==s~=q~=
=I==c~=J[=f=
c~=E==FK==
f===I=====m==qW=M=
~=MKNK==
f===I===s~W==~=~K==

TJNOQ=

=m~=p~=_~I=jI=~=p~=p=d==

=
`=xlhzK=
p==^=~===mi`=qK=
o~==~===j=K=q==
~===~=~===q=j=
K=

=
`=^K=
c==^=~I==jK==q=q=
j===K=
b=mi`|iK=

=
`=xlhzK=
`=xlhzK=

j==j=
CHAPTER 7

TJNOR=

=
4 ^==W=
^==~=i==~===K===
^=f~===~=~==K===
k~===W=ibI=ieeI=ieI=iiI=
iiiK==

=
^=~=`===ib=~=iee=~=
~W=ee=p=Ep=j~=^F=
^=~=`===iee=~=ie=~=
~W=e=p=Ep~=j~=_F=
^=~=`===ie=~=ii=~=
~W=i=p=Ep~=j~=^F=
^=~=`===ii=~=iii=~=
~W=ii=p=Ep=j~=_F=

5 b====mi`W=
a===mi`|i=K=
~~NI=~~O=W=F=
kW=q=====~~==~====
======`=~===q=K=
=
=
= LG=q====~=mi`===K===

TJNOS=

=m~=p~=_~I=jI=~=p~=p=d==

= ===f==~===~===K=
= ===f===~===~==~===
==~====NMM==~=K=
= =GL=
= ==
= JJf=ee===I===~=^=
= =ieeKZ==
= =
ibKENFK~iWZX=
= X=
=
= JJf=e===I==~=~=_==
= =ieK=Z===
= =
iiiKENFK~iWZ~X=
== X=
= =
= JJf=i====I==~=~=^==
= =iiiKZ=~=iiK=Z~==
= =
ibKENFK~iWZ~X=
= X=
= =
= JJf=ii====I===~=_==
= =iiiKZ~=~=iiK=Z~==
= =
iiiKENFK~iWZX=
= X=
X=
p~=~====~==K=
6 b====K=
c==`~=i~I=====epi=
~==b=K=
p=c=J[=lK=
p=epiKK=

j==j=
CHAPTER 7

^=~=
===K=
c==`~=i~I=====epi=
~==p=j=~=^K=
`~=wu==QKN====K=
7 p=~=~====K=
o====iee==~==b=a~=
m~K=
`=^K=
c=u=I==MK=
`=kK=
c==s~I==K=
c=qI==ibaK=
c=`I==K=
`=xlhzK=

=
`=xlhzK=

=
`=xlhzK=

TJNOT=

TJNOU=

=m~=p~=_~I=jI=~=p~=p=d==

o~=====ieI=iiI=~=iii=K=
8 p==~=~===epi=K=
c==`~=i~I=====epi=
~==b=a~=m~K=
`=^K=
c=u=I==MK=
`=kK=
c==s~I==ieeKK=
c=qI==ibaK=
c=`I==K=
`=xlhzK=

=
`=xlhzK=
o~==========~=u=
=~=W=ie=Eu==ZUFI=iiEu==
ZNSFI=~=iiiEu==ZOQFK=

j==j=
CHAPTER 7

=
`=xlhzK=
9 p~==K=

Exercise 2: Testing a Custom


Object that Contains a Trigger
lW=q=~=~=====~====~=
K=
mW=
p~====~===K=
1 `~=~==~===q====`~=i~K==
k~==qepiK=
2 ^==W=
^=~=b`I==jI=~=pI==
pmI=~=epiI=~=~=a~K=
k~===f=~=oK=
k~==pm=j~^=~=j~_K=
k~==epi=epi^_K=
`==~=W=

TJNOV=

TJNPM=

=m~=p~=_~I=jI=~=p~=p=d==

=
3 p==f=K=

=
4 p==o=K=

=
5 `~=~==jrK=
a~=b===jr==~=~==m~K=
`~==~~===m~KK=
`~==t~===m~|~KK=
p=f=J[=p=~======~=t==P=~=
~=e==NTI=====~~K=

j==j=
CHAPTER 7

=
`=xlhzK=
`~==~===W=

=
`=xlhzK=
6 p==j~K=
c=j~^I==~=m=q==MWMNK=
c=j~_I==~=m=q==MWMOK=
7 p==p====m~=jrK=

=
8 p~

==~=~=~====~K=

9 o

==~K=

10 p~==K=

TJNPN=

TJNPO=

=m~=p~=_~I=jI=~=p~=p=d==

Exercise 3: Using Several Custom


Objects that Contain a Trigger
lW=q=~=~=====~====~=
K=
mW=
p~====~===K=
1 `=~==~K=
2 o

==~K=

3 a~==qepi==~=~===
qiK=
4 l==qi=~K=
5 ^==W=
^===pm==~===
epi=epiK=
k~====pm=j~`=~=j~a=
k~====epi=epi_`=~=
epi`a=
6 `==~=K=

=
7 b==f==~=~==W=

j==j=
CHAPTER 7

=
8 q=K=
p~

==~K=

==~K=

9 p~==K=
=
=
=
=
=
=
=
=
=

TJNPP=

TJNPQ=

=m~=p~=_~I=jI=~=p~=p=d==

Lesson 16: Preparations and


Maintenance
Introduction
f=====~==~K=

Set up a Production Resource


t=~==~=~=~===~=J~=J==
====~=====~K=q=J=
=~==~==~=~========
~K=q=jr========
W=
_==~==
_==~==~==~=
b~W=p=~=====~=m==N==
~==J===O=K=
t~===~=====~=\=

j==j=
CHAPTER 7

=
p=~===~====~===~=E=
~F===~==K===
o~==~===~===I==
==~=~==~==K==k=~=
kW=^====W==p==~I==~=~=
==~======~====~=
~=K=

Setting a Station Up
e=~===W=
p=p======pJr=~===
~K=

TJNPR=

TJNPS=

=m~=p~=_~I=jI=~=p~=p=d==

p==~=====pJr=~===
~=~I=~I==`=^=~===jrK==
c=~=======~=
~====jr=~=~K=

=
p=====q~====q=~==
=~K=

Exercise: Performing Setup at Part


Switch Over
lW=t=~========~=
====~=~K=
1 l===~K===
c==`~=i~=~===`~=i~=I=
===j=K=
_===p=K=
`~=~==~===p==~=~==
jpqK=
2 ^=~==I=I=pmI=~=a~===
jpq=

=~=~==K===

j==j=
CHAPTER 7

TJNPT=

3 ^=~=q~c=
===~=~=~==
mpK===
4 j==jpq= =~=p==~===
mp=q~cK=

=
5 b==~===mp=q~cW=

=
6 p~= ==jpq=
K=

=~=~K==s==

NOTE

It may not look like it didnt work because the simulation went so fast. Either check
the Type Statistics on the Drain or run the simulation or run it slower so that you can
tell something happened.

7 o=

=K=

8 b=~=~====N=K=
a====pmK=
p==q=~K=
b=NWMM===pJ=K=
`=xlhzK=
9 p~=

==jpq=

=~=~K===

10 `==~===a~K=
11 o=

=K=

12 r=~=~====K=

TJNPU=

=m~=p~=_~I=jI=~=p~=p=d==

^=~=q~c=
=~=~==rqK=
`=====~K=
j~==o=f=~=`=f=~K=
c~=N==P=~==~=EeW=
=~====~==~FK=
b===~~===~W=

=
NOTE

In general, the set-up time for changing the type from A to B is different from the
time needed for the change from B to A. Therefore the set-up time is described by a
set-up matrix. The row index designates the source type. The column index
designates the target type. At the beginning the station is set up for none type,
described by -. Consequently we need a corresponding row in the set-up matrix.
It is possible that the set-up time is necessary after a certain number of parts.
Therefore the set-up matrix also contains entries for [A,A].

a====pmK=
p==q=~K=
c==pJ=I==j~=EqFI=~==
rqK=

j==j=
CHAPTER 7

TJNPV=

=
`=xlhzK=
13 q=K=
p~= ==jpq= =~=~K===
`==~===a~K=
o=

=K=

14 m===R=~K=
a====pmK=
p==pJr=~K=
`==^=K=
b=R=~K=

=
`=xlhzK=
15 q==~~K=
p~=

==jpq=

=~=~K===

TJNQM=

=m~=p~=_~I=jI=~=p~=p=d==

`==~===a~K=
NOTE

Calculate the set-up time for each type:

Change - A: 60 min, 1 change A A: 30 min = 90 min, Mean value = 9:00

Change A B: 150 min, 3 changes B B: 40 min = 270 min, Mean value = 13:30

Change B C: 270 min, 5 changes C C: 50 min = 520 min, Mean value = 17:20

Check this calculation by the type depending statistics prepared by the Drain

=
o=

=K=

16 p~===K=

j==j=
CHAPTER 7

p=c=J[=p~=j

K=

TJNQN=

TJNQO=

=m~=p~=_~I=jI=~=p~=p=d==

Lesson 17: Other Selected


Topics
Built-in Method Icons


The name of these methods runs them at specific times:

oW=o==~=K=f==~=
=I===~===MI=
==~I=~=~=~=~==~=
~K==
=

=
=

fW=m~=p~=~~=~==~==
~=f=E==f===~=q~FK=
bW=q=~====b`=
~==~====i==p=
b===m~=p~=~====
======b===p=~==
=b`K=
^bW=^====~=====
===

These method names set the icon of the method only:

a~W======~=~K=
=
b`W=~==K=
=
b~`W=~=~=K=
=

j==j=
CHAPTER 7

bW=~===K=
r=

=
f~=
=
a~=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=

TJNQP=

TJNQQ=

=m~=p~=_~I=jI=~=p~=p=d==

Chapter Summary
f==~=====W=
e===~K=
e===~=~==K=
e===~=~=~=~~K=
e====K=
l~=~=~~=K=
p~==~=~=====~~=K=
e===~===K=
q=~=~==~=K=
e==~=~==~===~==~=^=
K=
e==~====~===~=K=
q=~=~=K=
e=======~~K=
^=~=~====~=K=
e=========~==mi`==
==~===~=~===K=
e==~==~K=
l=~===K=
=
=

m~=p~=a~~=^=
CHAPTER 8

Chapter 8

Plant Simulation
Data Acquisition
=
=

About This Chapter


q=~==~===m~=p~=a~~=
^I=~=~===W=
i=NW=l==`=p~I=~=UJPI==
====~K=
i=OW=j==`=p~~=s~I=~=UJQI=
=====~~=~=~==
=~=~~===~=~K=
i=PW=q=b=`I=~=UJOPI=~=
~=~=====~=~K=
i=QW=p~=~=m~=p~=q~=~=~=q=cI=~=
UJORI====~=~=m~=p~=~==~==
K=
i=RW=i~=~=q=c==~=m~=p~=q~I=
~=UJPTI====~=~====~=m~=
p~=~K=
i=SW=f~==l=^~=lI=~=UJ
QSI==~====~~~=K=
i=TW=c=f~==l=^~I=~=UJQUI=
====~==aab==~K=

UJN=

UJO=

=m~=p~=_~I=jI=~=p~=p=d=

i=UW=`~=f~==l=^~=
El~=iFI=~=UJRTI==~===~=
~=~==m~=p~K=
i=VW=^u=~=m~=p~=b~=El~=
iFI=~=UJSSI=====~==^u=
~K=
i=NMW=m=f=^=qI=~=UJTTI====
~K=
i=NNW=t=a=t=d=c=e\I=~=UJTVI=
=~=~=~==~==~==~=
~=m~=p~K=
=
=

m~=p~=a~~=^=
CHAPTER 8

Lesson 1: Objects for


Collecting Statistics
Introduction
t==~=~=~~=~~==~===
=miqPMM=K==f====~====~=
K=

There are several objects available for collecting and


displaying statistics:

q=a~=l=Ea=~===F=
q=`~=l=J=Ea=~===F=
q=a~=m~==j~~=c=l=J=Ea=~=
==F=
=
=
=
=
=
=
=
=
=
=

UJP=

UJQ=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 2: Methods for


Collecting Statistical Values
How Does This Relate to Our
Plant?
f==I======`p=~===
~=K=

Saving a Plant Simulation Table


as a File


Two different ways to save the content of a table to a file:

j=NW=c==q~c= ==I===
==~I==~=~===I=~==~=K=

m~=p~=a~~=^=
CHAPTER 8

c=J[=p~=~=b=c=
c=J[=p~=^=q=
c=J[=p~=~=l=
c=J[=p~=~=uji=c=

j=OW=r=~====q~=W===
c=~=j=b=c=EuipI==uipuFW==
Yq~c[KbcE?`WyyK?I>?FX=
c=~=q=cW=Yq~c[KcE?`WyyK?FX=
c=~=lW=
Yq~c[KlcE?`WyyK?FX=
c=~=uji=cW=
Yq~c[KujicE?`WyyK?FX=

More Methods for Lists and Tables


t======~=~==~=~==
~=~====~=EKK=I=`uI=`vI=
aI=aI=FK=

Other selected file related methods:

Yq~c[Ka~~qENI?~?F===~~====
K=
Yq~c[KoENFX===K=
Yq~c[K`ENFX=~=~=======
~=K=
Yq~c[KE?`WyKKK=K?FX===~=K=
Y=[K~coX=~========~I=
====L~K=
Yq~c[Kc`=WZ=YR[X===~====
==~==K=
Yq~c[KcX==~==K=

UJR=

UJS=

=m~=p~=_~I=jI=~=p~=p=d=

Review: Complete Statistics Table


q==~=~===~~=~==~=
I=~~==I=~==~==K=
q==~===~====~=
~===K==c=~W=
a~K~EFX=

m~=p~=a~~=^=
CHAPTER 8

UJT=

Detailed Statistics Table

`=a~=p~=q~===q=p~=~=
~===~W==

=
q=~===~==NNN=I===~=~=
===K==q=~=~==~I=~~=
~I=I=~=~=W==
iq=J====~=~=

UJU=

=m~=p~=_~I=jI=~=p~=p=d=

qm=J====
qm=J===~==
`qL`qp=J======~=~=~=~JJ
~=
fm=J=====~=~K=
p=J=J====~=~K=
t=J=~====~=~=
pLpc=J==~==~=~==~==~=
=K=
c=J==~==~=~==~==~==
K=
m=J==~==~=~==~==~==
K=
fm|m=J=====~=~==~==
==mK=
p|m=J=====~=~==~===
=mK=
t|m=J=====~=~==~==
==mK=
p|m=J=====~=~==~==
==mK=
c|m=J=====~=~==~===
=mK=
m|m======~=~==~===
=mK=
kW=o~=====q~=~=p~K=
kW=p=~====~=~==~==~=~=
K=

m~=p~=a~~=^=
CHAPTER 8

UJV=

Statistics Report

_===~==~=~~===eqji=p~=
oI====s=J[=p=p~=oK=

The Statistics MethodAccessing


the Complete Statistics Table
q=~=====~=~K=q=~=
~~==~=I==~===jrK=
v=~====~=~==I==~==
==~=~===~====~=W=
q=~==~=~====~=~==
~=I=====~=~I==~==~=~=
~~K=

UJNM=

=m~=p~=_~I=jI=~=p~=p=d=

Y~||[K~EY~[FX=
k=~=J==p==~==K=
q~=~=~=J=t==~===~I==~=
=~=q~c===~=~=~~K=
p=~=~=J=t==~======
~K=

Querying Statistical
Values/Attributes
v=~=~==~====~==~=
~===~~==I==~=~kfI=
~klI=K=
Ys~~[=WZ=Y[K~kfX=
q==~====~=~I===~====
c~=~==p=^=~=j=E==xcUzFK=

Exercise 1: Accessing MU Statistics


lW==q==qm===~K=

Overview:

m~=p~=a~~=^=
CHAPTER 8

NOTE

@.id writes the ID of the MU into the first column and the first unoccupied row of
the Throughput_Log table. The id is German for getNo.
@.statAvgLifespan writes the mean throughput time into the second column and
the last unoccupied row of the Throughput_Log table.

Procedure:

1 l==`p=c~= =K=
`===~==K=
`=~==c~= =K=
c==c~`====`~=i~I=
===`pK=

2 ^=~=q~c=~=~=jK=
c==f~=c=~===qI=~=~=
=~=j==`pK=
o~==j==oqmqK==
c==f~=c=~===qI=~=~=
=~=q~c==`pK=
o~==q~c==q|iK==

UJNN=

UJNO=

=m~=p~=_~I=jI=~=p~=p=d=

3 b======oqmq=W=
kW=a==~==x`zJxp~z==~===
==K=
a==oqmqK=
=
= ko=W=X=
=
= ko=WZ=q|iKva=HNX=
= q|ixNIkoz=WZ=]KX=
= q|ixOIkoz=WZ=]K~^i~X=
X=
p=c=J[=^=`~=~=`K=

4 c~==q|i=q~cK=
a====q|i=q~cK=
c=q~c= ==I==c~=J[=
f=

=~K=

m~=p~=a~~=^=

UJNP=

CHAPTER 8

c=q~c= ==I==c~=J[=
`=f=J[=^K=

=
o====N==~=~==c~K=
kW=^=i=c~==~==~===Ef==
=~=~==========~FK=
f==i=c~=I===a~~=q=~K=
l==a~~=q=~I==f===a~~=K==

=
`=xlhzK=
c=q~c= =====N=I=
=fa===jr====E=FK=
o====O==~=~==c~K=
l==i=c~==a~~=q=~I==q==
=a~~=K==

UJNQ=

=m~=p~=_~I=jI=~=p~=p=d=

=
`=xlhzK=
c=q~c= ==I===O=I=
=q=q====E=FK=

=
`==q~c=K=

5 j~=====~I===~=~===
=a~K==t====~\===e==~=W=

6 j~=====~===~==
~K=e\==e==~=W=
b===K=

m~=p~=a~~=^=
CHAPTER 8

NOTE

You may have to create a new one and delete the existing one, or edit the Origin
. What will be the effect if you delete and recreate it? How about if you edit the
Origin

e========W=
f=
a=
===f=q|iKv=[=N==
====q|iKtbcE?`Wyyqmq|iK?I=
>pNFX=
===bX===
=q|KaX=
=q~pKX=
=q~fmKX=
X=

kW=t====~==~~==m~=
p~=~=~===~=~===K=
p=c=J[=^=`~=~=`K=
NOTE

Normally the user will press the Reset


button before a simulation starts and
after the simulation has ended. In this case, the first line above would empty the
.XLS if pressed before the simulation ran. If pressed after the simulation ran, it
would write the contents of the table to the .XLS file. If you dont want it to run
before the simulation is run, place this line within an IF statement with a
Throughput_Log.Ydim > 1 criteria.

7 q==`p==q`pI====
~=m~|K===
f===~~=~=~=q`pI=~=K=

UJNR=

UJNS=

=m~=p~=_~I=jI=~=p~=p=d=

=
o

==~K=

p~

==~K=

kW=q=~===~===R=~K=
i=~==~===q|i=q~cK=

=
o

==~K=

m~=p~=a~~=^=
CHAPTER 8

UJNT=

s==q|i=q~c==K=

=
i=~===qmq|iK====`Wy=K=

8 p~===K=

An Alternate Way to Write the


RecordTPT Method

UJNU=

=m~=p~=_~I=jI=~=p~=p=d=

NOTE

tab : table; The local variable of type table stores the values of the complete
statistics table.
tab.create; Create the local variable of type table.
@.statistics(tab); This table temporarily stores the complete statistics table, so that
we can access the individual values with a method.
throughput_log[1,throughput_log.ydim + 1] := @.id; Writes the ID of the MU into
the first column and the first available row of the throughput_log table.
throughput_log[2,throughput_log.ydim] := tab[avgLT,1]; Writes the average
throughput time into the second column and the last occupied row of the
throughput_log table

Acquiring Data Depending on an


Attribute
f==~=====~=~=~=
I===~=~==~=~K=
e=====~=~~===~=~I==
=~=====~K=

Exercise 2: Parts Statistics


lW==q==~===~I=~==~=
~==~=K=

m~=p~=a~~=^=
CHAPTER 8

UJNV=

One solution (that will not be used in this course):

A better solution:

=
NOTES:

This solution is better because it will only search the needed number of rows,
whereas the other solution searches every row every time. So it should be quicker.
Also, the setCursor line helps it to not get lost.

1 `===`pK=
a~=`p=~=~==`p|lN=
`===`pK=
^=~=q~c=~=~==m~p~K=
2 p==m~p~=q~cK=

UJOM=

=m~=p~=_~I=jI=~=p~=p=d=

a===m~p~K=

r=c~=J[=f=c~= K=
p=c~=J[=`=f=J[=^K=
a==N==E=F===`K==
a==O==E=F===^K==
o====O==~=~==c~K=
l==a~~=q=~I==f===a~~=K==

=
`=xlhzK=

3 ^==K=
^=~=jK=
k~==~||~K==
a===~||~=K=
b=====W=
=
= o|=W=X=
=
= m~p~K`ENINFX=
= f=m~p~KENINKKNIGI=]KKfF==
= =
|=WZ=m~p~KvX=
= =
m~p~x?^?I=o|z=WZ=
= =
m~p~x?^?I=o|z=HNX=
= bX= =
X=

m~=p~=a~~=^=
CHAPTER 8

NOTE

The built in find method has not been used yet:


Usage: <path>.find(<any>);
<path>.find(<listrange>,<any>);
It finds the argument <any> in the object designated by <path>. Plant Simulation
searches between the range you enter and the position of the cursor, for tables the
position of both cursors. When it finds a value, the method returns true and sets the
cursor onto that cell. It returns false when it did not find the value. If several
<values> exist, Plant Simulation sets the cursor onto the first one it finds. A new
search starts at the position after the last result and returns the next entry.

p=c=J[=^=`~=

K=

4 `===~||~=K===
kW=f==~===~====~=====
~J==~===~======~K==f=
=~==~=======~I====~===
~K===
_==bX===f=~=~=W=
b=
===o|=WZ=m~p~KHNX=
===m~p~xNI|z=WZ=]KKfX=
===m~p~xOI=|z=WZ=NX=
p=c=J[=^=`~=~=`K=

5 t===~==\==e==~=W=
b==oqmq=K=
^====~=aW=
^||~X=
p=c=J[=^=`~=~=`K=
6 e=========~=E=
===F==~==~\==e=
=~=W=

UJON=

UJOO=

=m~=p~=_~I=jI=~=p~=p=d=

NOTE

The built in delete method has been used so far to delete the entire contents of the
destination TableFile. However, it can also be used to delete specific rows or
columns from the TableFile as well:
Usage: <path>.delete[(<any>, ..., <any>)];
The method delete deletes all data, including formulas, in all cells of the list or of the
range designated by the argument(s) <any> only:

When you do not enter an argument, Plant Simulation deletes the contents of
all cells.

When you enter a range, Plant Simulation only deletes that range or ranges
designated by the argument(s) <any>, ..., <any>. Note that you have to delete
the customized index for tables explicitly by entering row 0 or column 0.

^=~===E====~~=F=
b======W=
=
=
=====f=q|iKv=[=N==
=====q|iKtbcE?`Wyyqmq|iK?I=
>pNFX=
======bX===
= q|iKX=
======q~pKX=
======q~fmKX=
= m~p~KEOINKKOIGFX=
X=

7 q=K=
p~

==~=m~|=~K=

kW=q=~===~===R=~K=
l=`p=~==~=====~K=
s===~~K=
o

==~=

8 p~===K=
=
=

m~=p~=a~~=^=
CHAPTER 8

Lesson 3: The Event Controller


Introduction
q==~=~=~====
=~=~K=

Selected Methods and Attributes


of the EventController
~pq=====~==~=~=~=
~=~=K=
pqJ====~=K=
~qc~==E~F=======
=~=~=~====~=~===~=~=K=
~o=========m~=
p~=======EKK===
===F=
bi=EfF=J===i==p=b=~=~=
~K===q==~~=~==~=
==I===b`=====
~=K==
kbq===========
=====K=
~=J=~~==b`=~=~==~=
K=f====~===~=I=m~=
p~=~===~=====
~=~==K=
=J==~=j===~==~=
K=m~=p~=~==~====
f========K=

UJOP=

UJOQ=

=m~=p~=_~I=jI=~=p~=p=d=

o=J==~====~==~=K=
m~=p~==~==I===
~===MI===~I=~=~=~=~=
=~=K=f===~==~=~==K=

Controlling the EventController


with Methods
f==~I=~=~==~~==~=~=~==~==~=
====K==q=======
=~==I==~===~~=~=~=~=
====K==f==~===~===~=K=

Example:

q=~~====jr=~===~====
~K=
b==b====~===b`K=
t===~~====jr==~=~K=p~==
~=~=~====Y~[KcE?aWyKKK?FK=
t~===~==K=p~==b`==
=====b=W=
b`KX=
b`KX=
b`K~X=
q=f====~==~==~====
W=
Y~[K~cE?aWyKKKFK=
=
=
=
=

m~=p~=a~~=^=
CHAPTER 8

Lesson 4: Saving a Plant


Simulation Table as a Text
File
Introduction


To exchange data with other Plant Simulation models:

^=~==

To exchange data with other applications:

^=~==c=
^=~=j=b=c=E~====uip=~=F=
^=~=uji=c==

Why Save a Table as a Text File


v=~=~====~=I==~=~=m~=
p~=q~cI=~=~==K=q=~==~===
=~~===~~K==
b~W=m=

UJOR=

UJOS=

=m~=p~=_~I=jI=~=p~=p=d=

q===~==m===~=jp=b=~I==~=
j==~==~=m===c~I=~===
~==~=~K=q=~==m~=p~=~=~=~===
~===~=~====q=c==jp=b=~==
~~==K=

Collecting Values and Writing


them to a Table
t===~=j=~==f~===~=d~K=
b~========jr===_=~=
=~========b`K=t==
==~==~=m~=p~=~I=~=~=~==~=
~==K=

Settings for Text Files Settings for


Text Files
_=~==m~=p~=~=~=~==K=c~==
=W==c==q~c
c~K=

==I==c=J[=

m~=p~=a~~=^=
CHAPTER 8

=
j~==~==a~=~~==~=K===
t=I==pEF=~==q=~K=q==
jp=b===~==~~K=

The Generator Object


q=d~=
====~=~====
q===~==~====K=
q=d~=~~=j=======
=p~==~==~~==~I===
=~=====~=K=^===~I=
====~I=~=~I=m~=p~=~==
j====~=~====~=`K=
k=~=f~=~=a~==~~=~~==~K=

UJOT=

UJOU=

=m~=p~=_~I=jI=~=p~=p=d=

Example 1:

d~Kf~=Z=OWMMI=d~Ka~=Z=PWMMI=
b`Kb=Z=UWMM=
b`Kpq=

d~=`=b=

M=

f~=`=

O=

f~=`=

P=

a~=`=

Q=

f~=`=

R=

a~=`=

S=

f~=`=

T=

a~=`=

Example 2:

d~Kf~=Z=PWMMI=d~Ka~=Z=OWMMI=
b`Kb=Z=NMWMM=
b`Kpq=

d~=`=b=

M=

f~=`=

O=

a~=`=

P=

f~=`=

R=

a~=`=

S=

f~=`=

U=

a~=`=

V=

f~=`=

m~=p~=a~~=^=
CHAPTER 8

k=~===~==f~====~==M=~=~=
==f~=~=~K==q=a~=====~=
=a~==~=~=~=~~=~===f~=~=
~K=

Exercise 1: Collecting Values into


a TableFile
lW==q==~==~=~=~=~==~=~==K=

Procedure:

1 f=~=q~c====m~|=~K===
`===~==K=
`=~=c~= =~=l=I===~=
m~|K=
c==f~=c=~===qI=~=~=
=~=q~c=
===c~=
k~==_|q~K=

=K=

2 j==_|q~=~K=
a====_|q~K=
c=q~c= ==I==c~=J[=f=
c~=
=E====~FK=
c=q~c= ==I==c~=J[=
`=f=J[=^=E==FK=
o===~=====EpNF=~=
=c~K=

UJOV=

UJPM=

=m~=p~=_~I=jI=~=p~=p=d=

=
kW=^=i=c~==~==~===Ef==
=~=~==========~FK=
f==i=c~=I===a~~=q=~K=
c=a~~=qI==a~qK=

=
`=xlhzK=
c==~=====~~=====
==fK=
c===EF====I==p~=
K=
c===EF====I==`==
_K=

m~=p~=a~~=^=
CHAPTER 8

=
`==q~c=

=K=

3 f=~=j====~K===
c==f~=c=~===qI=~=~=
=~=j=
===c~=
k~==^a~~jK=

=K=

4 j==^a~~jK=
a===^a~~jK=
b======~~===
~===_|q~K=
=
= =W=X=
=
= =WZ=|~K=HNX=
= _|q~xNIz=WZ=b`K~pqX=
= _|q~xOIz=WZ=`m~Kj_KkjrX=
X=
`==j=

=K=

5 f=~=d~====~=~===K=
c==f~=c=~===qI=~=~=
=~=d~=
===c~=
a====d~K=
p==q=~K=
c==f~I==NWMMK=

=K=

UJPN=

UJPO=

=m~=p~=_~I=jI=~=p~=p=d=

kW=t====~===a~K=

==
p==`=~K=
c==f~I==p=l
K=
c==p=l=I===
^a~~jK=
`=xlhzK=

=
`=xlhzK=

6 `~=~=====_|q~K=
^=~=j===m~|=~K=
k~==K=
^==aI=W=
_|q~KaX=

m~=p~=a~~=^=
CHAPTER 8

p=c=J[=^=`~=~=`K=

7 q==K=
`=o
p~

K=

==m~|=~K===

kW=q=~===~===R=~K=
a====~=K=
l=~====_|q~=q~cK=

Exercise 2: Manually Saving a


TableFile to a Text File
lW==q=~==~=~==K===

Overview:

f=====~~=~====~=q~c=
=~==K==q====~~==~==
E====FK=

Procedure:

1 c~==q~c==K=
a====_|q~K=

UJPP=

UJPQ=

=m~=p~=_~I=jI=~=p~=p=d=

=
c==q~c= ==I==c=J[=
c~K=
f==q=c=I=~==~==a~=
~~==~=K===
t=I==pEF=~==q=~K=q=
=jp=b===~==~~K=

=
k=======OK===
Ek==o=~=~FK=

m~=p~=a~~=^=
CHAPTER 8

`=xlhzK=

2 p~==q~c=~=~==K=
j=NW=c==q~c=
J[=p~=^=qK===

==I==c=

NOTE

Notice that other formats, such as Microsoft Excel can be selected as well.

f==p~=~=I=====K=
b=~=~====K==
`=p~K=
`==q~c=

3 o

=K=

==~K=

4 p~===K=

Exercise 3: Automating Saving a


TableFile into a Text File
(Optional)
lW==q=~==~=~==K===
lW=
f=====~~==~=====~=
q~c==~==K===
mW=

1 `===~==K=
2 `=~=c~=
K=

=I===~=m~|=

3 l~I===b`====jr==
K=
4 j===W=

UJPR=

UJPS=

=m~=p~=_~I=jI=~=p~=p=d=

a=====~=~==~~=W=
=
=
== _|q~KcE?`WyyK?FX=
= _|q~KX=
X=
p=c=J[=^=`~=~=`K=

5 q=K=
p~

==m~|NM=~K=

o
==~K=
i=~===K=====`Wy=K=

6 p~===K=
=
=
=
=
=
=
=
=
=
=
=
=

m~=p~=a~~=^=
CHAPTER 8

Lesson 5: Loading a Text File


into a Plant Simulation Table
Loading a Text File
q=~=~====m~=p~W=
Yq~c[K~cE?`Wyyq~uK?FX=
Yq~c[KcE?`Wyyq~uK?FX=
Yq~c[K~coX=
f==~==~====JJI======
===~K=q==~=~=~==K=
m~=p~=~==~~====~===
=?=?==~===~K==f==~=~~=~~==
==K=q=~~=======m~=p~=
~====~=~=~===~~===~===
==~~==K=f==~=~==~=~==~~=
=~=~==~~K=
q=~====~====~~=~====
==c~==jK===
q=~=====~=~=~==~=~W===
Kf~cKq~cK~lEINMIPMFX=
q=~=====~=~=~==~=W==
p==
~=W=~X=
a=
q~K~X=
=
bX=

UJPT=

UJPU=

=m~=p~=_~I=jI=~=p~=p=d=

Importing a Production Table


e==~=~====~~==~=pW=f=~=
~==~=~==~K==

=
kW=q=~=~=~=~==~====~==
~=====K==f==I=====
~====K==q======~=~==~=
=W==Yq~c[K`f=WZ=X=
q=====~==~=~=~I==~==~==
=~~=E~====c=J[=c~===
m~=p~=~FK=

m~=p~=a~~=^=
CHAPTER 8

Another Example:

kW=v=~=~==~==~==~===~=~==~=
I===~~===~~I=~=====~=
~===~K==c=~I=~======
==KjrpK=~====~=~=I====
==m~=p~K=

UJPV=

UJQM=

=m~=p~=_~I=jI=~=p~=p=d=

Loading a Microsoft Excel File


q=~=~=b==Euip==uipuF==m~=p~W=
Yq~c[K~bcE?aWycyKI=>>FX=

Exercise 1: Setting up a Test


Frame
lW==q==~=~==L==q~cK===

Overview:

m~=p~=a~~=^=
CHAPTER 8

Procedure:

1 `~=~===~=~K=
`===~==K=
`=~=c~= =K=
f==b====`~=i~I=~=~==
c~K===
k~==o~a~~cK=
l=o~a~~c=~K=
^=~=b`K=
^=~=pI=pmI=~=~=a~K=
`==pI=pmI=~=a~K=
^=~=q~cK===
k~==miK=

2 j==p====jr===mi=~=
~==q~cK=
a====pK=
c=jr=I==p=`~K=

c=q~I==p=l
K=
c==p=l=I==miK=
j~==c~=~==K=
`=xlhzK=

UJQN=

UJQO=

=m~=p~=_~I=jI=~=p~=p=d=

=
q=~===mi=q~c===K=

Exercise 2: Manually Reading


Values from a Text File
lW==q=~====~====~=q~cK===

Overview:

f=====~~=~====~====
~=q~cK==q====~~==~=K=

Procedure:

1 o~=====miK=

m~=p~=a~~=^=
CHAPTER 8

`===~=~====K=
a===miK=
c==q~c= ==I==c=J[=lK=
f===~=~=~I===xlhzK=

=
f==l=I====miqNMN=~~=K=
`~==c===q=c=EGKquqFK=
p=miKK=
`=lK=

`==q~c=

=
=K=

2 q=K=
p~

==~K=

==~K=

3 p~===K=

UJQP=

UJQQ=

=m~=p~=_~I=jI=~=p~=p=d=

Exercise 3: Automating Reading a


Text File into a TableFile
(Optional)
lW==q=~==~=~==K===

Overview:

f=====~~==~=====~=
===~=q~cK==

==

Procedure:

1 ^=~=q~c=~=j=~=~=K=
`===~==K=
`=~=c~=

====o~a~~c=

c~= =K=
^=~=q~cK=
k~==q~cNNK=
^=~=jK===
k~==K=

2 j===W=

m~=p~=a~~=^=
CHAPTER 8

=
=
== miKcE?`WyqyK?FX=
= q~cNNK~cE?`WyqyK?FX=
X=

3 q=K=
p~
==o~a~~c=~K=
i=~===q~cNNK=
o
==~K=
^==~==`WyqyK=~=~=~K=
NOTE

Data was read from the ProductionList TableFile was written to a text file and then
read from the text file into the TableFile11 TableFile.

4 p~===K=
=
=
=
=
=
=
=

UJQR=

UJQS=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 6: Interfaces to Other


Applications Overview
Standard Interfaces in Plant
Simulation
m~=p~===~~=~===
~~K==^===~~===f~=c=~=
==qK==f==~==I=~===c=J[=
j~~=`~=i~

=E==_~=l=~FK=

File Interfaces:

aab=Ea~=a~~=b~F=J=i=T=
c=i=

=J=i=T=

c=f~=
uji=f~=

=J=i=T=
=J=i=T=

Communication Interfaces:

q~=f~=
la_`=

=i=U=

=El=a~~~=`F=i=U=

pni=i=

=Epni==p=n=i~~F=i=U=

l~=

=i=U=

lm`=f~=

=i=U=

m~=p~=a~~=^=
CHAPTER 8

pfjfq=f~=
p=
^Lu=

=i=U=

=J=i=U=
=J====V=

`=f~==f~===~==`==m~=
p~K==k====K=

Control Interfaces:

k=~===~=W=
`lj=o=`=f~==~==m~=p~=
==~~=~=~=~=`lj==EKK==
~=jp=l=^~=
eqji=EJ~F==~==m~=p~===
f=b=K=

UJQT=

UJQU=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 7: File Interfaces to


Other Applications
DDE-Interface
q=aab=f~=~==m~=p~=~=~=
=aab=Ea~=a~~=b~F=~==~=jp=
t=K=m~=p~=~==~=~=aab===
~=~=aab=K==
m~=p~=~=~=aabJ`=J=^==~==
~===~~===~===~=
~~I==~=~=j=^I=~=jp=b==~=jp=
t=K==
m~=p~=~=~=aabJp=J=l=~~=~=
~=~==m~=p~=s~~=~=aabJe=
~=====~=b=W==
?ZDjJm~D~~>DKjKc~Ks~~D?=
q=~=~~=~====~=
==K=
NOTE

The DDE Interface does not require a separate license. This technique is good for
a small number of variables, however performance may become an issue when
exchanging a large number of variables.

The File Interface Object


mW=

fW=

`~~W=M=
^=f~c==

m~=p~=a~~=^=
CHAPTER 8

UJQV=

q=cf~==~==~===~=~~===
~==K==_=E~=~==F=~==~=
=~~======^uI=`ljI==la_`=~K==

XML Interface
k====K=
q=======uji=f~=
I==~===
~~==um~=Euji=m~=i~~F=K=v=I=
=~I=====WLLKPKLqoL~==
=~K=f=~I==~===~~==
~==pq~K=

UJRM=

=m~=p~=_~I=jI=~=p~=p=d=

Exercise 1: Record the Throughput


Time of an MU Through a Section
of the Plant
NOTE

The EventController.absSimTime method returns the current time of the


EventController. You can then define a custom attribute for an MU that uses the
current time.

lW=q======~=jr==~=~=
==~K=

1 p==~===~K=
`===~=K=
`=~==~K=
l=m~|PK=

=
^==K===
k~==o|p~I=o|pI=~==

m~=p~=a~~=^=
CHAPTER 8

UJRN=

^=~=q~cK=
k~==q|q~K=

2 p==q|q~K=
a====q|q~K=
r=~==~=~=======~=a~~=
q==fK=
r=~==~=~=======~=
a~~=q==qK=
3 p==s~~K=
^=~=s~~===~K=
a====s~~K=
k~==jfK=
p==a~~=q==K=
p==E~F=s~==NK=

=
`=xlhzK=

4 p===K=
a=====K=
b==W=

UJRO=

=m~=p~=_~I=jI=~=p~=p=d=

=
=
= |q~KX=
= jf=WZ=NX=
X=
p==c=J[=^=`~=~=`K=

5 ^=~==~===q~q=jrK=
a===q~q===`~=i~K=
p==`=^=~K=
`=kK=
c==k~==p~qK=
c==a~~=I==~K=
`=^=I=~==xlhz====~K=

=
`=xlhz=K=

6 p==o|p~=K=
a====o|p~=K=
b==W=
=
=

m~=p~=a~~=^=
CHAPTER 8

UJRP=

= ]Kp~q=WZ=`K~pqX=
X=
p==c=J[=^=`~=~=`K=

7 p==o|p=K=
a====o|p=K=
b==W=
=
=
= q|q~xNIjfz=WZ=jfX=
= q|q~xOIjfz=WZ=
= `K~pq=J=]Kp~qX=
= jf=WZ==jf=H=NX=
X==
p==c=J[=^=`~=~=`K=
8 `~=o|p~=~=`qpK=
a===`qpK=
p==`=~K=
_=~==o|p~===b~=K=

=
`=xlhz=

9 `~=o|p=~=^K=

UJRQ=

=m~=p~=_~I=jI=~=p~=p=d=

a===^K=
p==`=~K=
_=~==o|p===b~=K=
`=xlhz=

10 q=K=
m~==~K=
i=~=====q|q~K=
o

==~K=

11 p~==K=

Exercise 2: Using the DDE


Interface and Embedding Files
lW=q==~==~===aab=~K=
kW=b=N=====~=====K=

1 `~=~=b===K=
l=j=b==
`~=~==~=b===~=_~KK=
p~===b====K=
`=j=bK=
2 `~=~=ci==W=
a~==b=====~=====
m~|P=~==m~=p~K=

m~=p~=a~~=^=
CHAPTER 8

UJRR=

p=vK=
fjmloq^kq=kW=t====~=m~=p~=
====~=~==m~=p~=~==
=K==q========~=
=~===I===~=====
m~=p~=Kpmm=K=
p=c=J[=p~K=
p=c=J[=bK=
o~=m~=p~K=
c==m~=p~=p~=m~I===~=
=Ef========FK=

3 p==aab=pW=
a====jf=~~===m~|P=~K=
p==`~=~K==
`==p=aab==K=

=
`=xlhzK=

4 p===aab=`W=
a===ci=~=~=====
=====j=bK=

UJRS=

=m~=p~=_~I=jI=~=p~=p=d=

p====~=W=
ZDjJm~D~~>DKjKm~|PKjfD=
m=xbzK=

5 q=K=
f=m~=p~W=p~
==p~K=
k==~=====~=b==
~~K=
=o
==~K=
`==b=I==~K=

6 p~===K=
=
=
=
=
=
=

m~=p~=a~~=^=
CHAPTER 8

UJRT=

Lesson 8: Communication
Interfaces to Other
Applications (Optional
Lesson)
Introduction
f======~=~=~==
m~=p~K==eI=^u====~~==
==K=

Teamcenter Interface
q~
=J====mijuji=~~=~=gq=~~==
~=q~=a~~~=~=~=q~==K=
q====~=~==~=~~=~=
=q~=~=m~=p~K==

UJRU=

=m~=p~=_~I=jI=~=p~=p=d=

q~===~~I==~~I=~==~~=
~~K=v=q~=~=~==~~=~=~=
`~~=`==q~K=e===~=~=
==~~=~=~=~~=~=E^fF=K=q=~~==
==mij=uji=~I===~===~=m~=
p~=~===q~=~K=v=~===
~~I====gq==~====q~I=
~==~~===~===m~=p~K==
kW=r=~=p=I==~=~==~~====
mij=uji===~=~=~==~~=~===~=~=
=~~==~=~==~=~====m~=
p~K=

m~=p~=a~~=^=
CHAPTER 8

ODBC Interface
la_`=
=El=a~~~=`F==^====~=
~I==~=K=r~=pnif~=~=~=
~===~=~~=~=~==~=la_`=I=
=~=jp=bI=_~I==I=l~I=fI=K=E~==
~====~=~===FK===
^===~=~I=pni=~=~===
==~~=K=

UJRV=

UJSM=

=m~=p~=_~I=jI=~=p~=p=d=

kW=c=SQJ=m~=p~I====j=l=
OMNM====~==j=^==bK=

SQL Lite Interface


pni=i=

=Epni==p=n=i~~F=

pni==~=~=~=~==~=J~I=
I=J~I=~~~=pni=~~~=K=
c==~I==WLLKKK=^==
===pni======pni=~~~=
===K=q====pni=====
~K==

=
q=~~~======pniVO=~~I=
~=~==~====~=pniVO=~=~=K=
q==~==~=~~~======
pniK=c=====~=~=~=~=~=~I=
~=KI==~==~~~===m~=
p~K==

m~=p~=a~~=^=
CHAPTER 8

=
q=pni=~~~=====m~=p~K=v=
~=~=====pniK==

Oracle Interface
l~
=J=^JI=~====~=~I==~=
K=^====l~=~~~=E=VI=NM==
NNF=~=pniGkK=

UJSN=

UJSO=

=m~=p~=_~I=jI=~=p~=p=d=

kW=q~=m~=p~==l~=k==
f~=`==~=l~=~~~K===k===
~=~~K==eI==~===l~=f~=
`I===~===m~=p~I==~=
~=l~=~~~==~=l~=`K==

OPC Interface
lm`=f~=
=J=~=~==~~=~=~==
~=mi`=~===~~==~~K===

m~=p~=a~~=^=
CHAPTER 8

UJSP=

q=~==m~=p~===~JI=~==
==~=~JJ=~====~=~=~=
K=iD=~==~=~~===~==~=
~~==I==m~=p~==~==~==
K=v======~==~=
===~=~~K==

SIMIT Interface
pfjfq=f~=
==m=~====I=
=~=mi`=I=~=pfjfq=Ep~=C=qFK==

UJSQ=

=m~=p~=_~I=jI=~=p~=p=d=

pfjfq==~==~===~~=~K=r=
~~====~=I=====
=~~==~==K=q===~=
~=I==~==I==I=
~==I=~=~=~===~=
~=~=~===~=~~K=

Socket Interface
p
=J=o=~=K=p==~=
===~==q`mLfmJmI==~===
====~====K=^===
J~=~==K=

m~=p~=a~~=^=
CHAPTER 8

p=~===~====~=
~=~K=p=~=JJ=I=
~==~~I=~===~==
~~K=^======~===q`mLfm=
I===~=~===~~=
~K=
=
=
=
=
=
=
=
=
=
=
=
=

UJSR=

UJSS=

=m~=p~=_~I=jI=~=p~=p=d=

Lesson 9: ActiveX and Plant


Simulation Example (Optional
Lesson)
Introduction
f======^u==m~=p~==
K=

The ActiveX object


^u=
==~===~===~~=
=E^u=F==~=~=~~=~==
~=~~======~K=q=
^u===~==lib=El=i=~=
bFK=v=~===~==~==^u==
==~===I===~=~==
~~==I==~=j=s~=`HHI=
j=s~=_~I=K=b~==^u====
~==j=t=~==f=b===
=j~=m~K==

=
^=^u==~=====~===~=
=~==K=q==~=====~=
POK===m~=p~K==

m~=p~=a~~=^=
CHAPTER 8

kW=q=~==^u=~=====I==c=J
[=j~~=`~=i~
=xlhzK=

I===^u=I=~=

ActiveX Methods:

q=^u======~=~W==
^~==~====^u===
=~===~~==~=
m~~=
=
~=
=
`=
~I=m~~=
tm=
f=
`=

Optional Exercise 1: Embedding


More Files
lW=q==~=I=~====t=b=E=
=aF===c~=~===K=

1 d=~K=
l=j=b=~=~=~==K=
b===NI=OI=PI=QI=R======
pNK=

UJST=

UJSU=

=m~=p~=_~I=jI=~=p~=p=d=

=
p=pOK=
b===~I=I=I=I=====K=
p~======~=p~cKK=

=
f=m~=p~I=~=~==~=~=c~|NMK=

2 b=====c~|NM=~K=
l==t=b=~=====
~==uip===~=E===m~=
p~=====t=a==
===FK=
a~===~=====c~|NM=~==m~=
p~K=

=
`=vK=

3 i=~======ci==K=

m~=p~=a~~=^=
CHAPTER 8

o====ci=~==lK=

=
`=xlhzK=

Optional Exercise 2: Using the


ActiveX Object
lW=q=====~=^u=K=

1 ^==^u====K=
`====~=c~|NM=~K==
kW=q=~==^u=~=====I==c=J
[=j~~=`~=i~
=xlhzK=

I===^u=I=~=

2 ^=~=^u===K=
a~==^u ====`~=i~===
c~|NM=~K=
3 p==^u=K=
a====^u=K=
`==^=K=

UJSV=

UJTM=

=m~=p~=_~I=jI=~=p~=p=d=

c==`~=~I==K~~K=
r=a~==~K=

=
`=xlhzK=

4 ^====K==k~==~=W=

m~=p~=a~~=^=
CHAPTER 8

5 ^=~=q~c=~=~==~K=
6 r=~==~=~====~=q~c==~=
=======~=====
K=
7 b=====~|W=
=
=
= ~bX=
= ~~cbX=
= a~~qbX=
= bX=
X=
NOTE

A shortcut to typing in this methods content is to open the frame10_start_me.txt


file, located with the PLT200 training data, into it.

UJTN=

UJTO=

=m~=p~=_~I=jI=~=p~=p=d=

8 b=====~bW=
=
= W~X=
=
= ~K~=WZ=X=
= =WZ=~K~~X=
= KKEciKc~FX=
= K=WZ=X=
X=
NOTE

A shortcut to typing in this methods content is to open the frame10_startExcel.txt


file, located with the PLT200 training data, into it.

9 b======a~~qb=W=
==
= =W=X=
= INIOW=~X=
=
= =WZ=~uK~~X=
= ==WZ=N==
KE?pN?FK~E?^NW^R?FK==
= =
N=WZ=
KE?pN?FK~E?^NW^R?FKEINFK~X=
=======
~xNIz=WZ=NX=
= X=
= ==WZ=N==
KE?pO?FK~E?^NW^R?FK==
= =
O=WZ=
KE?pO?FK~E?^NW^R?FKEINFK~X==
= =
~xOIz=WZ=OX===
= X=
X=

m~=p~=a~~=^=
CHAPTER 8

NOTE

A shortcut to typing in this methods content is to open the


frame10_getDataToExcel.txt file, located with the PLT200 training data, into it.

10 b======a~~qb=W=
==
= =W=X=
= W~X=
=
= =WZ=^uK^~X=
= ==WZ=N==
KE?pN?FK~E?^SW^NM?FK==
= KE?pN?FK~E?^SW^NM?FKEINFK~=
WZ=~xNIzX=
== X=
= ==WZ=N==
KE?pO?FK~E?^SW^NM?FK==
= ~K~~KE?pO?FK~E?^SW^NM
?FKEINFK~=WZ=~xOIz=
== X=
= ~K~~K=WZ=X=
X=
NOTE

A shortcut to typing in this methods content is to open the


frame10_writeDataToExcel.txt file, located with the PLT200 training data, into it.

11 b======b=W=
=
= W~X=
=
= =~uK~==
= =
=WZ=~K~~X=
= =
KE?pN?FK~E?^SW^NM?FKX=
= =
KE?pN?FK~E?^SW^NM?FKX=
= =
K~K~X=

UJTP=

UJTQ=

=m~=p~=_~I=jI=~=p~=p=d=

= =
KX=
= =
~K~=WZ=~X=
= X=
= q~X=
X=

NOTE

A shortcut to typing in this methods content is to open the frame10_closeExcel.txt


file, located with the PLT200 training data, into it.

12 b======q~=W=
=
=
= ~KX=
X=
NOTE

A shortcut to typing in this methods content is to open the


frame10_resetTargetl.txt file, located with the PLT200 training data, into it.

13 q=K=
o==~|=K=
i=~=====~=q~cK=

=
o==q~=K=

m~=p~=a~~=^=
CHAPTER 8

14 p~===K=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=

UJTR=

UJTS=

=m~=p~=_~I=jI=~=p~=p=d=

Chapter Summary
f==~===~=~W=
lI=j=~=f~==m=p~~=
s~=
r=~===~~=~K=
rj==~=~=~=~==m~=
p~=~I=~===~====~=
~==K=
f=~==~==~=~~K=
c=f~=lW=
cf~===~==~====~=
~==~==K=
aab=f~====~==~=
~=~~K=
^u=~=~K=
=
=
=
=
=

m~=p~=a~~=^=
CHAPTER 8

Lesson 10: Putting It All


Together
Introduction
^=====~==~======
m~=p~=j=~=p~K==q=~==~=
====~=~=~===~=~==
~=K==v=======~=~==
======~I=~~=~=
~I=~=p=mij=p~======
=~=K====

UJTT=

UJTU=

=m~=p~=_~I=jI=~=p~=p=d=

bumboq

pvkqebpfwb

^k^ivwb
mo^`qf`b
bumlprob
kl=hkltibadb
=
=
=

mrqqfkd=fq=
^ii=
qldbqebo

m~=p~=a~~=^=
CHAPTER 8

Lesson 11: Where Do We Go


From Here?
Introduction
f==~==~==~===~===m~=
p~=I===W=
miqPMM==m~=p~=^~=j=
e==~=m~=p~==~=~===W=
miqNNM==m~=p~=Pa=s~~=

Other Sources of Information


dq^`==NJUMMJVRRJMMMM=
p=mij=p~===
l==
l===J=i=~====~==
~=m~=p~==~==~K=

Exercise: Opening the Demo


Model (Optional)
lW=q==~==K=
1 `===m~=p~=jK=
p=c=J[=`=j

K=

UJTV=

UJUM=

=m~=p~=_~I=jI=~=p~=p=d=

=
t=~===~==~I==vK=
2 l==b~=K=
`=s=J[=p~=m~

K=

=
`=b~LfK=

=
`=b~=`K=
c=`~I==a=j~~=K=
c=q==a~=~K=

m~=p~=a~~=^=
CHAPTER 8

UJUN=

c=b~I==p~~K=

=
p=l=jK=
j==b~=`====K=
3 l==p~~=~===a~~=K=

=
4 m~==~K=

UJUO=

=m~=p~=_~I=jI=~=p~=p=d=

=
=

You might also like