Export to TwinCAT 3.1 4022.xx

This article describes how to export a TwinCAT 3 driver that can run on any other TwinCAT PC.

The following steps have to be carried out

1. Implement a TwinCAT 3 C++ project on an engineering PC equipped with a Visual Studio version, see quick start sample Create a TwinCAT 3 project. Implement the TwinCAT modules as described, compile and test the modules contained in the project before export.
2. Since the result should be able to be used on any machine, TwinCAT generates a 32-bit and a 64-bit version.
Since x64 drivers must be signed, a certificate must be installed on the machine that exports the module. See x64: Driver signing, how to generate and install a certificate.
(This step can be omitted on an engineering or 32-bit system)
3. To export a TC 3 C++ project, right-click on the module project in the solution tree and select TwinCAT Publish Modules.
The project is then compiled (rebuild) - the successful export is displayed in the Build output window.
Export to TwinCAT 3.1 4022.xx 1:
Please note the successful message at the end: Export to TwinCAT 3.1 4022.xx 2:The binary files and the TMC module description are exported to the TempContr folder under C:\TwinCAT\3.x\CustomConfig\Modules.
4. For the import, simply copy the TempContr folder to any other TwinCAT 3 machine.
Export to TwinCAT 3.1 4022.xx 3: