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

Introduction to Plant Simulation

Exercise 3

IWF Betriebliche Simulation von Produktionsanlagen Dr. Peter Acél 1 / 16


Agenda

• Theory: Important objects of the class library


• Hand-in exercise 3

IWF Betriebliche Simulation von Produktionsanlagen Dr. Peter Acél 2 / 16


Important objects of the class library

• Tables
• Shift Calendar
• Variables
• Methods

IWF Betriebliche Simulation von Produktionsanlagen Dr. Peter Acél 3 / 16


SchiftCalendar

SchiftCalendar
• Establishment of a fixed working time model
For worker

IWF Betriebliche Simulation von Produktionsanlagen Dr. Peter Acél 4 / 16


SchiftCalendar

SchiftCalendar
• Establishment of a fixed working time model

Also for automatic objects

IWF Betriebliche Simulation von Produktionsanlagen Dr. Peter Acél 5 / 16


Tables

• Both object and data type


• Object: look up or save
values
• Application (1):
• In Sources: MU selection

IWF Betriebliche Simulation von Produktionsanlagen Dr. Peter Acél 6 / 16


Tables

• Application (2):
• In Station: Different
processing times

IWF Betriebliche Simulation von Produktionsanlagen Dr. Peter Acél 7 / 16


Tables
Example
1. Drag and Drop a Table into the
Frame. Rename the Table to
Table_Source.
2. Open the Source. MU selection:
Sequence cyclic. Table:
Table_Source.
3. Apply, Ok. Now format the
Table_Source.
4. Enter the MU and the relative
number of parts that should be
produced.

IWF Betriebliche Simulation von Produktionsanlagen Dr. Peter Acél 8 / 16


Variables
• Local variables (only within a Method)
• Global variables (in the entire Frame)
• Example:
Needed across methods,
Independent of methods
global

local

IWF Betriebliche Simulation von Produktionsanlagen Dr. Peter Acél 9 / 16


Variables

With F8 all
variables and
methods of an
object are
displayed.

IWF Betriebliche Simulation von Produktionsanlagen Dr. Peter Acél 10 / 16


Methods for controlling the material flow

• Input or output control


overwrites basic
behavior of the object
• Individualization of
the material flow or
extension of functions

IWF Betriebliche Simulation von Produktionsanlagen Dr. Peter Acél 11 / 16 11


Methods for controlling the material flow

Front and Rear (Bug &


Heck):
• Select Front to activate
the control as soon as
the part is ready to exit
the object.
• Select Rear to activate
the control as soon as
the rear of the part has
completely exited the
object.

IWF Betriebliche Simulation von Produktionsanlagen Dr. Peter Acél 12 / 16 12


SimTalk Syntax – Anonymous identifiers
• Question mark ?: designates the material flow object or the control
(Method) that called the Method. Employing the anonymous identifier ?
allows a control to be used without modifications by several objects.
• Example: ?.cont.move(TargetObject);

• At sign @: designates the MU that triggered the control (Method).


When you enter an entrance or exit control into a material flow object,
the anonymous identifier @ allows you to access the MU that entered or
is ready to exit the object.
• Example: @.move(TargetObject)

IWF Betriebliche Simulation von Produktionsanlagen Dr. Peter Acél 13 / 16


SimTalk Syntax 2.0

The New Syntax command enables SimTalk 2.0


syntax. When enabled, you must type the source
code into methods using the improved, abbreviated
notation.

Plant Simulation saves this setting in the model file.

If New Syntax is disabled, you must type the source


code into the method in SimTalk 1.0 syntax.

IWF Betriebliche Simulation von Produktionsanlagen Dr. Peter Acél 14 / 16


SimTalk Syntax 2.0 vs 1.0

Comparison of SimTalk 2.0 vs 1.0:


https://docs.plm.automation.siemens.com/content/plant_sim_help/15/plant_sim_all_in_one_html/en_US/tecnomatix_plant_
simulation_help/simtalk_reference/simtalk_20_and_simtalk_10_compared.html

IWF Betriebliche Simulation von Produktionsanlagen Dr. Peter Acél 15 / 16


Agenda

• Theory: Important objects of the class library


• Hand-in exercise 3

IWF Betriebliche Simulation von Produktionsanlagen Dr. Peter Acél 16 / 16

You might also like