Skip to content

Project Explorer

On this page

The tree appears in stages

After you connect to a project, the Project Explorer shows the program of each CPU first: its software units, program blocks, technology objects and watch and force tables. The remaining branches follow while you already work with the blocks: PLC data types and PLC tags under the CPU, then Hardware, the HMI devices, the Project Library, the Global Libraries and the Version Control Workspaces. A branch that is still on its way shows a small spinner next to its name and stays closed until its contents arrive; what you have expanded, selected or ticked in the meantime is kept. The toolbar Refresh fills the tree in the same order.

Hardware and Project Library on demand

The Hardware and the Project Library are not read when a project connects, so the tree appears sooner. Both folders are still in the tree; next to each of them sits a small icon, an arrow pointing down in a circle. Click it and the folder fills while a small spinner runs beside its name, then it opens. Hover the icon to read what it does. If you need one of the two every time, switch on Load Hardware or Load Project Library under Project Explorer in the Settings; the link in the icon's tooltip takes you there. Switching a setting on while a project is connected reads the branch right away; switching it off keeps a folder that is already filled until you connect again. A folder you filled with the icon stays filled through Refresh; a folder you have not filled stays closed unless its setting is on.

The Global Libraries folder goes together with the Project Library: Load Project Library also reads the global libraries that are open in TIA Portal, and while the setting is off, both folders show the load icon, and clicking either of them reads both.

The Version Control Workspaces folder follows the same rule as Hardware, HMI and the Project Library: it shows the load icon and is read when you click or expand it. Switch on Load Version Control Workspaces under Project Explorer in the Settings if you want it read as soon as the project connects.

The HMI devices work the same way: they are not read when a project connects, and every HMI device in the tree shows the same small icon. Click the icon on any of them and all HMI devices of the project are read at once; each of them shows the spinner until they are filled, then the device you clicked opens. If you need the HMI devices every time, switch on Load HMI under Project Explorer in the Settings. Exporting or importing HMI data reads the HMI devices first when they have not been read yet. The Plant views folder belongs to the HMI data and appears together with the HMI devices; a project without HMI devices shows it on its own shortly after connecting.

Changes made by the AI assistant

When the AI assistant changes the project, for example imports a block, creates a tag or adds a device, the Project Explorer does not reload after every single change, so the assistant can go on right away. Instead a slim row appears above the project: Project changed, refresh needed. Click Refresh in that row to show the changes at once. Otherwise the Project Explorer reloads on its own 60 seconds after the chat has finished; if the assistant goes on working in that time, the wait starts again when it is done. The row also goes away when you click the toolbar Refresh. The same row appears in the Project Explorer of the Agents window.

Code Display

When you select a block in the project tree, its source code is displayed in the code editor.

Supported Languages:

  • SCL (Structured Control Language)
  • STL (Statement List)
  • LAD/FBD (rendered inline as networks)

When TIA Portal changes something while you save a block, for example gives a block a number that cannot be set back, a message shows the note of TIA Portal. A block with automatic numbering gets its final number from TIA Portal when the PLC is compiled after the save. When the AI assistant uploads the block, it passes the note on to you.

Editing data types (UDTs)

Open a PLC data type (UDT) from a connected project and it appears as compact, editable source (TYPE … END_TYPE) with syntax highlighting, instead of long XML. Edit its members and press Ctrl+S to write the data type back into the project and recompile the PLC, the same flow as saving an SCL block, confirmation dialog included.

If source cannot be generated for a data type (for example because it is know-how-protected), it opens read-only instead. A data type shown from a project opened offline is read-only as well.

If you prefer the XML view, turn off Open UDTs as .udt under Editor in the Settings: data types then always open as read-only XML.

With that option on, a data type of the safety program opens as its source document for editing on TIA Portal V20 and newer: press Ctrl+S to write it back into the project, the same way as any other data type. On an older TIA Portal version it opens read-only. Its interface table stays read-only, and the source view is where such a type is changed.

Note: A .udt source does not carry the fail-safe attribute of a data type. That is why a data type of the safety program is changed through its source document, never through a .udt.

Editing data blocks

Open a data block from a connected project and its source view shows compact, editable source (DATA_BLOCK … END_DATA_BLOCK) with syntax highlighting. Edit it and press Ctrl+S to write the data block back into the project and recompile the PLC, the same flow as saving an SCL block, confirmation dialog included.

If source cannot be generated for a data block (for example because it is know-how-protected or a safety block), it opens as read-only XML instead, without error squiggles.

To work with the XML representation of a data block, right-click it in the project tree and choose Open as XML: the block opens as XML in a separate tab. Edit the XML and press Ctrl+S to write the block back into the project and recompile the PLC, with the same confirmation as any other block save.

Technology objects

With TIA Portal V18 or newer, technology objects (Motion Control axes, PID controllers, counters and the like) can be opened, created, edited and deleted straight from the project tree, under the Technology objects folder.

Open and edit. Double-click a technology object to open it as an editable XML tab. Edit the XML and press Ctrl+S to write it back into the project and recompile the PLC, the same confirmation as saving a block, and any compile problems are offered for you to open. A technology object can only be opened while you are connected to TIA Portal. Some types, such as Motion Control axes, cannot be shown as a source file; opening one shows a short read-only note instead, and you can still view and change its parameters through the AI assistant.

Create. Right-click the Technology objects folder and choose New Technology Object. Pick a type from the list (PID controllers, Motion Control axes, counters) or choose Custom… to enter a type identifier yourself, confirm the version, then enter a name. The object is created and compiled and appears in the tree. The version you enter must match a technology-object version installed with your TIA Portal (for example PID_Compact version 2.4).

Delete. Right-click a technology object and choose Delete; confirm the prompt to remove it from the project.

Folders. From TIA Portal V19 you can sort technology objects into folders. Right-click Technology objects or one of its folders and choose Add New Group, then enter a name. To rename a folder, right-click it and choose Rename. To delete a folder, right-click it and choose Delete: the folder is deleted together with its subfolders and every technology object in it, and the confirmation says how many technology objects that are. Blocks that use a deleted technology object no longer compile until you change them. New Technology Object on a folder creates the object in that folder, and Compile on a folder compiles only that folder. Technology objects and their folders cannot be moved; create a technology object in the folder where it belongs. The AI assistant can create, rename and delete these folders too.

AI chat. You can also ask the AI assistant to create, list, read, edit (change parameter values) or delete technology objects. Every change the assistant makes is shown for you to confirm first.

Import. Technology objects are edited one at a time, not through Import All or importing selected files. A technology-object file in your export folder is listed as skipped during a bulk import; to change a technology object, open it and edit it or use the AI assistant.

Autocomplete

While editing SCL, the editor suggests blocks, variables and members as you type. Type a . after a block or data-block name (for example "MyDb".) and the suggestions for that block's members appear right away. The editor is ready to use the moment you connect to a project, and project actions such as exporting blocks or HMI start immediately; even on large projects, nothing has to finish loading first.

Editing graphical blocks

On TIA Portal V20 or newer, graphical blocks (LAD, FBD and GRAPH) open as editable source: you type in them like in any other block. A button in the block editor toolbar switches between Show Graphical View (the read-only network or sequence rendering) and Show Source; your choice is remembered for that editor. Press Ctrl+S to write the change back into the project and compile the PLC, after the same confirmation dialog as a text block; errors and warnings appear right in the editor.

In the graphical view the networks render directly in AnyAutomation Studio; no external Compare or Visualizer tool is required, and no separate Siemens utility needs to be installed. Each network shows its title, comment and the layout as it appears in TIA Portal. Ladder blocks render as ladder networks, FBD blocks as function-block diagrams (with their gates, set/reset and assignment outputs, comparators and the called blocks, and inverted inputs marked), and GRAPH blocks as the full sequence chart with steps, transitions, branches and actions.

Before TIA Portal V20 the block opens in the read-only graphical view and the source toggle is not offered. Blocks of the safety program (F-FBD, F-LAD) open as editable source on V20 and newer in the same way: an added or changed network is written back into the project with Ctrl+S and the PLC is compiled. Note that this changes the F-signature of the block and the collective signature of the safety program, so a new acceptance becomes necessary. For know-how-protected blocks the toggle is still available, but the source view opens read-only, there is no editable source to write back. Text-source blocks (SCL/STL) open in the code editor as usual.

You can also open an exported block file as a graphical view without a live TIA Portal connection. Open the block's .xml (from Windows Explorer, the Desktop or the workspace), then choose Reopen Editor With… → TIA Graphical View (or right-click the file and pick Open With → TIA Graphical View). The ladder diagram is rendered straight from the file's contents, so you can review an exported block on any machine, even offline.

Interface and Tag-Table view

Block interfaces can be shown as a table above the code, like in TIA Portal. Use the Show Block Interface toggle in the block editor toolbar (or turn on the Show Block interface like in TIA setting, which is off by default) to switch it on. The table shows one row per member with its Name, Data type, Start value / Default value, Retain, the HMI/OPC UA/Web API access flags (Accessible, Writable, Visible in HMI engineering), Setpoint, Supervision and Comment columns.

You can change the members right in the table: add a member with +, delete it with the trash icon, and edit its name, data type, start value, retain setting, the access flags, the setpoint flag and the comment, or move it up or down. To make room, click the arrow on a section header such as Input or Static to collapse or expand that section (Studio remembers this for all blocks, and tag tables work the same way), or the arrow in the middle of the divider below the table to collapse or expand the whole interface. The table appears as soon as the block is read; the elements of data types follow shortly after, and a member shows its arrow once they are there. You can keep working meanwhile. Ctrl+S uploads every change to TIA Portal in one step after a confirmation and compiles the PLC; the retain settings of members you did not touch stay as they are. A column title that does not fit ends in an ellipsis and shows its full name when you hover over it.

PLC tag tables get an equivalent tag-table view (Name, Data type, Address, Retain, the HMI access flags, Supervision and Comment). With Show Block Interface off, blocks open as plain source. You can still read or edit interfaces and tag tables through the SCL/STL source in the code editor, or in TIA Portal directly.

A data type of the safety program cannot be changed in the interface table: the message names the safety program in TIA Portal as the place for such a change, and when you are not logged in to it, it names that as well. The source view is where such a type is changed.

Regions in SCL code

SCL code that is structured with REGION and END_REGION gets a region navigator, so you can find your way in a long block without scrolling.

In the block editor. An SCL block opens with a Regions panel to the left of the code. It lists every region as a tree, nested like the code, with the name written after REGION; a region without a name shows as Unnamed. Every region has an arrow in front of it, also a region without inner regions: click the arrow to collapse or expand the region. It points down while the region is expanded and to the right while it is collapsed. Hover a row to see the line of its REGION line. A region that contains an error shows an error icon, and a collapsed region also shows it when one of its inner regions has an error; click the icon to jump to the first error. Drag the divider between the panel and the code to change its width, double-click it to go back to the default width. The button Hide Region Navigator / Show Region Navigator in the block editor toolbar hides or shows the panel; Studio remembers the width and whether the panel is shown.

Synchronization. The panel header holds Expand All, Collapse All and the synchronization button. With synchronization on, a click on a region unfolds it in the code and moves the cursor there, expanding or collapsing a region in the tree unfolds or folds it in the code and the other way round, and moving the cursor in the code selects the region around it. Expand All and Collapse All then act on the regions of the code; other folds stay as they are. With synchronization off, the tree and the code fold independently and a click only selects the region. A double-click always jumps to the region. Studio remembers the setting for every region navigator.

Fold all regions at once. The buttons Fold All Regions and Unfold All Regions in the block editor toolbar fold or unfold every region of the block in one click.

Fold directly in the code. Next to the line numbers of SCL code, every REGION, IF, CASE and loop has a fold arrow that is always visible; click it to fold or unfold that part of the code. If you prefer to see the arrows only when the mouse is over the line numbers, set Show Folding Controls to mouseover in the settings. The code of a block follows your editor settings, such as font size, minimap and word wrap.

Context menu. Right-click a region for Copy (copies the code of the region), Expand and Collapse. A region that contains an error also offers Go to First Error, which you can reach from the keyboard with Shift+F10 on the selected region. To rename a region, edit the name after REGION in the code.

SCL Regions view. Once you have worked in SCL code, the Explorer shows an SCL Regions view. It shows the same tree for the SCL editor you are working in, whether a block from the project or an .scl file from your workspace or export folder, with Expand All, Collapse All and Turn Region Synchronization Off / On in its title bar.

Shortcuts. In the region tree or in SCL code:

Shortcut Action
Ctrl+Shift+Num + Expand the selected region, or the region at the cursor
Ctrl+Shift+Num - Collapse the selected region, or the region at the cursor
Ctrl+Shift+Num * Expand all regions
Ctrl+Shift+Num / Collapse all regions

With the AI assistant. The assistant can read the region structure of an open SCL block or file and then read only the region it needs, which helps with long blocks. It does not fold your editor.

Code files in the block editor

SCL, STL, DB and UDT files on disk open in the same block editor as a block from TIA Portal, for example a file from your export folder, your workspace or a version control workspace. This covers files ending in .scl, .awl, .stl, .db and .udt.

What you see. The code opens with the Regions panel and the region buttons in the toolbar. With Show Block Interface the interface table appears above the code; a data block or a PLC data type shows the table alone. Everything described in Regions in SCL code and Interface and Tag-Table view works the same, except the upload: a file has no connection to TIA Portal.

Editing. A change in the table goes straight into the text of the file. The tab shows that the file has unsaved changes, Ctrl+S saves it and Ctrl+Z undoes the last change, also while the table has the focus. If the same file is open in a second tab, that tab shows the change as well. To bring the file into TIA Portal, import it from the Import/Export view.

Files with several blocks. A file that contains more than one block opens as code with the Regions panel. The Show Block Interface button is then unavailable, and its tooltip tells you why. The same applies to a file whose interface cannot be read.

Read-only files. A file you cannot write to opens read-only: the code cannot be changed, and the table shows The file is read-only.

As plain text. To edit a file in the plain text editor, right-click its tab and choose Reopen Editor With... > Text Editor. Comparisons and the history of a file keep showing plain text, and a file with one of these endings that is not a code file, such as a 3D model .stl, opens in the text editor.

Tag tables: system constants, comments by language, single tags

The tag-table view of a PLC tag table offers three more things:

  • System Constants (Read-Only): a section at the end of the table, after the tags and the user constants, lists the system constants TIA Portal keeps for the hardware of the PLC, each with its name, data type and value. They cannot be changed. A table without system constants shows no such section; in practice only the default tag table carries them.
  • Comments by Language: a panel below the table. Select a tag and the panel shows its comment in every active language of the project, one field per language, with (editing language) after the editing language. Change the fields you want and click Write Comments to TIA Portal: only the languages you changed are written, and the message names them. While the table holds changes you have not uploaded yet, the fields are read-only and the panel asks you to upload or discard those changes first. A language that is not active in the project cannot be written, and the message names the active ones; a fail-safe tag needs a login to the safety program first.
  • Export Selected Tags...: select one or more rows with Ctrl or Shift, right-click and choose this entry. Every selected tag and user constant is written as its own file into the Tags subfolder of the export folder of the PLC. The message counts the files and names every row that was not exported, with the reason, and the first file is shown in Windows Explorer. How such files go back into a tag table is described in Import / Export.

A WinCC Unified device in the project tree

Connect to a project and expand a WinCC Unified device in the Project Explorer: the tree lists what the device holds in the same order as TIA Portal. The Runtime Settings come first, then Screens with its screen folders, HMI Tags with the tag table folders and the System Tags, Connections, HMI Alarms with Discrete Alarms, Analog Alarms, OPC UA Alarms and Alarm Classes, Historical Data with Data Logs, Alarm Logs, Audit Trails and Logging Tags, then Scripts, Text and Graphic Lists with Text Lists, System Text Lists and Graphic Lists, and last Plant object tags. The plant views belong to the project, so they sit under the project next to the project library rather than under the device.

A double-click opens the row you clicked: a tag table in the HMI Tags editor, a screen in the Screen editor, a script module as JavaScript in the code editor, the Discrete Alarms, Analog Alarms and Alarm Classes folders in the alarm editor, and any single object in its detail view. The sections below describe each of these editors.

A category folder stays visible even when it holds nothing; the three grouping folders HMI Alarms, Historical Data and Text and Graphic Lists appear only when the device holds at least one of their categories. Some content needs a certain TIA Portal version: Scripts from V19, Text and Graphic Lists and the thresholds of a tag from V20, Graphic Lists and the Display Name column from V21. On an older version the message names the version that is required.

A very large folder lists its first 2000 entries; the folder row then says how many more there are, and hovering it says how many of how many are shown. The remaining entries are in the project, they are just not listed here.

Alarms, logs, lists, system tags and the runtime settings carry no checkbox and no export, protection or vault entries in the tree: you read and change them in their editors, and you export a whole device with the HMI actions of the Import / Export view (see Import and Export).

Cycles and slide-in screens of a classic HMI device

Under a classic HMI device, such as a Comfort panel, the Project Explorer lists the Cycles of the device and, after the pop-up screens, a Slide-in Screens folder. The slide-in screens are not read when the project connects: the folder shows the load icon, and the first time you expand it Studio reads the slide-in screens the device has, one for each position it offers (Top, Left, Bottom and Right). If they cannot be read, a message says so and you can expand the folder again later.

Cycles and slide-in screens carry the Export checkbox and go with Export HMI Selected and Export HMI All like the other items of the device, see Import / Export. A slide-in screen does not open in an editor.

Delete is not offered on a cycle, on a slide-in screen or on the Cycles and Slide-in Screens folders, and Studio tells you why; hovering a cycle or the Cycles folder shows Cycles are deleted through the assistant or in TIA Portal; standard cycles never. The standard cycles TIA Portal gives every device can never be deleted, and the slide-in screens belong to the device. A cycle you added yourself is deleted through the assistant (see AI Chat) or in TIA Portal.

Folders of a classic HMI device

Right-click a folder you made under Screens, Screen Templates, Pop-up Screens, HMI Tags or VB Scripts of a classic HMI device and choose Delete to delete the folder with everything in it. The confirmation names the folder and counts the items and subfolders it holds, or says that it is empty. TIA Portal keeps no copy, so export what you may need again first. A screen template that a screen still uses is deleted as well, and that screen then refers to a template that is gone, which a compile of the device reports. The category folders themselves cannot be deleted; Delete on one of them deletes the items in it after a confirmation, as before.

HMI tag tables

Double-click an HMI tag table in the project tree (under an HMI device's HMI Tags) to open it in the HMI Tags editor: a table with one row per tag showing its Name, Data Type, Connection, PLC Tag, Acquisition Mode, Acquisition Cycle and Comment. A tag table on a WinCC Unified device is marked with a UNIFIED badge. For such a table the editor also shows each tag's Address and its Persistent setting, and on TIA Portal V21 and later its Display Name; these three columns are read-only and stay visible while you edit.

A tag with limits shows its Upper Threshold and Lower Threshold as sub-rows under it, when TIA Portal shows them for the device. In edit mode the Value and the Value Type (None, Constant or Tag) of a threshold can be changed and are saved together with the table; its name and its mode are display only. Thresholds cannot be added, deleted or renamed, because TIA Portal offers no way to.

To change tags, click Edit and edit any cell. On a WinCC Unified device the Name cell can be changed as well: type the new name and save, and the tag is renamed on the device; a name another tag of the device already carries is refused as you type. Click Save to TIA to write your changes back to the HMI device, or Discard to drop them. If a tag table cannot be loaded, the editor shows a message with a Show Details link for more information.

Deleting. Right-click a tag table folder of a WinCC Unified device and choose Delete: the confirmation names how many items the folder contains, and the folder is removed together with them.

HMI object details

Alarms, alarm classes, connections, data logs, alarm logs, audit trails, logging tags, system tags, OPC UA alarms, text lists, graphic lists and the runtime settings of a WinCC Unified device open in a detail view when you double-click them in the project tree. The view lists every property of the object with its value. A property that TIA Portal does not let you change shows a lock icon, and a text kept in several project languages shows the text in your display language with the other languages listed below it.

Every object that TIA Portal lets you change can be edited right in the detail view. Click Edit, change the values, then click Save to TIA to write them to the device or Discard to drop them. A tab with unsaved changes asks before it closes. An object that TIA Portal does not let you change keeps its READ-ONLY badge; hovering the badge says so.

  • The runtime settings offer everything on the object and in its settings groups: the start screen and the screen resolution, the bit-selection strategies, the central input hint, panning and zooming, the login limits, the OPC UA server settings, the reporting, telemetry, process diagnostics and tag settings. A setting with a fixed set of values is picked from a list. The table of languages and fonts is a list and is not edited here, and on TIA Portal V21 the central input hint does not take a value yet: saving reports a warning and the setting stays as it was.
  • A connection offers its comment and its startup setting; its communication driver and the driver settings are changed in the Driver Properties section described below. TIA Portal does not let you change the partner, the station or the node, so a connection cannot be moved to another controller from Studio.
  • An alarm class offers its priority, its state machine, the alarm log it writes to, and for each of its four states the background colour, the text colour and whether it flashes. Colours are entered as 0xAARRGGBB, #AARRGGBB or #RRGGBB, for example 0xFFADD8E6, and a swatch shows the colour next to the value.
  • A data log, an alarm log and an audit trail offer their storage settings (storage device, storage folder, maximum size and retention period), their segment settings (maximum size, start time and time period) and their backup settings (backup mode and backup path).
  • A logging tag offers all of its settings: the data log it writes to, its source and acquisition cycle, the logging mode, the trigger mode with its trigger tag, the limits, and the smoothing and aggregation settings.
  • A single alarm offers its settings and its texts, one row per project language; for many alarms at once use the alarm editor.
  • An OPC UA alarm offers its alarm class, its area and its condition type. The connection and the node it was created with cannot be changed afterwards.
  • System tags, text lists, graphic lists and scripts carry nothing TIA Portal lets you change in this view; scripts are edited in the code editor, and the entries of a text or a graphic list are changed through the assistant.

A value that does not fit is marked and not applied, for example a size that is not a whole number, a date without a time, or a duration that is not written as days.hours:minutes:seconds (1.02:30:00). To rename the object, click Edit, change the Name in the header of the view and save: the tab, the header and the project tree follow the new name. A name that is already taken or one TIA Portal rejects is reported and the view stays in edit mode. System tags, lists and the runtime settings keep their name. Changing anything on a WinCC Unified device requires a Pro plan; reading stays available on every plan. The assistant can read and change these objects too, see AI Chat.

A property that is empty in the project shows an empty row you can fill in, the comment of a connection for example. When TIA Portal accepts a value and does not keep it, the view says so after saving and shows the value the device still carries.

TIA Portal also lists parameter set types, cycles, scheduled tasks and screen management below a WinCC Unified device. These four do not appear in the project tree and cannot be opened from Studio; edit them in TIA Portal.

Discrete alarms, analog alarms and alarm classes also open in the alarm editor, and scripts open as JavaScript in the code editor. A script module opens straight from the device and saves straight back with Ctrl+S after the upload confirmation. To add a module, right-click the Scripts folder of a WinCC Unified device and choose New Script Module: enter a name that no other module of the device carries, and the new module opens in its editor and appears in the tree. A script module cannot be deleted or renamed, because TIA Portal offers no way to.

Data logs, alarm logs, alarm classes and connections can also be created and deleted from the project tree: right-click the Data Logs, Alarm Logs, Alarm Classes or Connections folder of a WinCC Unified device and choose New Data Log, New Alarm Log, New Alarm Class or New Connection, enter a name, and the new object opens in its detail view ready to be set up. Right-click one of those objects and choose Delete to remove it after a confirmation; an object TIA Portal supplies itself, such as a system alarm class, is refused. Right-click a tag table, a logging tag, an alarm, an alarm class, an OPC UA alarm type, a connection, a data log, an alarm log or an audit trail and choose Rename to give it a new name: the tree selects the renamed row, an open detail view follows, and a name already used by another object of that kind is refused before anything changes.

Driver properties of a WinCC Unified connection

The detail view of a connection on a WinCC Unified device shows a Driver Properties section above the property list. Its header names the driver (Driver:) and offers Change Driver.... Below it, one row per setting of the driver shows the Property and its Value, hovering a row shows what the setting is for, and a setting TIA Portal does not let you change is marked Read-only. A driver without settings says This driver offers no settings here. For some drivers, such as Allen-Bradley EtherNet/IP, TIA Portal hands out no settings at all: the connection still opens with all its other properties, and the section says TIA Portal hands out no driver properties for the driver '...', so this connection has none to show or change here. Change Driver... stays available.

To change a setting, type the new value into its field and press Enter: Studio writes that one setting to TIA Portal right away, reads the connection again and tells you the result, Applied, Already set when the setting had that value, or Not applied with the reason, for example that TIA Portal refused the value or kept the earlier one. Escape undoes your typing. A value you typed and did not confirm with Enter is not written: the field keeps it and marks it as pending, also when you click elsewhere, until you press Enter or Escape. The rack and the slot take whole numbers only; another value is refused with The rack takes a whole number from 0 to 7 and the slot a whole number from 0 to 31. Nothing was written.

Change Driver... lets you pick another driver (SIMATIC S7 1200/1500, SIMATIC S7 300/400, OPC UA and the other drivers TIA Portal offers) and asks Change the driver of '...' to '...'?: the settings of the current driver, its credentials included, are replaced by the settings of the new driver. After the change the section shows the settings of the new driver, and the message says that every setting and credential of the connection was reset. The driver is changed only this way, not in the property list below the section.

The password and the user name of a connection are never shown: a set value reads as dots, an empty one as Not set. Click Set... on its row, enter the new value, then enter it again to confirm; the two entries must match. Studio writes the value to TIA Portal and tells you it was written. TIA Portal does not read a password back, so a password cannot be shown or checked in Studio. If you leave the entry empty, Studio asks Clear the stored password of '...'? or Clear the stored user name of '...'? and clears the value only when you click Clear. The message then says The password of '...' was cleared. or The user name of '...' was cleared., or that the value was already empty and nothing was cleared. Any other credential of a driver is changed in TIA Portal. The user name and the password are set only here, never through the assistant.

While the detail view holds other unsaved changes, the section takes no input and says Save or discard the other changes first, then change the connection settings here. Writing driver settings needs the Pro plan, like any change on a WinCC Unified device.

If the assistant changes the connection, or another WinCC Unified object whose detail view is open, the view shows the current values with the banner This object was changed outside this editor. The current values are shown. While you type a value, save, or a setting is being written, the view waits until you are done.

OPC UA alarms from a file

To bring the alarms of an OPC UA server into a WinCC Unified device, right-click an OPC UA connection of the device and choose Import OPC UA Alarms from File.... In the dialog Select the OPC UA Alarm File for ... pick the alarm file and click Select File: it must be a NodeSet2 file exported from the OPC UA server. The OPC UA export TIA Portal writes for a CPU is not accepted, and a file that is not on this computer or on a network share is refused before anything happens.

Studio then asks Import "..." into the connection "..."?: the file is stored on the connection and replaces an alarm file imported there earlier, so the project changes. After Import the message says how many alarms are listed, and a read-only tab OPC UA Alarms of ... opens with a table of the alarms that sit directly below the root folder of the file, each with its Display Name and Node ID. Alarms further down, for example below Objects, are imported with the file, but they are not listed and get no node ID here. The tab also says how many entries directly below the root folder have no node ID and how many standard nodes (Objects, Types, Views) were left out.

If TIA Portal does not accept the file, the message names the line and the column where it stopped. A connection that does not use the OPC UA driver is refused before anything is written. If the file was imported but its alarms could not be listed, the file still stays on the connection, and the message says so. After a reload of the window the tab says the report is no longer available; run the command again to see it. Importing an alarm file needs the Pro plan.

Project library: types and versions

Under Project Library the Types folder shows every type of the project library with its kind as its description, Faceplate, Script module, Block type or Unified type, and below it one row per version with its state, In work or Committed, and default on the default version. 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 context menu, plus Reload, which reads the type from the project again; the actions that work on a version stay disabled until you select a version row.

The Library submenu of a type or a version offers Export Type Documents (you pick a document format and a folder, then Studio names the files it wrote), Import Type Version from Documents (a folder, the file name without its extension, and whether existing content is overridden) and, on the Types folder, Import Type from Documents, optionally with the HMI device the type is read for. Show Instances lists where a type is used, in the PLCs, the classic HMI devices and on the screens of the WinCC Unified devices; an entry of a Unified screen opens the screen and selects the object, and an empty list names where it looked. New Version (Edit) creates a new in-work version from a version, Release releases it with a version number, an author and a comment, Discard drops an in-work version, Set as Default makes a version the default version and Delete Version removes it; each of these actions asks first and names the type, the version and the effect.

The same submenu offers Copy GUID and Compare with..., which compares a type, a version or a master copy with another item of the same kind, and on a type Mark as Do Not Use and Mark for Update with their counterparts that clear the mark. Go to Library Type by GUID... on the Project Library, a global library and the Global Libraries row opens the type that carries a GUID. Master copy rows name what they hold, such as Block, PLC data type or Mixed, and their hover shows the author, the creation date and the content. All of this is described in Library Management.

What TIA Portal does not offer, Studio does not offer either: the screen content of a faceplate type cannot be edited, a script module type has no instances, and a released version cannot be changed any more. 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.

To place a library object in a PLC, right-click a type version or a master copy and choose Create Instance in PLC... in the Library submenu, or right-click a block folder or a PLC data types folder and choose Add from Library... to pick the library item for that folder. Both are described in Library Management and need the Pro plan. Instantiate in HMI... in the same submenu places a Master Copy or a type version on a classic HMI device, also described there. If the category you choose does not fit, the message names what the Master Copy holds, for example The master copy "..." holds a tag table, which belongs in HMI Tags, not in Screens., and a Master Copy that holds a folder is refused with a message such as 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. Copy to Library is offered on PLC blocks only, not on a screen, a tag table or another HMI object; should the command reach one, Studio answers Copy to Library takes PLC blocks only. Create the master copy of "..." in TIA Portal, then place it with Instantiate in HMI.

Global libraries

Next to the Project Library the tree shows the Global Libraries branch. It is always there and stays empty until a global library is open in TIA Portal, whether you opened it from Studio or in TIA Portal itself. Each open library is one row; hover its name to see the library file. Badges after the name say what kind of library it is and what you can do with it: System or Corporate for the libraries TIA Portal provides, Read-only for those and for a library you opened read-only, and Modified when a library opened with write access has unsaved changes. Below each library sit its Master Copies and Types with the same rows as in the Project Library, and double-clicking a type opens the Library Type view.

Right-click Global Libraries to open, create or retrieve a global library or to open a system library, and right-click a library to save, archive or close it. The Library Updates submenu on the libraries, the Types folders and the types checks the project for out-of-date instances, updates the project or another library, harmonizes the project and compares two libraries. All of this is described in Library Management.

Version control workspaces

The last branch of the tree, Version Control Workspaces, lists the workspaces of the project: folders on disk that hold blocks, PLC data types, tag tables and technology objects as files, so you can version them with Git or another tool. Workspace groups and workspaces are rows; a workspace shows its root folder as its description, and double-clicking it opens its Workspace Status, which shows for every connected object whether it changed in the project, in the file or on both sides. Right-click the branch, a group or a workspace to create, rename or delete workspaces and groups, set the root folder or open the status, and right-click blocks, PLC data types, tag tables, technology objects or their folders to connect them to a workspace or export them into one. The branch appears when the connected TIA Portal offers version control; connecting, exporting and the status need TIA Portal V20 or newer. All of this is described in Version Control with Workspaces.

Plant model

The project tree shows the folder Plant views under the project with the plant view of the project and its nodes, nested as in TIA Portal, and under every WinCC Unified device the folder Plant object tags with the plant object tags the device derives from the plant object types of its nodes. Right-click Plant views and choose New Plant View: enter a name, and the view appears in the tree. Right-click the view or a node and choose New Node: enter the name and then, if the node is to carry a plant object type, the name of that type, or leave the field empty. A view and a node are renamed with Rename or F2 and removed with Delete; the delete asks first and says how many nodes below go with it.

Double-click a view, a node or a plant object tag to open its detail view. On the view you enter the assigned HMI device, by the name of its runtime as TIA Portal carries it; a node shows its path, its view and its plant object type with the type's interfaces; a plant object tag shows its members and their logging tags, and its acquisition cycle, acquisition mode, connection and PLC tag can be changed. The detail view of a plant view lists its nodes six levels deep; a branch that reaches deeper ends with a line saying how many sections it left out, and you follow it in the tree instead. What TIA Portal does not offer, Studio does not offer either: a project holds one plant view, a node does not change its plant object type, and a plant object tag is neither created nor deleted, it comes and goes with the type of its node.

HMI alarms

Double-click Discrete Alarms, Analog Alarms or Alarm Classes under the HMI Alarms folder of a WinCC Unified device to open the alarm editor, one tab per set. Clicking another set replaces the open tab while it carries no unsaved changes, and opens a second one beside it otherwise, so a click can never lose an edit. Click Edit to change the alarms in place: the alarm text in the language chosen at the right end of the toolbar, the alarm class and the trigger tag from lists of what the device holds, the priority, the trigger settings and the remaining fields. A panel under the table shows the Event Text and Info Text of the selected alarm in every project language at once, including changes you have not saved yet. In edit mode the Name cell of a discrete or analog alarm can be changed as well; the alarm is renamed when you save, and a name another alarm already carries is marked on the cell. Discrete alarms also show their Acknowledgment State Bit, Acknowledgment Control Tag and Acknowledgment Control Bit. New Alarm asks for a name and adds a row, Delete Alarm removes the selected alarm after a confirmation, and Save to TIA writes the changes to the device. On the Alarm Classes tab the values are shown as they are, since a class is changed in its detail view; New Alarm Class and Delete Alarm Class add and remove classes there. Changing alarms requires a Pro plan.

To add many discrete alarms at once, right-click Discrete Alarms (or one of its alarms) and choose Create Discrete Alarms in Bulk. Pick a text file (.csv, .tsv or .txt) in the Choose the Alarm List dialog: one alarm per line, five columns separated by tab or semicolon, in the order name, trigger tag, bit, event text and alarm class. Blank lines and lines starting with # are skipped, and a first line beginning with Name is treated as a header. When the project has more than one language, you then choose the one the event texts are written in. Every row is checked against the device before anything is written, the names, the trigger tags, the alarm classes and the bit range; if a single row does not pass, nothing is created and the reasons are listed in the TIA Portal output. Otherwise a confirmation names how many alarms will be created on which device, and after Create Alarms the progress appears in the status bar and the run can be cancelled. A file holds at most 2000 alarms. Creating alarms requires a Pro plan.

HMI screens

Double-click a WinCC Unified screen in the project tree (under an HMI device's Screens) to open it in the Screen editor: a canvas that draws each object as the shape it is, in the place it sits. Lines, polylines and polygons follow their points, rectangles keep their corners, circles, ellipses, arcs and segments are round, text and buttons carry their font, and an IO field shows the tag its value is bound to. A bar, gauge, slider or switch is drawn in simplified form showing its value, a clock with its hands, and a trend, alarm, parameter or diagnosis control shows its own bars, axes, gridlines and column headers over empty rows, while a faceplate container names the faceplate it holds. A screen window shows the screen it opens, inside a window frame with its title bar; a custom widget shows its own drawing, whether that drawing belongs to the project or comes from the symbol library that came with your engineering software, and falls back to its name and the values set on it when the drawing cannot be found. The drawing is shown in the state you configured it in: it takes the colours you set on it, shows only the state its settings select, and fills the box you gave it. A background that uses a colour gradient or one of the hatch patterns is drawn with that gradient or pattern. A graphic view, a button, a switch and the background of the screen show their picture, scaled the way the object asks for it. A screen opened from an export folder shows the pictures that were written next to it, and the entries of the text and graphic lists exported with it; a picture that is not there shows its name instead. Drag an empty area to pan the canvas, and use the mouse wheel to zoom (or Reset Zoom); holding the middle mouse button pans the canvas over an object as well, and the toolbar shows the current zoom in percent.

Colours, spacing, text weight and line wrapping come from the device style of the HMI device, so a screen looks the way it looks on the panel even where an object sets nothing of its own. Studio recognises the style from the screen itself: a trend, alarm or other control on the screen tells it the style, and otherwise a screen on a dark background is drawn in the dark style. If the project uses another style, pick it under Settings -> Editor -> Screen Editor -> Unified Screen Style (Automatic, Flat Bright, Flat Dark or Extended); the open screen follows at once. A caption longer than its object wraps inside the object and is cut with an ellipsis on the last line that fits; where the style does not wrap, it is cut on one line. The object keeps its size. Text appears in the font each object names; where an object names none, the font from Unified Font Family in the same section is used. A text or a graphic that is bound to a text or graphic list is shown with the entry the list marks as its default, or with its first entry, the same value TIA Portal's own screen editor shows.

Select an item, on the canvas or in the object list on the left, to edit it in the property panel on the right: its Name, Text, position (Left, Top), size (Width, Height) and Visible flag. The panel offers only the fields the selected object can take, and a value TIA Portal does not let you change, such as the screen a screen window opens, is listed read-only below them. Beneath the properties, three sections list the object's Bindings, its Events and its Other Properties; click Reveal in Tag Table on a bound tag to open the tag table that holds it, also for a member of a structure tag. For a control, the bindings and events of its parts, the columns of an alarm control, the curves and axes of a trend control, the elements of its tool bar, are listed under the part they belong to. Click Add Binding to bind a property: you choose the object or the part, the property, what the binding follows (a tag, a script, a flashing or a text or graphic list) and then the tag from the device's tags, or for a script when it runs and, for a script that runs on tags, the tags that trigger it, and type the script in the box that opens below. Click Add Event to give the object an event script, Edit on a row to change a binding or a script, and Remove to take it away. Every change lands on the screen as an unsaved edit until you save. Drag an item on the canvas to move it, and press Delete to remove the selected item.

Drag the edge between the object list and the screen, or the edge between the screen and the property panel, to make either column wider or narrower; Studio keeps the two widths for the next screen you open. Hover an object row to see its full name and type.

Above the object list, the Object Palette lists the shapes, widgets, controls and containers a screen can hold. Click an entry to add the object in the middle of the visible screen, or drag it onto the screen to place it where you drop it; the new object gets the size and the settings TIA Portal gives a new object of that kind, a name of its own, and it is selected. A faceplate container asks which faceplate type it shows: the list holds the faceplate types of the project library, one entry per version, grouped under the type's name and marked as in work or committed and as the default version. Pick the one you want, or choose Type the value and write the type as its version, a backslash and its name; a library without faceplate types asks for that text straight away. Objects your device cannot carry are not offered.

To see what a screen item type offers, right-click its entry in the Object Palette (or press the context menu key on a focused entry) and choose Describe Type..., or run TIA Portal: Describe Unified Screen Item Type... from the Command Palette on the open screen or on a WinCC Unified screen selected in the Project Explorer, and pick the type under Select the screen item type to describe. A faceplate container also asks for its faceplate type, which needs TIA Portal V18 or newer. A read-only tab ... on ..., named after the type and the device, opens with the section Attributes, a table with the columns Attribute, Access, Create Relevance, Supported Types and Default, and the section Compositions. The default values apply to this device, the connected TIA Portal version and the current TIA Portal language only. To read them, TIA Portal creates a scratch object of that type on the screen and removes it again, so nothing remains in the project. TIA Portal can still mark the project as modified afterwards, on any version; the message then says Nothing remains in the project, but TIA Portal marks the project as modified after the discarded change. If TIA Portal does not confirm that the scratch object was removed, a warning names it, the screen and the object counts before and after; delete the object in TIA Portal if it is still there. Describing a type needs a connection to TIA Portal and the Pro plan.

Select several objects with Ctrl+click in the object list or on the screen, or with Shift+click in the object list to take the whole range down to the row you clicked before, then use the row of buttons above the screen: Duplicate, Copy and Paste (also into another open screen of the same device), Align on one of six edges, Distribute horizontally or vertically, and Bring to Front, Bring Forward, Send Backward or Send to Back for the drawing order. Duplicate, Copy and Paste also have the shortcuts Ctrl+D, Ctrl+C and Ctrl+V. Resize Screen to Device gives the screen the size of the device's display after you confirm; the objects keep their position and size. Every one of these lands on the screen as an unsaved edit until you save.

Click Save to TIA to write the screen back; you are asked to confirm first, because saving replaces the entire screen in TIA Portal. Click Pull to reload the screen from TIA (you are asked to confirm if you have unsaved changes). If a screen cannot be loaded or saved, a message with a Show Details link gives more information.

When your changes since the last load touch only events (a script set on an event of the screen or of an object, or an event removed), saving writes just those events and leaves the rest of the screen as it is, and the confirmation says so. This is how you change the events of a screen that holds custom web controls or custom widgets, and the events of those controls themselves (TIA Portal V18 and later): TIA Portal cannot create these controls again, so saving any other change to such a screen is refused, the message names the controls, and the screen stays as it is.

Saving keeps the scripts, events and dynamizations of the screen and of every object on it, the bindings on the parts of a control included, and a script that runs on tags keeps the tags that trigger it. When a part of a control cannot be written completely, or TIA Portal does not keep a binding you added (it accepts no script binding on the visibility of a value axis, for example), the message after saving says so, and Show Details names each affected part and binding.

A range condition whose limits TIA Portal does not hand out (a colour that changes with a Real tag between 0.5 and 1.5, for example) is shown without its limits when the screen loads, and the load message names it. Such a screen opens, but it is not saved, duplicated or imported back from Studio: the message names the affected conditions, and the screen in TIA Portal stays as it is.

When a dynamization was switched from a range condition to another condition type in TIA Portal, the earlier range conditions stay in the project, but TIA Portal no longer shows them. Studio leaves them out when the screen loads, and the load message names them. Saving the screen from Studio writes it without them.

When TIA Portal has something to say about the objects you changed, the message after saving says how many validation messages there are, and Show Details lists each one in the TIA Portal output. Renaming a screen from the project tree reports the count as well. If the screen was renamed or removed in TIA Portal after you opened it, saving reports that the screen was not found.

WinCC Unified screens need TIA Portal V17 or newer. On an older version the message names the version that is required.

Creating and renaming. Right-click the Screens folder or a screen folder of a WinCC Unified device and choose New Screen or New Screen Folder, then enter a name; right-click a screen and choose Rename or Duplicate Screen (you confirm the copy first, then name it, and it gets its own screen number). The new or renamed screen is selected in the project tree, and a renamed screen that is open keeps its tab and its unsaved changes. Tag table folders are created and renamed the same way under HMI Tags. A screen name that the device already uses, in any of its folders, is refused; a folder name already used in the same place is refused as well.

Deleting. Right-click a screen folder of a WinCC Unified device and choose Delete: the confirmation names how many screens the folder contains, and the folder is removed together with them. Text lists and graphic lists of a Unified device can be deleted from the project tree the same way.

A screen of a classic HMI device, such as a Comfort panel, opens in the Classic Screen editor, in a connected project and in a project opened offline. A panel with a style, for example WinCC Dark, draws every object that follows the design of the device in the colours of that style, as TIA Portal shows them, and an object with colours of its own keeps them. When you change a colour of an object that follows the design, the object stops following it and keeps the colours you see plus your change, the same as in TIA Portal. Studio reads the style from the saved project, so a style you changed in TIA Portal shows after you save the project there.

Saving and closing

  • Ctrl+S saves the file or block currently shown in the editor. For files this writes to disk. For text-source TIA Portal blocks (SCL/STL), Ctrl+S asks for confirmation ("Upload '<block>' to TIA Portal?") before uploading the change back to the project and recompiling the PLC. On TIA Portal V20 and newer a graphical block (LAD, FBD, GRAPH) is saved from its source view in exactly the same way; on an older version, and for know-how-protected and safety blocks, the block opens read-only and cannot be uploaded. When compiling the PLC after the upload would change its safety program, the block is uploaded but not compiled, and the message asks you to log in to the safety program and compile again.
  • An item marked as protected with the red lock in the project tree is not written back into the project when you save. The message names it as protected and your changes stay in the tab. For a marked organization block with A on, only its attributes are written back.
  • Closing an editor with unsaved changes shows a confirmation dialog before you lose any edits.
  • Disconnecting from TIA Portal closes any editors that were opened from TIA. If those editors have unsaved changes you are prompted to save (upload), discard, or cancel the disconnect.

Opening blocks and drag & drop

To open a block's source in the editor, double-click it in the project tree, or use Quick Open (the tia prefix) to jump to any block by name.

Drag & drop works between the Project Explorer and the Export Folder view in both directions:

  • Project → Export Folder (export): drag any node(s) (blocks, folders or a whole PLC) onto the Export Folder to export every exportable block underneath.
  • Export Folder → Project (import): drag file or folder rows from the Export Folder onto a PLC (or its Blocks / data-types / tags folder) to import them.

You can also drop external .xml / .scl / .awl / .db / .udt / .s7dcl files straight onto a PLC node (or its category folders) in the tree to import them.

It does not matter where in the PLC you drop the files: blocks, PLC data types and tag tables find their place by themselves. The folders of the export folder decide where they go, and an item that already exists in the project stays in its folder.

To put the files into exactly the folder you drop them on instead, choose Settings > Project Explorer > Drag and Drop > Drop Target > Folder Under the Pointer. Then the files dropped on Program blocks, PLC data types, PLC tags, a folder below them or an item inside one go into that folder; dropping on an item uses the folder that holds it, and that folder is highlighted while you drag. A folder you drag from the Export Folder keeps its subfolders there. A block, data type or tag table of the same name elsewhere in the PLC is replaced by the one in the target folder. A file that does not belong in that kind of folder, for example a data type dropped on a block folder, is not imported, and the message names it. With this setting, software units and Technology objects take no file drop.

Watch and force tables go into the folder you drop them on: drag their .xml files from the Export Folder or from Windows onto Watch and force tables, its Watch Tables folder or a folder below it. Dropping on a table uses the folder that holds it. A watch table whose name another folder of the PLC already uses is not imported, and the message names that folder. Watch and force table files that are part of any other drop are imported into the watch and force tables as well: a watch table that already exists is replaced in the folder that holds it, a new one goes to the top level.

Drag and drop

You can drag items in the project tree onto other items of the tree.

Move blocks, PLC data types and tag tables. Drag a block, a PLC data type or a tag table onto a folder of the same kind in the same PLC to move it there, for example a tag table from PLC tags into a tag table group, or a block into another block group. Folders below Program blocks, PLC data types and PLC tags move the same way with everything inside them, and you can drag several items at once. Dropping on an item uses the folder that holds it. While you drag, the folder that would receive the items is highlighted; where nothing can be dropped, nothing is highlighted.

Before anything moves, Studio asks "Move ... to ...?". The move compiles the PLC and takes a moment; save the project in TIA Portal afterwards to keep the change. Tick Do not ask me again to skip the question in future; you can turn it back on under Settings > Project Explorer > Drag and Drop > Confirm Drag and Drop. When the move is done, a message tells you what was moved. If some items could not be moved, the message names them; if it says an item could not be created again, do not save the project but close it without saving, so the saved version keeps that item.

Some items stay where they are: know-how protected items (remove the protection first), the default tag table, and items inside software units. Items move only within one PLC and only into a folder of their own kind. Fail-safe blocks need the safety program login; if it is missing, the message offers Safety Login.

Create instances from a library. Drag a master copy or a released type version from the Project Library or an open global library onto Program blocks, a block group or PLC data types. Studio creates the instance in that folder, the same as Create Instance in PLC.... A block goes into a block folder and a PLC data type into a PLC data types folder.

Create master copies. Drag one or more blocks onto the Project Library, a global library you can write to, its Master Copies folder or a folder below it. Studio creates a master copy of each block there, the same as Copy to Library.

Technology objects, the PLC itself and the top folders of a PLC cannot be moved.

Changing the number of a block

Right-click an organization block, function block, function or data block and choose Change Block Number.... Studio asks for the new number and names the range the kind of block allows. While you type, it tells you when the block already has that number, when another block uses it (also a block of a software unit) or, for a data block, when a technology object uses it, and the number is not taken in that case. Confirm, and the block gets the new number; its automatic numbering is switched off, so the number stays. The tree shows the new number right away.

When TIA Portal refuses the number, for example because it lies outside the range the CPU allows for that kind of block, the message gives TIA Portal's reason, and the block keeps its old number and its automatic numbering. The entry is not offered on the blocks of a software unit, because TIA Portal always numbers those itself, nor on the blocks of the safety program, which you renumber in TIA Portal after the safety login. A know-how protected block whose automatic numbering is on keeps its number: remove the protection, change the number and protect the block again.

Renaming a block or PLC data type folder

In a TIA Portal V21 project, right-click a folder below Program blocks or PLC data types and choose Rename. Studio checks the name while you type: it must not be empty, longer than 120 characters or contain a slash or a backslash, and no other folder at the same place may carry it. Changing only the letter case is fine. The folder keeps everything in it and its place in the tree, and nothing is exported, imported or compiled for it. The entry is not offered on the Program blocks and PLC data types folders themselves, inside a software unit or with older TIA Portal versions, where the assistant renames such a folder by exporting and importing its content.

Block details

Each block's type and number are shown in the project tree (for example OB1, FB10), and its programming language, as reported by TIA Portal (SCL, STL, LAD, FBD, GRAPH, F_LAD, …), is reflected by the syntax highlighting and the editor's language indicator. Everything else TIA Portal keeps about a block is shown in its properties, see below.

Showing a block in TIA Portal

Right-click a block, also a block of a software unit or a system block, and choose Show in TIA Portal: the block opens in the block editor of the TIA Portal Studio is connected to. A know-how protected block opens read-only. When that TIA Portal runs without its window, Studio says so instead.

Write protection of a block

From TIA Portal V21 on, an organization block, a function block or a function can carry a write protection: TIA Portal then keeps the block from being changed in its editor until the write protection is disabled with its password. Right-click such a block and open the Write Protection submenu:

  • Define... sets the write protection password: enter it in Password and Repeat password and click Define. The block is not locked yet; enable the write protection to lock it.
  • Enable... locks the block: enter the password and click Enable.
  • Disable... unlocks it again: enter the password and click Disable.
  • Change... replaces the password: enter the Current password, then the New password twice, and click Change. Whether the block is locked stays as it was.

Each dialog checks your entries before anything is sent: an empty field or two entries that do not match are asked for again. When a step does not fit the state of the block, the message says what to do, for example that a password is already defined and Change... replaces it, or that Define... comes first. If TIA Portal does not accept the password, Studio tells you. The passwords are neither stored nor shown. Define... and Change... also name a character of the new password that TIA Portal does not accept, such as a tab or a line break, and where it is, while you type.

While a block is write-protected, its row in the project tree shows a blue WP badge next to its name; hover it to read Write-protected in the TIA Portal editor (actual TIA Portal state). Studio reads the write protection of a block when you select the block or open its context menu, not for every row at once, so the badge appears once you have selected the block. When you move through the tree, only the block the selection stops on is read. If the state cannot be read, the badge stays off until the tree is refreshed.

The write protection guards the block in the TIA Portal editor only. Imports from Studio, compiling, deleting and the changes the assistant makes still reach the block, and each dialog reminds you of that. An import that replaces a write-protected block removes its write protection; a warning then names the blocks, so you can define and enable it again where they need it.

Ask the assistant to define, enable, disable or change the write protection of a block, and it shows a confirmation card first; then Studio asks you for the password in the same dialog as the Write Protection submenu. The assistant never sees the password.

As long as a block is write-protected, Studio does not add or remove its know-how protection: the Password Vault leaves such a block unchanged and names it, with the advice to disable the write protection first.

The Write Protection submenu needs a connection to TIA Portal V21 or later and is part of the Pro plan. Data blocks have no write protection.

Properties of a block or data type

Right-click a block of any kind in the project tree, an organization block, function block, function or data block, fail-safe blocks included, or a PLC data type, and choose Properties. A read-only tab opens, titled with the name and (Properties), and lists what TIA Portal keeps about the item:

  • Identity: name, number, type, programming language and namespace.
  • Header (blocks): author, family, header name and version.
  • Dates: created, modified and interface modified; for a block also code modified, parameters modified, structure modified, compiled and downloaded, all in your local time.
  • Memory (blocks): memory layout, load memory and work memory in bytes.
  • State: consistent and know-how protected; for an instance data block the block it is an instance of, for an organization block its OB type, and for a data type whether it is fail-safe.
  • Title and comment: one row per project language.

Click Refresh to read the item from TIA Portal again. Properties need a connection to TIA Portal V17 or newer. Some fields come only with newer versions: the title, the comment, the memory sizes and the download date from TIA Portal V21, the namespace from V18. On an older version such a field says that it is not available on that TIA Portal version instead of staying empty. A date the item does not carry and a language without text are marked as such too. For a function block the state also shows how many supervisions it carries; where the TIA Portal version cannot report them, the field says so.

Properties of the project

Right-click the project node at the top of the project tree and choose Properties, or run Project Properties from the Command Palette. A tab opens, titled with the project name and (Properties):

  • General: name, path, author, copyright, family and version.
  • State: created, last modified, last modified by, size, unsaved changes and whether it is the primary project.
  • Compilation: the simulation support and the virtual PLC support during block compilation. A field your TIA Portal version does not deliver says that it is not available on that version.
  • Comment: one text field per active project language, each with its own Write Comment to TIA Portal button, which is enabled once you change that text. A language that still holds a comment but is no longer active is shown read-only and marked (not active).
  • Used products: the products the project uses, with their version.
  • History: a collapsed section; when you expand it, the entries are read from TIA Portal, each with its date and text.

After Write Comment to TIA Portal the message tells you that the comment was written and that you need to save the project to keep it, or that the comment already had this text. If the language is no longer active in the project, nothing is written and the message names the active project languages. Refresh reads the project from TIA Portal again.

Project languages

Right-click the project node and choose Project Languages, or run Project Languages from the Command Palette. A tab, titled with the project name and (Project Languages), shows the editing language and the reference language, then the Change section and a table with one row per language: the active languages first, then every other language the project can activate, with the columns Active, Editing and Reference. Inactive languages are dimmed.

In the Active column you switch a language on or off with its checkbox. In the Change section you pick one of the languages marked active under New editing language and New reference language; picking a language there that is not active yet activates it as well. You can also check a language in the Active column and pick it as the new editing and the new reference language at the same time: one Apply writes all three changes. If you switch off the current editing or reference language without picking another one, the pick shows that TIA Portal passes this role on. Reset discards the changes you made in the tab.

Apply is enabled once something changed and asks Change the project languages in TIA Portal? with one line per change, such as Activate: ..., Deactivate: ... or Editing language: ... becomes ..., and the note The change is kept only after the project is saved. Texts in a deactivated language stay in the project but are no longer edited or exported. After the write the tab reads the languages again, and the message names what was activated, what was deactivated and what already was as requested. If you deactivated the editing or the reference language, TIA Portal gives that role to the first remaining active language and the message says so, for example TIA Portal moved the editing language to de-DE. It ends with Save the project to keep it.

A project keeps at least one active language: the last active language cannot be deactivated, and a change that would do so writes nothing and names the active languages. A language TIA Portal does not offer as a project language is refused as well, and nothing is written. If TIA Portal refuses part of a change after another part was already written, the message says TIA Portal applied only part of the language change., names the two parts with Applied: ... and Not applied: ... and every change after it., names the languages the tab now shows as well with The project now has the active languages ..., the editing language ... and the reference language ..., and ends with Save the project to keep the applied part.

Attributes of an object

Right-click the project node, a block of any kind, a PLC data type, a tag table, a device, a rack or a module and choose Attributes. A tab opens, titled with the name and (Attributes), and lists every attribute TIA Portal keeps for the object, in the order TIA Portal gives them, with the columns Name, Value, Kind and Access. A text per language shows each language with its text, a secret value is not read, and a value that cannot be read is dimmed, with the reason below it.

Where you can change an attribute, its row has an Edit button: the value turns into a choice of True and False or into an input field, and a number is checked before anything is sent. Click Apply or press Enter to write the value, click Cancel or press Escape to keep the current one. One attribute is written at a time, and the message tells you that it was written, that it already had this value, or that TIA Portal did not write it and why. The name of an object is not changed here; the Name row shows the hint The name is not changed in this panel. Rename the object in TIA Portal, then refresh the Project Explorer.

Some fields in the header of a block can be written only from TIA Portal V21. On an older version nothing is written, and the message names the field and the version, for example HeaderAuthor can be written with TIA Portal V21 and later. A fail-safe block, a fail-safe PLC data type and a tag table holding safety tags show no Edit button but the hint This object belongs to the safety program, so Studio does not change its attributes. Change them in TIA Portal after the safety login., for the tag table This tag table holds safety tags, so Studio does not change its attributes. Change them in TIA Portal after the safety login. Reading these objects stays possible. For a tag table, Studio shows the attributes first and then checks the tags of the table: until that check is done no Edit button is shown, and the hint appears as soon as a safety tag is found. If Studio cannot read whether the table holds safety tags, no Edit button is shown either, and the hint says Studio could not read whether this tag table holds fail-safe tags, so its attributes cannot be changed here. Open the attributes again to retry.

Below the table, the collapsed section Invocations lists the actions TIA Portal offers on the object, with their parameters and return value, as soon as you expand it. Actions that require a password are not listed; a note says how many there are.

A tab belongs to the project it was opened on. When that project is not the project of the active TIA Portal connection, the tab reads nothing and says This tab belongs to the project ..., which is not the project of the active TIA Portal connection. Open that project and refresh, or close this tab. When another connected TIA Portal instance has the project open, the tab says This tab belongs to the project ..., which is open in another TIA Portal instance, not in the active TIA Portal connection. Switch to that instance to read it here, or close this tab. and offers the button Switch to That Instance: it makes that instance the active connection and reads the tab again. If the switch fails, the message points to the project switcher. When the project becomes active another way, for example through the project switcher, the tab reads it by itself. After the active connection changed while a Properties, Project Languages or Attributes tab is open, the hint under the tab's banner says that Refresh reads the project of this tab when the active TIA Portal connection has it open, and otherwise names the instance that has it. The attributes of devices, racks and modules are part of the hardware features of the Pro plan; on a plan without them the entry is not offered on those nodes, and a restored tab of a device says that the attributes of a device or a module need a feature that is not included in the current plan.

Properties, Project Languages and Attributes of the project need a connection to TIA Portal V17 or newer and are not offered in a project opened offline.

Export and import project texts

To have the texts of a project translated, right-click the project node and choose Export Project Texts...; the entry is also on a PLC, a device, a rack and a module, and in the Command Palette. The pick Export Project Texts: Target Languages names the source language and lists every other active project language; check the languages to translate into. The source language itself is not offered. If the project has no active language besides the source language, activate a target language in Project languages first. Then enter the name of the Excel workbook in the save dialog Export Project Texts To, which opens in the folder that holds the project folder. The suggested name is the project name without the extension of its project file, followed by _Texts.xlsx.

TIA Portal exports every text category; there is no pick of categories. Up to TIA Portal V20, TIA Portal writes one workbook per target language, and the command exports the texts of the whole project even when started on a PLC or a device. If you check several target languages there, you choose the folder first instead of the save dialog (Export Project Texts To, button Export Here, opening in the folder that holds the project folder) and then enter the name under Export Project Texts: Workbook Name. Below it, Studio names the files it writes into the folder, updated as you type, one workbook per language with the language code in its name, and says that existing workbooks are replaced only after you confirm. With TIA Portal V21, started on a PLC, a device, a rack or a module, the command exports only the texts of that object (Export the Texts of ... To).

If the workbook you name in the save dialog already exists, the save dialog asks whether to replace it, and that answer counts: Studio does not ask a second time. When TIA Portal writes several workbooks into a folder and one of them already exists, Studio asks Replace the existing workbooks? and lists the files; without Replace nothing is overwritten. Progress shows in the status bar, and the export can be cancelled between two workbooks; the message then names the files written so far, or says The export of the project texts was cancelled. Workbooks TIA Portal finished before the cancel stay in the folder. If a workbook of the export is open in another program, it is not written, and the message says The workbook ... is open in another program, so it was not written. Close it there and export again. and names the workbooks written before it. A workbook that is read-only, or that you have no access to, gets The workbook ... cannot be written, because it is read-only or access to it is denied. Choose another folder or file name and export again. When an export that was to replace a workbook fails and the old workbook cannot be put back, the message names the file it is now, in the same folder: The workbook ... was not written, and the workbook it was to replace could not be put back: it is now the file .... Rename it to ... to keep it. If Studio lost the connection to TIA Portal during such an export, the message adds If a workbook it was to replace is missing now, it is kept in the same folder as a file whose name starts with ~ and ends with .replaced. At the end the message names every workbook with its target languages, and its folder opens in Windows Explorer.

Once the translation is done, right-click the project node, choose Import Project Texts... and then the workbook in the file dialog, which opens in the folder that holds the project folder. The confirmation Import the project texts into the open project? warns that an empty target cell of the workbook clears the translation the project has in that language, and offers the unchecked checkbox Also overwrite the texts of the reference language with the source column of the workbook. After Import the message says whether TIA Portal imported the texts cleanly, with warnings or with errors, gives the number of errors and warnings and how many target cells of the workbook were empty, and ends with Save the project to keep it. Show Details shows the messages of TIA Portal and where its full log is. A workbook exported from another project is refused, and the message names the open project and, where the workbook tells it, the project it was exported from: export the texts of the open project and translate that workbook instead. This also applies to a workbook exported before Save Project As..., because the project then carries its new name: export the texts again after the save. If the workbook is still open in another program, for example in Excel, nothing is imported and the message says The workbook is open in another program. Close it there and import again. A workbook that is only read-only is imported. A workbook that cannot be read is refused with The workbook ... cannot be read, for example because access to it is denied, so nothing was imported. Check the file or choose another one.

Both commands need a connection to TIA Portal and are not offered in a project opened offline. Saving the project under a new name and archiving it are described in Project management.

Project graphics

The pictures that HMI screens show come from the project graphics of the project. Right-click the project in the Project Explorer and choose Project Graphics; the entry Project Graphics is also in the Command Palette. The tab lists every graphic with a preview of its default picture, its Language Variants (Default plus one entry per project language that has its own picture), its Format and its Size. Refresh reads the list again. If a graphic shows no preview, hold the pointer over the empty preview to see why, for example because the picture is too large for a preview.

Export All to Folder... writes every graphic, Export Selected to Folder... the graphics you checked. Each graphic becomes an XML file with a folder of the same name followed by " files", which holds one picture per language variant. If the folder already holds an export of the same graphic, Studio asks before it replaces it.

Import... takes one or more exported XML files; each file brings one graphic with all its language variants. Check Replace graphics of the same name that the project already holds to overwrite graphics that exist already; otherwise those files are listed in the message and left out. Delete Selected... removes the checked graphics after a confirmation. Screens that show a deleted graphic lose the picture. Imports and deletions are kept only after you save the project.

The same actions are in the Command Palette as Export Project Graphics to Folder..., Import Project Graphics... and Delete Project Graphics.... You can also ask the AI assistant to list, export, import or delete project graphics; it asks you before it writes a folder, imports or deletes. Project graphics are available from TIA Portal V15.

Data block snapshot

TIA Portal can keep a snapshot of the actual values of a data block. Right-click a global, instance or array data block and choose Export Snapshot to see it: a read-only tab, titled with the block name and (Snapshot), shows when the snapshot was taken, when the structure of the block last changed, how many values it holds, and a table with the path, type and value of each one. If the data block carries no snapshot, the table stays empty and the tab tells you to take a snapshot of the actual values in TIA Portal first.

Click Save XML to write the snapshot as an XML file named after the block into the export folder of the PLC, the same folder Export Selected writes to; the file is shown in Windows Explorer and the tab confirms where it was saved. Refresh reads the snapshot again. The snapshot is for viewing and keeping, it is not imported back into the project. TIA Portal decides which data blocks it hands a snapshot out for: it refuses a fail-safe or know-how protected data block, and the tab says so.

Data block values on the CPU

From TIA Portal V21 on, the context menu of a data block offers three more entries that work with the actual values on the CPU. They need the CPU to be online in TIA Portal: choose Go Online in TIA Portal... on the CPU first (see Going online in TIA Portal). Each of the three entries checks the connection first: when the CPU is not online in TIA Portal, Studio only tells you that the data block is not online in TIA Portal and names that command, without asking anything else, such as whether to replace a snapshot.

  • Create Snapshot takes a snapshot of the actual values into the project. If the data block already has a stored snapshot, Studio first asks Replace the snapshot of <DB>?, names the date of the stored one and reminds you that Load Snapshot as Actual Values... then writes the new values to the CPU; confirm with Replace Snapshot. Studio asks the same when it cannot tell whether a snapshot is stored. The first snapshot of a data block is taken without a question. If TIA Portal does not take the snapshot, for example because the data block on the CPU differs from the one in the project, Studio says so and names the stored snapshot, which stays unchanged; compile and download the data block, or upload it from the CPU, and try again. If TIA Portal took the snapshot but Studio could not read it back, the message says A snapshot of the actual values of ... was taken, but Studio could not read it back. It is stored in the project; save the project to keep it. Save the project to keep a new snapshot; Export Snapshot above shows it. The dates of snapshots in these messages are shown in your local time.
  • Load Snapshot as Actual Values... writes the values of the stored snapshot to the running CPU. A warning asks first: the actual values are overwritten at once, which changes the running process and cannot be undone. Confirm with Load Snapshot.
  • Load Start Values as Actual Values... writes the start values of the data block to the running CPU. The warning names the stored snapshot as the way back; confirm with Load Start Values.

The value actions work on global and instance data blocks. They are part of online commissioning and are included from the Pro+ plan.

System data types

At the end of the PLC data types folder of every PLC, below the user folders, sits a greyed folder System data types, as in TIA Portal. It holds the data types TIA Portal keeps for the PLC itself, grouped the way TIA Portal groups them. Like the Hardware, it is not read when a project connects: click the small icon next to it, the arrow pointing down in a circle, or expand the folder, and its groups and types are read once while a spinner runs. If they cannot be read, the folder keeps its icon and a message names the reason. The types are read-only: they carry no checkboxes, cannot be exported, deleted, renamed or moved, and a file dropped on them is not imported. Right-click a type and choose Properties to see its details. A Refresh of the tree keeps the types already read. In a project opened offline the folder is filled right away; double-click a type to see its properties and its members.

System blocks

At the end of the Program blocks folder of every PLC sits the folder System blocks, as in TIA Portal. It holds the blocks TIA Portal adds for the PLC itself, for example the blocks of technology objects and of the safety program, grouped the way TIA Portal groups them; the groups of a software unit or of the safety unit name their unit. The folder is read when you open it, and a CPU without system blocks shows it empty.

System blocks are read-only: Properties, Show in TIA Portal, Copy Name and Copy Path stay, and nothing that would change, export, compile, open in an editor, download or upload a system block is offered.

Software units

Right-click a software unit in the project tree for these entries:

  • Rename...: enter the new name; Studio checks it while you type, and a change of the letter case alone is fine. TIA Portal moves the relations of other units to the new name itself, and the message names those units. The safety unit cannot be renamed.
  • Edit Relations...: lists the relations of the unit, what it may use from another software unit, from a data block outside every unit or from a technology object, and marks a relation whose target does not exist in the PLC. Add Relation... asks for the kind and offers the targets of the PLC, or takes a name you type; Change Relation Target... points a relation to another target; Remove Relations... removes the relations you tick after a confirmation. A relation that already exists for the same name is refused before anything changes. When two units would use each other, the relation is set and a warning says that the compile refuses such a cycle. The relations of the safety unit are shown read-only.

  • Edit Properties...: pick the fields you want to change, the namespace preset (from TIA Portal V18), the author and the comment in each project language, then enter one value after the other; an empty value clears the field. The message names the fields that were changed and the ones TIA Portal left as they were, with the reason. A new namespace preset applies to blocks created from then on; existing blocks keep their namespace.
  • Delete Software Unit: a confirmation names the unit and how many blocks, PLC data types and tag tables are deleted with it, as far as they are known, and says that this cannot be undone. A safety unit cannot be deleted, because TIA Portal offers no way to do it; Studio tells you so right away.

Right-click the Software units folder and choose New Software Unit... to create an empty unit: enter its name, which Studio checks while you type (it must not be empty, start or end with a space or already exist, letter case aside). The new unit is selected in the tree, and the message offers Edit Properties for its namespace preset, author and comment. Software units need TIA Portal V16 or later.

Right-click the Software units folder and choose New Software Unit from Master Copy... to create a unit from a master copy of the project library: pick the master copy and, on TIA Portal V20 or newer, what happens when a unit with the same name exists, stop, rename the copy or replace the existing unit. The new unit is selected in the tree, and the message names the new name if TIA Portal gave it one. This entry needs the Pro plan.

Blocks of the same name

From TIA Portal V18 on, software units can hold several blocks of one name in different namespaces, next to one block of that name outside every unit. The Project Explorer shows the namespace beside such a block, and every command on it, from opening, editing and saving to renaming, deleting, exporting and protecting, acts on exactly the block you clicked. Each of these blocks opens in a tab of its own. The delete confirmation and the rows of Project Search name the namespace too.

Studio does not save a block when the save would change another block of the same name: when the text names another namespace than the block of its tab, when a tab you opened earlier now matches several blocks of its name, or when the Project Explorer does not show the block of the tab at the moment. The message says why; open the block from the Project Explorer and save it there.

An export writes such a block as <name>@<namespace>, for example FB_Motor@Drives.xml, so blocks of the same name keep their own files, and an import puts each file back onto its own block. When you ask the AI assistant for a block by a name that several blocks carry, it lists them with their software unit and namespace and asks which one you mean.

PLC data types of one software unit can share a name in the same way. The Project Explorer shows the namespace beside such a data type, an export writes each one as <name>@<namespace>, for example UDT_Motor@Drives.xml, and Project Search and the Compare Editor list each data type on its own.

In a project you opened without TIA Portal, a block with a namespace appears with the namespace in front of its name, for example Drives.FB_Motor, and the block of that name outside every unit opens as usual. The AI assistant reads the block outside every unit there; for a block of a namespace, attach the project in TIA Portal.

The errors of a compile appear in the tab of the block they belong to, also when other blocks carry its name. When an import removes the write protection of such a block, only that block shows the write protection as removed. Live values of such a block show the values of its instance only: its temporary values and the lines the program reaches are not shown, and a message says so. The online compare marks each block on its own, and the protection marks you save in a profile come back on exactly the blocks you marked.

Named value types

From TIA Portal V20 on, a software unit can hold named value types: lists of names with their values that the blocks of the unit use like a data type. They appear in the PLC data types folder of the unit and its subfolders, with the data type icon and without the file extension.

Double-click a named value type to open its text in an editor. Change it and save: Studio imports it in place, replacing the named value type of the same name, and compiles the PLC, so a mistake in the text shows up as a compile error and names the blocks that use it. Two units with a named value type of the same name each open and save their own.

Tick a named value type for Export Selected, or use Export All: it is written as a .nvt file next to the data types of its unit. Import Files, dragging a .nvt file onto the tree and Import Selected in the Export Folder view put it back into the software unit and folder its place in the export folder names; a file outside the export folder of a software unit is refused with the reason, because TIA Portal keeps named value types only in software units. Import All imports the named value types of the export folder before the program; an export folder that holds only named value types is imported into the software units, and the program of the PLC stays as it is. From TIA Portal V21, Library > Copy to Library makes a Master Copy of a named value type in the project library. TIA Portal offers no delete and no rename for a named value type, so the context menu offers only Copy Name, Copy Path, Export and, from V21, Copy to Library.

Loadable files

Right-click a software unit, or the Program blocks folder of a PLC for the blocks outside every unit, and choose Generate Loadable File.... On the folder, pick the blocks first. Then choose whether the file is for a Real PLC or for PLCSIM, and where to save it. Studio writes the compiled program into the file, creates a missing folder and names the file in its message with Open Folder. The program itself is not changed and nothing is loaded into a CPU.

The file needs a compiled PLC: when the selection is not compiled, the message names it and offers Compile. Blocks of the safety program, a unit with PLC data types and a CPU without this service are refused with the reason before a file is written, and an existing file is not replaced. On a CPU that TIA Portal reports as not supporting loadable files, the context menu does not offer Generate Loadable File... at all. Loadable files need TIA Portal V18 or later and the Pro+ plan.

External source files

Every PLC and every software unit of a connected project shows the folder External source files at the end of its branches. Expand it to read its folders and sources. Right-click it or one of its folders:

  • New Folder... creates a folder below the selected one; Studio checks the name while you type.
  • Rename... renames a source folder in place, from TIA Portal V21.
  • Delete Folder deletes the folder with every source and folder in it after a confirmation. The source files on disk stay.

Right-click a source for Generate Blocks, which creates the blocks and PLC data types it defines after a confirmation, and Delete Source, which removes the source from the project; the file on disk stays. Copy to Library copies a source, a source folder or a block folder into the master copies of the project library (see Library Management). The text of a stored source cannot be read from a project attached in TIA Portal; clicking a source says so. In a project opened offline the text is shown, see below.

Source with dependencies

Right-click a block or a PLC data type and choose Export Source with Dependencies to write its source together with everything it uses, the blocks it calls and the data types it uses, as one file into the export folder of the PLC, the dependencies first. To read the same text without writing a file, open the block or data type in the editor and choose Show Source with Dependencies: a read-only tab opens. Both are described in Import / Export.

ProDiag

A function block written in ProDiag offers Export ProDiag Alarms (CSV) and Export Supervisions (Excel), and a PLC offers Export Supervisions (Excel), for the supervisions of all its blocks, and Export Supervision Settings. The files go into the ProDiag subfolder of the export folder of the PLC; see Import / Export.

The entries for software units, the source with dependencies and ProDiag need a connection to TIA Portal and are not offered in a project opened offline.

Watch and force tables

Under Watch and force tables the Project Explorer shows the folders of the watch tables of a PLC, with the tables inside each folder. Right-click to manage them:

  • New Watch Table... and New Folder..., on the Watch and force tables folder, on its Watch Tables folder and on every folder below it: enter a name. The next free name is suggested, and a name that already exists in the folder, an empty name or a name with a slash is refused while you type. The name of a watch table counts for the whole PLC, not only for the folder: if a table in another folder already has the name, it is refused, and the message names that folder. If TIA Portal still gives the new table another name, the message names both. The new table or folder is selected in the tree.
  • Rename..., on a watch table: enter the new name, and the renamed table is selected. As when creating, a name that a watch table in any folder of the PLC already has is refused, and the message names that folder. Renaming needs TIA Portal V21 or newer and is not offered on an older version.
  • Delete Watch Table, on a watch table: after a confirmation the table is deleted together with a web server access rule that names it, and the message says whether such a rule was removed.
  • Delete Folder, on a folder: after a confirmation the folder is deleted. A folder that still holds tables or folders asks a second time and names how many watch tables and folders are deleted with it, each table with its web server access rule. This cannot be undone.
  • Show Entries, on a watch table and on the force table: a read-only tab titled with the table name and (Entries) lists the rows in table order in the columns Kind, Name, Address, Display Format, Monitor Trigger, Modify Trigger, Modify Value and Modify, and in the force table also Force Value and Force. A comment row is shown dimmed and without its text. A table that is not compiled lists no rows and shows a hint to compile the PLC first. Refresh reads the table again.

The force table of a PLC cannot be deleted or renamed, so it offers only Show Entries. To write entries into a watch table, import a watch table file through the Watch/Force chip in Import / Export: for each entry such a file carries the address, the name, the display format, the two triggers, the modify value and a comment. These menu entries need a connection to TIA Portal. In a project opened offline only Show Entries is offered, and it reads the rows from the project file.

Compiling an object

Right-click a block, a PLC data type, the Program blocks or PLC data types folder or one of their folders, a technology object or its folder, a device, or a rack or module in the hardware tree, and choose Compile. A block, a PLC data type, a technology object or one of these folders compiles the whole PLC that contains it, together with everything it depends on. The message names the object and the PLC and counts the errors and warnings of the whole PLC, and the Problems panel shows the markers of that PLC afresh, on the blocks they concern, as after compiling the PLC itself. A device, a rack or a module compiles only that device or module, not what it depends on: its errors and warnings appear in the TIA Portal output, and the message names the device and the module. A device without its own PLC or HMI software, for example a coupler or a distributed I/O station without a CPU, cannot be compiled on its own, neither can its racks and modules: the message asks you to compile the station of the PLC or HMI device that uses it instead. A drive configured in TIA with its own drive settings, together with its drive unit and its other modules, usually cannot be compiled from Studio either: the message then says that TIA Portal offers no compile for it. A drive added through a device description (GSD) file is handled like a coupler. When the compile would change the safety program of the PLC, also for a standard block or folder, it needs a login to the safety program, and the message offers Safety Login; a fail-safe device needs that login too. The same applies when a whole PLC is compiled, for example after an upload: when the compile would change its safety program, the message offers Safety Login, and you compile again after the login. While the PLC is online the compile is refused, and the message asks you to go offline first. Folders inside a software unit offer no Compile. The entry needs a connection to TIA Portal.

Comparing PLC software

Right-click a PLC and choose Compare Software With..., then pick another PLC of the project or the project library. TIA Portal compares the software offline in the open project, and the Software Comparison editor shows the result as a tree: every object with its state, such as identical, different or present on one side only, and the side that holds it. Nothing in the project changes.

Updating the PLC program

Right-click a PLC and choose Update PLC Program... to bring the instructions used in its program to the latest versions the CPU supports. A confirmation says that blocks change, that the PLC needs a compile and a download afterwards, and that the update cannot be undone except by closing the project without saving. Afterwards the message names how many blocks were changed or need a compile and how many of them belong to the safety program, whose signature can change with the compile. Compile compiles the PLC that was updated, whatever is selected in the tree. Update PLC Program... needs TIA Portal V18 or later.

Finding where a block is used

When a block's SCL source is open in the code editor, you can see everywhere a block, function block or data block is used across the whole project. Place the cursor on the name, then press Shift+F12, or right-click it and choose Go to References.

A list opens directly over the code showing every place that name is used in the project: the blocks that call it, and the places it is read or written. Each entry shows the block it appears in and a preview of the matching line. Click an entry to jump straight to that block and line; double-click it to open the block in its own editor tab. Uses in LAD, FBD and other graphical blocks are listed as well; when such a block is open in an editor, its entry leads to the line of its network.

To see every use of a block grouped by kind of access, right-click the block in the Project Explorer and choose Find References, or select it and press Shift+F12. The TIA References view lists each location on its own line and opens it at the network, at the data block member or at the tag, see Find in Project.

This is handy for tracing where a function block is instanced, finding every caller of a function before you change its interface, or checking which blocks still reference a data block you want to delete.

Names that contain hyphens (such as a quoted instance name like "idb_Agitator-1") are now treated as a single word. A double-click selects the whole name in one step, so you can copy it or run Go to References on it without having to drag across the hyphen by hand.

Inline Chat (Ctrl+I)

The Inline Chat lets you ask the AI questions or request code changes directly in the code editor, without switching to the AI Chat sidebar.

How to use:

  1. Open a block in the editor from the Project Explorer (or use an empty editor)
  2. Optionally select the code you want to modify or ask about
  3. Press Ctrl+I: a small chat input appears at the top of the editor
  4. Type your question or instruction (e.g., "add error handling", "what does this section do?")
  5. Press Enter to send

Handling AI responses:

  • The AI streams its response directly in the inline chat widget
  • If the AI proposes a code change, Accept/Reject buttons appear:
    • Press Tab or click Accept to apply the change
    • Press Escape or click Reject to discard it
  • Press Escape at any time to close the inline chat

Tip: The inline chat works even without a block loaded, useful for asking general SCL questions.

Search the project tree

To quickly find something in the Project Explorer, click the filter icon (funnel) at the top of the view, or press Ctrl+Alt+F (or F3). A search box appears. Type part of a name: the tree narrows to just the matching blocks, folders, tags and hardware together with their parent folder, and a counter shows how many matches were found.

The search covers the whole project, including collapsed folders. Click the filter icon again (or press Esc) to close the search and restore the tree's previous state.

In the search box you can switch between Filter (show only matches, the default) and Highlight (mark matches, keep the rest visible, with the down and up arrow buttons to step between them), and between fuzzy and contiguous matching.

This searches the project tree you are looking at. To jump straight to a block by name without opening the tree, use Quick Open instead:

Finding blocks by name (Quick Open)

To jump to any block, data type or tag by name, open Quick Open and type the tia prefix followed by part of the name. The list filters as you type:

  • Fuzzy match: fbmtr finds FB_Motor by matching the characters in order. The matching characters are highlighted in each result.
  • Case-insensitive: MOTOR and motor behave identically.

Each entry shows the item's kind (FB, FC, DB, OB, UDT, Tags …) and its path. Press Enter to open the block and reveal it in the project tree.

Alarms, text lists and source files offline

A project you open offline shows three more branches under each PLC. They are read-only, and a branch only appears when the project has something for it.

  • PLC alarms holds Program alarms and System alarms. Double-click one to see its table: name, block and whether it is a type or an instance alarm (program alarms), alarm ID, alarm class, alarm text and info text.
  • PLC text lists holds your text lists, and the lists TIA creates in System text lists. Double-click a list to see its ranges and texts.
  • External source files holds the source files stored in the project, in their folders. Double-click a file to read it in the editor.

The program alarms table also shows the priority, the acknowledgement, whether an alarm is info only, the display class, the group and the associated values of each alarm.

A project opened offline also shows:

  • System blocks at the end of Program blocks, with STEP 7 Safety and Program resources as in TIA. Double-click a system block to read it; it cannot be changed or exported.
  • OB events under each PLC: one row per event with its organization block, event class, priority, events to be queued, report events and time error threshold, and for cyclic interrupts the cycle time and the phase shift.
  • Alarm classes under Common data of the project: name, display name, acknowledgement, priority and whether it is a system class.
  • The title and the block comment of every code block, PLC data type and instance data block and the title and comment of every network, in the editor and in an export, and in tag tables the comment of every tag and the value of every constant.
  • The stored snapshot of a data block: right-click the data block and choose Export Snapshot to see its values. The entry appears for data blocks that have a snapshot.

The header of a table names the language of the texts. The assistant can read all of this, with the texts in every project language.

Classic HMI devices offline

A classic HMI device of a project opened offline shows its configuration, read-only:

  • The tag tables under HMI Tags, the connections under Connections and the cycles under Cycles open as tables. System tags lists the tags the device brings along.
  • HMI alarms holds Discrete alarms, Analog alarms, System events, Alarm classes, Alarm groups and Alarm text blocks. The alarm settings sit under Runtime settings.
  • The scripts under VB Scripts open in the editor with their full code. A know-how protected script shows only its name.
  • Recipes holds the recipes with their elements and data records.
  • Historical data holds the data logs, logging tags, alarm logs, the audit trail and the logging settings.
  • Scheduled tasks lists every task with its trigger, date, time and functions.

The assistant reads all of it as well, so you can ask it what a script does or which tags a recipe writes.

WinCC Unified devices offline

A WinCC Unified device of a project opened offline shows the same branches as in a connected project, read-only: Runtime Settings, Screens with their screen folders, HMI Tags with the tag table folders and System tags, Connections, HMI Alarms, Alarm classes, Historical Data, Scripts, Cycles and Text and Graphic Lists, followed by Styles, Audit classes and Scheduled tasks. A branch only appears when the device has something for it.

  • Double-click a screen to see it in the screen view with its objects, their properties, the tag and script dynamizations and the events with their scripts. A banner says that the screen is read from the project file; it cannot be changed, and Reveal in Tag Table opens the tag table of the project opened offline.
  • The tag tables, connections and cycles, the text lists, system text lists and graphic lists open as tables.
  • HMI Alarms holds Discrete alarms and Analog alarms, Alarm classes lists the alarm classes with their state machine and colors, and Runtime Settings shows the start screen, the style and the texts of the alarm states.
  • Historical Data holds the Data logs, Alarm logs, Audit trails and Logging tags.
  • The global script modules under Scripts open in the editor with the code of all their functions.

The assistant reads the screens with their objects, events and scripts and all these tables as well, so you can ask it which tag a button writes or what a script does.

Project library types offline

Under Project Library > Types of a project opened offline every type shows its versions below it, each with its state, In work or Committed, and the default version marked. Double-click a type to see its properties and its versions. Double-click a version to see what it holds:

  • a block or PLC data type version its interface, an HMI data type its members,
  • a text list or graphic list its entries, a graphic its picture,
  • a script module its global definition area and its functions with their code,
  • a faceplate the faceplate in the screen view, a WinCC Unified faceplate in the Unified screen view, read-only.

Every version also lists its version, state, author, comment and, for a committed version, the date. The assistant reads the library types and versions as well.

Safety, users, networks and traces offline

A project you open offline also shows its configuration areas, read-only. A branch only appears when the project has something for it.

  • Safety administration under a PLC with a safety program: General with the collective F-signature and its parts, F-runtime groups with their F-OB, main safety block, cycle times and signature, Access protection, Settings and F-parameters with the F-source and F-destination addresses.
  • Security settings under the project: the project Users, their Roles, the Role assignments and the Function rights of each role.
  • User administration under a classic HMI device: its Users, User groups and Authorizations. The password rules and the logoff settings sit under Runtime settings.
  • Networks under the project: Subnets, IO systems, Domains and the Addresses of every interface with IP address, subnet mask, router, PROFINET device name and device number, and the PROFIBUS or MPI address.
  • System diagnostic settings under Common data and System diagnostics under each PLC.
  • Traces under each PLC: double-click a trace to see its recording and trigger settings and its signals. Measurements lists the measurements stored in the project with their times and signals.

No password, password hash or other secret is shown, and the comments of users, roles and groups are left out, because projects sometimes keep passwords there. Access protection only tells you whether a password is set. The assistant reads all of this as well, so you can ask it which F-runtime groups a PLC has or which IP address a device uses.

Communication, drives, ProDiag and reports offline

A project you open offline also shows these areas, read-only. A branch only appears when the project has something for it.

  • OPC UA communication under each PLC, after Traces: OPC UA server with its port, the server addresses of the PLC's interfaces, the session and subscription limits and the security policies, and Server interfaces. Double-click an interface to see its nodes with node class, data type, access and the PLC tag each node is mapped to. With Pro+ the table also shows the description and the type definition of each node, in Value Source whether its value comes from a PLC tag or is a constant, the constant value itself, and for a variable its Engineering Units, EU Range, Instrument Range, Value Precision, State Texts and Enum Strings. An analog value Temperature shows, for example, °C (degree Celsius, CEL) as its unit and 0 .. 120 as its EU range; a range that is read from a PLC tag shows that tag instead. Display names and descriptions appear in the editing language of the project. A reference namespace shows the texts of an enumeration type on the row of the type. If an interface has more than 30000 nodes, the first 30000 are shown and the field Node list shortened says so.
  • Connections under each PLC lists its S7 connections with their partner and local ID, Web applications and User-defined web pages the pages of its web server.
  • Drive objects under a SINAMICS drive in Hardware, followed by Parameters with one entry per drive object: double-click it to see the stored parameter values, bit field parameters as one row with their whole value. Parameter texts and units are not part of a project and are not shown. BICO interconnections, Configuration data and Acceptance tests follow when the drive stores them.
  • Supervision categories, Supervision subcategories, Types of supervision and Supervision alarm texts under Common data, and Supervisions in PLC alarms of each PLC (directly under the PLC when it has no PLC alarms) with every ProDiag supervision of its blocks, PLC data types and tags. Tags and text lists inserted into a specific text show as placeholders, for example [SD_4: FloatingPoint] for a tag with its display format or [SD_5: TextListStatus] for a text list.
  • SiVArc rule tables under Common data, and SiVArc with the generation settings of each HMI device.
  • Reporting under a WinCC Unified device with its report Jobs, Templates and Targets, and Storage media with their paths and free space limits.
  • The device groups of the project in Hardware, with each device inside its group, and Ungrouped devices when the project has any.

Certificates, users, passwords and protected drive parameters are not shown, and neither are the recipients and mail server settings of an e-mail report target. The assistant reads all of these tables as well, so you can ask it which port the OPC UA server uses, which unit and range an OPC UA variable has, which value a drive parameter has or which operands of a block are supervised.