Table of contents 12.8.3 Interface ITcCyclic.......................................................................................................... 161 12.8.4 Interface ITcCyclicCaller ................................................................................................ 162 12.8.5 Interface ITcFileAccess.................................................................................................. 164 12.8.6 Interface ITcFileAccessAsync........................................................................................ 171 12.8.7 Interface ITcIoCyclic.......................................................................................................
172 12.8.8 Interface ITcIoCyclicCaller ............................................................................................. 174 12.8.9 ITComOnlineChange interface....................................................................................... 175 12.8.10 ITComObject interface ................................................................................................... 177 12.8.11 ITComObject interface (C++ convenience).................................................................... 181 12.8.12 Interface ITcPostCyclic ..................................................................................................
182 12.8.13 Interface ITcRTimeTask................................................................................................. 183 12.8.14 Interface ITcTask ........................................................................................................... 183 12.8.15 Interface ITcTaskNotification.......................................................................................... 187 12.9 ADS Communication..................................................................................................................... 189 12.8.16 Interface ITcUnknown ....................................................................................................
187 12.9.1 AdsReadDeviceInfo ....................................................................................................... 190 12.9.2 AdsRead ........................................................................................................................ 192 12.9.3 AdsWrite......................................................................................................................... 194 12.9.4 AdsReadWrite................................................................................................................ 196 12.9.5 AdsReadState................................................................................................................
198 12.9.6 AdsWriteControl............................................................................................................. 200 12.9.7 AdsAddDeviceNotification.............................................................................................. 201 12.9.8 AdsDelDeviceNotification............................................................................................... 203 12.10 Mathematical Functions ................................................................................................................ 206 12.9.9 AdsDeviceNotification ....................................................................................................
205 12.11 Time Functions.............................................................................................................................. 207 12.12 STL / Containers ........................................................................................................................... 208 12.13 Error messages - understanding................................................................................................... 209 12.14 Module messages for the Engineering (logging / tracing)............................................................. 209 13 How to...?
............................................................................................................................................... 213 13.1 Using the Automation Interface..................................................................................................... 213 13.2 Windows 10 as target system up to TwinCAT 3.1 Build 4022.2 ................................................... 213 13.3 Publishing modules on the command line..................................................................................... 213 13.4 Clone.............................................................................................................................................
213 13.5 Access Variables via ADS............................................................................................................. 214 13.6 TcCallAfterOutputUpdate for C++ modules .................................................................................. 214 13.7 Order determination of the execution in a task ............................................................................. 214 13.8 Setting version/vendor information................................................................................................ 214 13.9 Renaming TwinCAT C++ projects.................................................................................................
216 13.10 Delete Module ............................................................................................................................... 218 13.11 Add revision control and Online Change subsequently ................................................................ 219 13.11.1 C++ Project -> Revision control ..................................................................................... 219 13.12 Initialization of TMC-member variables......................................................................................... 227 13.11.2 C++ Module -> OnlineChange .......................................................................................
222 13.13 Using PLC strings as method parameters .................................................................................... 227 13.14 Third Party Libraries...................................................................................................................... 228 TwinCAT 3 5 Version: 1.19.1