Library management
- The Library Manager offers a good overview of the PLC library references used in the project and can be used to integrate libraries or placeholders in a project. The integration makes the library reference elements available for use in the project.
- Library references, which are referenced as sub-libraries in another library, are also shown in the Library Manager. In addition, there are “hidden libraries” (see section Command Properties).
- Whenever a library is used, a unique library version is referenced. This version is specified as the effective version. If the library was attached with a fixed version (e.g. 3.3.0.0), the project will always use this library version, even if a more recent version is or becomes available. Alternatively, the setting "Always newest"/"*" can be used to automatically ensure that the latest library version is used at all times. In this case, TwinCAT always uses the latest version of the library found in the library repository. For more information and a sample, see the Command Set to Always Newest Version.
- It is not possible to add the same version of the same library more than once to a library manager. A version of a library can be referenced in a library manager either as a library or as a placeholder.
- If the library is not compiled (*.compiled-library) but is instead available as a *.library file, the library elements listed in the Library Manager can be opened by double-clicking on the respective entry.
- You can add library references in the form of a library or a placeholder to the Library Manager and include them in your application (see section Command Add library). Placeholders should be used whenever possible. Further information can be found in section Library placeholders.
- When a library module is addressed in the project, the libraries and repositories are searched in the order in which they are listed in the Library Repository. Further information can be found in section Unambiguous access to library modules or variables.
Further Information