Skip to content

Going Online, Compare & Download

On this page

When you go online with a PLC, AnyAutomation Studio opens an engineering connection to the controller CPU. This connection is for transferring and comparing engineering data, not for continuously watching live values. To read, write and watch individual tag values cyclically, use the Tag Browser in the PLCSim Advanced panel (see Hardware Simulation).

License requirement: Going online/offline with a PLC, the online/offline compare, and downloading or uploading to a device are part of online commissioning and are included from the Pro+ plan; the free trial unlocks them too.

Going online / offline

Right-click a PLC in the project tree and choose Go Online from the context menu. A connection dialog opens (see below) where you pick the connection path and confirm with Go Online. If no offline project is known yet, Studio first prompts you to select the offline TIA project file (.ap*) to compare against. Use the same right-click to disconnect again with Go Offline. While the PLC is online, the same context menu also offers Refresh Compare, which re-runs the per-block comparison.

You can also go online from a project you opened offline from disk (without TIA Portal); see Project Management for opening a project that way. Select the CPU, choose Go Online and confirm the dialog, whose address is already filled in from the project. From such a project, the online/offline compare and Live Values cover SCL and STL code blocks.

If the CPU is access-protected, Studio prompts for a user name and password when going online. Enter the credentials for your access level; if you only have a password, leave the user name empty. With the correct credentials the CPU is read and compared with your own access rights. On a wrong password Studio prompts again; press Esc to cancel. Studio remembers accepted credentials for the open project: going offline and online again does not ask again, until you close the project or have not used them for 20 minutes. If the CPU no longer accepts them, for example after the password was changed, Studio asks again.

A status badge on the PLC shows the connection state: Online or Offline. It reflects only whether a connection exists.

The connection dialog

The dialog is modeled on TIA Portal's own go-online dialog:

  • At the top, the Configured access nodes table lists the CPU's configured interfaces: device, slot, interface type, address and subnet. The table is for reference only and cannot be edited.
  • Below it you pick the connection path: Type of the PG/PC interface (e.g. PN/IE), PG/PC interface (your network adapter, such as the PLCSIM virtual adapter) and Connection to interface/subnet (direct at a slot or via a subnet).
  • The Address field takes the target IP. It is enabled when the connection goes via an address; with an invalid address the Go Online button stays disabled.
  • Start Search scans for reachable devices on the selected interface and lists them. Clicking a result (or pressing Enter on it) adopts its address. On interfaces that connect directly at a slot, the search is unavailable and a hint in the dialog says so.
  • Go Online connects; Cancel closes the dialog without going online.

The dialog remembers your last confirmed choice per PLC and preselects it the next time it opens. Reconnecting is usually a single click or Enter.

If connecting fails, a notification shows the error. Problems during the device search appear inside the dialog.

Older CPUs without secured communication

Some older S7-1500 and S7-1200 CPUs do not support the secured communication that newer firmware uses. Studio detects this while connecting and then connects automatically, with nothing for you to switch; no extra step is needed.

Because such a connection is unsecured, Studio makes that clear:

  • After going online, a persistent notice states that the connection is unsecured.
  • In the project tree the PLC also carries a yellow UNSECURED marker; hovering it shows an explanatory tooltip.

Treat values shown over an unsecured connection accordingly: they are not protected against tampering in transit. Where newer firmware allows a secured connection, or where OPC UA is available, that is the more protected choice.

Live values in the block editor

Open one of a PLC's program blocks from the project tree and switch on Live Values to watch the block run. If the PLC is not online yet, switching it on first opens the connection dialog; once you are connected the values appear automatically. Each variable in the source shows its current value inline, right next to where it appears, and updates as the program runs. This works for the block's inputs, outputs and global tags as well as its local and temporary variables.

Live values in the block editor: SCL source with the current value next to each variable, project tree with online status and compare badges on the left

  • Hover a variable to see its value and data type in a tooltip.
  • Pin a value to keep it shown on its own line above the code, so you can follow it while you scroll.

A value is shown only while that part of the program is actually executing; a variable on a line the CPU is not currently running appears greyed out until it updates again.

You watch data blocks the same way. Open a data block from the project tree and its declaration table appears. Monitor Data Block switches on a Monitor value column that shows each variable's current value and keeps it updated while the PLC is online. The values stay visible even while you edit the declaration.

Per-block online/offline compare

As soon as the PLC is online, each block in the project tree shows a compare badge on the right that reconciles the offline state in the project against the online state on the CPU. The possible states are:

  • Identical: the block's offline and online state match.
  • Different: the block exists on both sides but differs.
  • Offline only: the block is present in the project but missing online on the CPU.
  • Online only: the block is present online on the CPU but missing from the project.

Folders in the project tree carry a summary badge too, so you can spot where something changed without expanding every folder. A folder shows a green "identical" badge when every block inside it matches the CPU, and a "differences below" badge when any block inside it differs (or is offline only / online only). Folders with nothing to compare inside stay blank. The same rolls up to the PLC itself.

When you change a block from Studio, for example by saving it in the block editor, importing it or letting the AI chat change it, its badge shows Different right away, as in TIA Portal. It stays that way until the project is saved and the comparison runs again. Save Project in Studio runs the comparison by itself. When you save the project in TIA Portal or change a block there, choose Refresh Compare after saving so the badges show the new state.

After Download to Device or Download Only Changes to a PLC that is online, the badges update by themselves while the download notification is still open, so you see the new state without going offline and online again.

Compare Editor

The per-block compare badges only tell you that a block differs. To see what differs, click the Compare Editor icon in the Activity Bar: the Compare Editor opens right away in the editor area, and the side bar stays as it is.

At the top of the editor, two boxes name what is compared:

  • Source is the project and the PLC you compare. The project list shows the projects you already have open, plus Attach to Running Instance and Open TIA Project if the one you need is not open yet.
  • Target is what you compare against: a Folder, which is your export folder (its path is shown next to it) or any folder you browse to with Choose a Folder, or a second Project with its PLC.

A box keeps a coloured border until its side is chosen. Then press Compare. To compare something else, change the project, the PLC, the comparison type or the target folder right there and press Compare again, there is no need to close the editor and start over.

  • Studio compiles the source project and works out the differences. The progress names each step and counts the items while it checks the PLC for changes, and the operation can be cancelled. The first comparison with a folder exports the PLC once; later comparisons read again only the items that changed. Pressing Compare while the comparison is still refreshing itself after an import or a save shows that refresh to its end.
  • When the compare finishes, every block, data type and tag table is classified: Changed, Only in the source, Only in the target, Unchanged, Inconsistent or Not compared; the two "Only in" entries name the project and the folder (or the second project) directly. The header shows the count per state, and every count is a filter button: activate one or more to narrow the list to those states, press an active one again to release it, and a seventh button, Does not exist, narrows the list to every item that is missing on one side. Activating a changed row opens a side-by-side diff of the two sides.
  • The list shows both sides next to each other: the item on the source side on the left, its status in the middle, the same item on the target side on the right, with the two sides named in the column header. Where an item is missing on one side, that side reads Does not exist, folders included.
  • The three columns are separated by lines you can drag: pull a line to give one column more room, the header and the whole list follow while you drag, and a double-click puts the columns back to their standard proportions. Your widths are kept for the next time you open the Compare Editor.
  • Where TIA records it, each side of a row shows who last changed the item and on which day, and hovering that side adds the author, the creation and the last change with the full time. TIA keeps this only for code blocks, so data blocks, data types, tag tables and technology objects show nothing here, as does the folder side of a folder comparison.
  • Nothing is selected for you. A finished comparison starts with no check marks, so what Import Selected, Export Selected or Copy Selected touches is exactly what you ticked. Ticking a folder ticks everything inside it. Each new comparison starts empty again.
  • Above the list, a filter row offers the buttons OB, FB, FC, DB, UDT and TAGS, each showing how many items were found. Activate one or more buttons to narrow the list to those block types; with no button active you see everything. Check marks are kept while filtering; the buttons act only on the checked rows that are currently visible. When the comparison contains fail-safe items, the row also shows S_OB, S_FB, S_FC, S_DB and S_UDT for the fail-safe blocks and data types. Every item is counted by exactly one button: FB counts the standard function blocks and S_FB the fail-safe ones.
  • Next to those buttons, a search box narrows the list to what you type, matching the item name and its folder path; several words all have to match, and the matching characters are highlighted. Esc clears it. The button beside it switches the folder structure off, so you get one flat list with each item's folder shown next to its name.
  • A shield button in the same row hides every safety block, leaving only the standard blocks in the list. Its tooltip shows how many entries it would hide, the counts above the list follow it, and the setting stays on until you switch it off, also after a new comparison. Hiding the safety blocks also releases any S button that was active. Blocks whose name merely starts with F but that are not fail-safe stay in the list.
  • Comparing against a folder: to adopt folder-state items into your project, check their rows and press Import Selected. The selected items are imported into your project and the comparison refreshes afterwards, exporting only what changed. The first comparison against a folder exports the PLC once; later ones check it for changed items and export only those, also after a restart of Studio.
  • To bring the folder up to the state of your project, check the rows and press Export Selected. Changed items and items only in your project are exported into the folder with your export settings and replace the files that were there. Checked items that exist only in the folder are deleted from it after you confirm; Studio moves them to the trash where it can. The list updates right away without checking the project again.
  • Comparing against a second project: check the rows you want and press Copy Selected, which copies them into the other project; the Swap source and target button turns the comparison around, so you can copy in the other direction. Blocks that belong to a software unit are copied without the unit's namespace preset. Set it on the target project yourself.
  • Merging in the diff. In a project comparison the target side of an opened diff can be edited: type in it, or use the arrows in its margin to take a block of changes over from the source side, then save with Ctrl+S. Saving writes that item into the target project and the comparison refreshes. The source side stays read-only so the direction is unambiguous; use Swap source and target to merge the other way. In a folder comparison the exported file on the right is a normal file that you edit and save as usual. If the project refuses the item, the save reports why and keeps your changes.
  • Graphical blocks side by side. Right-click a row whose block is written in LAD, FBD or GRAPH and choose Open in Automation Compare Tool. The SIMATIC Automation Compare Tool installed on your PC opens with the source side on the left and the target side on the right, each under its own caption, so you see the differences in the networks instead of in the exported text. A row that exists on one side only opens that side alone. If one side cannot be provided, the other one opens alone and a message names the reason. The entry is offered for graphical blocks only and not for know-how-protected blocks, and it is greyed out while another TIA Portal operation is running. The tool is a separate product that has to be installed on your PC; it opens in German when Studio runs in German and in English otherwise.

When an item cannot be compared. An item the comparison could not fetch from your project reads Inconsistent when it is not compiled, and Not compared in every other case. The status then names the reason: Not exportable, Path too long, Not found, Not exported, Not readable or Export failed. Hover the status to read what you can do about it. Such a row cannot be ticked, neither by clicking its check box nor through the tick on its folder or in the header, and Import Selected and Copy Selected never touch it. A row whose file is present in the folder stays tickable, so you can still import it into your project. Opening such a row shows only the side that has a file; when neither side has one, a message names the reason.

Warnings after a comparison. When the PLC compiled with errors, a warning says how many, and items that are not compiled stay Inconsistent until you compile them in TIA Portal. A separate warning appears when the safety program of that PLC is protected by a password and you are not logged in to it, because its changes cannot be compiled that way. When the compared project is the one Studio is working with, the warning offers a Safety Login button; a login you make in TIA Portal itself counts just as well. Log in and compare again.

Line endings do not count as a difference. An item whose two sides differ only in their line endings, or only in an invisible mark at the start of the file, is shown as Unchanged. Exported files keep the line endings TIA Portal writes, so a version control system no longer reports a whole file as changed after an export. After you update Studio, the first comparison against an export folder you already have takes the slower route once and is quick again afterwards.

Know-how-protected blocks cannot be imported or copied. Your project only changes when you import or copy.

Items marked as protected with the red lock in the project tree stay unchanged when you import or copy, and the message says how many there were. Saving in the diff also refuses a marked item with a message; for a marked organization block with A on, only its attributes are saved. Items of the safety program are only changed while you are logged in to the safety program; without the login they stay unchanged and a warning offers Safety Login. More about this in Protected Items.

Working with the assistant. The assistant in the chat sees what the open Compare Editor shows: which project and which folder or project are compared, whether a comparison is running and how far it is, how many items are in each state, the active filters and how many rows are ticked. Ask it about the result, and it reads the list item by item and shows you what differs in a block.

The assistant can also work the Compare Editor for you, and you watch every step in the editor: it chooses the source and the target, presses Compare and waits for the result, cancels a comparison, swaps the sides of a project comparison, sets the filters, ticks the items you name and opens the differences of an item or the Automation Compare Tool. Before it starts a comparison, the chat asks you to confirm, because the source project is compiled first.

Import Selected, Export Selected and Copy Selected run only after you confirm the assistant's request in the chat, unless you have allowed the assistant to run its tools without asking. The request names the project or folder that is written, the items, how many are overwritten and the items that cannot be taken over, with the reason. The rows of exactly those items are ticked in the Compare Editor, and the list refreshes afterwards as after your own click. A file that exists only in the export folder is deleted only when you ask the assistant to delete it, and the request names the files. If a new comparison replaced the result in the meantime, the assistant reads the new result first.

The Compare Editor is included from the Basic plan, and the PLC does not have to be online for it.

Download to Device

To transfer your project's program and hardware configuration to a CPU, right-click the PLC in the project tree and choose Download to Device.

  1. Choose the network adapter and address. The connection dialog opens (the same one described above, now titled Download to Device). Pick the PG/PC interface (your network adapter, such as the one wired to the controller) and the Address of the target CPU. You can type the address or find it with Start Search. Your last download choice for that PLC is preselected the next time you open it. Confirm with Download.
  2. Review the impact and confirm. Before anything is transferred, Studio checks what the download will do and asks you to confirm:

    • If the change cannot be applied to the running CPU, a warning tells you the CPU will be stopped and its data blocks reinitialized: all current and retained values are lost.
    • If the change can be applied without stopping, it tells you the download loads in RUN mode and the CPU is not stopped.

    The confirmation names the CPU and the target address. This check changes nothing on the controller; it only reports what would happen. Choose Cancel to leave the CPU untouched.

  3. Download. After you confirm, the download runs with a progress notification that you can cancel. On success you get a confirmation; if it fails, a notification shows the reason.

Only a full download (program and hardware configuration) is offered. If a connection or the download fails, the notification shows the error. When TIA Portal asks a question before loading, for example because the CPU holds a newer data format or an older project version than your project, or whether to overwrite the data of an HMI device, Studio lists the questions in Confirm the Questions of TIA Portal for your CPU, each with TIA Portal's own text. Tick every question you agree to and choose Confirm and Download: the download runs again with exactly those answers. A question left unticked keeps the list open, and Escape ends the download without loading anything. The message at the end names the questions you confirmed. Download Only Changes asks the same way. When you ask the assistant to download, it explains each question and asks you; it confirms only the questions you agreed to, and its confirmation card lists them even when you allowed its downloads without asking.

Master secret password. When your project protects the confidential PLC configuration data of the CPU with a password and the CPU does not hold the master secret yet, as on the first download to a new or reset CPU, Studio asks for it during the download. A CPU that already holds it downloads without the question, the same as in TIA Portal. When Studio asks, a dialog Enter the Master Secret Password of CPU ... opens with one hidden field. Enter the password that is set in the project for the protection of confidential PLC configuration data and choose Download. If the CPU does not accept it, the dialog opens once more with a note; if the second password is not accepted either, nothing is downloaded and a notification says so. Cancel ends the download without a message. Studio uses the password for this download only and does not keep it. A download started from the AI chat opens the same dialog; the assistant never sees the password.

Memory reset. A CPU that an earlier download left half loaded, for example because that download was aborted, asks for a memory reset before it accepts a new one. Studio then asks Reset the Memory of <CPU> and Download? and explains that a memory reset deletes the program and all data on the CPU, retentive values included, and that the project is then loaded completely. Choose Reset Memory and Download to reset the memory and download, or Cancel to leave the CPU as it is. The message after the download says that the memory was reset. If the download fails after the reset, the message says so as well, because the CPU may then no longer hold its program and data.

Data block values on TIA V21. When you download to a CPU with firmware V4.1 that is in RUN and you only added members to optimized global data blocks, TIA V21 offers to keep the actual values of those data blocks. Studio keeps them: the CPU stays in RUN, the existing members keep their values and only the new members get their start values. Download Only Changes mentions this in its confirmation, and the message after the download says that the changed data blocks kept their actual values. Any other change to the memory layout of a data block still stops the CPU and reinitializes the data blocks.

Sign-in and the address of the CPU. When your project protects the CPU with an access level or with users, Studio asks for the sign-in before the download starts, so the download runs in one go even when it loads the protection into the CPU. Download Only Changes and TIA Portal before V21 with its window open keep asking for the sign-in during the download. When you download to an address that the project does not use for the CPU, the download gives the CPU the address of the project. The message afterwards names that address, and when Studio has to ask for the sign-in again during such a download, it continues at that address. The same holds when you cancel a memory reset that the CPU asks for after it already took that address. Use the address of the project for the next online step.

Downloading to a device is part of online commissioning and is included from the Pro+ plan; the free trial unlocks it too.

Uploading from a device

To bring the software of a CPU into your project, right-click the PLC in the project tree and choose Upload from Device. It takes the blocks, PLC data types and PLC tag tables under the PLC; technology objects and the items of software units are not uploaded, and the message afterwards says how many were skipped.

  1. Choose the connection path. The connection dialog opens, titled Upload from Device: <CPU>, and preselects the path you last used to upload from this CPU. Confirm with Upload.
  2. Confirm. Studio asks Overwrite <n> object(s) in the project with the online version of <CPU> at <address>? and explains that the selected blocks, data types and tags are overwritten with what is currently on the CPU and that this cannot be undone. Confirm with Upload.
  3. If the CPU asks for credentials, the sign-in described in Signing in to a protected CPU comes first.

The uploaded program replaces the objects of the same name in your project, each in the folder where it already is, and the project is compiled afterwards. When that compile would change the safety program of the PLC, the message offers Safety Login; log in and compile again. A progress notification runs during the upload, and you can cancel it. The message afterwards counts the objects that came into the project. When some objects could not be taken into the project, the message says how many and offers Show Details, which opens the TIA Portal output with one line per object, for example:

  • a PLC data type that was kept as it was, because PLC tags outside the upload still use it as their data type;
  • an object that was removed from the project, but whose uploaded version could not be imported;
  • an object that was kept as it was, because it could not be found or removed in the project;
  • a tag table that did not come back, naming the PLC tags that had been removed from it to replace a data type and that would have come back with it.

Studio does not save the project for you. Save the project to keep the uploaded program.

Uploading a station export

To get the software of a CPU as files without changing your project, right-click the PLC in the project tree and choose Upload Station Export..., next to Upload from Device.

  1. Choose the connection path. The connection dialog of Upload from Device opens, titled Upload Station Export: <CPU>, and preselects the path you last used to upload from this CPU. Confirm with Continue.
  2. Choose the folder. A folder dialog opens on your export folder. Pick the folder that should receive the files and click Export Here.
  3. Confirm. Studio asks Upload the station of <CPU> at <address> and export its software to <folder>? and explains that the station is uploaded into a temporary project, that its blocks, PLC data types and PLC tags are exported into the folder, that files of the same name there are replaced and that the open project is not changed. Confirm with Upload and Export.
  4. If the CPU asks for credentials, the sign-in described in Signing in to a protected CPU comes first.

The folder then holds the export files of the uploaded station: its blocks, PLC data types and PLC tags, laid out according to your export settings, the same way an export from your project lays them out. A progress notification runs while the station is uploaded and exported. The message afterwards names how many files were exported to which folder and, when some items could not be exported, how many. If the upload or the export fails, the message names the reason.

Going online in TIA Portal

Go Online above connects Studio itself to the CPU. Some work runs through the connection of TIA Portal instead, such as comparing with the CPU and the online reads of the assistant. For that, right-click the PLC in the project tree and choose Go Online in TIA Portal.... The connection dialog opens with the title Go Online in TIA Portal: <CPU> and preselects the path you last used for this CPU; confirm with Go Online. Once connected, a message confirms that the CPU is online in TIA Portal. Go Offline in TIA Portal in the same menu ends that connection again.

When the CPU asks for a sign-in, what happens depends on the TIA Portal version. With TIA Portal V21, Studio asks for the sign-in in its own dialog (see Signing in to a protected CPU), whether TIA Portal shows its window or not, and then goes online. With TIA Portal V20 and older, TIA Portal takes the sign-in in its own dialog. If you connected Studio to a TIA Portal that shows its window, for example with Attach to Running Instance, TIA Portal asks for the sign-in there, and the message afterwards says that it did. When Studio opened the project itself, TIA Portal runs without its window and cannot show that dialog. A message then says that the CPU asks for a sign-in that TIA Portal takes only in its own dialog and names the kinds of sign-in the CPU offers, such as Project User or Global User. To go online, open the project in TIA Portal, connect Studio to it with Attach to Running Instance and run the command again. Set Master Secret... and Reset Master Secret... behave this way on every TIA Portal version, also on V21: for the master secret, TIA Portal takes the sign-in only in its own dialog. When Studio opened the project itself, the message says The CPU ... asks for a sign-in, and for the master secret TIA Portal takes it only in its own dialog, on every TIA Portal version. The TIA Portal Studio is connected to runs without its window: open the project in TIA Portal, connect Studio with Attach to Running Instance, and run the command again. Studio's own sign-in dialog (see Signing in to a protected CPU) is used by Upload from Device and Upload Station Export..., and by Download to Device when the CPU asks.

If the CPU does not come online in TIA Portal, the message says why, as for the master secret (see Master secret of a CPU). When Studio cannot connect to the CPU, whether to go online in TIA Portal, for the master secret or for the sign-in, the message names the reason TIA Portal gave.

Signing in to a protected CPU

When a CPU asks for credentials, Download to Device, Upload from Device and Upload Station Export... ask you to sign in before anything is transferred. Set Master Secret... and Reset Master Secret... ask the same way, unless the CPU takes the sign-in only in TIA Portal's own dialog; then they need TIA Portal with its window, on every TIA Portal version. Go Online in TIA Portal... asks the same way with TIA Portal V21; with TIA Portal V20 and older, TIA Portal asks for the sign-in in its own dialog (see Going online in TIA Portal). Studio's dialog works like this:

  1. If the CPU accepts more than one kind of sign-in, a list titled Sign In to CPU <CPU> asks you to choose: Project User (a user of the project's user management), Global User (a user of the central user management), Anonymous User (no name and no password, with the rights the CPU grants anonymous access) or Password Only (the access password of the CPU's protection level). Which of them appear depends on the CPU and its protection settings.
  2. A dialog asks for the User name and the Password, only the fields the chosen kind needs. Confirm with Sign In. An empty field is asked for again.
  3. The operation then runs with your sign-in.

If the CPU is protected but does not say which kinds of sign-in it accepts, the list says so and offers Project User, Global User and Password Only.

If the CPU does not accept the credentials, the dialog opens once more with the same kind of sign-in and the same user name, without asking for the kind again, and names the reason: the CPU stayed protected after the sign-in, it asked for credentials again, or it refused the connection right after the sign-in, for example because of a wrong user name or password. In that last case the dialog also shows the reason TIA Portal itself gave, in the language of TIA Portal. Studio sends a password only once and does not repeat it on its own, so check the kind of sign-in, the user name and the password, then try again. If the CPU refuses the second attempt as well, the operation ends with that message. Cancel ends it without signing in, and nothing is transferred.

If you chose a kind of sign-in the CPU does not offer, Studio does not send the password. The dialog opens once more, names the kinds the CPU offers and lets you choose only from them; when a single kind is left, it is used without asking for the kind. This extra round does not count as a refused sign-in. If the CPU did not name the kinds it offers, the dialog asks you to choose another kind, and that round counts as a refusal.

If the sign-in was accepted and the operation itself fails afterwards, the message says that the sign-in was used and names the reason for the failure. That is not a refused sign-in, and there is no need to change your credentials.

If TIA Portal ends after the CPU asked for a sign-in, the message says so, and Studio does not retry the sign-in. With Go Online in TIA Portal..., the master secret and Download to Device, the connection to TIA Portal is lost; reconnect to continue. With Upload from Device and Upload Station Export..., only the connection to the CPU is lost, and the project Studio is connected to stays open.

Studio remembers an accepted sign-in for this CPU of the open project, so the next Go Online in TIA Portal, download, upload or master secret command does not ask again. It is dropped when you close the project or TIA Portal, after 20 minutes without use, and when the CPU no longer accepts it; Studio then asks again. Studio never shows it. A download started from the AI chat never uses it.

Master secret of a CPU

The master secret protects the confidential configuration data of a CPU. Right-click the PLC in the project tree and choose Set Master Secret.... Pick the connection path in the dialog Set Master Secret: <CPU> and confirm with Continue. Then enter the secret in Master secret and once more in Repeat master secret; if the two entries do not match or a field is empty, Studio asks again. Confirm with Set Master Secret. If the CPU asks for credentials, the sign-in described above comes first; when the CPU takes the sign-in only in TIA Portal's own dialog, see Going online in TIA Portal. Studio sends the secret to the CPU once and does not keep it, so keep it in a safe place: it cannot be read back. The message afterwards confirms it and also names the master secret setting of the project, which describes the project, not the CPU.

To remove it, choose Reset Master Secret..., pick the connection path and confirm the warning with Reset Master Secret. The warning tells you that any master secret on the CPU is deleted without its password being needed, and that it cannot be read back or restored. Afterwards, download the protected configuration data to the CPU again; the message reminds you.

When a CPU refuses the master secret, TIA Portal gives no reason, so Studio names both possible ones. When setting: either a master secret is already set on the CPU, then reset it first, or the CPU does not offer this function. When resetting: either no master secret is set on the CPU, or the CPU does not offer this function.

If the CPU does not come online for this, the message says why: TIA Portal could not reach the CPU, then check the connection path and that the CPU is switched on; or TIA Portal reports the CPU as incompatible with the project. In any other case the message names the state TIA Portal reported.

To set or reset the master secret, Studio connects TIA Portal to the CPU over the path you chose. If the CPU was still online in TIA Portal from an earlier session, that connection is closed for this, and the message says so; choose Go Online in TIA Portal... again when you need the connection.

Uploading the parameters of a drive

With TIA Portal V21 you can read the parameters of a drive into the project. Right-click the drive in the hardware of the project tree and choose Upload Parameters...; on a SINAMICS drive the same entry is in the Drive submenu, which also offers the download and the other online functions of a drive (see SINAMICS Drives and Motion).

  1. Choose the interface of this computer that reaches the drive.
  2. Enter the IP address of the drive. Studio fills in the address from the network interface of the device; change it if the drive is reached under another one.
  3. Confirm Upload the parameters of <drive> at <address> into the project? with Upload Parameters. The parameters stored in the project for this drive are replaced with the ones read from the device.

The message afterwards states the result with the number of errors and warnings. Save the project to keep the uploaded parameters.

When TIA Portal refuses the upload, the message names the reason TIA Portal gave. The same holds for the write protection of a block, when TIA Portal does not accept its password or refuses the change (see Project Explorer), and for the value actions on a data block (see Project Explorer).

Only drives offer a parameter upload. The entry is not offered on a CPU, on the station that holds it, on an HMI device or on their modules. On another device that is known not to be a drive, such as an ET 200 station, an interface module or a network device, Studio says so right away, before it asks for the interface, and reminds you that the software of a CPU comes into the project with Upload from Device.

When Studio cannot tell what kind of device it is, for example a device added from a device description file, it asks for the interface and the address as for a drive, and its first question says that whether the device is a drive is checked after you enter its address. If the device turns out not to be a drive, the message says so at that point.

Going online in TIA Portal, the station export, the master secret, the data block values (see Project Explorer) and the parameter upload are part of online commissioning and are included from the Pro+ plan; the free trial unlocks them too.

Notes

  • The engineering connection is not meant for continuously watching live values. Use the Tag Browser for that (see Hardware Simulation).
  • The compare badges appear only while the PLC is online; they are not shown in the offline state.