Hardware
On this page
Hardware in your TIA Portal project is available on three levels: the Project Explorer tree shows the devices, the Hardware editor lets you edit network settings and card start addresses and write them back into the project, and AML (AutomationML) export/import exchanges the complete hardware configuration.
Devices in the Project Explorer
Open the TIA Portal container from the Activity Bar (the icon strip on the far left) and connect to a project. The Project Explorer in the Side Bar shows a Hardware node that lists the devices in the project:
Hardware
└── PLCs (1)
└── PLC_1 (PLC) [192.168.0.5]
└── … modules, interface, ports
Devices are grouped by category: one folder per type such as PLCs, HMIs or Distributed I/O, each with its count in parentheses. Each device appears as its name, followed by the device type in parentheses and the IP address in square brackets (for example PLC_1 (PLC) [192.168.0.5]), and expands to its modules, PROFINET interface, and ports. To change PROFINET names, IP addresses, or card start addresses, use the Hardware editor (below); to add, change, move, copy, or delete the modules themselves, right-click them in the tree (see Editing modules in the tree); for cabling, attributes, I-devices, connections and the other hardware settings, see More Hardware Commands in the Project Explorer; for the full configuration, round-trip through AML.
Device Groups
When the project organizes its devices in device groups, the Hardware node shows a Device Groups folder with one folder per group, nested groups as subfolders, and the devices of each group inside; every device also keeps its usual row. Right-click Hardware, Device Groups or a group and choose New Device Group… to create a group, or a group inside the group you clicked. Rename Device Group… gives a group a new name; a name already used next to it is refused. Delete Device Group… deletes an empty group after a confirmation. For a group with devices or subgroups the confirmation names how many and offers Delete Group and Devices, which deletes them as well. A group that holds a fail-safe device is never deleted, and the message says why. Device groups need TIA Portal V17 or later and the Pro plan or higher.
The Hardware Editor
While connected to a TIA project, open the editor in any of three ways:
- run TIA Portal: Open Hardware from the Command Palette (
Ctrl+Shift+P), - click the circuit-board icon in the Project Explorer title bar, or
- right-click the project in the tree and choose Open Hardware.
The editor opens as a TIA Hardware tab. It requires the Pro plan or higher. On a smaller plan an upgrade dialog appears instead.
Stations
The upper table lists one row per station with the columns Device, Type, PROFINET Name, Article Number, Firmware, IP Address 1-4, Input (I) and Output (Q). The PROFINET Name and the four IP Address cells are editable. Click into a cell and type. All other columns are read-only.
Cards
Click a station to show the Cards table below it: Slot, Card, Article No., Input Start / End / Length and Output Start / End / Length. Only the start bytes are editable; End and Length update automatically as you type. Cards without an input or an output show -1 in the respective columns.
Validation
Invalid entries (a malformed IP address, an invalid PROFINET name, or a start byte outside 0-32767) are flagged with a red marker; hover over the cell for a tooltip with the reason. Saving stays blocked until every flagged cell is fixed.
Saving
Click Save Changes (or press Ctrl+S) to write your edits into the open TIA project. While changes are unsaved, the tab shows a dot. After saving, the card addresses reload automatically: TIA Portal may renumber neighbouring addresses when a start byte moves.
If some writes fail, a message lists the affected devices and the failed rows stay marked, so you can correct the values and save again.
Note: Clearing an IP address field is not written to the project. Restore the value or use Discard.
Discard, Refresh and CSV Export
- Discard reverts all unsaved edits at once.
- Refresh reloads the tables from the project; with unsaved changes it asks first, because refreshing discards them.
- Export to CSV saves the station list as a semicolon-separated CSV file via a file dialog. The file opens directly in Excel.
Unsaved Changes
- Disconnecting from the project with unsaved changes asks whether to Save, Discard, or Cancel.
- If the TIA Portal connection is lost, or you switch to another TIA Portal instance, unsaved changes are discarded with a notice and the view reloads.
- Closing the editor tab with unsaved changes prompts you to save.
- Closing or reloading the application window with unsaved changes also asks whether to Save, Discard, or Cancel.
Editing modules in the tree
You can build up and rearrange a device directly in the Project Explorer, one module at a time, without leaving the workbench. This requires the Pro plan or higher: on a smaller plan the actions show an upgrade notice instead. A TIA project must be connected, and the change is written straight into the open project.
Add a module
- Right-click a rack or a station and choose Add Module….
- Enter a name for the new module when prompted (a name is required).
- A catalog browser opens. Type in the search box to filter by name or article number, and pick the module you want.
- Pick a free slot from the slot list, then confirm.
The new module appears in the tree at the chosen slot.
When you type a complete order number in the search box, for example 6ES7 521-1BL00-0AB0, the list also offers the versions TIA Portal knows for it, so you pick the module in the version you need.
The slot list shows the free slots of the rack you clicked. If you started from a station, or if the rack has no free slot left, the list also shows the free slots of the other racks of the station, grouped under the name of each rack, so you can pick the rack and the slot in one step. On an ET 200AL station, for example, each ET Connection strand appears as its own group. If no rack of the station has a free slot, Studio tells you so and nothing is added.
Change the type of a module
Right-click a module and choose Change Type. The same catalog browser opens, already focused on compatible replacements. Pick the new module and confirm, and the module is swapped in place.
Move a module
Right-click a module and choose Move…. Pick the target rack or station, then the target slot from the slot list, and confirm. The module moves to the new slot and keeps its name and its IO system. This also moves a module to the other strand of an ET 200AL station.
Copy a module
Right-click a module and choose Copy…. Pick the target rack or station, then a free slot, and confirm. A copy of the module is placed in that slot.
Delete a module
Right-click a module and choose Delete Module. A confirmation prompt names the module first; confirm it to remove the module from the device, or cancel to leave it in place.
After any of these actions the tree refreshes so you see the updated device layout. If TIA Portal does not accept a choice, for example a slot that is already taken or a module the slot cannot hold, a short message names the reason and the free slots, and nothing is changed.
Plug an unplugged module back in
A station can hold modules without a slot, for example after you changed the CPU to a type with fewer slots. Such modules appear in an Unplugged Modules folder below the device. Right-click one and choose Plug into Slot…, then pick a free slot of the station; each slot shows the label TIA Portal gives it. If the module does not fit the slot you picked, TIA Portal refuses it and the message names the positions that fit.
Update module descriptions
When a newer description of a module is installed in TIA Portal, for example after an update of its hardware support package, the module can be brought to that description. Right-click a device and choose Check for Module Description Updates…: Studio lists every module of the station that has a newer description, all ticked, and after a warning that names them and says that this cannot be undone, Update updates the modules you left ticked. Update Module Description on a module does the same for that module and its submodules. When every module is current, a short message says so. This needs TIA Portal V16 or later.
Assign a process image partition
Right-click a module and choose Assign Process Image…. Pick one of the input or output addresses of the module or its submodules (each shows its start byte, its length and its current partition), then the partition: 0 is the automatic update, 1 to 31 are the partitions an organization block can take. Then choose Assign to an Organization Block… and pick one of the organization blocks of the PLC, or keep or remove the current assignment. On a distributed IO station without a CPU of its own, Studio offers the organization blocks of the PLC that reads the address. The Cards table of the Hardware editor shows the partitions of each card in its Process Image column.
Letting the AI assistant edit modules
The built-in AI assistant can perform the same edits on request, for example "add a digital input module to PLC_1 in the next free slot", "move the DI module at position 19 to position 5" or "delete the analog output card in slot 4". It looks for free slots across the whole station, on every rack and every ET Connection strand, and before it asks you to approve a plug, move or copy it checks with TIA Portal that the module fits there. If it does not, you are not asked; the assistant picks a free slot that fits or tells you that none is left. Before it applies a change to the device, the assistant asks you to confirm: an Approve / Deny prompt appears inline in the chat, and the edit is written only after you approve, unless you allowed the action in advance. As with the menu actions, this requires a Pro license or higher and a connected project; on a smaller plan the assistant does not offer its hardware tools, not even for reading. If the project refuses a change, for example because a station carries a safety program or a device, subnet or block of that name already exists, Studio says so in a plain sentence, in the editor and in the assistant's answer.
The assistant also reads and exports on request. Ask it to read the attributes of a device, a rack or a module and it names them for you: the name, the type, the position and the comment, plus the order number, the firmware version and the classification, each with whether it can be changed at all. That read changes nothing and needs no approval. Ask it to write the hardware configuration of the project to an AML file, or to export the OPC UA server interfaces of a PLC as XML files, and it names the file or the folder it is about to write, warns you that a file of the same name is overwritten and writes only after you approve. The target has to sit in your Documents, on your Desktop or in your temporary folder.
Networks
Below the hardware node of the Project Explorer, the Networks branch shows every subnet of the project with its kind and the interfaces on it, each with its address. From the context menu you create a subnet (Ethernet, which PROFINET runs on, PROFIBUS, MPI, AS-Interface, point-to-point, PROFIdrive integrated or WAN) or delete one; on an interface you connect it to a subnet, move it to another, disconnect it or set its address, with subnet mask and router on Ethernet and as a station number from 0 to 126 on PROFIBUS and MPI; the fields come prefilled with the current values, and an emptied router field switches the router off. If the kind of the interface does not match the subnet, Studio says so before anything changes. The assistant does the same on request: it lists the subnets, creates them, connects and addresses interfaces, and asks for your confirmation before every change. Right-click a subnet and choose Rename… to give it a new name; a name another subnet already uses is refused. On an MPI/DP interface, Set Network Type… switches it between MPI and PROFIBUS: the confirmation names the subnet it is connected to, and the message names the new type and the subnet the interface is on afterwards. An interface of another kind, such as Ethernet, cannot be switched.
IO Systems
Below each subnet in the Networks branch sit its IO systems with their number, the controlling device and the assigned devices. From the context menu of an interface you create an IO system (with the name TIA Portal gives it or one of your own and, if you like, a number from 100 to 115); the interface has to be on a subnet, and there is one IO system per controller. You assign a device through its interface to an IO system on the same subnet, move it to another one or release it again; you delete an IO system after a confirmation that says how many devices lose their assignment. The assistant does the same on request and asks for your confirmation before every change. Rename… on an IO system gives it a new name; a name another IO system already uses is refused.
More Hardware Commands in the Project Explorer
The commands of the following sections sit in the context menu of the matching row of the Hardware branch and the Networks branch. Like the module commands they need the Pro plan or higher and a connected project that is not open offline, and each change is written straight into the open project. Cancelling a picker or a prompt changes nothing. After a change the Project Explorer refreshes by itself; if that refresh fails, the success message stays and a warning says that the tree could not be refreshed. When TIA Portal refuses something, Studio says why in a plain sentence and changes nothing.
Port Topology
A port row under a network interface shows the port it is cabled to as its description, as device and port, for example SCALANCE X-200 / Port_8. A port with several partners lists them separated by commas; a port without a partner shows no description.
Connect a port: right-click the port and choose Connect Port…. Pick the device to cable to, then one of its free ports; each port shows its interface and, where the device reports them, its medium and transmission setting. Your own device is offered too, for a cable between two of its interfaces. Only ports that are not cabled yet are offered, never the port itself or another port of the same interface. A port takes one partner: if the port you clicked is already cabled, Studio names its partner and asks you to disconnect it first, and if the picked device has no free port left, Studio says so instead of opening an empty list.
Disconnect a port: right-click the port and choose Disconnect Port. Studio reads the partner from the project right before asking, so the question Disconnect "PLC1 / Port1" from "SCALANCE / Port_8"? always names the current cable. Confirm with Disconnect: the interconnection is removed and both ports stay in place. A port with several partners first lets you pick the interconnection to remove; a port without a partner is answered with a short note.
Extension Racks
On a station whose racks are linked by interface modules, right-click the device and choose Connect Extension Rack…: pick an interface module that is not connected yet, then the interface module of the rack to connect. Disconnect Extension Rack… lists the connected interface modules with their partner and removes the link after a confirmation; both racks and their modules stay in place. A pair that TIA Portal connects by itself, as on some S7-300 racks, cannot be disconnected, and the message gives TIA Portal's reason. This needs TIA Portal V16 or later.
PC Interfaces
On a PC station, right-click the device and choose Assign PC Interface…. Pick an interface (each shows its current assignment), then PC station, Software controller or Not assigned; for the software controller its path is filled in from the station. Then choose the IPC expansion and the hardware resource, each with Keep the current setting to leave it as it is. When nothing changes, Studio says so and writes nothing. For an interface it moves to the software controller, TIA Portal picks the hardware resource itself, and it keeps the assignment of some interfaces, for example the first onboard interface of an IPC, and says so. This needs TIA Portal V17 or later.
Setting Several Attributes at Once
Right-click a device, a rack, a module, a network interface, a port, a subnet, a node on a subnet, an IO system, a device on an IO system, a transfer area, a redundancy domain or a communication connection and choose Set Attributes…. This needs TIA Portal V18 or later; on an older project Studio says so before anything opens.
- On a node of a subnet you first choose whether you set the attributes of the Interface itself or of its Node on the subnet (its address and subnet settings).
- A list shows every attribute of the object that can be written, each with its current value and its type. Tick the ones you want to change. An object without a writable attribute is answered with a note.
- Enter one value per attribute, in the order you picked them. An attribute with named values and a true/false attribute offer a list with the current value marked; any other attribute opens a box prefilled with the current value, which accepts only a whole number or a number where the attribute needs one.
- Choose how a refused value is handled: Apply What TIA Portal Takes (the default) skips a refused value and sets the others; Apply All or Nothing leaves every attribute unchanged as soon as one value is refused.
On a module whose channels can be set, the first step offers Module for the module itself and one entry per channel, for example Channel 0 (analog, input); pick a channel to set its parameters, such as the measuring type and range, which TIA Portal names by number. A setting that holds a structure or a table, such as the display languages of a CPU, appears as its own entry before the attribute list: a structure shows its members, a table its rows with Change Row, Add Row and Delete Row. Whether a table takes new rows or gives rows up is decided by TIA Portal; the display languages of a CPU, for example, have fixed rows. Deleting a row asks first. Structures and tables need TIA Portal V18 or later.
The message afterwards lists the attributes that were set and, for each value that was not set, the reason. A value TIA Portal accepted but did not keep is reported as such, so you always know which values really arrived in the project.
Hardware from Master Copies
A device, a module, a subnet or a device group that a library holds as a master copy is created in the project from the Project Explorer.
- From any master copy: right-click a master copy in the Project Library or in a library under Global Libraries and choose Create Hardware from Master Copy…. Studio first reads what the master copy holds. A device or a subnet is created right away. For a module you pick the device and then the rack or module that holds the new module. For a device group you choose Top Level of the Project or Inside a Device Group… and type the path of the holding group, with a slash between nested groups. A master copy that holds no hardware, for example a block, is answered with a sentence that names what it holds.
- A station from the project library: right-click Hardware and choose Add Station from Master Copy…. The list shows the master copies of the project library that hold a device, each with the device name. If there is none, Studio asks you to create one from a station in TIA Portal first.
When the name of the new object is already taken in the project, TIA Portal gives it a new name, and the message tells you both names, for example that HMI became HMI_1.
I-Device and Transfer Areas
A CPU interface can work as an I-device in addition to its controller role, and its transfer areas show as rows under the interface, each with its type, direction and position, for example CD, local to partner, position 1000.
Set the operating mode: right-click a network interface and choose Set Operating Mode…, then IO controller and I-device, I-device or IO controller. An S7-1500 keeps the IO controller role and takes the I-device role in addition, so choose IO controller and I-device there; I-device alone is refused by an S7-1500. The message names the mode the interface reports afterwards.
Create a transfer area: right-click the interface and choose Create Transfer Area…. Enter a name that the interface does not carry yet, pick the type (CD, controller to I-device data, is the type an S7-1500 I-device takes; the other types are offered for the device families that support them), pick the direction (local to partner, partner to local or both directions) and enter a position number or leave it empty so TIA Portal picks one. An interface that works only as an IO controller has no transfer areas: Studio asks you to set its operating mode to IO controller and I-device first.
Delete a transfer area: right-click the transfer area and choose Delete Transfer Area. After your confirmation the area and its addresses are removed, and the partner controller no longer exchanges data through it.
Change a transfer area: right-click the transfer area and choose Edit Transfer Area…, then rename it or change its direction, its length to the partner or its length from the partner; each shows its current value. A length that does not fit is refused and nothing changes.
IO routes: a transfer area of type TM, as a communication processor such as a CP 1616 in a PC station offers it, carries the data of IO modules. Right-click it and choose Create IO Route…: pick the device (the IO devices the interface controls come first), then the module that carries the IO addresses, for example the submodule of an ET 200SP module, the first and the last bit and the offset in the area, and for an input route on a module with inputs and outputs whether it reads the inputs or the outputs. Change IO Route… and Delete IO Route… first pick one of the routes of the area; the deletion names the module whose data is no longer carried. Each route also shows as a row IO Route 1, IO Route 2 and so on under its transfer area, described by its module, bits, offset and direction, for example IO_1 / DI_8/DI_8, bits 4 to 7, offset 0, Input; right-click the row and choose Change IO Route… or Delete IO Route… to work on that route without picking it first. A transfer area of another type has no IO routes, and Studio says so.
Direct data exchange: CPUs on one subnet can exchange data directly through direct data exchange areas. Right-click the network interface of the sending CPU and choose Create Direct Data Exchange…: pick New Sender Area or add a receiver to a sender the interface already has, then the interface of the receiving CPU, and enter a name and the data length. Change Direct Data Exchange… renames an area or changes its data length or its comment. Delete Direct Data Exchange… names what goes along before it deletes: deleting a sender deletes every receiver of it, and deleting the only receiver of a sender deletes the sender too. Each area also shows as a row under its network interface, named by the area and described by its role, partner and length, for example sender to PLC_2, 16 bytes; right-click the row for Change Direct Data Exchange…, Delete Direct Data Exchange… and Set Attributes…, which lists the attributes TIA Portal lets you change on the area. Reading the areas needs TIA Portal V18 or later, changing them V19 or later.
Redundancy Domains
The MRP and sync domains of an Ethernet subnet show as rows under the subnet in the Networks branch, each with its kind, its number of participants and whether it is the default domain, for example MRP, 19 participants, default.
- Create: right-click an Ethernet subnet, choose Create Redundancy Domain…, pick MRP (media redundancy, the interfaces of one ring) or Sync (the interfaces that share one send clock) and enter a name. Redundancy domains exist on Ethernet subnets only; on a PROFIBUS subnet Studio says so.
- Add participants: right-click a domain and choose Add Participants…, then tick the interfaces of the subnet that are not in it yet. Or right-click an interface or a node and choose Add to Redundancy Domain… to pick one of the domains of its subnet.
- Delete: right-click a domain and choose Delete Redundancy Domain. The confirmation names the number of participants. The participants stay on the subnet; restoring the domain means creating it again and adding every participant again.
TIA Portal offers no way to remove a single participant from a domain again, only the whole domain can be deleted, so the pickers remind you of this before you add one.
From TIA Portal V20 an MRP domain also lists the MRP instances of its ring as read-only rows, each named by device and instance, for example Switch_1 / MRPInstance_1.
Communication Connections
Communication connections need TIA Portal V21 or later; on an older version Studio says so before anything opens. Every device that carries connections, a CPU or an HMI panel, shows a Connections branch with one row per connection, described as type and partner, for example S7 connection to PLC_2 / PLC_2. A connection that TIA Portal does not consider complete, for example because the partner interface sits on no subnet yet, carries the mark incomplete.
Create a connection: right-click the device or its Connections branch and choose Create Connection….
- Pick the type. S7 connection, TCP connection, UDP connection and ISO-on-TCP connection join two CPUs, and HMI connection joins a CPU and an HMI panel; these five are the types TIA Portal takes. ISO connection, FDL connection and Point-to-point connection are offered too, but TIA Portal refuses an ISO connection between two Ethernet interfaces and decides itself whether a pair takes the other two.
- Pick the partner device and the interface the connection ends at; each interface shows its subnet and address.
- If your device has more than one interface, pick the one the connection starts from.
- Enter a name, or leave it empty so TIA Portal names the connection.
The message names the new connection. If TIA Portal reports it as incomplete, a warning asks you to check the configuration of the partner in TIA Portal; a shared subnet alone does not make a connection complete. If TIA Portal did not keep the name you entered, the message names the one it kept.
Delete a connection: right-click the connection and choose Delete Connection, then confirm. Program blocks that use the connection no longer reach the partner until a connection is configured again.
Change the partner: right-click a connection and choose Change Partner…, then pick the interface of the new partner, another CPU or HMI device on a subnet, or another interface of the same partner. The warning names the partner that loses its end of the connection; the message afterwards says whether that partner still lists its own side of the connection, so you can remove it there if you no longer need it.
See the details: rest the pointer on a connection row. The hover shows the type, the local end and its interface, the partner, whether TIA Portal reports the connection as valid and the details of its kind, such as the addresses and ports, the TSAPs, the rack and slot of the partner or the connection resources.
GSD Parameter Data
Right-click a module of a device that is described by a GSD file and choose Read Parameter Data… or Write Parameter Data…. On any other module Studio says that it is not described by a GSD file. Most GSD modules carry no parameter data at all, and Studio tells you so; that is normal for such a device.
- Read: choose Read One Dataset… and enter the dataset number (a PROFIBUS module uses 0), or Discover the Datasets, which tries the datasets 0 to 255 and takes about four seconds per module. The datasets found are listed with their length and their bytes in hex; pick one to copy its bytes to the clipboard.
- Write: enter the dataset number, the byte offset and the new bytes in hex, two digits per byte, spaces between the pairs allowed. The current bytes are filled in, and Studio refuses an offset or more bytes than the dataset holds. TIA Portal checks the bytes against the GSD file and changes nothing when it refuses them; the message afterwards shows the dataset as it reads now.
Exporting the I-Device GSD File
To hand an I-device to an IO controller in another project, right-click its PROFINET interface and choose Export I-Device GSD…. Pick the file in the save dialog, enter the designation the IO controller shows (prefilled with the device name, it may stay empty) and an optional description, then choose Compile First or Export Without Compiling. The message names the file, its size and the compile result.
The export needs four things: TIA Portal V21, an interface in I-device mode (see I-Device and Transfer Areas), at least one transfer area, and hardware that compiles without errors. A compile with errors lists the lines the compile reported. On a fail-safe CPU the compile needs the safety login, which you give in TIA Portal. TIA Portal never overwrites an existing file.
Telecontrol
Telecontrol is available on telecontrol communication processors only, such as a CP 1243-8 IRC, from TIA Portal V20. Right-click the CP and choose Telecontrol…; on any other module Studio says that it is not a telecontrol CP. The list names the current state of the telecontrol communication and offers four actions:
- Turn Telecontrol Communication On or Turn Telecontrol Communication Off.
- Export Data Points… writes the data points of the CP to a CSV file. On V21 this needs at least one data point.
- Import Data Points… reads such a CSV file into the CP.
Create Data Point… (TIA Portal V21) asks for the kind, ST7, IEC 60870-5 or DNP3, then the PLC when the project has several, the tag table and the tag. The kind has to match the protocol the CP is set to; a mismatch is refused.
- Edit Data Point… (TIA Portal V21) picks a data point and renames it or changes its type, its index or its master function, as far as its kind has them.
- Delete Data Point… (TIA Portal V21) deletes a data point after a confirmation.
Changing and deleting data points needs the telecontrol communication of the CP switched on.
Each action ends with a message that names the outcome. TIA Portal gives no reason for a failed export or import, so Studio then says that the CP or the file did not fit.
System Diagnostics Settings
The system diagnostics settings belong to the whole project. TIA Portal exchanges them only as a complete .dat file; single settings cannot be read or changed.
- Export: right-click Hardware and choose Export System Diagnostics Settings…. The save dialog proposes
<project>-SystemDiagnostics.dat. TIA Portal never overwrites an existing file. - Import: right-click Hardware, choose Import System Diagnostics Settings… and pick the file. The settings of the file replace the system diagnostics settings of the whole project, so the confirmation asks first; confirm with Import. Export the current settings to a new file beforehand if you may want them back.
A result TIA Portal reports with a warning or an error is shown as a warning or an error.
Comparing Hardware
Right-click a device or a module and choose Compare Hardware With…. From a device you pick the other station; from a module you pick a device and then one of its modules. TIA Portal compares two stations or two modules, never a station with a module, and it does not compare every pair, for example two S7-1500 stations or two HMI devices; the page then shows TIA Portal's sentence.
The Hardware Comparison page shows both sides as a tree with a Result column. Each row is marked Identical, Different, Contents identical, Contents differ, Object and contents differ, Object differs, contents identical, Only on the left, Only on the right or Not compared, with TIA Portal's detail text under the name. A summary counts the objects per state. The comparison shows which objects differ, not which settings differ: two new CPUs of the same type can already show as different. To see which settings differ, read the attributes of both objects. The names and the detail text follow the language of TIA Portal. Very large comparisons are cut off after 5000 objects or 32 levels, and a banner says so. Run Again, Expand All and Collapse All sit in the toolbar.
Exporting the Resource Assignment
On the CPU of a software controller (CPU 1505SP, 1507S or 1508S), right-click the CPU module and choose Export Resource Assignment…. This needs TIA Portal V21. Pick a .json file, then Keep the Current Priority, Priority 1 or Priority 4. A new priority is written into the project before the export; with the current priority the export changes nothing. The message names the file, its size and the priority. On any other CPU Studio says that it is not a software controller.
Exporting the PC System Configuration
Right-click a device and choose Export PC System Configuration (.psc)… to write the file a SIMATIC PC station is loaded from by card reader. Pick the .psc file, then enter a password that protects the file, or leave it empty for a file without password; a password needs TIA Portal V20 or later. This is not a plain file write: TIA Portal compiles the device and runs a download into the file, so it takes a while. Only a PC or HMI system that is loaded by card reader can be exported, and a device that does not compile is refused with a sentence.
Showing a Device in the TIA Portal Hardware Editor
Right-click a device, or Hardware for the whole project, and choose Show in Hardware Editor…. Pick Device View, Network View or Topology View, and TIA Portal shows the device or the project hardware in that view of its own hardware editor. This changes nothing in the project. It needs a TIA Portal that runs with its window; when Studio is connected to a TIA Portal without a window, Studio asks you to connect to one with a window.
CPU Protection, Users, Certificates and Syslog
Right-click a CPU, or the device that holds it, to reach the security commands below. Five of them read the current setting first and offer only what the CPU serves. What a CPU serves depends on its firmware: a CPU with firmware 2.x is protected by an access level and keeps its own web server users; a CPU with firmware 3.x or 4.x uses access control, certificate management and syslog; system web pages exist on firmware 4.x; account locking needs TIA Portal V21 and firmware 4.1. A CPU that serves none of a command's settings gets a plain sentence instead of a pick, and a TIA Portal version below what a setting needs is named as such. Like the other hardware changes these need the Pro plan or higher. Every password is entered twice in masked fields, is never shown again and never appears in a message. Should TIA Portal end while a change runs, Studio asks you to attach the project again and to read the setting before repeating anything.
PLC Protection
PLC Protection… shows the current protection, for example the access level, or the access control mode with its UMC server and the state of account locking, then offers the actions the CPU serves:
- Set Access Level…: pick Full access (no protection), Read access, HMI access or No access (complete protection); a fail-safe CPU also offers Full access including fail-safe. The action is offered only while the CPU is protected by its access level, because an access control mode manages the levels itself.
- Set Access Level Password…: pick a level above the current one, then enter the password twice. TIA Portal takes a password only for levels above the current one, so set a lower access level first if you want to protect the current one. Leave both fields empty to reset the password of that level; Studio asks you to confirm, because a connection then gets this level without a password. TIA Portal checks the password against its policy and Studio repeats the rule a password breaks.
- Set Access Control… (firmware 3.x and 4.x): pick the mode among those the CPU takes, from access control off through local users and access levels to central users. A mode with central users asks for the address of the UMC server (an https address with a host name or an IPv4 address, not localhost), how the CPU verifies the server (by its server ID or by its certificate), the server ID of 40 hexadecimal characters when it verifies by ID, and the trusted certificates, which you tick in a list of the certificates of the CPU (when the CPU uses the global certificate store, you type their numbers, separated by semicolons).
Set Account Locking… (TIA Portal V21, firmware 4.1): turn it on or off. On asks for the failed login attempts before an account is locked (1 to 99), the minutes the account stays locked (1 to 60) and the minutes within which the failed attempts count (1 to 30).
- Configuration Data Protection… (TIA Portal V17 or later, firmware 2.9 or later) protects the confidential configuration data of the CPU, such as its certificates, with a password, changes that password or removes the protection again; from TIA Portal V21 it also protects all configuration data. The summary names the current state, and only the changes that state allows are offered. A new password is entered twice in masked fields, and changing or removing the protection asks for the current one. A CPU that needs this protection before its certificates can be managed offers Protect Configuration Data… in its certificates tab, which starts the same steps.
- Reset Configuration Data Protection… removes the protection when its password is lost. The question names how many certificates of the CPU are deleted with it in the open project, because this cannot be undone; confirm with Reset Protection. Only you can reset the protection, the assistant cannot.
- Display Password… sets the password of the CPU display, 3 to 8 characters, each a letter, a digit or the underscore, or switches the display protection off. A software controller has no display password.
Display Logo
Display Logo… (TIA Portal V17 or later) chooses between Show a User-Defined Logo and Show the Standard Logo on the display of the CPU. With a user-defined logo, choose whether to Adapt the Logo to the Display, then pick the image, a PNG, BMP or JPEG file. Studio checks the file before anything is written.
OPC UA Users
OPC UA Users… lists the users of the OPC UA server of the CPU, at most 21, and offers Add User…; a user offers Set Password… and Delete. The users can be changed only while the OPC UA server and its user name and password authentication are on; switch them on first with Set Attributes… on the OPC UA item of the CPU. A user name has at most 63 characters, and a name that is already used in any casing is refused.
Web Server Users
On a CPU with firmware 2.x, Web Server Users… lists the web server users with their permissions and offers Add User…; a user offers Permissions…, Set Password… and Delete. Everybody is the default user: it keeps no password and cannot be deleted, only its permissions change. A CPU takes at most 22 users, a name has at most 40 characters and a password at least eight. The permission FAdmin on a fail-safe CPU needs the safety login in TIA Portal first. The web server has to be on; switch it on with Set Attributes… on the CPU.
On firmware 3.x and 4.x the web server users live in the access control of the CPU, so the command offers only System Web Pages… (firmware 4.x, TIA Portal V21 or later), which turns the system web pages on or off while the web server is on.
Both end the list with Generate User Page Blocks… (TIA Portal V17 or later), which builds the blocks of your own web pages: From the Folder Set in the CPU Properties, or From a Folder…, where you pick the folder with the HTML files, the start page and the name of the web application. Choose Keep Blocks Generated Earlier or Replace Blocks Generated Earlier; replacing loses changes you made in those blocks. The message names the blocks TIA Portal generated. Default Web Application… (TIA Portal V21) lists the web applications of the CPU with the current default marked and makes the one you pick the default.
The weighing modules TM SIWAREX WP341 HF and WP351 HF of an ET 200SP station keep five web server user slots of their own (TIA Portal V18 or later). Right-click the module and choose Web Server Users…: the list shows each slot with its state and permission, for example User2: inactive, No Access. A slot offers Activate or Deactivate, Rename…, Permission… (No Access, Read Only or Read and Write) and, while it is active, Set Password…. The slots are fixed, so none is added or deleted, and the web server of the CPU does not need to be on.
Web Server Access to Watch and Force Tables
Right-click a watch table or the force table of a PLC and choose Web Server Access… to decide what the web server of the CPU allows for that table: Read, Read and Write or No Access, with the current setting marked. This needs TIA Portal V16 or later and the web server of the CPU switched on. CPU Display Access… on the same tables decides the same for the display of the CPU, also while the web server is off; a CPU without such a display says so.
Certificate Management
Certificate Management… (firmware 3.x and 4.x, TIA Portal V18 or later) shows whether the certificates of the CPU are managed in TIA Portal or at runtime on the CPU. Choose Managed at runtime to be asked whether the CPU reports an expiring certificate, after how many days of remaining lifetime (10 to 90), and the group name of the certificates of each service the CPU lists (1 to 64 characters). Everything is written in one step. Managing at runtime needs the OPC UA server or the web server of the CPU on. From TIA Portal V21 the question for each service also names its application, for example urn:SIMATIC:PLC_1.
From TIA Portal V21, while the certificates are managed at runtime, the command also offers Add OPC UA Client Service…, which asks for an id that no other service uses and the group name of its certificates, and Change Certificate Service…, which changes the id of an OPC UA client service or the group name of any service. To remove a service, use TIA Portal.
Syslog
Syslog… (firmware 3.x and 4.x, TIA Portal V19 or later) turns the system logging of the CPU on or off. When you turn it on, pick the transport protocol (TLS with server and client authentication, TLS with server authentication only or UDP) and the syslog server: keep the current one, change it, set a new one with its address and port (0 to 65535), or remove it. A CPU takes one server. Turning the logging off together with Remove Server removes the server in the same step.
Certificates
Certificates… (TIA Portal V17 or later) opens the certificates of the CPU in their own tab: create a certificate, import or export a certificate file, delete one, switch between the local store of the CPU and the global store of the project, and choose which certificate PLC communication, the web server, the OPC UA server and the syslog client use. The password of a .p12 or .pfx file is asked once, in a masked field. See Certificates. The syslog servers of the whole project are described under Syslog servers.
Asking the Assistant
The assistant can do the same on request; it asks for your confirmation before every change, and reading needs no confirmation.
- Port topology: ask it which ports are cabled to which, to connect two ports or to disconnect a port.
- Attributes: ask it which attributes of an object can be written, or to set several of them in one step.
- Master copies: ask it to create a station, a module, a subnet or a device group from a master copy of the project library or a global library.
- I-device: ask it to switch an interface to I-device mode, or to list, create or delete transfer areas.
- Redundancy domains: ask it to list the domains of a subnet, to create or delete one, or to add interfaces to it.
- Communication connections: ask it to list, create or delete connections (TIA Portal V21).
- GSD: ask it to read or discover the parameter data of a GSD module or to write bytes into it, or to export the I-device GSD file of an interface.
- Telecontrol: ask it for the state of a telecontrol CP, to switch its communication, to create a data point, or to export or import the data points.
- System diagnostics: ask it to export the system diagnostics settings or to import them from a file.
- Comparison: ask it to compare two stations or two modules; it reports the result in the chat.
- Resource assignment: ask it to export the resource assignment of a software controller, with or without a new priority.
- PC system configuration: ask it to export the
.pscfile; the assistant never handles passwords, so a file with password is exported with the Project Explorer command. - Hardware editor: ask it to show a device in the device, network or topology view of TIA Portal.
CPU protection and users: ask it for the protection of a CPU, to set its access level, its access control or its account locking, to list or delete OPC UA users and web server users, to change web server permissions or the system web pages, and to set the certificate management or the syslog server. It also sets the password of an access level, adds OPC UA users and web server users and sets their passwords: after your confirmation Studio asks you for the password in a masked input, and the assistant never sees it.
- Configuration data protection and the display: ask it to protect the configuration data of a CPU, to change or remove that protection, or to set the display password; Studio then asks you for the password in a masked input. It also sets the display logo. Resetting the configuration data protection stays with you.
- Web server: ask it for the web server access of the watch and force tables or to change it, to generate the blocks of your own web pages, or to set the default web application.
- IO routes and direct data exchange: ask it to create, change or delete IO routes, transfer areas and direct data exchange areas; before a deletion it names what goes along.
- Connections, racks and interfaces: ask it for the details of a connection or to change its partner (TIA Portal V21), to connect or disconnect an extension rack, to assign a PC interface, to rename a subnet or an IO system, or to switch an MPI/DP interface between MPI and PROFIBUS.
- Telecontrol data points: ask it to change or delete a data point (TIA Portal V21).
- Device groups and modules: ask it to create, rename or delete a device group, to plug an unplugged module into a slot, to update module descriptions (its confirmation names every module and appears every time), or to assign a process image partition to an organization block.
- Channels and tables: ask it which parameters a channel has or to set them, or to change, add or delete rows of a table setting; it asks you before every row it deletes.
Export and Import AML
Hardware configuration is exchanged as AML (AutomationML) files. Two commands handle this:
Export AML (Hardware)… Writes the hardware configuration of the connected project to an AML file for documentation, version control, or transfer to another project.
Import AML (Hardware)… Reads an AML file back into TIA Portal to apply a hardware configuration.
You can run both from the Command Palette (Ctrl+Shift+P) as TIA Portal: Export AML (Hardware)… and TIA Portal: Import AML (Hardware)…, and from the Hardware selection in the Import / Export view: pick the Hardware chip and use Export AML → or ← Import AML…. The actions are available only while a project is connected. Progress and the result are shown as a notification, and the running operation can be cancelled.
You can also ask the assistant for the export: name the AML file you want and it writes it after you approve (see Letting the AI assistant edit modules). It also imports an AML file after you approve, with your choice for devices that already exist in the project. Before it overwrites devices of the project, it names them and asks you, because they are deleted and built again from the file and lose their PLC program and settings; it replaces them only after you agree.
On import you choose what happens with devices that already exist in the project; the choices and the messages of TIA Portal are described in Import and Export. AML import and export are not offered for TIA Portal V18; use V17 or V19 and newer.
SINAMICS Drives
The parameters, telegrams, motor and encoder data, drive functions, safety, security and technology extensions of a SINAMICS drive are set up in the Drive Editor; the Drive submenu of a drive runs the download, the online parameters and the other online functions, and the Hardware Connection submenu connects the technology objects of a PLC to drives and addresses. See SINAMICS Drives and Motion.
Supported Device Types
- S7-1200/1500 PLCs
- WinCC Unified HMI Panels
- WinCC Comfort Panels
- SINAMICS Drives
- SCALANCE Switches
- ET 200 distributed I/O
- Other PROFINET devices
Notes
- The Hardware node and the Hardware editor reflect the project as TIA Portal reports it; use Refresh (or reload the tree) to see changes made elsewhere in TIA Portal.
- AML export/import covers the full hardware configuration, including PROFINET names and IP addresses.
- WinCC Unified devices are fully supported.