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_System : ST_LibVersion;
END_VAR

Name

Type

Description

stLibVersion_Tc2_System 

ST_LibVersion

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.

Requirements

Development environment

Target system type

PLC libraries to include (Category group)

TwinCAT v3.1.0

PC or CX (x86, x64, ARM)

Tc2_System (System)