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_Standard : ST_LibVersion;
END_VAR
stLibVersion_Tc2_Standard: version information of the Tc2_standard library (type: ST_LibVersion).
To compare the existing version to a required version use the function F_CmpLibVersion.
All other possibilities known from TwinCAT2 libraries to query a library version are obsolete! |