Library version
All libraries have a specific version. This version is inter alia shown in the PLC library repository too.
A global constant contains the library version information:
Global_Version
VAR_GLOBAL CONSTANT
stLibVersion_Tc2_SystemCX : ST_LibVersion;
END_VAR
stLibVersion_Tc2_SystemCX: version information of the Tc2_SystemCX library (type: ST_LibVersion).
To compare the existing version to a required version the function F_CmpLibVersion (defined in Tc2_System library) is offered.
All other possibilities known from TwinCAT 2 to query a library version are obsolete! |