Table of contents 10 Debugging................................................................................................................................................ 75 10.1 Details of Conditional Breakpoints .................................................................................................. 78 10.2 Visual Studio tools........................................................................................................................... 79 10.3 Working with TwinCAT Task Dumps...............................................................................................
81 10.4 Examining dump files using WinDbg............................................................................................... 82 10.5 Debugging the state machine with the Usermode Runtime ............................................................ 83 11 Wizards .................................................................................................................................................... 85 11.1 TwinCAT C++ Project Wizard .........................................................................................................
85 11.2 TwinCAT Module Class Wizard ...................................................................................................... 86 11.3 TwinCAT Module Class Editor (TMC) ............................................................................................. 88 11.3.1 Overview .......................................................................................................................... 90 11.3.2 Basic Information ............................................................................................................. 91 11.3.3 Data Types.......................................................................................................................
91 11.3.4 Modules.......................................................................................................................... 109 11.4 TwinCAT Module Instance Configurator ....................................................................................... 129 11.4.1 Object............................................................................................................................. 130 11.4.2 Context........................................................................................................................... 131 11.4.3 Parameter (Init) ..............................................................................................................
131 11.4.4 Data Area....................................................................................................................... 132 11.4.5 Interfaces ....................................................................................................................... 132 11.4.6 Interface Pointer............................................................................................................. 132 11.4.7 Data Pointer ................................................................................................................... 132 11.5 Customer-specific project templates .............................................................................................
133 11.5.1 Overview ........................................................................................................................ 133 11.5.2 Files involved ................................................................................................................. 134 11.5.3 Transformations ............................................................................................................. 134 11.5.4 Notes on handling ..........................................................................................................
136 12 Programming Reference ...................................................................................................................... 139 12.1 TwinCAT C++ Project properties .................................................................................................. 140 12.1.1 Tc SDK........................................................................................................................... 142 12.1.2 Tc Extract Version..........................................................................................................
143 12.1.3 Tc Publish ...................................................................................................................... 143 12.1.4 Tc Sign........................................................................................................................... 144 12.2 File Description ............................................................................................................................. 145 12.3 Online Change ..............................................................................................................................
148 12.4 Limitations for TwinCAT C++ modules.......................................................................................... 149 12.5 Memory allocation ......................................................................................................................... 150 12.6 Static variables.............................................................................................................................. 152 12.7 Multi-task data access synchronization.........................................................................................
153 12.7.1 CriticalSections .............................................................................................................. 154 12.7.2 Semaphores................................................................................................................... 156 12.7.3 FIFO template classes ................................................................................................... 157 12.8 Interfaces ...................................................................................................................................... 158 12.8.1 Interface ITcPostCyclicCaller.........................................................................................
159 12.8.2 Return values................................................................................................................. 161 TwinCAT 3 4 Version: 1.19.1