beckhoff TwinCAT 3 TE1000 — Table of contents

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

27 2 Quickstart ................................................................................................................................................ 28 2.1 Differences compared with TwinCAT 2........................................................................................... 29 2.2 Your first TwinCAT 3 PLC project ................................................................................................... 30 3 Tips and tricks.........................................................................................................................................

44 3.1 Project delivery................................................................................................................................ 44 3.2 New properties and features ........................................................................................................... 48 3.2.1 TwinCAT 3.1 Build 4024 .................................................................................................. 48 3.2.2 TwinCAT 3.1 Build 4026 .................................................................................................. 52 3.3 Further helpful properties and features ...........................................................................................

54 3.4 Renaming a project ......................................................................................................................... 58 3.3.1 Hotkey.............................................................................................................................. 57 4 Creating and configuring a PLC project ............................................................................................... 60 4.1 Creating a standard project.............................................................................................................

60 4.2 Adding objects................................................................................................................................. 61 4.3 Changing the compiler version........................................................................................................ 62 4.4 Open a TwinCAT 3 PLC project...................................................................................................... 63 4.5 Open a TwinCAT 2 PLC project......................................................................................................

63 4.6 Configuring a PLC project ............................................................................................................... 67 4.7 Using global data types................................................................................................................... 68 5 Exporting and transferring a PLC project............................................................................................. 69 5.1 Exporting and importing a PLC project ...........................................................................................

69 5.2 Transferring a PLC project .............................................................................................................. 70 6 Localizing the PLC project ..................................................................................................................... 71 7 Programming a PLC project................................................................................................................... 73 7.1 Assigning identifiers ........................................................................................................................

73 7.2 Declaring variables.......................................................................................................................... 73 7.2.1 AT-Declaration ................................................................................................................. 76 7.2.2 Using the Declaration Editor ............................................................................................ 77 7.2.3 Using the Auto Declare dialog.......................................................................................... 78 7.2.4 Declaring an array............................................................................................................

78 7.2.5 Declaring global variables ............................................................................................... 79 7.3 Creating user-specific data types ................................................................................................... 82 7.3.1 Object DUT ...................................................................................................................... 82 7.4 Creating programming objects ........................................................................................................ 85 7.4.1 Object POU......................................................................................................................

85 7.4.2 Object Action.................................................................................................................... 94 7.4.3 Object Transition.............................................................................................................. 95 7.4.4 Object Method.................................................................................................................. 97 7.4.5 Object Property .............................................................................................................. 104 TE1000 3 Version: 3.7.2