Library Management
On this page
The Project Library stores reusable items (Master Copies and Types) that can be shared across the project. Global libraries hold the same kind of items in their own folder outside the project, so several projects can use them. Open the TIA Portal view container from the Activity Bar and use the Project Explorer in the Side Bar: the Project Library appears as its own branch of the tree, with its Master Copies and Types folders, and next to it the Global Libraries branch lists the global libraries that are open in TIA Portal. Library operations are reached by right-clicking a node in the Project Explorer and opening the Library submenu; for a type they are also in the toolbar of the Library Type view. How global libraries are opened, kept up to date and compared is described under Global libraries.
Available Operations
1. Copy to Library (Create Master Copy)
- Right-click a block, a PLC data type, a tag table or a technology object in the Project Explorer
- Open the Library submenu and select "Copy to Library"
- Creates a Master Copy of the selected object in the Project Library
- The copy can later be instantiated in any PLC
Copy to Library is offered on the blocks, PLC data types, tag tables and technology objects of a PLC, and on block folders, external sources and folders of external sources (see Master copies of folders and sources below), and from TIA Portal V21 on the named value types of a software unit. For a screen or another HMI object, create the Master Copy in TIA Portal and place it with Instantiate in HMI.... Should the command reach an HMI object another way, Studio answers Copy to Library takes the program objects of a PLC only. Create the master copy of "..." in TIA Portal, then place it with Instantiate in HMI.
Dropping onto a library folder: you can also drag blocks, PLC data types, tag tables and technology objects from the Project Explorer onto the Project Library, onto a global library you opened with write access, onto its Master Copies folder or onto a folder below it. Each object becomes a Master Copy there, as with Copy to Library. An object of a software unit is taken from that unit, also when the PLC has an object of the same name outside it. When the drag also holds rows that cannot become a Master Copy, such as watch and force tables, folders or the PLC itself, Studio copies the rest and names the ones it left out, with the names the Project Explorer shows; a drag of such rows only copies nothing. A read-only library and the Types folder take no drop. Copying an object of a software unit needs TIA Portal V16 or newer.
2. Create Instance in PLC
- Right-click a type version or a Master Copy under the Project Library node
- Open the Library submenu and select "Create Instance in PLC..."
- Pick the PLC (asked only when the project has more than one) and the folder the new object goes into. A type version offers the folders of its kind, block folders or PLC data type folders, those of the software units included. For a Master Copy the folder has to fit the content: a block goes into a block folder, a PLC data type into a PLC data types folder
- On TIA Portal V20 or newer, choose how to proceed; each choice comes with a one-line description:
- for a type version, what happens to dependencies that already have an instance in another folder: Stop on a Path Conflict, Move to the Library Folders or Keep Existing Folders
- for a Master Copy, what happens when an object with the same name exists: Stop If the Name Exists, Rename the Copy or Replace the Existing Object
- The new object appears in the tree and is selected, and a message names it together with the dependencies that were created with it, or with the new name TIA Portal gave the copy
- The type version or Master Copy in the library remains unchanged
Master copies of folders and sources
Copy to Library on a block folder, an external source or a folder below External source files creates one Master Copy of it in the project library; TIA Portal names the Master Copy of a folder itself, and the message gives that name. A folder of external sources as a Master Copy needs TIA Portal V20 or newer.
Create Instance in PLC... and Add from Library... offer the folders that fit what the Master Copy holds: the block folders of the PLC and of its software units for a block folder, the folders of the external source files for a source or a source folder, and the data type folders of a software unit for a named value type. The message names every block TIA Portal created and every one it gave a new name, every number that clashes with a block already in the PLC (a block with a fixed number then fails the compile, one with automatic numbering is renumbered by it) and every source that got a new name. Without a choice, or with Stop If the Name Exists, a folder or a source whose name is already taken is refused before anything changes, and a source cannot be placed while the PLC is online. With Replace the Existing Object TIA Portal merges the copy into the folder of the same name and moves objects of the same name from other folders into it; the message names them, and the copy is refused when another folder of that name lies below the target.
From TIA Portal V21, Copy to Library on a named value type makes a Master Copy of it, and a named value type is copied from a Master Copy or from a released type version into a folder of a software unit. When another unit holds a named value type of the same name, the message says so, because the compile then reports the name as ambiguous.
A Master Copy of a software unit creates a new software unit; for that, right-click the Software units folder of the PLC and choose New Software Unit from Master Copy..., see Project Explorer.
Add from Library: you can also start from the place the object should go. Right-click the Program blocks folder, a block folder, the PLC data types folder or one of its folders and choose Add from Library.... Studio lists what the project library holds for that folder, the released type versions of that kind with their folder and, outside a software unit, the Master Copies. A version that is still in work is not listed; when no released version fits the folder, the message asks you to release the versions that are still in work first. Pick one, and it is created in the folder you clicked, with the same choices on TIA Portal V20 or newer.
Studio refuses with one sentence that names the reason: a version that is still in work, or another version of the same type in work; an instance of the type that already sits in the PLC, with its path; a dependency whose instance sits in another folder than in the library, with both paths; a type that is neither a block nor a PLC data type; a Master Copy whose content does not fit the folder you picked. Creating instances needs TIA Portal V17 or newer.
Instantiate in HMI: a Master Copy or a type version can also become an object on a classic HMI device, such as a Comfort panel. Right-click it under Project Library, open the Library submenu and choose Instantiate in HMI...:
- Select the Classic HMI device: this pick appears only when the project has more than one classic HMI device. WinCC Unified devices are not listed, because they take no classic HMI objects, and the pick says so when the project has some
- For a Master Copy, answer Select what "..." holds with Screens, Screen Templates, Pop-up Screens, HMI Tags or VB Scripts. A type version takes its category from the type, a screen type goes into Screens and a VB script type into VB Scripts; you are asked only when the library does not tell which it is
- Select where to place it on "...": Screens, Screen Templates, Pop-up Screens, HMI Tags and VB Scripts offer their folders and New Folder..., where you type a path below the category with single slashes, for example
Line 1/Station 2; folders that are missing are created. Under HMI Tags the pick lists both kinds of target in their own sections, Folders, for a master copy of a tag table and Tag tables, for a master copy of a single tag: a Master Copy of a tag table goes into a folder, a Master Copy of a single tag into a tag table - The new object appears in the tree and is selected. The message Created "..." on "...". names it and, when the name was already taken, says that TIA Portal gave it another name and which one; it also names the folders that were created
What the new object refers to, such as a connection, a tag or a template, is not checked, so it may point to something the device does not have. The message reminds you of that: compile the device in TIA Portal to see the references that are still open.
A Master Copy that holds a folder or more than one object is refused, and the message says what it holds, for example The master copy "..." holds a folder of Screens. Only a master copy of one screen, template, pop-up screen, tag table, tag or VB script can be placed on an HMI device. If the category you chose does not fit what the Master Copy holds, the message names what it holds and the category it belongs in, for example The master copy "..." holds a tag table, which belongs in HMI Tags, not in Screens., and offers Place in ... to try again there. A version that is still in work and a type that is neither a screen type nor a VB script type are refused as well, and any other refusal of TIA Portal comes with its reason. If folders were created for the object before a refusal, they remain: the message names them, and they appear in the tree and in the pick when you try again. Instantiate in HMI needs a connection to TIA Portal and the Pro plan.
3. Types and their versions
Under Project Library, the Types folder shows every type of the project library with its kind and its default version as its description, for example FB, V 3.0.1, FC, V 1.0.0, PLC data type, V 1.0.1, Faceplate, Script module or Unified type, and below it one row per version with its state, In work or Committed, and default on the default version. A block type carries the icon of its kind, the same FB, FC or PLC data type icon as in Program blocks. Right after the library loads, a block type reads Block type for a few seconds until Studio has looked up its kind; hovering a row then also shows its programming language and block number. The same applies to the types of an open global library.
Double-click a type or a version to open the Library Type view. It shows the fields of the type, among them the namespace, author, comment, consistency, the minimum device version and the document formats, and a table of the versions with state, default, author, comment, the date of the last change and the types a version depends on or is used by. The toolbar of the view offers the same actions as the Library submenu, plus Reload, which reads the type from the project again; the actions that work on a single version stay disabled until you select a version row. Compare with... and Copy GUID in the toolbar work on the type, or on the selected version. The fields Marked as do not use and Marked for update are check boxes where the mark can be changed, see Marks: Do Not Use and Set for Update; Minimum device version is set when the type is created and cannot be changed afterwards.
4. Type documents (export and import)
- Export Type Documents, on a type or a version: pick a document format and a folder, and Studio names the files it wrote
- Import Type Version from Documents, on a type: give the folder, the file name without its extension, and whether existing content is overridden; the documents come back as a version of that type
- Import Type from Documents, on the Types folder: optionally with the HMI device the type is read for, and the documents come back as a new type
On TIA Portal V21 a faceplate type names no document format, so only block types and script module types are exported and imported as documents there.
5. Show Instances
Run Show Instances on a type or a version to see where it is used: in the PLCs, on the classic HMI devices and on the screens of the WinCC Unified devices. Click an entry of a Unified screen to open that screen with the object selected; an empty list names where it looked.
6. Version lifecycle
On a type or one of its versions the Library submenu offers:
- New Version (Edit): creates a new in-work version from the selected one
- Release: releases an in-work version with a version number, an author and a comment
- Discard: drops an in-work version
- Set as Default: makes the version the one a new instance takes
- Delete Version: removes the version from the library
Each of these asks first and names the type, the version and the effect. A released version cannot be changed any more, and the screen content of a faceplate type is not edited in Studio.
7. Export Type Version
- Right-click a Library Type
- Open the Library submenu and select "Export Type Version"
- Exports the latest committed version to an XML file
Note: Only committed versions can be exported this way; a version that is still in work cannot.
Export several types at once: From the Import / Export view you can export library types in bulk: via the Library selection chip (Export Selected for the selected type or folder, Export All for the whole library), or by dragging types or a Types folder from the Project Explorer onto the export-folder tree. The types are written as XML into a Library subfolder of your export folder (latest version of each type).
8. New Folder
- Right-click the Master Copies folder, Types folder, or any library sub-folder
- Open the Library submenu and select "New Folder"
- Creates a new organizational folder
9. Rename
- Right-click a Master Copy, Library Type, or folder
- Open the Library submenu and select "Rename"
- Allows changing the name of the selected item
10. Delete
- Right-click a library item
- Open the Library submenu and select "Delete"
- Permanently removes the item from the library (with confirmation)
11. Clean Up Library
- Right-click the Project Library node
- Open the Library submenu and select "Clean Up Library"
- Opens a prompt with two choices, Clean Up (compacts the library and removes unused versions) or Clean Up and Delete Unused Types (additionally removes unused types), to keep the library organized
12. Go to Library Type by GUID
Every library type and every type version carries a GUID, a unique identifier of 32 hexadecimal digits. To jump to a type you know only by its GUID, for example from a log, a file or a colleague:
- Run Go to Library Type by GUID... from the Command Palette, or from the Library submenu of the Project Library row, a global library row or the Global Libraries row
- Enter the GUID, with or without dashes or braces, for example
1b4e28ba-2fa1-11d2-883f-0016d3cca427. Anything that is not a GUID is refused while you type - Studio searches the project library and every open global library. A single hit opens the Library Type view of that type, with the version selected for a version GUID. The same type often lives in several libraries with the same GUID; then a pick lists every hit with its type name, Type or Version with its number, and its folder
When no library holds the GUID, the message says so and names where it looked.
13. Copy GUID
Copy GUID in the Library submenu of a type or a version, and in the toolbar of the Library Type view, copies the GUID of the type, or of the version, to the clipboard. The message shows the GUID it copied.
14. Compare with
Compare with... compares two library items of the same kind: two types, two type versions or two master copies. It is in the Library submenu of a type, a version and a master copy, and in the toolbar of the Library Type view.
- Right-click the item and choose Compare with...
- Pick the item to compare it with. The list offers the items of the same kind in the project library and in every open global library, one section per library: types of the same type kind, versions of types of the same kind, master copies with the same kind of content. For a version, the other versions of the same type come first, in their own section
- The Library Comparison view opens with both items in its tab
The view lists one row per property with the left value, the right value and the Result: Different, Identical or Not compared. The summary counts the properties and how many have each result. Run Again reads the comparison again.
TIA Portal compares what it keeps about the two items, such as the GUID, the version number, the name, the author, the comment, whether a version is the default, the time of the last change and the path. It does not compare the content of a block. The property names come from TIA Portal and are in English even when TIA Portal runs in another language. Comparing library items needs TIA Portal V18 or newer and changes nothing.
15. Marks: Do Not Use and Set for Update
TIA Portal can mark a library type so that everyone working with the library sees how to treat it:
- Do Not Use says that the type should no longer be used in new places. It can be set from TIA Portal V20, on a type of the project library and of a global library opened with write access. The Library submenu offers Mark as Do Not Use or Clear Do Not Use
- Set for Update marks a type whose instances should be brought up to date. It can be set from TIA Portal V18, only on a type of a global library opened with write access; in the project library TIA Portal shows this mark but does not let you change it. The Library submenu offers Mark for Update or Clear Mark for Update
You can also tick or clear both marks in the Library Type view. Where a mark cannot be changed, it stays a plain Yes or No, and its hover names the reason: the TIA Portal version, a read-only library, or a mark that can be changed only in a global library.
After the change the library part of the tree and every open Library Type view of the type read themselves again, and the message says where the change is kept:
- In a global library, Studio saves the library together with the mark at once, and the message says so. TIA Portal does not show such a change as an unsaved change of the library, so without this save it would be lost when the library is closed
- In the project library, the mark belongs to the project. Save the project to keep it
16. What a master copy holds
Each master copy row under Master Copies names what it holds as its description: Block, PLC data type, Software unit or HMI, or Mixed when it holds objects of several kinds; a master copy that holds only other kinds of objects, such as constants, shows no description, and its hover still names the content. A count in parentheses appears when it holds more than one object, and the icon follows the kind. The same applies to the master copies of a global library.
Hover the name or the description of a master copy to see its author, the date it was created and one line per object it holds, with the kind of each object. Show Master Copy Details in the Library submenu shows the same information in a dialog.
The content kind also decides where a master copy is offered: Create Instance in PLC... and Add from Library... show it in their lists and offer a master copy holding a block for a block folder and one holding a PLC data type for a PLC data types folder.
17. Library types in a version control workspace
Library types of the project library can be kept as files in a version control workspace, next to the blocks and data types of the program. How workspaces work is described in Version Control with Workspaces.
Global libraries
A global library is a TIA Portal library that lives in its own folder outside the project, for example the standard blocks of your company or a library you downloaded, so several projects can use it. The Global Libraries branch of the Project Explorer sits next to the Project Library and is always there; it stays empty until a global library is open. A library you opened in TIA Portal itself appears there as well. Every global library entry needs a connection to TIA Portal and is not offered in a project opened offline.
Opening a global library
- Right-click Global Libraries and choose Open Global Library...
- Pick the library file in the file dialog. The first filter shows the libraries of the connected TIA Portal version, TIA Portal Libraries shows those of every version up to the connected one
- Choose Read-only to browse and use the library without changing it, or Read and Write to change the library and save it
- The library appears under Global Libraries and is selected, and the message says whether it was opened read-only or with write access
A library made with an older TIA Portal version cannot be opened as it is. Studio asks whether it should be upgraded to the connected TIA Portal version and opened with write access; choose Open with Upgrade. TIA Portal writes the upgraded copy into a new folder next to the original, named after the original folder with the version added, for example MyStandards_V20, and the library takes the name of that folder. The original stays unchanged, and the message names the copy and where it lies. An older TIA Portal can no longer open the upgraded copy. A library saved with a newer TIA Portal version than the connected one is refused, and the message names the version it needs.
A library that is open read-only cannot be opened a second time with write access, or the other way round: close it first, then open it in the other mode. If two open libraries carry the same name, the tree shows only one of them, and Studio asks you to close all but one before you work with it.
Opening a system library
Open System Library... on the Global Libraries branch lists the system and corporate libraries of your TIA Portal installation that are not open yet, each with its kind and location. Pick one and it opens read-only. When every one of them is open already, the message says so. System and corporate libraries stay open as long as TIA Portal runs.
What the badges mean
Each open global library is one row under Global Libraries; hover its name to see the library file. Badges after the name tell you what you can do with it:
| Badge | Meaning |
|---|---|
| System | A system library that comes with TIA Portal |
| Corporate | A corporate library provided for your company |
| Read-only | A system or corporate library, or a library you opened read-only. You can browse it and use its content, but not change it |
| Modified | A library opened with write access that has changes you have not saved yet |
Below each library sit its Master Copies and Types with the same rows as in the Project Library: folders, master copies, types with their kind and one row per version with its state. A system library whose content TIA Portal does not hand out shows both folders empty.
Working with master copies and types
The master copies and types of a global library offer the same Library entries as those of the Project Library: open a type in the Library Type view, Export Type Documents, Export Type Version, Show Instances, and Create Instance in PLC... on a master copy or a type version. Instantiate in HMI... is offered on a master copy; a type version of a global library cannot be placed on an HMI device. In a library opened with write access you also find New Folder, Rename, Delete, Clean Up Library, the two imports from documents and the version actions New Version (Edit), Release, Discard, Set as Default and Delete Version. Clean Up Library on a global library asks Clean up the global library "..."? and never deletes whole types.
In a read-only library the entries that would change the library are not shown. Opening, exporting, Show Instances and the entries that create something in the project stay available. The Library Type view of such a type says read-only library below its name, and its toolbar keeps only Reload, Export Type Documents and Show Instances.
Closing a global library
Right-click a library and choose Close. If it has unsaved changes, Studio asks Do you want to save the changes to the global library "..." before you close it?: Save saves and closes, Discard Changes closes without saving and the changes are lost, Cancel keeps the library open. System and corporate libraries cannot be closed; they stay open as long as TIA Portal runs, and the menu offers no Close for them.
Creating a new global library
- Right-click Global Libraries and choose New Global Library...
- Select the folder the library goes into
- Enter the name of the library. It may not contain the characters
\ / : * ? " < > |and may not end with a full stop - Enter an author and a comment, or press Enter to skip them. TIA Portal takes author and comment only when the library is created, so they cannot be added later
- The library is created and opens with write access; the message names its name and where it was created
Save and Save As
Save on a library opened with write access writes its changes to its file, and the Modified badge disappears.
Save As... asks for a new or empty folder. The library is saved into that folder, the folder becomes the library folder, and its name becomes the new name of the library. From then on the library is open from the new location under its new name; the original file keeps the state it had when it was last saved. The tree and the open views of the library, such as the Library Type view, an update check or a comparison, follow to the new name.
Archive
Archive... on a user library first asks how it is archived:
- Compressed: one archive file that can be retrieved later
- Compressed, Without Restorable Data: a smaller archive file that can be retrieved later
- Uncompressed: a copy of the library folder, which cannot be retrieved
- Uncompressed, Without Restorable Data: a smaller copy of the library folder, which cannot be retrieved
For a compressed archive you choose the file. When the name has no extension, .zal with the version number of the connected TIA Portal is added, for example .zal20. If the file exists already, Studio asks whether it should be replaced; choose Replace to overwrite it. For an uncompressed archive you choose a folder, and the name you enter becomes the folder name. A library with unsaved changes is saved before it is archived. The message names the archive file or folder.
Retrieve
Retrieve Global Library... on the Global Libraries branch opens a library from a compressed archive:
- Pick the archive file (
.zalwith the version number) - Select the folder the library is retrieved into. A target that exists already is refused, so choose another folder
- Choose Read-only or Read and Write, as when opening a library
An archive of an older TIA Portal version asks the same upgrade question as an older library, and the library is retrieved as an upgraded copy. Only compressed archives can be retrieved; an uncompressed copy of a library folder is opened with Open Global Library... instead.
Check for Updates
The Library Updates submenu sits on the Project Library row, on every global library row, on the Types folder, on a type folder and on a type of either library. The row you right-click is the source: a library row takes all of its types, a type folder or a type exactly that folder or type.
Check for Updates... lists which library instances in the project are out of date. Choose Out-of-Date Instances Only or Out-of-Date and Up-to-Date Instances. The Update Check view opens with the name of the library in its tab. The check always covers every type of the library, also when you started it from a single type or folder.
The result is a tree: one row per device, below it the library type with its version, below that the state, and below that each instance. Expand a row to see its details, Device, Library type, Library version, State, Instance path, Instance and Instance version. A type that has no instance in the project does not appear. The messages come from TIA Portal and are in English even when TIA Portal runs in another language. Run Again asks TIA Portal for the result again, Expand All and Collapse All open and close the whole tree. When every instance is current, the view says Every instance in the project uses the current version of its library type. A very large result shows the first 2000 entries and says how many there are. Checking for updates changes nothing.
Update Project
Update Project... brings the instances in the project up to the library:
- Select the PLCs and HMI devices to update: every PLC and HMI device of the project is listed and checked. On TIA Portal V20 and older, WinCC Unified devices are listed below Skipped, because they can be updated only from TIA Portal V21
- With a global library as the source, choose which updated versions become the default version: Make Only a Higher Version the Default or Make Every Updated Version the Default
- Choose what happens to versions that are no longer used: Keep Unused Versions or Delete Unused Versions
- With a global library as the source, choose what happens when the folders of the project library differ from those of the library: Keep the Folder Structure, Cancel on a Folder Conflict or Update the Folder Structure
- A confirmation lists the types, the devices and what TIA Portal will change. Choose Update Project to start
What TIA Portal changes in the project:
- Instances in the selected devices are updated to the default version of their library type
- Instances that nothing uses any more are deleted, for example a function without a caller or a PLC data type at an old version
- From a global library, every selected type is copied into the project library, also a type that has no instance in the project yet. Updating from a whole type folder can therefore add many types to the project library
- From a global library, a project library type that is the same type under another name is renamed to its name in the global library
- With Update the Folder Structure, project library types move into the folders they have in the global library. With Cancel on a Folder Conflict, nothing is changed when a type lies in another folder than in the global library, and the message names the type
Afterwards the message says The project was updated from the library "...", adds for a global library that the project library was synchronized with it first, and names the devices that were skipped. Below it you read how many library types were added, changed and removed. Show Details lists them by name, and Open Log Folder opens the folder with the update log TIA Portal wrote. The updated devices and the libraries in the tree are read again.
Studio offers no undo for an update, so save or archive the project first if you may want to go back.
Update Library
Update Library... brings another library up to the source: the Project Library from a global library, a global library from the Project Library, or one global library from another.
- Select the library to update. The list offers the Project Library and every global library that is open with write access; when there is none, the message asks you to open a global library with write access first
- Make the same choices for the default version, unused versions and folders as for Update Project
- Confirm with Update Library
Every selected type is copied into the target library, into the folder it has in the source; missing folders are created. A type of the target that is the same type under another name is renamed to its name in the source. When the Project Library is the target, the instances in the project follow a renamed type and no block is deleted. The message names the source and the target and the library types that were added, changed and removed, with Show Details and Open Log Folder as above.
Harmonize Project
Harmonize Project... aligns the instances in the project with the library:
- Choose what is harmonized, both are checked: Harmonize Paths moves the instances into the folders of their library types, Harmonize Names gives the instances the names of their library types
- Select the PLCs and HMI devices, as for Update Project
- Confirm with Harmonize
With Harmonize Paths, instance blocks and PLC data types move into block and data type folders that mirror the folders of the library, and missing folders are created; on a large project this moves many blocks. With Harmonize Names, blocks and PLC data types are renamed to the names of their library types. From a global library, the project library types also move into the folders, or take the names, they have in that library. The message reports the result as for an update.
Compare to
Compare to... on the Project Library row or on a global library row compares two libraries. Pick the library to compare with, the Project Library or another open global library. The comparison view opens with both names in its tab:
- the summary counts the elements and how many have each result
- the table shows the left library, the right library and the Result of each row. Below the two libraries come the type folder and the master copy folder; a type shows its version, the default version is marked, and a side that does not have the element shows missing
- Run Again, Expand All and Collapse All work as in the update check
| Result | Meaning |
|---|---|
| Contents differ | A folder whose content is not the same on both sides |
| Different | An element that exists on both sides but differs |
| Only on the left | The element exists only in the left library |
| Only on the right | The element exists only in the right library |
| Contents identical | A folder whose content is the same on both sides |
| Identical | An element that is the same on both sides |
Comparing libraries needs TIA Portal V18 or newer and changes nothing. A very large comparison shows the first 5000 elements and says how many there are.
Plans
Opening a global library read-only, Open System Library..., Check for Updates... and Compare to... work on every plan, and so do Go to Library Type by GUID..., Copy GUID, Compare with... and the master copy details. Opening with write access or with an upgrade, closing, creating, saving, archiving, retrieving, Update Project, Update Library, Harmonize Project and changing the marks Do Not Use and Set for Update need the Pro plan; without it the upgrade dialog opens and nothing is changed.
Known Limitations
- Master Copies cannot be exported to XML files (TIA Portal does not offer this)
- Only committed Library Type versions can be exported as XML (not versions that are still in work)
- A released version cannot be changed any more, and the screen content of a faceplate type is not edited in Studio
- A script module type has no instances, so Show Instances does not apply to it
- Comparing a library with the program of a PLC is not offered; to see which instances in a PLC are out of date, use Check for Updates...
- Compare with... compares the properties TIA Portal keeps about two library items, not the content of their blocks, and needs TIA Portal V18 or newer
- The mark Do Not Use needs TIA Portal V20 or newer; the mark Set for Update can be changed only in a global library opened with write access
- WinCC Unified devices can be updated from a library only with TIA Portal V21 or newer
- Comparing libraries needs TIA Portal V18 or newer
- System and corporate libraries are always read-only and cannot be closed while TIA Portal runs
- The author and the comment of a global library can be entered only when it is created
AI Assistant Support
You can work with the types of the project library from the chat as well. The assistant lists the types with their kind, their folder, their default version and how many versions they carry, reads one type with all its fields and its versions, writes the documents of a version out and reads documents back as a new type or as a new version, finds where a type is used, and runs the version lifecycle for you: a new in-work version, releasing it, discarding it, setting the default version and deleting a version. For example: "Which faceplate types does this project carry?", "Where is Motor_FP used?" or "Release version 0.0.2 of Motor_FP as 1.0.0".
Anything that writes is shown to you first and runs only after you approve it, an export and an import of documents included. It also creates an instance of a type version or a Master Copy in a PLC, a software unit from a Master Copy included, and names the dependencies that were created with it or the new name TIA Portal gave the copy. It copies block folders, external sources, folders of external sources and named value types into the master copies and back into a PLC or a software unit, and its card says what the Master Copy holds, also when you did not name it. On a classic HMI device it creates a screen, a screen template, a pop-up screen, a tag table, a tag or a VB script from a Master Copy or a type version after you confirm, and names the object, the name TIA Portal gave it and the folders it created.
Global libraries are handled by the Manage TIA Global Libraries tool. The assistant lists the global libraries with their kind, whether they are open, read-only or modified, and where they lie; it opens a library read-only, with write access or with an upgrade, opens a system library, closes, creates, saves, saves as, archives and retrieves a library, checks the project for out-of-date instances, updates the project or another library from a library, harmonizes the project and compares two libraries. For example: "Open the library D:\Libraries\Motors\Motors.al20 read-only", "Which instances in the project are out of date against the Motors library?" or "Compare the project library with the Motors library". Listing, opening read-only, checking for updates and comparing change nothing and run without asking. Before every other action the assistant shows you what it will do and runs it only after you approve it; for an update or a harmonize the card names the types, the devices and what TIA Portal will change, and closing without saving says that the unsaved changes are lost. When the assistant creates, saves, archives or retrieves a library, the folder has to lie in your Documents or Desktop folder, the temporary folder, the Studio export folder or an open workspace folder. Afterwards it reports the library types that were added, changed and removed and where TIA Portal wrote the log.
The assistant also finds a library type or a type version by its GUID in the project library and every open global library, compares two types, two type versions or two master copies (from TIA Portal V18, the properties TIA Portal keeps, not the block content), sets or clears the marks Do Not Use and Set for Update, and reads what a master copy holds with its author and creation date. For example: "Which library holds the type with GUID 1b4e28ba-2fa1-11d2-883f-0016d3cca427?", "Compare version 1.0.0 of FB_Valve with version 2.0.0" or "Mark FB_OldMotor in the Motors library as do not use". Before it changes a mark it shows a card that names the type, the library and each mark, and says that a global library is saved right after the change, or that a change in the project library stays in the open project until you save it.
The tools for master copies and types of the project library also work on an open global library: name the library in your request, for example "Show the types of the Motors library" or "Create an instance of FBValve from the Motors library in PLC1". A read-only library, and every system or corporate library, is not changed.
Reading the types is part of your TIA Portal connection, and in Studio so are opening global libraries read-only, checking for updates and comparing libraries. The Manage TIA Global Libraries tool and every other library operation, in Studio as well as from the chat, need a Pro plan or higher. For how the AI chat reaches tools, see AI Integration.