beckhoff · TwinCAT 2 · 129 pp.

Beckhoff TwinCAT 2 Quick Start Manual — Installation & PLC Programming Guide PDF

Read online

Related manuals

Contents

Document text

Table of contents

Table of contents Table of contents 1 Foreword.................................................................................................................................................... 5 1.1 Notes on the documentation ............................................................................................................. 5 1.2 For your safety .................................................................................................................................. 5 1.3 Notes on information security............................................................................................................

7 2 Introduction to working with TwinCAT and System requirements ...................................................... 8 3 Installation ................................................................................................................................................. 9 3.1 Starting the installation program ....................................................................................................... 9 3.2 End of installation............................................................................................................................

17 4 TwinCAT PLC Control............................................................................................................................. 20 4.1 The PLC standard IEC 61131-3...................................................................................................... 21 5 TwinCAT System Manager ..................................................................................................................... 24 6 TwinCAT Scope View..............................................................................................................................

25 7 Example Program.................................................................................................................................... 26 7.1 Sample Maschine.pro ..................................................................................................................... 26 7.2 Following Program Flow.................................................................................................................. 34 7.3 Conversion of the sample program .................................................................................................

39 7.3.1 Declaration of the variables.............................................................................................. 39 7.3.2 Lightbus - Setting up the Bus Terminals .......................................................................... 40 7.3.3 Ethernet - Setting up the bus terminals............................................................................ 49 7.3.4 EtherCAT - Setting up the Bus Terminals........................................................................ 59 7.4 Example "Machine" with ................................................................................................................. 71 7.4.1 Example:

machine with Microsoft Visual C# .................................................................... 71 7.4.2 Example: machine with Microsoft Visual Basic .NET....................................................... 77 7.4.3 Sample Machine With Microsoft Visual Basic 6.0............................................................ 82 7.4.4 Example: machine with Microsoft Visual C++ .NET......................................................... 85 7.4.5 Example: machine with Microsoft Expression Blend........................................................ 94 7.4.6 Example:

Machine with Microsoft Expression Blend in Microsoft Windows Vista Media Center .............................................................................................................................. 99 7.4.7 Sample Machine with Microsoft Silverlight and JavaScript............................................ 106 7.4.8 Example for a machine with Microsoft Silverlight for Windows Embedded.................... 112 TwinCAT 2 3 Version: 1.3

Page 3

Table of contents

Table of contents TwinCAT 2 4 Version: 1.3

Page 4

1.2 For your safety

Foreword 1 Foreword 1.1 Notes on the documentation This description is intended exclusively for trained specialists in control and automation technology who are familiar with the applicable national standards. For installation and commissioning of the components, it is absolutely necessary to observe the documentation and the following notes and explanations. The qualified personnel is obliged to always use the currently valid documentation. The responsible staff must ensure that the application or use of the products described satisfies all requirements for safety, including all the relevant laws, regulations, guidelines, and standards.

Disclaimer The documentation has been prepared with care. The products described are, however, constantly under development. We reserve the right to revise and change the documentation at any time and without notice. No claims to modify products that have already been supplied may be made on the basis of the data, diagrams, and descriptions in this documentation. Trademarks Beckhoff ® , TwinCAT ® , TwinCAT/BSD ® , TC/BSD ® , EtherCAT ® , EtherCAT G ® , EtherCAT G10 ® , EtherCAT P ® , Safety over EtherCAT ® , TwinSAFE ® , XFC ® , XTS ® and XPlanar ® are registered and licensed trademarks of Beckhoff Automation GmbH.

If third parties make use of designations or trademarks used in this publication for their own purposes, this could infringe upon the rights of the owners of the said designations. Patents The EtherCAT Technology is covered, including but not limited to the following patent applications and patents: EP1590927, EP1789857, EP1456722, EP2137893, DE102015105702 and similar applications and registrations in several other countries. EtherCAT ® is registered trademark and patented technology, licensed by Beckhoff Automation GmbH, Germany Copyright © Beckhoff Automation GmbH & Co. KG, Germany.

The distribution and reproduction of this document as well as the use and communication of its contents without express authorization are prohibited. Offenders will be held liable for the payment of damages. All rights reserved in the event that a patent, utility model, or design are registered. 1.2 For your safety Safety regulations Read the following explanations for your safety. Always observe and follow product-specific safety instructions, which you may find at the appropriate places in this document. TwinCAT 2 5 Version: 1.3

Page 5

1.2 For your safety

Foreword Exclusion of liability All the components are supplied in particular hardware and software configurations which are appropriate for the application. Modifications to hardware or software configurations other than those described in the documentation are not permitted, and nullify the liability of Beckhoff Automation GmbH & Co. KG. Personnel qualification This description is only intended for trained specialists in control, automation, and drive technology who are familiar with the applicable national standards. Signal words The signal words used in the documentation are classified below.

In order to prevent injury and damage to persons and property, read and follow the safety and warning notices. Personal injury warnings Hazard with high risk of death or serious injury. DANGER WARNING Hazard with medium risk of death or serious injury. CAUTION There is a low-risk hazard that could result in medium or minor injury. Warning of damage to property or environment NOTICE The environment, equipment, or data may be damaged. Information on handling the product This information includes, for example: recommendations for action, assistance or further information on the product. TwinCAT 2 6 Version: 1.3

Page 6