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_Coupler : ST_LibVersion;
END_VAR
stLibVersion_Tc2_Coupler : version information of the Tc2_Coupler 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 TwinCAT2 libraries to query a library version are obsolete! |