Library version

All libraries have a certain version. The version is indicated in the PLC library repository, for example. A global constant contains the information about the library version:


    stLibVersion_Tc2_System : ST_LibVersion;

stLibVersion_Tc2_System : Version number of the Tc2_System library (type: ST_LibVersion).

To check whether the version you have is the version you need, use the function F_CmpLibVersion.

All other options for comparing library versions, which you may know from TwinCAT 2, are outdated.


Development environment

Target system type

PLC libraries to include (Category group)

TwinCAT v3.1.0

PC or CX (x86, x64, ARM)

Tc2_System (System)