PLC / OPC UA / MQTT Manual: Connect, Watch, Log
On this page
The PLC / OPC UA / MQTT view provides a built-in OPC UA client for connecting to, browsing, and monitoring PLCs and other OPC UA servers directly from AnyAutomation Studio. Open it from the PLC / OPC UA / MQTT icon in the Activity Bar (left edge), or with the default keyboard shortcut Ctrl+K Ctrl+G. The same editor also connects to MQTT brokers, which the page MQTT describes.
License requirement: PLC / OPC UA / MQTT is included from the Pro plan when you operate it yourself. The AI working on the running controller, that is the OPC UA and S7 tools in the AI chat and the PLC / OPC UA / MQTT Operator agent, belongs to the Pro+ plan (see OPC UA Tools for the AI Chat). The OPC UA variable metadata, that is the units, ranges, descriptions and state texts in the watch table and the Node Attributes panel, also comes with Pro+. The free trial unlocks all of them.
An overview of what the AI agent does with the client, from watch tables to fault finding in a recording, is on the page OPC UA client with AI.
PLC / OPC UA / MQTT opens as a single editor pane in the center of the workbench. Each PLC you open becomes an inner connection tab inside that one pane; the server's address space appears as a tree in the PLC / OPC UA / MQTT side bar.
Your connections stay up while you work elsewhere. Opening another file in front of PLC / OPC UA / MQTT, or switching to a different tab, leaves every connection running and its watch values updating; the entry in the status bar keeps showing how many connections are live. To end a connection, press Disconnect in the connection header (it takes the place of Connect while the connection is up) or close its connection tab. Closing the PLC / OPC UA / MQTT tab disconnects all of its connections. When you open it again, in the same session or after restarting Studio, the endpoints, watch items and settings return, but nothing connects on its own: press Connect when you are ready.
Overview
OPC UA (Open Platform Communications Unified Architecture) is an industrial communication standard supported by Siemens S7-1500 and S7-1200 PLCs with firmware 4.1 and later. The view lets you read and write live PLC values, watch changes in real time, and export watch table data for analysis.
Connecting to an OPC UA Server
Manual Connection
- Open the PLC / OPC UA / MQTT view from the Activity Bar (or
Ctrl+K Ctrl+G) - Enter the Endpoint URL in the connection header (e.g.,
opc.tcp://192.168.0.1:4840) - Optionally click Get Endpoints to discover the endpoints the server advertises. The Available Endpoints table lists each one with its Security Mode and Security Policy; select a row and Studio connects with exactly its security mode and security policy. If the server no longer offers that endpoint, the connection fails with a message asking you to get the endpoints again; Studio never falls back to a weaker or unencrypted endpoint. The User Tokens column shows which sign-in types each endpoint accepts, for example Anonymous, Username or Certificate. Changing the address clears the list, so a connection never uses an endpoint of the previous address.
- Select the Authentication Mode:
- Anonymous - No credentials required (if the server allows it)
- Username/Password - Enter the OPC UA user credentials configured on the PLC
- Certificate - Sign in with a user certificate. Choose the certificate file (PFX, P12, PEM or DER) with the folder button; for a PEM or DER certificate also choose its private key file. If the key is protected, type the key password. Studio remembers the key password on this computer, never in the saved connection.
- Click Connect, or press Enter in any field of the form. When Connect is not available yet, Enter in the Endpoint URL field gets the endpoints instead.
The status dot in the connection header turns green when the connection is established. If the connection fails, the notification tells you why, for example that the endpoint does not accept a user certificate or that the certificate path is not a full path; Show Log opens the details.
The Certificate sign-in uses a certificate for you as a user. The client certificate of Studio itself, which the PLC sees on every connect, and the trust of server certificates are managed in the Certificate Management dialog (see below).
Each connection tab has a Connection Settings flyout, opened from the gear button in the connection header. It carries per-connection toggles (Enable Logging, Auto-Accept Certificates, and Do Not Persist Connection) plus a Certificate Management… entry. These settings are remembered per connection tab.
Planned: automatic discovery of OPC UA endpoints from an open TIA Portal project is not yet available in the PLC / OPC UA / MQTT view; enter the endpoint URL manually, or use Get Endpoints against the PLC's address.
Browsing the Address Space
The PLC / OPC UA / MQTT side bar shows a tree of the server's address space:
- The root shows the server's top-level nodes
- Expand any node to browse its children
- PLC variables, data blocks, and tag groups appear as nodes
- A variable of a structured type (a PLC data type, a struct, an array or a timer instance) has its own expand arrow: open it to reach its members, element by element, down to any depth
- The data type of each variable is shown next to its name; arrays carry a
[]suffix - Icons indicate the node class: Object, Variable, Method, View
Searching nodes: Use the search field above the tree to filter nodes by name. The tree collapses to show only matching nodes and their parents.
Refreshing the tree:
The Refresh button above the address-space tree in the side bar (or F5 while the PLC / OPC UA / MQTT view or the editor is focused) reloads the whole tree from the server. Branches you had expanded stay open and show the current children. Use it when the address space on the server has changed, for example after adding tags or data blocks in TIA Portal. Refresh is available while an OPC UA connection is active.
Node Attributes
Selecting a node in the address space, or clicking a row of the Watch Table, fills the Node Attributes panel in the right tool-stack with every OPC UA attribute of that node: Node Id, Browse Name, Display Name, Node Class, Description, Write Mask, User Write Mask, the role permissions and the access restrictions. Variables add Value, Status Code, Source and Server Timestamp, Data Type, Value Rank, Array Dimensions, Access Level, User Access Level, Access Level Ex, Minimum Sampling Interval and Historizing. Objects and views show their Event Notifier, methods whether they are executable, types whether they are abstract, reference types their inverse name, and a data type its definition, for example the values of an enumeration.
The values are written in words with the number beside them, for example CurrentRead, CurrentWrite (3) for an access level, Int32 (i=6) for a data type, Scalar (-1) for a value rank, 10 x 5 for array dimensions and Run (8) for an enumeration value. An attribute the server does not have is left out; one you may not read shows the reason, for example BadUserAccessDenied. When you write the shown node, from the Watch Table, Struct Fields or the assistant, the panel shows the new value and timestamps right away. Refresh Attributes in the tab strip of the right panel reads them again. All cells are selectable with Ctrl+C.
With the Pro+ plan, a Properties section follows the attributes when the node has OPC UA properties: its unit, its range, its instrument range, the number of decimal places, the texts of the two states of a switch or the texts of an enumeration. Every row shows the value and whether you may change it at runtime (writable or read only). Copy as JSON copies the properties together with the attributes. In the address space tree a property is marked with its own icon.
References
Next to Node Attributes, the References panel shows every incoming and outgoing reference of the selected node:
| Column | Description |
|---|---|
| Direction | In (inverse) or Out (forward) |
| Reference Type | Resolved name of the reference type (e.g. HasComponent, Organizes, HasTypeDefinition) |
| Browse Name | Browse name of the target node |
| Node Class | Node class of the target node |
| Target Node Id | Full node id of the referenced node |
Struct Fields
Select a structured variable (a PLC data type, a struct, an array or a timer instance) or a data block in the address space tree, or click its row in the Watch Table, and the Struct Fields panel in the right tool stack lists its members with their values and data types. Nested structures open level by level, arrays show one row per element, and members that carry a value can be edited inline and written back with Write Values. Refresh reads the structure again. Both buttons sit in the tab strip of the right panel, next to the type name of the structure.
Fields that hold a localized text, a GUID, a node ID, a qualified name, a status code or a byte string are edited in the same form as in the Watch Table (see Writing Values). Write Values checks every changed field first; when one does not fit, the panel shows Invalid value in with the field and the reason, and nothing is written.
When the server does not publish the members of a structure, the panel stays empty and explains why. For a Siemens controller this happens when the elements of the PLC data type are not marked as accessible from HMI/OPC UA: open the data type in TIA Portal, enable the access attributes on its elements, then compile and download. Members that exist on the server but cannot be read show not readable instead of a value. Very large arrays show their first 4096 elements, and a final row marks where the list was cut.
Event Log
The Event Log panel is a tab in the bottom tool-stack of the PLC / OPC UA / MQTT pane, next to the Watch Table. It receives live event notifications from a server-side notifier object.
| Toolbar control | Purpose |
|---|---|
| Event Source | Server (all events) (the default) receives the events of the whole server. Custom Node shows a box for the node ID of an object, and only the events of that object and of the objects below it arrive. |
| Severity range | Two number boxes that constrain incoming events by severity (1-1000; default Min 1, Max 1000). Events outside the range are dropped before reaching the grid. |
| Subscribe to Events | Starts the subscription against the configured notifier. |
| Stop Event Subscription | Cancels the active subscription. |
| Export CSV | Saves the visible events to a CSV file. Cells are written so that a spreadsheet program never runs them as a formula. |
| Clear Event Log | Empties the grid without affecting the active subscription. |
All controls sit in one compact row above the grid. The Event Log also works on a tab you connect after opening it, and a running subscription continues after a short reconnect.
The grid keeps the most recent 5000 events with the newest at the top. Very long field values are shortened. When a server sends more events than the list can take, the surplus events are left out.
Event Fields
Choose Event Fields in the Event Log toolbar opens the event types of the server with their fields. Tick the fields you want to see as columns, type in Filter fields to find one, or start from a preset: Standard Columns or Alarm States. Apply adds a column for each chosen field between Event Type and Message; up to 64 fields can be chosen. A field belongs to the event type that declares it, so events of other types leave its column empty.
Filter Event Types keeps only the events of the types you pick, including their subtypes; with no type picked, every event arrives. Queue sets how many events the server keeps for you between two updates (1 to 10000). Your fields, types and queue size are saved with the connection. The saved fields follow the namespace numbering of the server you connect to, so they stay right on another server or when the server numbers its namespaces differently; fields the server does not offer are removed, and a notice names them. When you change them while the events arrive, stop and subscribe again to apply them.
Show Event Details opens a pane beside the list with every field of the selected event: the standard fields, the alarm state of an alarm event and the fields you chose.
Event History
Switch the mode at the left of the toolbar from Live Events to Event History to read the events the server has stored. Set Start, End (at most 31 days apart) and Max Events (1 to 10000) and click Read Event History. The events appear in the list with the columns you chose; the status line shows how many were read and tells you when the range holds more events than shown. Cancel Read stops a long read. Clear and Export CSV act on the mode shown.
Event history needs a server that stores events. When it keeps none, the status line says so in plain words; PLCSim and many controllers keep no event history.
Alarms
The Alarms tab in the bottom panel shows the current alarms and conditions of an OPC UA server. It subscribes by itself when you open it on a connected tab and loads the current alarms; Condition Refresh loads them again, and Subscribe to Alarms and Stop Alarm Subscription start and stop the updates.
Each row shows the severity, whether the alarm is active, acknowledged, confirmed, shelved and enabled, its source, condition, message, time and comment. The left border shows the severity band, and a branch of an alarm is listed right below the alarm. Under Show you filter by state (All Conditions, Active, Unacknowledged, Unconfirmed, Shelved, Disabled) and by severity (for example Medium and Above). Hover a cell to read its full text.
Select one or several alarms and use the toolbar: Acknowledge, Confirm, Add Comment, Enable, Disable, Shelve for a Time, Shelve Once and Unshelve. The toolbar shows only the actions the server supports for the listed alarms, and a button is available when it applies to the selected alarms. When the server's alarm methods cannot be read, Enable, Disable and shelving stay hidden and the tab says so; Condition Refresh tries again. Acknowledge All Shown and Confirm All Shown act on every shown alarm that needs it, however many there are. Every change asks first: acknowledge, confirm and comment open a dialog with a comment field (required for a comment), shelving for a time asks for the duration in minutes, and the other actions ask for confirmation. When an alarm refuses an action, the tab tells you which ones and why, and alarms that changed their state before the action ran are left unchanged and reported.
A disabled alarm stays in the list with the Disabled filter, so you can enable it again. When the server drops alarm messages because its queue is full, the tab says so and runs Condition Refresh to load the list again.
The AI assistant lists the alarms for you and waits until the server has sent them. To acknowledge, confirm, comment, enable, disable or shelve, it first shows you the connection and every alarm it will change with its source and message, and changes exactly those alarms after you confirm. You approve alarm changes separately from the assistant's other panel work: in the Tool Approvals, PLC / OPC UA / MQTT Alarm Actions has its own level, so allowing PLC / OPC UA / MQTT Panels never allows an alarm change.
History Chart
The History Chart panel is a tab in the bottom tool-stack, next to the Watch Table and Event Log. It loads raw historical values for a variable node over a time range and plots them on a scatter chart with a date-time X-axis.
| Toolbar control | Purpose |
|---|---|
| Source | Read-only label that tracks the currently selected variable node in the address space tree. |
| Start | Start of the time range (UTC). Defaults to one hour ago. |
| End | End of the time range (UTC). Defaults to now. |
| 1h / 6h / 24h / 7d | Quick presets that set End to now and Start to now minus the chosen window. |
| Aggregate | Selects the value-shape returned by the server: Raw (default, every recorded sample) or one of Average, Minimum, Maximum, Count, Total computed in fixed-width bins across the time range. |
| Interval (s) | Width of each aggregate bin in seconds. Visible only when Aggregate is not Raw. Default 60 s, range 1..86400 s. |
| Read History | Fetches values for the source node between Start and End. With Raw selected the chart shows every sample; with an aggregate selected the chart shows one point per bin. The button is disabled while a read is in progress. |
| Export CSV | Saves the loaded values to CSV (Source Timestamp / Server Timestamp / Value / Status Code). As in the Event Log export, a spreadsheet program never runs a cell as a formula. |
| Clear Chart | Empties the chart and frees the in-memory buffer. |
Non-numeric values, values with Bad status, and samples with out-of-range timestamps are omitted from the chart but remain in the CSV export. The chart keeps at most 50,000 values per node; when the server has more in the range, the node gets an info icon in the legend, the point count reads for example 50000, only the first 50000 values per node, and Export CSV tells you the same after writing the file. Choose a shorter range to see the rest. The chart clears automatically on protocol switch or disconnect but keeps its content while you browse the address tree, so you do not lose loaded history just because you select a different node.
With an aggregate selected, bins that straddle the time-range boundary or contain incomplete data still appear in the chart. Aggregate support depends on the server: Siemens S7-1500 CPUs typically expose Average, Minimum, Maximum, Count and Total when historizing is enabled.
The variable must have Historizing = true on the server, and the session must have HistoryRead access. Siemens S7-1500 CPUs do not enable historizing by default; most variables need to be flagged for historical access in the PLC configuration.
When the server does not support history at all, or the selected node keeps no history, the panel says so in plain words instead of showing an error code.
Several Nodes in One Chart
The chart shows up to eight nodes together, each in its own color, plus the node selected in the address space:
- Add Selected Node keeps the node selected in the address space in the chart.
- Add Watch Selection adds the rows selected in the watch table.
- Drag variables from the address space or rows from the watch table onto the chart to add them.
The legend shows one chip per node. The node that follows the address space selection has a dashed outline and a Keep in Chart button; Remove from Chart takes a node out. When the server keeps no history for one node, its chip shows a warning and its tooltip the reason, while the other nodes keep their lines. The kept nodes are saved with the workspace.
| Control | Purpose |
|---|---|
| Show Table / Show Chart | Switches between the chart and a table of every value with the node, source and server timestamp, value, status and modification. |
| Read Modified | Reads the values that were changed or deleted in the history instead of the current ones, with the kind of change, its time and the user (raw values only). |
| Cyclic Update | Reads the latest range again at the Update Interval (s) you set, from 1 to 3600 seconds. It waits while the connection is down. |
| Update | Reads the history of all nodes now. |
| Cancel | Stops a running read and keeps the values read so far. |
| Export CSV | Saves the shown values of all nodes, with the node, the timestamps, the value, the status and the modification. |
Server Diagnostics
The Server Diagnostics panel is a tab in the bottom tool-stack, next to the Watch Table, Event Log, and History Chart. It surfaces the standardized OPC UA server-object hierarchy (Part 5 §6) so you can monitor session counters, subscription health, and server build information without leaving the application.
| Toolbar control | Purpose |
|---|---|
| Poll interval | Numeric spinner from 1 to 60 seconds (default 5). Persisted per connection endpoint. |
| Refresh | Triggers an immediate read regardless of the timer. |
| In-flight indicator | Indeterminate progress bar visible while a read is in flight. |
| Last updated | Timestamp of the last successful response (HH:mm:ss, local time). |
| Inline error | Surfaces the server-reported status code if the read fails. |
The body shows five collapsible sections:
- Server Status: server state, start time, shutdown countdown, build info (product name, URI, manufacturer, software version, build number, build date).
- Server Capabilities: max array / string / byte-string lengths, plus operation limits (max nodes per Read / Write / Browse).
- Diagnostics Summary: current and cumulated session count, rejected sessions, session timeouts, current subscription count, rejected requests.
- Subscriptions: sortable, resizable grid with one row per active subscription (id, publishing interval, publishing enabled flag, notifications count).
- Sessions: sortable, resizable grid with one row per session (session id, name, connect time, last contact time, total request count, read count, write count).
If the server explicitly does not expose the Server.ServerDiagnostics subtree (security policy, capacity), a "Server diagnostics are not exposed by this server" placeholder is shown instead of empty rows. Transient communication errors do not trigger the placeholder; they appear in the inline error strip so you can tell a "policy denial" apart from a "transient outage". Some diagnostics, such as the user of each client session, are only sent over an encrypted connection. On a connection without encryption the panel shows everything else the server sends, together with a notice; connect through an endpoint with the security mode SignAndEncrypt to see the rest. When diagnostics collection is switched off on the server, a notice explains why the counters and lists stay empty. After repeated failures the panel automatically backs off the poll interval to avoid hammering a struggling server; on the next success, the back-off resets.
Control characters in texts the server sends (session name, product name, ...) are not shown, so the grid stays readable.
Performance
The Performance tab in the bottom tool-stack measures how fast the server answers.
- Add the nodes to test with Add Selected Node or Add Watch Selection, or drag them onto the node list. Refresh Values reads their current values, Clear empties the list.
- Choose the services: Read, Write, Read Registered, Write Registered, Browse and Create/Delete Monitored Items.
- Choose Cycles (1 to 100000) or Duration (s) (1 to 600) and click Start. Stop ends the test and keeps the results so far.
The table shows per service the nodes, the calls, the failed calls, the calls per second and the average, shortest and longest call in milliseconds, and the chart shows the time of every call.
A write test writes back the value each node holds now. Before it starts, Studio reads the values and lists every node with its value; nothing is written until you confirm with Run Write Benchmark. The test compares the values with the confirmed ones about once per second and stops without writing when one has changed; a change made by the PLC program or an HMI within that second can be overwritten, so run write tests only on values that nothing else changes at the same time.
You approve the assistant's write benchmarks separately from its other panel work: in the Tool Approvals, PLC / OPC UA / MQTT Write Benchmark has its own level, so allowing PLC / OPC UA / MQTT Panels never allows a write benchmark.
Connection polish
The connection header and Address Space tree expose these improvements for everyday use:
Auto-reconnect banner. When the connection is lost, Studio reconnects in the background. While that runs, the connection header shows a yellow banner that reads "Reconnecting…". It clears automatically once the connection is restored.
Background connect. After Connect succeeds, Studio loads the data types of big S7-1500 controllers in the background. The PLC tree is browsable as soon as the connection is up; structured (UDT) values become readable once the data types are loaded.
Reconnect. While a tab has a session, the connection header shows Reconnect beside Disconnect, and the tab context menu has Reconnect as well. It closes the session of that connection and opens it again; the watch table and the data logger keep running. Reloading the window closes the sessions of that window, so a later connect does not leave a second session on the server.
Recent endpoints. The Endpoint URL field is an autocomplete dropdown of the last 10 successful connections. Type to filter, or click the down-arrow to pick one. The list is per-workspace (per project) and survives application restart. URL forms that differ only in the case of the scheme or a trailing / are merged into a single entry: typing OPC.TCP://host:4840/ after a previous opc.tcp://host:4840 connection updates the existing entry rather than creating a duplicate. Hostname case is significant, however: Host and host produce separate entries.
Keyboard shortcuts. While the PLC / OPC UA / MQTT pane has keyboard focus, the following keys act on the active connection:
| Shortcut | Action |
|---|---|
| Ctrl+Enter | Connect |
| Enter | Connect from the connection form (in the Endpoint URL field: get the endpoints while Connect is not available yet) |
| Ctrl+D | Disconnect (while connected) |
| F5 | Reload the address-space tree from the server (while connected; also works while the PLC / OPC UA / MQTT side bar has focus) |
| Alt+W | Write a new value to the selected Watch Table row |
To write with the keyboard, select the row in the Watch Table (single click) and press Alt+W. This does the same as the row's pencil button (Write Value): the value cell opens for editing. Type the new value and press Enter to write it to the PLC, or Escape to cancel. Without a selected row, Alt+W does nothing. The Watch Table has more keys of its own while it has focus, see Keyboard in the Watch Table.
Copy NodeId / Copy Browse Path. Right-click any node in the Address Space tree to copy either the canonical Node Id (e.g. ns=2;s=DB1.MyTag) or the human-readable browse path (e.g. Objects/DeviceSet/PLC_1/DB1/MyTag) to the clipboard. Useful for pasting Node Ids into Canvas bindings, AI chat tool calls, or external scripts.
The right tool-stack (Node Attributes, References, Struct Fields) and the bottom tool-stack (Event Log, History Chart, Server Diagnostics) can each be shown or hidden from the Command Palette (Ctrl+Shift+P).
Collapsing and maximizing the bottom panel. Drag the divider above the Event Log, History Chart and Server Diagnostics tabs all the way down and the panel snaps shut, leaving only its tab strip; drag it back up to open it again at its previous size. The buttons at the right end of the tab strip collapse or expand the panel and maximize it so it takes most of the pane; while it is maximized, the same button restores the previous size. Double-clicking an empty part of the tab strip also collapses or expands the panel, and clicking a tab of a collapsed panel opens it on that tab. The Command Palette has the same actions as Collapse Bottom Panel, Expand Bottom Panel and Maximize Bottom Panel, together with Toggle Bottom Panel, whenever PLC / OPC UA / MQTT is open. Studio remembers the state for the next time you open PLC / OPC UA / MQTT.
Folding the right panel away. The right panel with Node Attributes, References and Struct Fields sits beside the Watch Table as a card with a small gap, like the side panels of Studio. A small button in the middle of its divider folds it away fully to the right; the button then stays at the right edge of the pane, and clicking it opens the panel again at its previous width. Dragging the divider almost to the right edge folds it as well. The commands Toggle Right Panel, Collapse Right Panel and Expand Right Panel in the Command Palette do the same whenever PLC / OPC UA / MQTT is open, and Studio remembers the state.
Call Method dialog
Right-click a Method node in the Address Space tree and pick Call Method... to open a dialog that drives an OPC UA method call end-to-end.
The dialog first fetches the method's input and output argument list from the server and renders one editor per input:
| Argument shape | Editor |
|---|---|
| Scalar (boolean, integer, float, string, DateTime) | Single text box with the expected data type as watermark |
| Array | A list of single-value rows with + Row / − Row buttons to match the desired array length |
Each card shows the argument's name, data type, and description (if provided by the server). After filling the inputs, click Call: the dialog calls the method on the server and fills the Output arguments section with the returned values. Closing the dialog, with Close or Escape, cancels any call still in flight.
Below the outputs the dialog shows the answer of the server: its status code with a short explanation, and when the server rejects the call, which input arguments it rejected and why. For the server method GetMonitoredItems it also lists the subscription IDs of your session, so you can pick a valid one. The dialog scrolls when the content is longer than the window.
Method calls write to the PLC. Make sure the method's effect is understood before calling on a running machine.
Edit Matrix dialog
Right-click a Variable node whose value is a two-dimensional matrix (for example a Double[3,4] setpoint table or a calibration grid) in the Address Space tree and pick Edit Matrix... to open a spreadsheet-style editor. The menu entry only appears when the selected variable actually has matrix shape on the server.
The dialog loads the current value and renders every cell as an editable text box with row (R0, R1, ...) and column (C0, C1, ...) headers. Change values cell by cell; changed cells are tracked as dirty. Press Save to write the whole matrix back to the server (only cells you actually changed are re-parsed; untouched cells are preserved as-is) or Reload to throw away your edits and pull a fresh copy from the server.
If the server declares the variable as read-only (no write access for your session), the dialog shows a Read-only badge and the Save button stays disabled. Matrices with more than two dimensions are not editable: the dialog reports "rank not supported" instead of silently flattening the data. Invalid cell values (for example text in a numeric matrix) are flagged when you press Save; fix the cell and try again.
When you press Save the dialog re-reads the current value from the server first. If any cell has changed on the server while you were editing (for example because another client or the PLC itself updated the matrix), a warning banner appears with two options: Overwrite writes your edits anyway (and clobbers the server-side change), Reload discards your edits and pulls the fresh server values into the editor. If the server reports a different matrix shape (more rows or columns than when you opened the dialog), Overwrite is disabled and you must Reload before continuing.
Certificate Management
Open Certificate Management from the Connection Settings flyout (the gear in the connection header), or from the Command Palette (Ctrl+Shift+P), to review and manage the OPC UA certificates this client uses and trusts. The dialog shows five tabs:
Own
- What it shows
- Your client certificate, the one the PLC sees when you connect
- Actions
- Create Own Certificate..., Regenerate Own Certificate... (creates a fresh keypair; ends all active OPC UA sessions)
Trusted
- What it shows
- Server certificates this client has accepted
- Actions
- Reject (moves to the Rejected tab), Delete
Rejected
- What it shows
- Server certificates this client has refused or received while Auto-accept was off
- Actions
- Trust (moves to the Trusted tab), Delete
Issuers
- What it shows
- CA certificates that signed the certificates of your servers
- Actions
- Import..., Delete, Export...
Revocation Lists
- What it shows
- The revocation lists of the trusted and the issuer CAs, with issuer, store, number of revoked certificates and next update
- Actions
- Import..., Delete
Each row shows Subject, Issuer (for server certs), Thumbprint, Valid from, Valid to. Select a row and use the tab's action buttons; Details... shows the full details of a certificate or a revocation list. Every trust, reject, delete, import and create asks you to confirm and is written to the certificate log.
Your own certificate cannot be deleted, because the servers that trust it would refuse the default certificate Studio would create instead. Create Own Certificate... opens a form with the Subject (filled in with the current one), the Application URI (fixed), the Key Size (2048, 3072 or 4096 bits) and the Validity (Months) (1 to 240, default 60), and replaces your own certificate after you confirm. Servers have to trust the new certificate again.
Issuers lets a server whose certificate your company CA signed connect without trusting each server on its own: import the CA certificate with Import... (a certificate that is no CA is refused). On Revocation Lists, Import... asks whether the list belongs to the Issuer Store or the Trusted Store and imports a .crl, .der or .pem file; a list is only accepted when that store holds the CA that signed it. Files must be on a local drive.
Certificate Prompt on Connect
When you connect (or reconnect) to a server whose certificate is not yet trusted or cannot be validated, Studio shows the certificate (subject, issuer, validity period, serial number, thumbprint) together with the reason it was not accepted, and asks how to proceed:
- Trust Server Certificate: trusts this certificate permanently (it appears on the Trusted tab) and the connection continues. Future connections to this server succeed without asking again.
- Accept Temporarily: accepts the certificate for this session only; nothing is stored, and you will be asked again next time.
- Cancel: the connection is not made. The certificate appears on the Rejected tab, where you can still trust it later.
For problems that trusting cannot resolve (for example an expired certificate), the prompt offers only the temporary accept.
The Auto-Accept Certificates toggle for a connection lives in the Connection Settings flyout (the gear in the connection header), per connection tab:
- Off (default): When a server presents a certificate that is not yet trusted, the certificate prompt above asks whether to trust it permanently, accept it for this session, or cancel. This is the fail-secure default and is recommended on networks where you want explicit per-server approval.
- On: Any new server certificate is trusted on first connect. Fastest and most convenient, but trusts whatever the server presents. Enable it only on networks you control.
PLC Explorer
Every successful connection is remembered in a recent-endpoints list (see Recent endpoints above under Connection polish), so you do not have to re-type frequently used PLC addresses each time. The Endpoint URL field offers your recent connections as an autocomplete.
Planned: a dedicated PLC Explorer side bar (a curated list of named PLCs with reachability status and quick-connect) is not yet available in the PLC / OPC UA / MQTT view.
Connection Status Indicators (S7 Native)
License requirement (S7 Native): The S7 Native protocol is included from the Pro plan and, like PLC / OPC UA / MQTT over OPC UA, is unlocked during the free trial. On the Basic plan, the S7 Native protocol option in the connection header is hidden and existing S7 Native connection tabs show an inline upgrade banner in place of the live connection.
When connected to an S7-1200 or S7-1500 PLC over S7 Native, the PLC / OPC UA / MQTT pane shows live status indicators that react immediately to what the PLC is doing:
- Connection-tab dot: a small coloured circle next to the connection tab's title. Hover the dot to see what it means:
- Grey: not connected yet
- Green: online, CPU is running
- Yellow: online but the CPU is stopped (Stop, Startup, Hold, ...), or the app is currently reconnecting
- Red: the PLC is unreachable
- Reconnecting banner: a yellow strip under the connection bar saying "Reconnecting..." appears while the app is trying to restore a lost connection. It clears automatically when the PLC comes back.
- Faded watch values: when the PLC becomes unreachable, the values in the Watch Table fade to half opacity and switch to
???to show they are no longer current. As soon as the PLC is back, new live values replace them on their own. No restart or manual reconnect needed. - Operating-state pill:
RUN,STOP,STARTUPetc. next to the IP address, coloured to match the CPU state. - Access-level badge: sits next to the operating-state pill and reflects the access level the PLC granted when you connected:
- Green
Full access: the supplied password (or anonymous if the PLC permits it) was accepted with full read/write permission. - Amber
Read access/HMI access: the PLC granted a degraded level. Reads work for the categories the level allows; writes will be rejected. - Red
No access: the PLC requires a password and none was supplied. The connection stays open, but the address space, the watch table and the CPU protection are not read. Supply the correct password in the connection form and click Connect again to re-attempt with credentials.
- Green
Address space over S7 Native. The tree lists the blocks of the controller with their variables. A structure or a PLC data type expands to its variables, an array expands to its elements (name[0], name[1], ...) with the index the block declares, and an element of an array of structures expands to the variables of that element. Every element and every variable inside an element can be added to the watch table, read live and written like any other variable. This applies to data blocks with optimized block access and to data blocks with standard block access alike. Texts, hardware identifiers and connection identifiers show with their proper type and value. When the controller declines a read or a write, the message names the reason the controller gave.
TLS encryption and certificate trust (S7 Native)
S7-1500 firmware V2.9 and later requires encrypted communication; current PLCs reject the unencrypted path. Studio mirrors that: every S7 Native connection is encrypted, with nothing to configure.
Certificate trust works on first use:
- The first time a connection to a controller fully succeeds, Studio remembers that controller's certificate. Later connections to the same address expect the same certificate.
- If the controller later presents a different certificate, typical after a firmware update, a replaced device or a freshly created simulator instance, Studio asks whether you trust the new certificate. The question appears wherever Studio goes online to a controller over S7 Native: in PLC / OPC UA / MQTT, with Go Online in the Project Explorer, in Forge and when a unit test runs on the controller.
- If the change is expected, choose Trust New Certificate. Studio forgets the old certificate, connects again and remembers the new one. Your answer applies to every area, so you are not asked again elsewhere.
- If you did not expect a change, choose Cancel. The connection stays closed, because a certificate that changes without reason can mean that someone is intercepting the connection.
- If the new connection attempt fails for a different reason, the notification shows the exact error; in PLC / OPC UA / MQTT, Show Log opens the details.
A certificate is only remembered once a connection has fully succeeded, so a failed connection attempt never blocks future connects.
If support asks for a Wireshark capture of an encrypted S7 Native connection, follow the steps under Unit Testing → Troubleshooting; they apply to PLC / OPC UA / MQTT connections as well.
CPU Protection panel
On an S7 Native connection, the CPU Protection panel (tab labelled "CPU Protection") in the S7 panel stack shows the connected CPU's protection / access level read over S7 Native. The granted access level is also surfaced live on the Access-level badge described above under Connection Status Indicators (S7 Native).
Diagnostic Buffer panel
On an S7 Native connection, the Diagnostic Buffer panel in the S7 panel stack lists the most recent CPU diagnostic events, mirroring what TIA Portal Online & Diagnostics shows under "Diagnostics buffer":
- Columns:
Timestamp(UTC, millisecond precision),Event ID(hex0xXXXX),Class,Priority,OB(organization-block reference). - Refresh: re-reads the diagnostic buffer on demand. The value also refreshes automatically once after every successful S7 connect on supported firmware.
- Empty state: when the CPU reports zero events, a
No diagnostic events on this CPU.placeholder is shown. - Firmware requirement: the diagnostic buffer needs CPU firmware V3.0 or newer. On V2.x CPUs the panel shows
Diagnostic buffer requires CPU firmware V3.0 or newer.instead of the table.
CPU Identity panel
On an S7 Native connection, the Identity (I&M0) panel in the S7 panel stack shows the device-identification record (PROFINET I&M0) read from the active S7-1500 / S7-1500F CPU. Works on both V2.x and V3.0+ firmware.
- Order number / Serial / Hardware version / Firmware version / PLC and module name / CPU type: rows extracted from the I&M0 record on the CPU's submodule.
- Refresh: re-reads the I&M0 record on demand. The value also refreshes automatically once after every successful S7 connect.
Alarms panel
On an S7 Native connection, the Alarms panel in the S7 panel stack shows the CPU's alarm definitions and a live alarm stream:
- Each alarm's category, severity, and transition are shown as readable labels.
- A server-side filter limits the stream by category and minimum severity.
- When the CPU reports no alarms, a branded empty state is shown.
Memory Usage panel
On an S7 Native connection, the Memory Usage panel (tab labelled "Memory Usage") in the S7 panel stack shows the CPU's memory usage read over S7 Native.
When a CPU panel cannot be read
Each panel in the S7 panel stack reports for itself. If one of them cannot be read from the CPU, the message appears inside that panel, together with a Retry button that reads it again; the other panels keep showing their values. Once the read succeeds the message disappears.
Not every CPU offers every panel. A CPU that provides no diagnostic buffer says so plainly on the Diagnostic Buffer tab, which is different from a diagnostic buffer that is simply empty. The Alarms tab reports it when no live alarms are coming in from the CPU, and offers the same Retry.
Cycle Time panel
On an S7 Native connection, the Cycle Time panel (tab labelled "Cycle Time") in the S7 panel stack shows the CPU's cycle time read over S7 Native.
Protocol-Aware Panels
The panels around the connection workspace adapt to whichever protocol the active connection uses:
- OPC UA connection: Address Space, Node Attributes, References, Struct Fields, Event Log, Alarms, Watch Table, History Chart, Server Diagnostics, Performance.
- S7 Native connection: Address Space, Watch Table, plus the S7 panel stack (CPU Identity, CPU Protection, Memory Usage, Cycle Time, Diagnostic Buffer, Alarms, and Compare). The OPC-UA-only panels (Node Attributes, References, Struct Fields, Event Log, Server Diagnostics) are hidden, because an S7 controller does not offer node IDs, OPC UA events or the other information they show.
Switching the protocol selector in the connection header re-applies the filter immediately.
Watch Table
The Watch Table fills the center of the PLC / OPC UA / MQTT pane and displays variables you have selected for monitoring. Its title bar carries a toolbar: Subscribe (play), Stop, Export CSV, Clear All, and Remove Selected (a trash icon, enabled when a row is selected). Subscribe and Stop toggle live monitoring of the rows; Remove Selected removes every selected row, also while monitoring is running, and Clear All empties the table. The title bar also holds a Filter box, see Filtering Rows.
Adding Variables
- Double-click a variable node in the address space tree to add it to the watch table
- Right-click a node in the address space tree and pick Add to Watch
- Drag a node from the tree and drop it onto the watch table; dropped between two rows, it is inserted at that place, and a line shows where it lands
- A structured variable is added as one row per member (you are asked first when there are more than 20). A member picked from inside a structure keeps its full name, such as
rcp.rQtyAorMotor.Speed[3] - When some of the selected nodes cannot be added, the others are still added and one message names the nodes that were skipped and why
- From the EPLAN to TIA tag comparison: select rows and click Add to Watch Table to add their tags to the watch table of the active connection (see EPLAN Signals to TIA Tag Tables)
Each row in the watch table shows:
| Column | Description |
|---|---|
| Address | Readable address of the variable: the symbol path on an S7 connection, on OPC UA the symbolic name such as "DataBlock1".Speed or the browse path of the node |
| Display Name | Display name of the variable |
| Data Type | OPC UA data type (e.g., Int16, Float, Bool) |
| Value | Current value: scalars render as typed strings (True, 12345, 1.5); arrays render with a size-prefix and element list ([16] True, False, …); byte arrays render as hex ([4] DE AD BE EF). Long arrays truncate after 32 elements. |
| Status | The exact status the server reports, for example Good, UncertainLastUsableValue, BadNodeIdUnknown or BadUserAccessDenied. Good stays neutral, Uncertain is shown in the warning colour and Bad in the error colour. Hover over the cell to see the status code, for example 0x80340000. |
| Source Timestamp | Timestamp of the last value |
| Node ID | OPC UA Node ID (e.g., ns=3;s="DataBlock1"."Speed"), hidden by default |
| Server Timestamp | Time the server received or last reported the value; for an S7 connection the same as the source timestamp |
Arranging Columns
Right-click the column header to choose which columns are shown: every column has its own check mark, and Reset Columns brings back the standard columns and widths. At least one column always stays visible. Drag the right edge of a column header to make the column wider or narrower; only that column changes, the columns to its right move along, and the header and the values below it stay aligned. When the columns are wider than the pane, the table scrolls sideways; otherwise the last column fills the remaining width. Studio remembers your columns and widths for every watch table.
With the Pro+ plan the column menu also offers Unit, Range, Instrument Range and Description. They show the unit of a value (for example °C), its range (for example 0 to 120), the measuring range of the instrument and the description the server gives the variable; a cell stays empty when the server has no such information for the row, and on S7 connections. They are hidden until you switch them on. With a lower plan the menu lists them with the mark (Pro+), and choosing one tells you which plan includes them. If your plan drops below Pro+, the four columns are hidden, and the ones you had switched on come back as you left them once your plan includes them again.
Filtering Rows
Type in the Filter box in the title bar to show only the rows whose name, address, node ID or value contains the text. The count next to the box shows how many rows match, for example "3 of 12". The filter only hides rows: monitoring, saving and exporting still cover the whole table. Click the clear button or press Escape to empty the box, press Escape again to return to the rows, or press the Down arrow or Enter to move from the box into the rows. Ctrl+F in the table jumps to the box.
Reordering Rows
Drag a row, or several selected rows, to a new place in the table; a line shows where they land. With the keyboard, Alt+Up and Alt+Down move the selected rows by one place, and the context menu of a row has Move Up and Move Down. The order is kept when you close PLC / OPC UA / MQTT and when you save and load the table.
Expanding Structures and Arrays
A row that holds a structure, a PLC data type or an array shows an arrow in front of its name. Click the arrow, or press the Right arrow, to show the members or elements right below the row, indented, each with its own value, data type and address. Members that are structures or arrays open further the same way. Their values keep updating while monitoring is running, and a member that can be written is edited in place like any other value. Click the arrow again, or press the Left arrow, to close the row. Rows with a single value have no arrow.
Keyboard in the Watch Table
While the watch table has focus, these keys work on the rows:
| Key | Action |
|---|---|
| Up / Down | Move between rows; with Shift the selection grows, Ctrl+A selects all rows |
| Delete | Remove the selected rows |
| F2 or Enter | Edit the value of the selected row; Enter writes it, Escape cancels |
| Alt+Up / Alt+Down | Move the selected rows up or down |
| Right / Left | Open or close a structure or an array; on an open row Right goes to its first member, on a member Left goes back to its row |
| Ctrl+F | Jump to the Filter box |
| Alt+Enter | Open the Monitoring Settings of the selected rows (OPC UA) |
| Shift+Alt+Enter | Open the Subscription Settings of the table |
| Letters | Jump to the next row whose name starts with them |
Reading Values
While the connection is live, every row's value, quality, and timestamp update automatically, so there is no need to poll manually. A value that does not change keeps its timestamps until it changes; press Refresh Values in the toolbar to read every row once and get fresh timestamps. A value you write shows in its row at once. A row the server does not know shows its status, for example BadNodeIdUnknown, with empty timestamp cells.
With the Pro+ plan the Value column uses what the server says about a variable: a decimal value is shown with the number of decimal places the server defines, a switch shows its state text next to the value, for example On (true), and a number that stands for a text shows that text, for example Auto (2). Hover over the value to see the raw value.
Writing Values
- Double-click the Value cell of a row in the watch table, or select the row and press F2 or Enter
- Enter the new value; a Boolean value opens a true / false choice instead, which you change with the arrow keys or by typing t or f
- Press Enter or click outside the cell to confirm
- The value is written to the PLC immediately
Only one value is edited at a time: starting an edit in another row ends the edit that was open.
Some data types are written as text in a fixed form. The value cell shows the form as a hint, marks text that does not fit and tells you why when you press Enter:
DateTime, UtcTime
- Form
- ISO 8601; without an offset the time is UTC
- Example
-
2026-10-30T14:05:00Z,2026-10-30T16:05:00+02:00
ByteString
- Form
- Hex or base64, at most 1 MB
- Example
-
0x0A1B2C,0a 1b 2c,base64:Chss
LocalizedText
- Form
-
[locale] text, or the text alone;[]keeps a text without locale that starts with a bracket - Example
-
[en-US] Hello,[] [A] Alarm
Guid
- Form
- The 36 character form
- Example
-
72962b91-fa75-4ae6-8d28-b404dc7daf63
NodeId
- Form
- The node ID
- Example
-
ns=3;s=Motor,i=2258
QualifiedName
- Form
- Namespace index and name
- Example
-
3:Speed
StatusCode
- Form
- The status name or its number
- Example
-
BadOutOfRange,0x803C0000
The cell of such a value opens in this form, so you can change it and write it back. An enumeration shows its name and number, for example Run (8), and opens a list of its values when you edit it; in a structure, an enumeration member that has its own node does the same.
An array row is edited as a list in square brackets, for example [1, 2, 3] or ["2026-10-30T14:05:00Z", "2026-10-31T06:00:00Z"], and written as a whole, with up to 65536 elements. When an element does not fit the data type, the cell names the element by its number and nothing is written.
Note: Write operations require the OPC UA user to have write permissions configured on the PLC.
Write Errors
If a write fails, the row stays in edit mode (your value remains visible) and a small red error message appears below the value cell explaining why the write was rejected:
- Variable is read-only: the server rejected the write because the variable does not allow writes (
BadNotWritable/BadWriteNotSupported). - Permission denied: the OPC UA user is connected but does not have write rights for this variable (
BadUserAccessDenied). - Type mismatch: the value cannot be converted to the variable's data type (
BadTypeMismatch). - Value out of range: the value is outside the valid range for the variable (
BadOutOfRange). - Server returned no result: the server accepted the request but returned no per-item status; the write may not have taken effect.
- Write failed: {reason}: generic fallback for any other server response or connection problem.
To clear the error, edit the cell again or click another row. A successful write also clears the message.
The same feedback appears as a banner above the Struct Fields panel for failed struct writes.
Struct Write: No Changes
If you press Write Values on the Struct Fields panel without having edited any field, the panel shows a "No changes to write" banner. As soon as you edit any field, the banner clears automatically and the next press of Write Values sends the changes to the server.
Live Monitoring
While a connection is live, the watch table updates on its own: the OPC UA server pushes value changes to AnyAutomation Studio through a single subscription, without repeated polling, so the PLC only sends what changed. As soon as a variable is added to the watch table, its value, quality, and timestamp track the PLC in real time. You can select, remove, move and edit rows while the values update; your selection stays where it is. Rows you add or remove while the values update leave the other rows and their timestamps untouched.
On an OPC UA connection Interval (ms) takes any value from 1 to 60000 ms; on an S7 connection the lowest value is 100 ms. The server may publish at another interval than the one you set in Interval (ms), for example every 1000 ms when you asked for 500 ms. The watch table then shows the interval the server uses next to the field, for example Server: 1000 ms; hover over it for an explanation.
Note: Very fast update rates are not recommended for production CPUs: they can overload PLCSIM Advanced and may exceed the communication-load budget on real S7-1200 / 1500 PLCs (see CPU comm-load setting in TIA Portal). Use aggressive rates only for short, targeted measurements.
Monitoring Settings
Every row of an OPC UA watch table can be watched in its own way. Right-click one or several rows and choose Monitoring Settings..., or press Alt+Enter while the watch table has focus. When you select several rows, a field that differs between them shows Mixed and stays as it is unless you change it.
| Setting | What it does |
|---|---|
| Sampling Interval (ms) | How often the server checks the value: -1 uses the publishing interval of the table, 0 the fastest rate the server offers, up to 3600000 |
| Queue Size | How many changes the server keeps for the row between two updates, 1 to 10000 |
| Discard Oldest | When the queue is full, drop the oldest value instead of the newest |
| Monitoring Mode | Reporting sends every change, Sampling keeps checking the value without sending it, Disabled stops watching the row |
| Data Change Trigger | What counts as a change: Status, Status and Value, or Status, Value and Timestamp |
| Deadband Type and Deadband Value | Absolute reports a change only when the value moves by more than the amount you enter; Percent does the same in percent of the measuring range of the node and needs a node with such a range; None reports every change |
The Server column next to every field shows what the server actually applied, for example a sampling interval of 1000 ms when you asked for 250 ms. Each field checks your input while you type and names the allowed values; Apply (or Enter) only becomes available when every field is valid. While the live updates run, the change applies at once without restarting them; while they are stopped, the settings are kept and apply when the live updates start. When the server refuses the settings for some rows, the dialog stays open, lists every refused row with the reason and shows the settings the row keeps. Escape or Cancel closes the dialog.
The Monitoring Settings are offered for OPC UA connections only.
Subscription Settings
The gear button next to Interval (ms) in the watch table toolbar, the context menu of a row, or Shift+Alt+Enter opens Subscription Settings... for the whole table:
| Setting | What it does |
|---|---|
| Publishing Interval (ms) | How often the server sends the changes, 1 to 60000 (100 to 60000 on an S7 connection) |
| Lifetime Count | How many publishing intervals the server keeps the subscription without hearing from Studio; 0 picks a lifetime of at least six minutes, otherwise at least three times the keep-alive count |
| Keep-Alive Count | After how many publishing intervals without a change the server still reports that it is alive, 1 to 10000 |
| Max Notifications per Publish | The most changes the server sends at once; 0 means no limit |
| Priority | 0 to 255, a higher value is served first when the server is busy |
| Publishing Enabled | Off keeps the subscription but the server sends no values |
The Server column shows the values of the running subscription as the server applied them. Changes apply at once, without restarting the live updates; if the server refuses them, the dialog stays open and the previous settings stay. On an S7 connection only the publishing interval can be changed.
When a lost connection is restored, the Server column shows the values the server applied to the restored subscription, and the text at the top of the dialog says that the connection was restored.
Monitoring Column
Right-click the column header and turn on Monitoring to see the settings of each row that differ from the standard ones, for example "Sampling 250 ms, Queue 4, Absolute 5". A row with the standard settings shows nothing. Refused marks a row the server did not accept, Change Refused a row whose last change the server refused; the row keeps its previous settings. Hover over the cell to see every setting with the requested value and the value of the server, and the reason of a refusal.
The monitoring and subscription settings are saved with the workspace and in watch tables you save as JSON; the CSV export holds values only.
Data Logger
The Data Logger button in the watch table toolbar, right of Stop, writes every value change of the watch table to a CSV file while you work. It works for OPC UA and S7 connections.
- Click Data Logger.
- Click Browse… next to File and choose where the CSV file is saved.
- Under Rows, choose All Rows, or Selected Rows to log only the rows you selected before.
- Set the Flush Interval (ms), how often the file is written (0 writes every change at once, the default is 1000), and the Size Cap per File (MB) (0 means no cap).
- Click Start Logging.
The live updates start on their own if they were off. While logging, the button turns red and a red dot next to it shows how many lines were written; hover over the button for the file and the counts. Click the button again to stop logging; the live updates keep running.
Each line of the file holds the local time, the source and server timestamps, the node ID (on an S7 connection the symbol path), the name, the value, the status and the status code. The file starts with one line for every row that already has a value, then adds a line for every change. It opens directly in Excel. When a file reaches the size cap, logging continues in a numbered follow-up file, for example run_2.csv, run_3.csv and so on, each with its own header row, at most 99 follow-up files per run. A follow-up name that already exists is skipped, so the logger never replaces a file you did not choose.
The logger keeps writing through a reconnect. It stops on its own, and tells you why, when the connection closes or the tab is closed, when you stop the live updates with Stop, when the file cannot be written, or when no follow-up file is left. If the disk cannot keep up with the changes, the indicator also shows how many lines were dropped.
Saving and Restoring the Workspace
The PLC / OPC UA / MQTT workspace (open connections without passwords, the watch table, the event filter, and the history range) is captured automatically and restored the next time you open the view. No setup is needed.
Every open connection tab keeps its own saved state (watches, event filter, and history range), not just the active tab. When you reopen PLC / OPC UA / MQTT, each connection tab comes back with the variables and history range you left it with.
After restarting AnyAutomation Studio, PLC / OPC UA / MQTT opens disconnected: endpoints, watch lists, and settings are restored, but no connection is established on its own, so click Connect when you are ready. The same holds when you close the PLC / OPC UA / MQTT tab and open it again within a session. Switching between editor tabs, on the other hand, keeps every connection running.
Passwords and certificate passwords are never saved with the workspace; Studio remembers them on this computer and uses them again when the workspace is restored. If one is missing, Studio asks you to enter it again, and the rest of the workspace is restored anyway.
The pane also remembers how you arranged it (the splitter positions and whether the right and bottom tool-stacks are shown) and puts everything back the next time you open PLC / OPC UA / MQTT.
If you do not want a particular connection saved at all, turn on Do Not Persist Connection in that tab's Connection Settings flyout (the gear in the connection header).
Named workspace files. The editor title-bar menu (...) offers Save Workspace As…, Load Workspace…, and Reset Workspace (also available from the Command Palette). Save Workspace As… writes the current workspace (open connections, watch tables, event filters, and history ranges) to a portable workspace file you can hand to a colleague; Load Workspace… reads one back; Reset Workspace clears the pane back to a single empty connection. No passwords or certificate passwords are written to the portable file; on load, a missing secret simply prompts a re-entry.
Exporting Watch Table Data
The Watch Table toolbar carries an Export CSV button that writes the current rows to a file. The CSV has eleven columns (Name, Node ID, Address, Value, Data Type, Quality, Timestamp, Unit, Range, Instrument Range and Description), so an external tool can resolve each row back to its node. The last four are filled with the Pro+ plan and stay empty otherwise. Cells are written so that a spreadsheet program never runs them as a formula.
The Event Log and History Chart panels each carry their own Export CSV action that writes their visible rows to a file in the same way; see those panels above.
The AI assistant can save the Event Log or the History Chart as a CSV file as well. Its card names the file, what is exported and the connection, and says that an existing file is replaced; the file is written only after you confirm. In the Tool Approvals, PLC / OPC UA / MQTT Export has its own level, so allowing PLC / OPC UA / MQTT Panels never lets the assistant write a file.
OPC UA Tools for the AI Chat
The PLC / OPC UA / MQTT and Canvas tools ship with Studio and are available to the built-in AI chat directly, there is no MCP server to start. You switch them on in the chat tool picker, where they appear grouped by source: opcua for PLC / OPC UA / MQTT connections and OPC UA nodes, s7 for S7 controllers. The assistant works in the same PLC / OPC UA / MQTT you see, for OPC UA and S7 connections alike: a connection it opens appears as a connection tab, the variables it watches land in your watch table, the panels it opens appear around the editor, and a tree refresh it triggers updates the side bar. Everything that changes the controller, a connection, your workspace or a file asks you first.
The OPC UA and S7 tools belong to AI for PLC / OPC UA / MQTT and need the Pro+ plan; the free trial unlocks them. With the Pro plan you operate PLC / OPC UA / MQTT yourself, and the chat tool picker does not offer the tools.
| Area | What the assistant does |
|---|---|
| Connections | Lists the open OPC UA and S7 connections, including the connection tabs of PLC / OPC UA / MQTT, and whether a tab is a PLCSIM Advanced instance or a real controller; discovers the endpoints a server offers with their security modes; opens PLC / OPC UA / MQTT and connects to an OPC UA server in a connection tab; disconnects a connection and re-establishes a dropped one |
| Address space | Lists the child nodes and the references of a node, searches the address space by name, reads the attributes of a node, reads the unit, range, description and the other OPC UA properties of up to 500 nodes at once (Pro+) and reloads the address-space tree from the server |
| Reading and writing | Reads the current value of one or more variables, a structure or a data block with all its members, the members of a structure, a two-dimensional array, and the data type definitions and namespace list of the server; writes a value or a whole array, members of a structure and two-dimensional arrays |
| Watching | Watches variables for a chosen time and reports the value changes; collects the events of a node for a chosen time |
| Watch table | Lists, fills or clears the watch table, starts and stops the live updates, sets the interval, writes values, changes the monitoring settings of rows and the subscription settings of the table, starts, stops and checks the data logger (starting it asks you first), adds a whole data block, and saves, loads, imports or exports the table; it also adds rows at a chosen position, moves rows, opens and closes structures and arrays, sets the filter and shows, hides or resizes the columns; it can also watch the table for a few seconds (at most a minute) and report every value that changed |
| History | Reads recorded raw values of a variable over a time window, aggregated history (for example averages per interval) and the recorded values at given points in time |
| Server and methods | Reads the server diagnostics, reads the arguments a method takes and calls a method; prepares nodes for fast repeated access and releases them again |
| Certificates | Lists the certificate stores; trusts, rejects, deletes, exports, imports or regenerates a certificate; shows the latest entries of the certificate log |
| Workspace | Opens PLC / OPC UA / MQTT, adds, switches and closes connection tabs, selects a node for the detail panels, changes the settings of a tab, lists the recent endpoints, saves, loads or resets the workspace, restarts PLC / OPC UA / MQTT when it no longer responds and reads the PLC / OPC UA / MQTT log |
| Panels | Lists the alarms, runs Condition Refresh, runs read benchmarks, shows or hides the panels, drives the Event Log, the History Chart and the Diagnostics panel, shows a tab of the S7 panels, sets the alarm filters and chooses the offline project of the S7 compare, and collapses, expands or maximizes the bottom panel |
| Alarm actions | Acknowledges, confirms, comments, enables, disables, shelves and unshelves alarms after you confirm |
| Write benchmark | Runs a write benchmark that writes back the current values after you confirm |
| Export | Saves the Event Log or the History Chart as a CSV file after you confirm |
| S7 controllers | Connects to an S7 controller by its IP address, disconnects and reconnects it and reads the access level the controller granted; reads the CPU identity, protection level, memory usage, cycle time, diagnostic buffer and alarms, collects alarms for a chosen time and compares the blocks with an offline project; lists the blocks and their members, finds tags by name, and reads, writes and records the values of S7 tags |
| Canvas | Binds a Canvas dashboard to live values and to writes |
Example AI Chat usage:
Ask the AI assistant in the chat panel things like:
- "Connect to the PLC at 192.168.0.10 anonymously and browse the data blocks"
- "Read the value of node
ns=3;s="Tank1"."Level"and tell me if it is above 80%" - "Watch the Float variables in the 'Production' data block for ten seconds and show me what changed"
- "Add every tag of DB_Conveyor to the watch table"
- "Write the value 1500 to
ns=3;s="Conveyor"."SetSpeed"" - "Refresh the address space, I just added a tag in TIA Portal"
- "Connect to the S7 controller at 192.168.0.5 and ask me for the password"
- "Show me the diagnostic buffer and the cycle time of the S7 connection"
- "Add the data block Motor_DB to the watch table and start the live updates"
- "Save the watch table to my Documents folder as motors.json"
- "Move the motor rows to the top of the watch table and hide the timestamp columns"
- "Watch the table for 10 seconds and tell me which values change"
- "Set a sampling interval of 100 ms and an absolute deadband of 0.5 on the temperature rows"
- "Log all watch table rows to a CSV file in my workspace"
- "Show me the unit and the range of the temperature rows in the watch table"
S7 Controllers, Sign-in and Writes
The assistant connects to an S7-1200 or S7-1500 controller by its IP address and opens the connection as a tab in PLC / OPC UA / MQTT. For the sign-in you have three choices: type the user name and password in the chat, let the assistant use the password PLC / OPC UA / MQTT saved for this controller, or have it ask you, then you type the user name and the password in a masked input and they never reach the chat. The password is never shown on a confirmation card or in an answer. After connecting, the assistant tells you which access level the controller granted; with read or HMI access only, it offers to connect again with your credentials.
When the controller presents a different certificate than the one Studio remembers, you are asked whether to trust it, as when you connect yourself. The assistant can trust it for you only when you agreed, and the confirmation card says so. When the controller does not support secured communication, the assistant tells you that the traffic is not encrypted.
Every write shows one confirmation card that lists all values and names the target: a PLCSIM Advanced instance or the real controller at its address. There is no further filter, so check the values on the card before you allow a write to a real controller. Connecting, disconnecting, workspace changes and files the assistant writes are confirmed as well. To keep the assistant away from your controllers, choose Always Deny for the s7 and opcua groups in the Tool Approvals.
The S7 tools, like the OPC UA tools, need the Pro+ plan; so does the offline compare.
Connecting to CODESYS Controllers
PLC / OPC UA / MQTT also connects to CODESYS controllers that run an OPC UA server, for example the CODESYS Control Win soft PLC on your own computer. The controller only shows the variables you publish in the CODESYS project, and it needs a few settings there first:
- Symbol Configuration. Add a Symbol Configuration to the application, enable Support OPC UA features, and select the variables to publish, each with read or read and write access. Download the application to the controller.
- Server certificate. The OPC UA server of the controller needs its own certificate, which you create in CODESYS under View > Security Screen. Without it the server offers no sign-in.
- User. CODESYS controllers accept no anonymous sign-in. Choose Username/Password and sign in with a user of the controller's user management.
- Trust in both directions. On the first connect, Studio asks you to trust the certificate of the controller. The controller in turn rejects Studio at first: move the client certificate of AnyAutomation Studio from the quarantine to the trusted certificates in the Security Screen of CODESYS, then connect again.
For a soft PLC on the same computer, enter opc.tcp://127.0.0.1:4840 rather than localhost. The published variables appear in the address space under Objects > DeviceSet > the controller name > Resources > Application, and you browse, read, write and monitor them like any other OPC UA node. CODESYS controllers keep no history, so the History Chart stays empty for them.
Notes
- OPC UA connectivity does not require TIA Portal to be open or connected
- The PLC must have OPC UA enabled in its hardware configuration (General → OPC UA → Server)
- For S7-1500 PLCs, ensure the OPC UA server is activated and the relevant PLC tags are marked as "Accessible from HMI/OPC UA"
- Certificate-based authentication requires exchanging certificates between the client and the PLC
AI Canvas with OPC UA Live Data
The AI Canvas can display interactive dashboards that connect to live OPC UA data. The AI creates visual dashboards (gauges, buttons, sliders, animations) on the Canvas, and OPC UA values are bound to the dashboard for real-time updates.
How It Works
- The AI creates a dashboard on the Canvas
- Read bindings show OPC UA values on the dashboard and keep them up to date
- Write bindings turn button clicks and slider changes on the dashboard into OPC UA writes
- All updates happen automatically: no manual polling or subscription setup needed
Canvas OPC UA Tools
Read binding
- Direction
- PLC → Canvas
- Description
- Shows OPC UA values on the dashboard in real time
Remove read bindings
- Direction
- None
- Description
- Stops all read bindings
Write binding
- Direction
- Canvas → PLC
- Description
- Turns button clicks and slider changes into OPC UA writes
Remove write bindings
- Direction
- None
- Description
- Stops all write bindings
Field write
- Direction
- Canvas → PLC
- Description
- Writes single fields of a data block and leaves the other fields as they are
Example: Process Control Dashboard
Ask the AI to create an interactive dashboard:
"Create a process control dashboard on the Canvas with Start/Stop buttons, a speed slider (0-3000 RPM), and live gauges for Speed, Temperature, Pressure, and FlowRate. Bind it to the data block
Data_block_1via OPC UA."
The AI will:
- Create the visual dashboard on the Canvas
- Set up read bindings for live value display
- Set up write bindings so buttons and sliders control the PLC
Saving and Loading Dashboards with OPC UA Bindings
Canvas dashboards can be saved to JSONL files and loaded later. OPC UA binding configurations are included in the saved file.
Save:
- Click the Save button in the Canvas toolbar
- The JSONL file contains the dashboard and its OPC UA bindings
Load:
- Connect to the OPC UA server first
- Click the Load button in the Canvas toolbar and select the saved JSONL file
- The dashboard is restored and OPC UA bindings are automatically re-applied
- Live data starts flowing immediately (if OPC UA is connected)
Note: OPC UA bindings are also preserved when the Canvas is docked/undocked within the same session.
Important Notes
- An active OPC UA connection is required before bindings can deliver data
- The Canvas
Resetbutton stops all OPC UA bindings (both read and write)