Siemens TIA Portal: Configuring HMI Visibility and DB Tag Access
When engineers first open the TIA Portal PLC tag table or the properties dialog of a data block (DB) variable, they encounter two columns or attribute check boxes that look almost identical: "Visible in HMI" and "Accessible from HMI". The default behavior in the tag table shows PLC tags with both attributes set, while DB variables frequently appear with only Visible enabled and Accessible disabled (greyed or unchecked). This asymmetry is the source of almost every "I cannot write to my tag from the panel" ticket in STEP 7 / TIA Portal support.
This reference explains the meaning of each attribute, the engineering rationale behind the default, and the exact steps required to grant HMI write permission to a DB variable, with version-specific notes from STEP 7 Professional V11.0 SP2 through TIA Portal V19.
1. Semantics of the Two HMI Attributes
Both attributes belong to the Accessibility property group of a tag and are evaluated by the HMI device at runtime when the HMI tag is created from the PLC tag or DB tag reference. They are independent switches: enabling one does not automatically enable the other.
| Attribute | Runtime effect | Default on PLC tag | Default on DB tag |
|---|---|---|---|
| Visible in HMI | Tag appears in the HMI tag picker, the HMI tag table, and the cross-reference of the HMI device. The HMI can acquire the value via the S7 communication channel. | Enabled | Enabled |
| Accessible from HMI | Tag can be both read and written from the HMI runtime. The HMI tag receives write permission. Without this attribute set, the HMI is read-only on this tag. | Enabled | Disabled (the source of the most common complaint) |
In other words: Visible in HMI controls visibility (selection in pickers, browseability, cross-reference), while Accessible from HMI controls mutability (write capability). The two are deliberately decoupled so that read-only tags (setpoints from the PLC, calculated values, diagnostic data) can be browsed in the HMI without granting the operator panel the right to overwrite them.
2. Why DB Variables Default to "Visible" Only
Siemens ships DB variables with Accessible from HMI = false by default as a fail-safe default. The reasoning is that DBs frequently contain structured process data that the PLC program owns and writes to internally (recipe values, machine states, production counters, alarms). Granting automatic write access to every DB element would expose the entire data model to the HMI, including variables that the application logic expects to control exclusively.
Conversely, the classical PLC tag table (created from the project tree under PLC > PLC tags > Default tag table or user-defined tag tables) contains the I/O, memory, and timer/counter addresses that are intentionally exposed to the HMI. The PLC tag table was historically the HMI-facing namespace, so Siemens enables both attributes by default there.
This default was introduced in STEP 7 V11 SP2 (manual reference: STEP 7 Professional V11.0 SP2, chapter 9.1.2.6 — "Configuring the HMI accessibility of PLC tags") and is preserved in every subsequent TIA Portal release, including the current V19.
3. Configuration Procedure: Enabling "Accessible from HMI" on a DB Variable
Follow this sequence to grant the HMI runtime write access to a specific DB variable.
Prerequisites
- TIA Portal project containing an S7-1200/1500 CPU and at least one HMI device (Comfort Panel, WinCC Runtime Advanced, WinCC Runtime Professional, or Unified Comfort Panel).
- An HMI connection established under
Devices & Networks > Connectionswith an active S7 connection partner. - The DB must be downloaded once to the PLC. Accessibility flags are stored in the offline project and compiled into the PLC hardware configuration download.
Step-by-Step
- Open the project tree and expand the S7 CPU →
Program blocks→ the target DB (e.g.,DB_Machine). - Right-click the DB and select
Open(or double-click). The DB editor opens. - Switch the view from Details to the table view if it is not already selected. In TIA Portal V14 and later, the right-hand pane shows the column Accessible from HMI by default; in V11 SP2 and V13, you may need to enable the column via right-click on the table header → Show/Hide Columns.
- Tick the checkbox in the Accessible from HMI column for each variable that the operator panel should be allowed to write.
- Compile the PLC (right-click CPU →
Compile > Software (rebuild all blocks)). - Open the HMI device →
HMI tags. The HMI tag table automatically offers to import the new accessibility flag, or you drag the DB variable from the project tree directly into the HMI tag table. - Compile the HMI and download both PLC and HMI to the targets.
4. Tag Table Hierarchy: PLC Tags, DB Tags, HMI Tags
A TIA Portal project can contain up to three logically distinct tag namespaces. Understanding the boundaries prevents accidental misuse.
| Namespace | Location | Address style | Default HMI access | Typical use |
|---|---|---|---|---|
| PLC tag table | PLC > PLC tags |
Symbolic + absolute (I, Q, M, T, C) | Visible and Accessible | I/O signals, shared memory, timers, counters |
| DB tag | Program blocks > DB |
Symbolic only (S7-1200/1500) | Visible only | Process data, recipes, machine state, diagnostics |
| HMI tag | HMI > HMI tags |
Points to PLC or DB tag via connection | N/A (HMI-side definition) | Variable used in screens, scripts, tags, logging |
An HMI tag is a pointer: it carries the data type, acquisition cycle, limits, and scaling factors, and references either a PLC tag or a DB tag through the HMI connection. If the referenced source tag is not flagged Accessible from HMI, the HMI tag inherits read-only semantics regardless of the acquisition settings on the HMI side.
5. HMI Connection Configuration and S7 Routing
The HMI accessibility attributes are only one side of the contract. The HMI must also be bound to the CPU by an S7 connection that allows the requested direction. Misconfiguration at this layer causes the same symptom (no write capability) but requires a different fix.
5.1 Required HMI connection properties
- Connection type: S7 connection (TCP via PN/IE, or PROFIBUS DP for older panels).
- Partner interface: the CPU's PROFINET or PROFIBUS interface, depending on topology.
- Connection resource: the CPU must have a free S7 connection resource; S7-1200 CPUs in firmware V4.0 and later support 1–8 HMI connections depending on catalog number.
- PUT/GET access: for S7-1200/1500, the CPU's Properties > Connection mechanisms > Permit access with PUT/GET communication from remote partner must be enabled if the HMI is not in the configured access list. (HMI panels created in the TIA project are normally in the access list by default.)
5.2 HMI device property — Access point
On the HMI device, the Connection editor (TIA V14+) or the HMI connections editor (V11–V13) must reference the S7 connection. If the connection is missing or points to a non-existent CPU, the HMI tag will not be able to write even when the source DB tag is flagged Accessible.
6. Runtime Behavior and OPC UA Mapping
The Accessible from HMI flag has implications beyond the HMI panel. The TIA Portal exposes the same set of flags to:
- S7 communication (PUT/GET) from other PLCs or SCADA systems — the flag controls the read-only contract across the S7 protocol.
- OPC UA server on the S7-1500 (firmware V2.0+): the variable is exported with an appropriate access level. By default, an OPC UA client can read all visible tags, but only tags flagged Accessible from HMI can be written.
- Web server of the S7-1200/1500 (user-defined pages): write attempts on non-accessible tags return a server-side error.
This means the flag is a project-wide authorization, not a panel-specific setting. A tag that is "Accessible from HMI" is accessible from any authorized partner. If the engineering intent is to allow write access from the panel only, the network topology (access list, firewall, PLC security mode) provides the additional containment.
7. Security Model: Read-Only vs Read-Write Boundaries
Plant security best practice in TIA Portal distinguishes three tiers of mutability:
| Tier | Flags set | Recommended use |
|---|---|---|
| Hidden | None (both unchecked) | Internal scratch variables, library internals, password-protected |
| Visible / Read-only | Visible in HMI = true, Accessible from HMI = false | Diagnostics, status displays, actual values, alarms, calculated setpoints |
| Visible / Writable | Visible in HMI = true, Accessible from HMI = true | Operator-entered setpoints, mode selectors, manual overrides, recipe parameters |
Most production systems sit at 60–80% read-only, with writable tags limited to named operator inputs. Auditors and IEC 62443 reviews typically look for evidence that writable flags are explicitly granted, not implicitly default.
8. Version History: From STEP 7 V11 SP2 to TIA V19
The HMI accessibility flags were introduced with the launch of TIA Portal in V11 and have been preserved, with minor column-name changes, in every release.
| TIA Portal version | Initial release | Notes |
|---|---|---|
| V11.0 SP2 | 2012 | Initial feature. Manual reference: chapter 9.1.2.6. |
| V13 SP1 | 2015 | Column-based table editor for DB tags. |
| V14 SP1 | 2017 | Bulk-edit via right-click; Show/Hide Columns improvements. |
| V15.1 | 2019 | Unified Comfort Panel support (MTP-style tags). |
| V16 | 2020 | Improved cross-reference for HMI tags; OPC UA export of the same flags. |
| V17 | 2022 | Multi-user editing of PLC tag tables with accessibility flags. |
| V18 | 2023 | Energy Suite integration; flags unchanged. |
| V19 | 2024 | AI-supported tag generation retains accessibility inheritance rules. |
9. Performance and Tag Filtering Considerations
Enabling Accessible from HMI on a tag does not change the acquisition cycle. The HMI polls the tag at the configured cycle, regardless of read/write status. However, three side effects are worth knowing.
- Acquisition cycles must be sensible. Writable tags are usually operator-driven, so an acquisition cycle of 1 s is typical. Sub-100 ms cycles on hundreds of writable tags saturate the S7 connection.
- Symbolic access overhead. On S7-1500 with optimized blocks, every HMI tag read/write incurs a symbolic lookup. The S7-1200/1500 hardware handles this efficiently, but large tag sets still benefit from grouped acquisition.
- Connection count. Each HMI panel consumes an S7 connection resource from the CPU. S7-1214C, for example, allows 3 HMI connections; S7-1516 allows up to 32.
10. Bulk-Editing the Accessibility Flag
For large projects, individual edits are impractical. TIA Portal provides two efficient mechanisms.
10.1 Multi-select in the DB editor
- Open the DB and switch to the table view.
- Click the first row, then Shift+click the last row to select a range.
- Right-click →
Edit > Accessible from HMI. The setting applies to all selected rows.
10.2 Export and reimport via CSV
- In the DB editor, choose
Edit > Exportand save the symbol table as CSV. - Edit the
AccessibleFromHMIcolumn in a spreadsheet. - Reimport via
Edit > Import. TIA Portal matches symbols and updates the flags.
11. Troubleshooting Matrix
| Symptom | Likely root cause | Verification step | Fix |
|---|---|---|---|
| DB variable visible in HMI tag picker, but cannot be written. | Accessible from HMI not set. | Open DB, inspect the column. | Tick the column; recompile and download PLC and HMI. |
| Column Accessible from HMI missing from the DB table. | Column hidden by default in older TIA Portal versions. | Right-click table header → Show/Hide Columns. | Enable the column. Available since V11 SP2. |
| HMI tag shows connection error after enabling write access. | S7 connection resource exhausted on CPU. | Online → Diagnostics → Connection overview. | Reduce HMI connections or upgrade CPU. |
| OPC UA client cannot write the same tag. | OPC UA server uses the same accessibility flag. | TIA Portal → OPC UA server → Tag list. | Verify flag in the PLC tag / DB tag; recompile OPC UA server. |
| Tag is writable from panel A but not panel B. | Different HMI connection paths; one panel not in the access list. | CPU → Properties → Connection mechanisms → Access list. | Add the missing panel to the access list, or enable PUT/GET. |
| Compilation of HMI fails with "Tag not accessible". | HMI tag references a DB variable that was just made hidden. | Inspect the HMI tag table; look for the warning icon. | Re-enable visibility or remove the HMI tag. |
| Tag write succeeds in engineering but fails at runtime. | Compiled HMI project not downloaded, or PLC project not downloaded. | Online → Compare offline/online. | Download the affected target. |
12. Cross-Reference and Diagnosis
The cross-reference (right-click on a tag → Cross-references) lists every screen, script, archive, and alarm where the tag is used. After toggling Accessible from HMI, run the cross-reference to confirm that the tag is only consumed in places where write access is intentional. Removing accidental write references prevents the HMI from silently overwriting values that the PLC program treats as inputs.
13. Best Practices for Plant Commissioning
- Define a tag classification standard at the start of the project. Document which categories (setpoints, modes, recipes) are flagged Accessible.
- Use naming conventions to signal mutability, e.g., suffixes
_RO(read-only) and_RW(read-write). - During the Factory Acceptance Test (FAT), run a script that exports the DB tag table and verifies the flag against the standard.
- Lock down the HMI runtime with user groups (Operator, Service, Administrator) so that writable tags are only exposed to authorized roles, even if the underlying tag is flagged accessible.
- At handover, deliver a tag export (CSV) that includes the Accessible from HMI column. The cybersecurity file the customer submits to their audit should include this export.
14. Migration Notes: STEP 7 V5.x → TIA Portal
Tags migrated from STEP 7 V5.x into TIA Portal are imported with the Accessible from HMI flag set to true by default. After a migration, audit the DB tags specifically: any tag that was previously a S7-mci shared read-only data block can be safely downgraded to Visible only. Conversely, setpoints and operator inputs that were intentionally writable should retain the flag.
15. Reference: TIA Portal Online Help Topics
For further reading, consult the TIA Portal Information System under the following navigation paths:
- Editing projects > PLC > PLC tags > Tag properties > Accessibility from HMI
- Editing projects > PLC > Program blocks > Data blocks > Defining the HMI accessibility of DB tags
- Editing projects > HMI > HMI tags > Creating HMI tags > Creating HMI tags from PLC tags
- Editing projects > OPC UA > Configuring the OPC UA server > Defining accessible tags
What is the difference between "Visible in HMI" and "Accessible from HMI" in TIA Portal?
"Visible in HMI" allows the HMI to read the tag and to see it in tag pickers and cross-references. "Accessible from HMI" is the additional permission that allows the HMI to write the tag. A tag that is visible but not accessible is read-only at runtime.
Why does my DB variable only show "Visible in HMI" and not "Accessible from HMI"?
Siemens defaults new DB variables to read-only as a fail-safe behavior. Open the DB editor, switch to the table view, and tick the Accessible from HMI column for the variables the operator needs to modify. Recompile the PLC and the HMI and download both projects.
How do I enable "Accessible from HMI" for many tags at once?
Select the rows in the DB table view, right-click, and choose Edit > Accessible from HMI. Alternatively export the symbol table to CSV, modify the AccessibleFromHMI column in a spreadsheet, and reimport the file.
Does the "Accessible from HMI" flag also affect OPC UA access?
Yes. The S7-1500 OPC UA server uses the same accessibility flag for write attempts. A client that tries to write a tag without the flag set will receive an access-denied error. Enable the flag on the PLC or DB tag and recompile the OPC UA server.
Which TIA Portal version introduced the HMI accessibility attributes?
The attributes were introduced with STEP 7 Professional V11.0 SP2 (manual chapter 9.1.2.6) and remain supported in every release up to and including TIA Portal V19. The default behavior (visible for DB tags, visible-plus-accessible for PLC tags) is preserved across all versions.
Does enabling "Accessible from HMI" change the acquisition cycle of an HMI tag?
No. The acquisition cycle is configured on the HMI tag itself, independent of the source accessibility flag. However, if the tag becomes writable, ensure the cycle matches the operator workflow — typically 1 s for setpoints, faster only for motion or closed-loop tags.