Global_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:

VAR_GLOBAL CONSTANT
    stLibVersion_Tc2_SPA : ST_LibVersion;

END_VAR

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

Global_Version 1:

Use only this query

All other possibilities known from TwinCAT 2 libraries to query a library version are obsolete.