logo资料库

Manufacturing Simulation with Plant Simulation and Simtalk.pdf

第1页 / 共308页
第2页 / 共308页
第3页 / 共308页
第4页 / 共308页
第5页 / 共308页
第6页 / 共308页
第7页 / 共308页
第8页 / 共308页
资料共308页,剩余部分请下载后查看
3642050735
Manufacturing Simulation with Plant Simulation and SimTalk
Preface
Table of Contents
1 Introducing Factory Simulation
Uses
Definitions
Procedure of Simulation
Formulation of Problems
Test of the Simulation-Worthiness
Formulation of Targets
Data Collection
Modeling
Executing Simulation Runs
Result Analysis and Result Interpretation
Documentation
2 Plant Simulation
First Steps
Online Tutorial
Examples
Help
Website
Introductory Example
The Program
First Simulation Example
Modeling
Object-Related Modeling
Object-Oriented Modeling
3 Standard Classes in PLANT SIMULATION
Overview
Material Flow Objects
General Behavior of the Material Flow Objects
The Source
The Drain
The SingleProc
The ParallelProc
The AssemblyStation
The Buffer
The DismantleStation
The Store
The Line
AngularConverter and Turntable
The PickAndPlace Robot
The Track
The Sorter
The FlowControl
Resource Objects
Usage and Example
The Worker-WorkerPool-Workplace-FootPath Concept
The Broker
The WorkerPool
The Worker
The Footpath
The Workplace
Worker Transporting Parts
General Objects
The Frame
The Connector
The EventController
The Interface
4 Icons
Basics
The Icon Editor
Drawing Icons
Inserting Images
Insert Images from the Clipboard
Inserting Images from a File
Changing the Background Color of the Frame
Animation Structures and Reference Points
Basics
Set Reference Points
Animation Structures
Animating Frames
5 Programming with SimTalk
The Object Method
Introductory Example
The Method Editor
Line Numbers, Entering Text
Bookmarks
Code Completion
Information About Attributes and Methods
Templates
The Debugger
SimTalk
Names
Anonymous Identifiers
Paths
Comments
Variables and Data Types
Variables
Operators
Mathematical Operators
Logical (Relational) Operators
Assignments
Branching
Case Differentiation
Loops
Conditional Loops
For-Loop
Methods and Functions
Passing Arguments
Passing Several Arguments at the Same Time
Result of a Function
Predefined SimTalk Functions
Method Call
6 Simtalk and Material Flow Objects
Attributes of the Material Flow Objects
State of Material Flow Objects
Operational, Failed, Pause
Ready
Empty
Occupied
Full
Capacity
Suspending Methods
Observer
Content of the Objects
Sensors
User-Defined Attributes
7 Mobile Units
Standard Methods of Mobile Units
Create
MU-Related Attributes and Methods
Length, Width, and Booking Point
The Entity
The Container
Attributes of the Container
Loading Containers
Unloading Containers
The Transporter
Basic Behavior
Attributes of the Transporter
Routing
Methods and Attributes of the Transporter
8 Information Flow Objects
The List Editor
The CardFile
StackFile and QueueFile
The TableFile
Basic Behavior
Methods and Attributes of the TableFile
Calculating within Tables
The TimeSequence
Basic Behavior
Settings
The Trigger
Basic Behavior
The ShiftCalendar
The Generator
The AttributeExplorer
The EventController
9 Statistics
Basics
Statistics Collection Period
Activating Statistics Collection
Statistics – Methods and Attributes
User Interface Objects
Chart
The Sankey Diagram
The Bottleneck Analyzer
The Display
The Comment
The Report
10 User Interface Objects
General
Elements of the Dialog
The Dialog Object
Insert Elements
Callback Function
The Static Text Box
Images in Dialogs
Buttons
Radio Buttons
Checkbox
Drop-Down List Box and List Box
List View
Tab Control
Group Box
Menu and Menu Item
Accessing Dialogs
Protection of Methods and Objects
Validation User Input
Type Validation and Plausibility Check
Message Box
HTML-Help
11 Data Exchange
DDE with Plant Simulation
Read Plant Simulation Data in Microsoft Excel
Plant Simulation Remote Control
DDE Hotlinks
The File Interface
The ODBC Interface
Setup an ODBC Data Source
Read Data from a Database
Write Data in a Database
Delete Data in a Database Table
SQL Commands
12 Plant Simulation 3D
Sample Project
Views and Move in Plant Simulation 3D
Control the Simulation in Plant Simulation 3D
Index
Manufacturing Simulation with Plant Simulation and SimTalk
Steffen Bangsow Manufacturing Simulation with Plant Simulation and SimTalk Usage and Programming with Examples and Solutions ABC
Steffen Bangsow Freiligrathstraße 23 08058 Zwickau Germany E-mail: steffen@bangsow.de ISBN 978-3-642-05073-2 e-ISBN 978-3-642-05074-9 DOI 10.1007/978-3-642-05074-9 Library of Congress Control Number: 2010923701 c 2010 Springer-Verlag Berlin Heidelberg This work is subject to copyright. All rights are reserved, whether the whole or part of the mate- rial is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilm or in any other way, and storage in data banks. Dupli- cation of this publication or parts thereof is permitted only under the provisions of the German Copyright Law of September 9, 1965, in its current version, and permission for use must always be obtained from Springer. Violations are liable to prosecution under the German Copyright Law. The use of general descriptive names, registered names, trademarks, etc. in this publication does not imply, even in the absence of a specific statement, that such names are exempt from the relevant protective laws and regulations and therefore free for general use. Typesetting: Camera-ready by author, data conversion by Markus Richter, Heidelberg Cover Design: Scientific Publishing Services Pvt. Ltd., Chennai, India Printed on acid-free paper 9 8 7 6 5 4 3 2 1 springer.com
Preface Based on the competition of international production networks, the pressure to in- crease the efficiency of production systems has increased significantly. In addi- tion, the number of technical components in many products and as a consequence also the requirements for corresponding assembly processes and logistics proc- esses increases. International logistics networks require corresponding logistics concepts. These requirements can be managed only by using appropriate Digital Factory tools in the context of a product lifecycle management environment, which allows reusing data, supports an effective cooperation between different departments, and provides up-to-date and relevant data to every user who needs it. Simulating the complete material flow including all relevant production, stor- age, and transport activities is recognized as a key component of the Digital Fac- tory in the industry and as of today widely used and accepted. Cutting inventory and throughput time by 20–60% and enhancing the productivity of existing pro- duction facilities by 15–20% can be achieved in real-life projects. The purpose of running simulations varies from strategic to tactical up to opera- tional goals. From a strategic point of view, users answer questions like which fac- tory in which country suits best to produce the next generation product taking into account factors like consequences for logistics, worker efficiency, downtimes, flexi- bility, storage costs, etc., looking at production strategies for the next years. In this context, users also evaluate the flexibility of the production system, e.g., for signifi- cant changes of production numbers –– a topic which becomes more and more im- portant. On a tactical level, simulation is executed for a time frame of 1–3 months in average to analyze required resources, optimize the sequence of orders, and lot sizes. For simulation on an operational level, data are imported about the current status of production equipment and the status of work in progress to execute a forward simu- lation till the end of the current shift. In this case, the purpose is to check if the target output for the shift will be reached and to evaluate emergency strategies in case of disruptions or capacities being not available unexpectedly. In any case, users run simulation to take a decision about a new production sys- tem or evaluate an existing production system. Usually, the value of those systems is a significant factor for the company, so the users have to be sure that they take the right decision based on accurate numbers. There are several random processes in real production systems like technical availabilities, arrival times of assembly parts, process times of human activities, etc., so stochastic processes play an im- portant role for throughput simulation. Therefore, Plant Simulation provides a whole range of easy-to-use tools to analyze models with stochastic processes, to
VI Preface calculate distributions for sample values, to manage simulation experiments, and to determine optimized system parameters. Besides that, results of a simulation model depend on the quality of the input data and the accuracy of the model compared to the behavior of the real produc- tion system. As soon as assembly processes are involved, several transport sys- tems with their transport controls, workers with multiple qualification profiles or storage logic, production processes become highly complex. Plant Simulation pro- vides all necessary functionality to model, analyze, and maintain large and com- plex systems in an efficient way. Key features like object orientation and inheri- tance allow users to develop, exchange/reuse, and maintain their own objects and libraries to increase modeling efficiency. The unique Plant Simulation optimiza- tion capabilities support users to optimize multiple system parameters at once like the number of transporters, monorail carriers, buffer/storage capacities, etc., taking into account multiple evaluation criteria like reduced stock, increased utilization, increased throughput, etc. Based on these accurate modeling capabilities and statistic analysis capabilities, typically an accuracy of at least 99% of the throughput values is achieved with Plant Simulation models in real-life projects depending on the level of detail. Based on the price of production equipment, a return on investment of the costs to introduce simu- lation is quite often already achieved after the first simulation project. Visualizing the complete model in the Plant Simulation 3D environment allows an impressive 3D presentation of the system behavior. Logfiles can be used to visualize the simulation in a Virtual Reality (VR) environment. The support of a Siemens PLM Software unified 3D graphics engine and unified graphics format allows a common look-and-feel and easy access to 3D graphics which were cre- ated in other tools like digital product design or 3D factory layout design tools. The modeling of complex logic always requires the usage of a programming language. Plant Simulation simplifies the need to work with programming lan- guage tremendously by supporting the user with templates, with an extensive ex- amples collection and a professional debugging environment. Compared to other simulation tools in the market, Plant Simulation supports a very flexible way of working with the model, e.g., by changing system parameters while the simulation is running. This book provides the first comprehensive introduction to Plant Simulation. It supports new users of the software to get started quickly, provides an excellent in- troduction how to work with the embedded programming language SimTalk, and even helps advanced users with examples of typical modeling tasks. The book fo- cuses on the basic knowledge required to execute simulation projects with Plant Simulation, which is an excellent starting point for real-life projects. We wish you a lot of success with Tecnomatix Plant Simulation. Dirk Molfenter † Siemens PLM Software November 2009
Table of Contents 1 Introducing Factory Simulation ................................................................... 1 1.1 Uses......................................................................................................... 1 1.2 Definitions............................................................................................... 2 1.3 Procedure of Simulation.......................................................................... 2 1.3.1 Formulation of Problems ............................................................ 2 1.3.2 Test of the Simulation-Worthiness ............................................. 3 1.3.3 Formulation of Targets ............................................................... 3 1.3.4 Data Collection........................................................................... 3 1.3.5 Modeling..................................................................................... 4 1.3.5.1 First Modeling Stage.................................................... 4 1.3.5.2 Second Modeling Stage ............................................... 5 1.3.6 Executing Simulation Runs ........................................................ 5 1.3.7 Result Analysis and Result Interpretation................................... 5 1.3.8 Documentation............................................................................ 5 2.2 2 Plant Simulation............................................................................................. 7 2.1 First Steps................................................................................................ 7 2.1.1 Online Tutorial ........................................................................... 7 2.1.2 Examples .................................................................................... 7 2.1.3 Help ............................................................................................ 7 2.1.4 Website....................................................................................... 8 Introductory Example ............................................................................. 8 2.2.1 The Program ............................................................................... 8 2.2.1.1 The Program Window.................................................. 8 2.2.1.2 The Class Library......................................................... 8 2.2.1.3 The Console ................................................................. 9 2.2.1.4 The Toolbox................................................................. 9 2.2.2 First Simulation Example ........................................................... 9 2.2.2.1 Design of the Model..................................................... 9 2.2.2.2 Insert Objects into the Frame ..................................... 10 2.2.2.3 Connect the Objects ................................................... 10 2.2.2.4 Define the Settings of the Objects.............................. 10 2.2.2.5 Run the Simulation..................................................... 11 2.3 Modeling............................................................................................... 12 2.3.1 Object-Related Modeling.......................................................... 12
VIII Table of Contents 2.3.2 Object-Oriented Modeling........................................................ 12 2.3.2.1 Objects and Properties ............................................... 12 2.3.2.2 Classes and Instances................................................. 13 2.3.2.3 Inheritance.................................................................. 13 2.3.2.4 Duplication and Derivation........................................ 13 3 Standard Classes in PLANT SIMULATION ............................................ 17 3.1 Overview............................................................................................... 17 3.2 Material Flow Objects........................................................................... 17 3.2.1 General Behavior of the Material Flow Objects ....................... 17 3.2.1.1 Time Consumption..................................................... 18 3.2.1.2 Capacity ..................................................................... 20 3.2.1.3 Blocking..................................................................... 20 3.2.1.4 Failures....................................................................... 21 3.2.2 The Source................................................................................ 25 3.2.2.1 Basic Behavior ........................................................... 25 3.2.2.2 Settings....................................................................... 25 3.2.3 The Drain.................................................................................. 29 3.2.4 The SingleProc ......................................................................... 29 3.2.5 The ParallelProc ....................................................................... 29 3.2.5.1 Basic Behavior and Use ............................................. 29 3.2.5.2 Settings....................................................................... 30 3.2.6 The AssemblyStation................................................................ 32 3.2.7 The Buffer................................................................................. 34 3.2.8 The DismantleStation ............................................................... 35 3.2.8.1 Basic Behavior ........................................................... 35 3.2.8.2 Cycle .......................................................................... 38 3.2.9 The Store .................................................................................. 39 3.2.10 The Line.................................................................................... 40 3.2.10.1 Behavior of the Line .................................................. 40 3.2.10.2 Attributes of the Line ................................................. 40 3.2.10.3 Curves and Corners.................................................... 43 3.2.11 AngularConverter and Turntable.............................................. 44 3.2.11.1 Settings of the AngularConverter............................... 45 3.2.11.2 Settings of the Turntable............................................ 46 3.2.12 The PickAndPlace Robot.......................................................... 46 3.2.12.1 Basic Behavior ........................................................... 46 3.2.12.2 Attributes.................................................................... 47 3.2.13 The Track.................................................................................. 50 3.2.14 The Sorter ................................................................................. 51 3.2.14.1 Basic Behavior ........................................................... 51 3.2.14.2 Attributes of the Sorter............................................... 52 3.2.15 The FlowControl....................................................................... 55
分享到:
收藏