Activating a TwinCAT 3 project
Once a TwinCAT C++ project has been created, compiled and made available, the configuration must be activated:
- 1. Click on the symbol Activate Configuration – all required files for the TwinCAT project are transferred to the target system:
- 2. In the next step, confirm the activation of the new configuration. The previous old configuration will be overwritten.
- 3. If you have no license on the target system, you will be offered the option to create a 7-day trial license. This can be repeated any number of times.
- 4. TwinCAT 3 automatically asks whether the mode should be switched to Run mode.
- With OK the TwinCAT 3 project changes to Run mode.
With Cancel TwinCAT 3 remains in Config mode. - 5. During the first activation (Activate Configuration) with a TwinCAT user certificate, the target system detects that the certificate is not trusted and the activation process is aborted:
For Windows:
A local user with administration rights can trust the certificate via the created REG file by simply executing it:
For TwinCAT/BSD:
If the "Tcimportcert" package is not installed, install it:pkg install tcimportcert
Trust the certificate viadoas tcimportcert /usr/local/etc/TwinCAT/3.1/Target/OemCertificates/<CreatedFile>.reg
.
Then restart the TwinCAT System Service or reboot the system:doas service TcSystemService restart
- This process only enables C++ modules with a signature from the trusted TwinCAT user certificates to run.
- After switching to Run mode, the TwinCAT System Service symbol at the bottom in Visual Studio lights up green.