Tecnomatix Plant Simulation Steffen Bangsow
Total Page:16
File Type:pdf, Size:1020Kb
Tecnomatix Plant Simulation Steffen Bangsow Tecnomatix Plant Simulation Modeling and Programming by Means of Examples Second Edition 123 Steffen Bangsow Zwickau, Germany ISBN 978-3-030-41543-3 ISBN 978-3-030-41544-0 (eBook) https://doi.org/10.1007/978-3-030-41544-0 1st edition: © Springer International Publishing Switzerland 2016 2nd edition: © Springer Nature Switzerland AG 2020 This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. The use of general descriptive names, registered names, trademarks, service marks, 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. The publisher, the authors and the editors are safe to assume that the advice and information in this book are believed to be true and accurate at the date of publication. Neither the publisher nor the authors or the editors give a warranty, expressed or implied, with respect to the material contained herein or for any errors or omissions that may have been made. The publisher remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. This Springer imprint is published by the registered company Springer Nature Switzerland AG The registered company address is: Gewerbestrasse 11, 6330 Cham, Switzerland Contents Preface ................................................................................................................ xvii 1 Basics .......................................................................................................... 1 1.1 Introducing Material Flow and Logistics Simulation .......................... 1 1.1.1 Uses ............................................................................................. 1 11.1.1 Definitions ................................................................................... 2 11.1.2 Procedure of Simulation .............................................................. 2 1.2 Plant Simulation: First Steps ................................................................ 5 1.2.1 The Tutorial................................................................................. 5 1.2.2 Step-by-Step Help ....................................................................... 6 1.2.3 Example Collections and Demo Videos ...................................... 6 1.2.4 The Siemens PLM Software Community ................................... 7 1.3 Introductory Example .......................................................................... 7 1.4 First Simulation Example .................................................................... 9 1.4.1 Insert Objects into the Frame ...................................................... 9 1.4.2 Connect the Objects .................................................................... 9 1.4.3 Define the Settings of the Objects ............................................... 10 1.4.4 Run the Simulation ...................................................................... 10 1.5 Modeling .............................................................................................. 11 1.5.1 Object-related Modeling ............................................................. 11 1.5.2 Object-oriented Modeling ........................................................... 11 1.6 Student and Demo Version .................................................................. 13 2 SimTalk and Dialogs ................................................................................. 15 2.1 List of Examples .................................................................................. 15 2.2 The Object Method .............................................................................. 16 2.3 The Method Editor ............................................................................... 18 2.3.1 Line Numbers, Entering Text ...................................................... 18 2.3.2 Bookmarks .................................................................................. 18 2.3.3 Code Completion ........................................................................ 19 2.3.4 Information about Attributes and Methods ................................. 19 2.3.5 Templates .................................................................................... 21 2.3.6 The Debugger .............................................................................. 22 2.4 SimTalk 2.0 .......................................................................................... 22 2.4.1 Names ......................................................................................... 22 2.4.2 Anonymous Identifiers ................................................................ 23 2.4.3 Paths ............................................................................................ 24 v vi Contents 2.4.4 Comments ................................................................................... 25 2.5 Variables and Data Types .................................................................... 25 2.5.1 Variables ..................................................................................... 26 2.5.2 Local Variables ........................................................................... 26 2.5.3 Arrays .......................................................................................... 28 2.5.4 Global variables .......................................................................... 29 2.6 Operators .............................................................................................. 30 2.6.1 Mathematical Operators .............................................................. 31 2.6.2 Logical (Relational) Operators .................................................... 31 2.6.3 Assignments ................................................................................ 32 2.7 Branching ............................................................................................. 34 2.8 Case Differentiation ............................................................................. 35 2.9 Loops ................................................................................................... 36 2.9.1 Conditional Loops ....................................................................... 36 2.9.2 For Loop ...................................................................................... 38 2.10 Methods and Functions ........................................................................ 39 2.10.1 Passing Arguments ...................................................................... 39 2.10.2 Passing Several Arguments at the Same Time ............................ 40 2.10.3 Result of a Function .................................................................... 41 2.10.4 Predefined SimTalk Functions .................................................... 43 2.10.5 Method Call ................................................................................. 47 2.11 Interrupt Methods................................................................................. 57 2.11.1 The wait statement ...................................................................... 57 2.11.2 Suspending of Methods ............................................................... 57 2.12 Debugging, Optimization ..................................................................... 60 2.12.1 Breakpoints in methods ............................................................... 60 2.12.2 Breakpoints in the EventController ............................................. 62 2.12.3 Error handler ............................................................................... 62 2.12.4 Profiler ........................................................................................ 65 2.13 Hierarchical Modeling ......................................................................... 67 2.13.1 The Frame ................................................................................... 67 2.13.2 The Interface ............................................................................... 67 2.13.3 Create your own libraries ............................................................ 70 2.14 Dynamic Model Generation ................................................................. 71 2.14.1 Required data, SimTalk language elements ................................ 71 2.14.2 Create objects and set attributes .................................................. 72 2.14.3 Link objects with connectors ....................................................... 74 2.14.4 Connect objects with lines ........................................................... 75 2.15 Dialogs ................................................................................................. 77 2.15.1 Elements of the Dialog ................................................................ 77 Contents vii 2.15.2 Accessing Dialogs ..................................................................... 91 2.15.3 User interface controls .............................................................. 91 2.15.4 Input functions .........................................................................