Programming Reference | Online Change The configurations that are built in the case of a Build or Rebuild depend on the current selection in Visual Studio: The correct target architecture (in this case TwinCAT RT (x64)) is set appropriately by choosing the target system. The Configuration Manager allows the dedicated setting of the build configuration. When selecting Build or Rebuild (and thus also Activate Configuration ), the following steps are performed: 1. The sources are located in the respective project directory. 2. The compilations are generated in an architecture-specific manner below the project directory _products\TwinCAT RT (x64)\Release\ 3.
After the link process, the .tmx/.pdb file is then stored in the project directory. 4. Pressing the Activate Configuration button transfers .tmx or tme with .pdb from the engineering repository to the target system (this may be a local copy). When Publish is selected on the project, it builds for the selected platforms and stores the result in the engineering repository: C: \ProgramData\Beckhoff\TwinCAT\3.1\Repository\ \ \ \TwinCAT RT (x64)\Release\, whereby the TMC file is also updated. 12.3 Online Change | Online Change From TwinCAT 3.1 Build 4024.0 The functionality described here is available from TwinCAT 3.1. 4024.0. TwinCAT 3.1 supports the exchange of C++ modules at runtime, i.e.
without interrupting the real-time program. For this purpose, different versions [ } 49] of a TwinCAT Executable (TMX) are stored on the target system,. For all module instances from a TMX, a switchover between the versions can be initiated by the engineering. The procedure is roughly sketched: 1. TwinCAT instantiates the new module. The old module is still called cyclically by the task. ь Online Change capable module in TMX 2. TwinCAT calls ITcOnlineChange::PrepareOnlineChange() of the new module. This call can access the old module and accept data that does not change due to the cyclic calls of the module - for example parameter values. 3.
TwinCAT calls ITcOnlineChange::PerformOnlineChange() of the new module. This call can access the old module and take over data which have changed cyclically before. This call is executed if no cyclic call is made by a task. The old module is not called again by the task, but the new module is called. The PerformOnlineChange() method should use as little computing time as possible so that this switchover can take place from one task cycle to the other. 4. After completion, the task will call the new module cyclically. TwinCAT 3 148 Version: 1.19.1