Library version

All libraries have a specific version. This version is shown in the PLC library repository too.
A global constant contains the library version information:

Global_Version

VAR_GLOBAL CONSTANT
    stLibVersion_Tc2_TcXmlDataSrv : ST_LibVersion;
END_VAR

Tc2_TcXmlDataSrv: Version number of the Tc2_TcXmlDataSrv library (type: ST_LibVersion)

To compare the existing version to a required version the function F_CmpLibVersion (defined in Tc2_System library) is offered.

Library version 1:

Comparing versions

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