Command Add library
Function: The command opens the Add library dialog. In this dialog you can add library references in the form of a placeholder to the Library Manager and thus integrate them into your application.
Call: Context menu of the References object in the PLC project tree
Prerequisite: The library is installed on the local system in the Library Repository.
Placeholder vs. Library
Through the use of library placeholders the adaptation of the library versions used requires very little effort, thus making the process of engineering projects and libraries very flexible. When a library reference is integrated in a project or in a library project, it is advisable to use a placeholder instead of a library. This means that within the PLC project no specific library is integrated, but a placeholder. A "real" library is then assigned to the placeholder.
For more information see: Library placeholders.
Due to the advantages of a placeholder, the use of the Command Add library is recommended over the Add library without placeholder resolution command.
Add library dialog
The Add library command opens a dialog, through which a library reference is integrated in the project as a placeholder with the corresponding placeholder name by default. A prerequisite is that an explicit or implicit placeholder name was issued when the library was created (if no explicit placeholder name is entered when the library is created, the library title is entered as placeholder name by default). If no default placeholder name exists for the library that is to be integrated, which may be the case for older libraries, for example, for which no explicit placeholder name was issued, the library reference is integrated as library.
The library reference added via this dialog is integrated as placeholder in the project; by default the placeholder is resolved as “Always newest version” (“ * ”), i.e. without fixed version. The version resolution can be adapted via the Placeholder dialog or the Properties window.
In the row above the library list, you can search for library names or library function blocks by typing a corresponding character string. By double-clicking on a search result or focusing on a search result + [OK], the placeholder associated with the search result is included in the project or in the Library Manager. | |
Library | List of all the libraries installed in the library repository. You can change the type of listing using the buttons in the top right corner of the dialog:
You can integrate the desired placeholder into the project or into the Library Manager by double-clicking or focusing + [OK]. |
Company | Library provider |
See also:
- Library placeholders
- Library Repository
- TwinCAT 3 User Interface\ Reference User Interface\ Context menu PLC project
- Command Install Project Library-
- Command Install Project Library (unknown versions)
- Command Update project library folder