Table of Contents 5.46.18 TCSYSMANAGERBOXTYPES...................................................................................... 165 5.46.19 TCSYSMANAGERDEVICETYPES................................................................................ 173 5.46.20 TCSYSMANAGERHRESULTS...................................................................................... 177 5.46.21 TC_OBJ_PROTECTION................................................................................................ 178 5.46.22 TREEITEMTYPES .........................................................................................................
178 6 Samples ................................................................................................................................................. 186 6.1 Visual Studio ................................................................................................................................. 186 6.1.1 Setting the TwinCAT target platform.............................................................................. 186 6.1.2 Accessing window tabs in Visual Studio ........................................................................ 187 6.1.3 Setting up PowerShell for the Automation Interface ......................................................
187 6.1.4 Which DTE ProgID should be used for the respective TwinCAT/VS version?............... 188 6.1.5 Reading the VS output and the error list........................................................................ 189 6.1.6 Setting the solution configuration and platform.............................................................. 192 6.1.7 Selecting projects for the build process ......................................................................... 192 6.2 Licensing .......................................................................................................................................
193 6.2.1 Configuration of licensing hardware............................................................................... 193 6.2.2 Activating license response files .................................................................................... 194 6.2.3 Creating license requests............................................................................................... 194 6.3 System .......................................................................................................................................... 195 6.3.1 Creating and handling Tasks .........................................................................................
195 6.3.2 Using Templates ............................................................................................................ 197 6.3.3 Accessing TwinCAT Remote Manager .......................................................................... 200 6.3.4 From offline to online configurations .............................................................................. 200 6.3.5 Connecting to the Automation Interface via DTE........................................................... 202 6.3.6 Avoiding COM exceptions caused by incorrect Thread Apartments..............................
206 6.3.7 Saving a TwinCAT project as an archive ....................................................................... 209 6.3.8 Loading a TwinCAT project from an archive.................................................................. 209 6.3.9 Enabling and disabling an Independent Project File...................................................... 210 6.3.10 Determining the file path of a TwinCAT project.............................................................. 211 6.3.11 Finding targets using broadcast search .........................................................................
211 6.3.12 Configuring CPU cores .................................................................................................. 213 6.3.13 How the TwinCAT state is controlled ............................................................................. 216 6.3.14 Managing variable mappings ......................................................................................... 217 6.3.15 Opening and activating the existing configuration.......................................................... 218 6.3.16 Opening a TwinCAT project from the target...................................................................
219 6.3.17 How to manage routes................................................................................................... 220 6.3.18 Configuring boot settings ............................................................................................... 221 6.4 ADS............................................................................................................................................... 222 6.4.1 Creating and handling ADS routes................................................................................. 222 6.4.2 Execute an ADS broadcast search ................................................................................
224 6.5 PLC ............................................................................................................................................... 225 6.5.1 How to create a PLC project .......................................................................................... 225 6.5.2 Compiling PLC projects.................................................................................................. 226 6.5.3 Linking a PLC task to a program.................................................................................... 227 6.5.4 Exporting PLC code in PLCopen format ........................................................................
228 6.5.5 Creating PLC objects ..................................................................................................... 229 TE1000 7 Version: 1.7.0