beckhoff TwinCAT 3 — Table of contents

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

9 1.4 Documentation issue status .............................................................................................................. 9 2 Overview .................................................................................................................................................. 10 3 Introduction ............................................................................................................................................. 11 3.1 Difference between user mode and real time programming ...........................................................

13 4 Installation ............................................................................................................................................... 17 4.1 System requirements ...................................................................................................................... 17 4.2 Installation ....................................................................................................................................... 17 5 Preparation - only once ..........................................................................................................................

20 5.1 Visual Studio - TwinCAT XAE Base toolbar.................................................................................... 20 5.2 Module signing ................................................................................................................................ 20 5.2.1 TwinCAT .......................................................................................................................... 21 5.2.2 Operating system.............................................................................................................

30 6 Modules.................................................................................................................................................... 35 6.1 The TwinCAT Component Object Model (TcCOM) concept ........................................................... 35 6.1.1 TwinCAT module properties............................................................................................. 37 6.1.2 TwinCAT module state machine ...................................................................................... 44 6.2 Module-to-module communication ..................................................................................................

46 7 Modules - Handling ................................................................................................................................. 49 7.1 Versioned C++ Projects .................................................................................................................. 49 7.2 Starting Modules ............................................................................................................................. 50 7.3 TwinCAT Loader .............................................................................................................................

50 7.3.1 Test signing...................................................................................................................... 51 7.3.2 Encrypting Modules.......................................................................................................... 53 7.3.3 Return Codes................................................................................................................... 54 7.3.4 TcSignTool - Storage of the certificate password outside the project.............................. 55 8 TwinCAT C++ development....................................................................................................................

56 9 Quick Start ............................................................................................................................................... 58 9.1 Create TwinCAT 3 project............................................................................................................... 58 9.2 Create TwinCAT 3 C++ project ....................................................................................................... 59 9.3 TwinCAT 3 C++ Configure project ..................................................................................................

63 9.4 Implement TwinCAT 3 C++ project ................................................................................................. 64 9.5 Publish TwinCAT 3 C++ project in version 0.0.0.1.......................................................................... 66 9.6 Implement and publish TwinCAT 3 C++ project version 0.0.0.2 ..................................................... 66 9.7 Create TwinCAT 3 C++ Module instance........................................................................................ 68 9.8 TwinCAT 3 enable C++ debugger...................................................................................................

70 9.9 Create a TwinCAT task and apply it to the module instance .......................................................... 71 9.10 Activating a TwinCAT 3 project ....................................................................................................... 73 9.11 TwinCAT 3 C++ Implement project Online Change ........................................................................ 74 TwinCAT 3 3 Version: 1.19.1