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

stLibVersion_Tc2_IoFunctions: Version number of the Tc2_IoFunctions library (type: ST_LibVersion).

To check whether the version you have is the version you need, use the function F_CmpLibVersion (defined in Tc2_System library).

Library version 1:

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

Requirements

Development environment

Target platform

IO hardware

PLC libraries to be integrated (category group)

TwinCAT v3.1.0

PC or CX (x86, x64, ARM)

All IO devices

Tc2_IoFunctions (IO)