Third Party Libraries
C/C++ code existing in Kernel mode cannot be linked with or execute libraries from third parties that were developed for execution in Usermode. There is therefore no possibility to use any DLL directly in TwinCAT C++ modules.
The connection of the TwinCAT 3 real-time environment can be realized via ADS communication instead. You can implement a Usermode application that makes use of the third-party library that provides TwinCAT functions via ADS.

This action of an ADS component in Usermode can take place both as a client (i.e. the DLL transmits data to the TwinCAT real-time if necessary) and as a server (i.e. the TwinCAT real-time fetches data from the Usermode if necessary).
Such an ADS component in Usermode can also be used in the same way from the PLC. In addition, ADS can communicate beyond device limits.
The following samples illustrate the use of ADS in C++ modules: