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:

Global_Version

VAR_GLOBAL CONSTANT
    stLibVersion_Tc2_SUPS : ST_LibVersion;
END_VAR

Name

Type

Description

stLibVersion_Tc2_SUPS 

ST_LibVersion

Version information of the Tc2_SUPS library (type: ST_LibVersion)

Library version 1:

To check whether the version you have is the version you need, use the function F_CmpLibVersion (defined in the Tc2_System library). All other options for comparing library versions, which you may know from TwinCAT 2, are outdated.