Library Version
All libraries have a certain version. The version is indicated in the PLC library repository, for example. A global constant contains the information about the library version:
Global_Version
VAR_GLOBAL CONSTANT
stLibVersion_Tc2_ModbusSrv : ST_LibVersion;
END_VAR
The F_CmpLibVersion function (in the Tc2_System library) is used to compare the existing and required version.
![]() | Compatibility with TwinCAT 2 Query options for TwinCAT 2 libraries are no longer available. |
Name | Type | Description |
---|---|---|
stLibVersion_Tc2_ModbusSrv | Version number of the Tc2_ModbusSrv library |