Technical introduction | Using External Control (TC1701) 5.5 Using External Control (TC1701) | Using External Control (TC1701) The "External Control" interface allows external applications to control the cycle tick. The advantage of specifying the cycle tick here is that the program can be simulated more quickly if the complexity of the model allows it. Conversely, the TwinCAT application can also be executed more slowly if the calculation of a model in the external application takes longer than the set cycle time. On the other hand, this also means that the overall system does not execute - and therefore does not process - any code if no corresponding instruction has been issued.
The application can automatically switch back to normal cyclic execution in the code. Use If this mode is set to the value RtMode_Externaltick in a real-time program by the PLC or a C++ module using the ITcRTimeSimulation [ } 18] interface, the execution of the code is stopped. In the following, the ADS interface External Control [ } 18] can be used to control the execution by specifying 1..n cycle steps. The application can return to cyclic execution by setting the value RtMode_Cyclic using ITcRTimeSimulation->ChangeTickMode . The documentation for this is shown in the chapter API [ } 18] as well as in the sample [ } 21] .
5.6 Using Fast As Possible (TC1702) | Using Fast As Possible (TC1702) If the TwinCAT 3 Usermode Runtime is configured accordingly, the "Fast As Possible" interface can be used to instruct the execution environment not to use delays in order to map a real execution speed. Instead, the next cycle is started immediately after the program has been processed. In return, this also means that the computer is loaded accordingly. To ensure that this remains available, it is recommended to have at least one more core than there are tasks in the project.
Use If this mode is set to the value RtMode_FastAsPossible via the ITcRTimeSimulation [ } 18] interface, the code is executed as quickly as possible without delays. The application can return to cyclic execution by setting the value RtMode_Cyclic using ITcRTimeSimulation->ChangeTickMode . The documentation for this is shown in the chapter API [ } 18] as well as in the sample [ } 21] . 5.7 Several TwinCAT 3 Usermode Runtimes on one system | Several TwinCAT 3 Usermode Runtimes on one system Several TwinCAT 3 Usermode Runtimes can be started on one system.
The starting point for the scenario is copying the template from Program Files (x86) to ProgramData , as documented in File storage [ } 11] . Some TwinCAT functions have concurrent processes that are configured via files in the 3.1/Target/ StartManConfig folder. The template directory under Program Files (x86) and the UMRT default directory are always kept up to date through the installation, uninstallation, or upgrade of packages from the TwinCAT Package Manager. Having multiple user-mode runtimes on a system requires the customer to define each user-mode runtime independently.
This involves determining which processes should be started per instance — if necessary, by copying the files in the template folder. In particular, the documentation on the integration of TwinCAT Functions [ } 14] must be followed, as failure to do so may result, for example, in resource usage conflicts (multiple processes attempting to open a TCP port). TC170x 13 Version: 1.6.1