Checking HMI Tag Count in WinCC Flexible and Unified

David Krause11 min read
HMI / SCADASiemensTutorial / How-to
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Overview

Siemens HMI engineering tools have evolved across three major generations: ProTool (legacy, 1990s–2000s), WinCC flexible (2004–2018), and the TIA Portal-based WinCC Comfort/Advanced/Professional and WinCC Unified lines (2018–present). Each generation handles tag accounting differently. ProTool exposed the tag count in the status bar of the tag editor. WinCC flexible hides the total behind the device's Properties dialog. WinCC Unified surfaces the same metric through Runtime settings → General → Screen → Show limits of tags, with a dedicated panel that displays the configured limit, the value range, and the current usage. This article documents all three paths, the licensing model behind "power tags," and the practical commissioning checks you should perform before signing off a project.

Definition — Power Tag: A power tag is any external tag that is mapped to a PLC variable and requires a license. Internal tags, array elements, and pointer tags are excluded from the power-tag count. License keys on Comfort Panels and WinCC Runtime Advanced are sized to a fixed power-tag count (e.g., 128, 256, 512, 2048). Exceeding the licensed number causes a license violation at runtime and may block screen changes.

Prerequisites

  • WinCC flexible 2008 SP5 or later installed on the engineering station (SP5 is the last released service pack for the WinCC flexible 2008 line; subsequent updates were distributed as HSPs).
  • TIA Portal V17, V18, V19, V20, or V21 for WinCC Unified or WinCC Comfort/Advanced/Professional workflows.
  • A compiled project (.hmi or .ap* container) so that the tag counters are populated. A project that has not been compiled will show "0 / n" because no usage data has been generated.
  • Read access to the project tree in the engineering tool.

Method 1 — WinCC flexible: Device Properties

This is the canonical answer to the long-standing forum question about locating the tag count when the project tree is heavily foldered and the output window is suppressed by compile errors. The total appears as a single integer on the Properties tab of the HMI device, not in any tag-editor sub-window.

  1. Open the WinCC flexible project in the WinCC flexible 2008 ES.
  2. In the project tree on the left, locate the device node. The default name is Device_1 but it may have been renamed to match the panel model (for example, TP1200_Comfort or MP377_15Touch).
  3. Right-click the device node. The context menu appears with options including Rename, Compile, Compile and Check Consistency, and Properties.
  4. Select Properties. The properties dialog opens with a vertical tab list on the left side.
  5. Navigate to the Tags section. The dialog displays:
    • Total power tags used in the project
    • Tags configured for logging (subset of power tags)
    • Number of alarms (external + internal)
    • Number of screens, scripts, and schedules
  6. Close the dialog. The integer is read-only and updates on the next successful compile.
Why the Output Window Hides the Count: The compiler in WinCC flexible writes the power-tag count to the Output window only when the build succeeds with zero errors and zero warnings. If the project contains unresolved symbolic references, missing PLC connections, or type mismatches, the compiler aborts before reaching the licensing summary. The Properties dialog pulls its numbers from a different cache (the project's *.lsl symbol list) and is therefore more robust to partial compile states.

Method 2 — WinCC Unified: Runtime Settings Tag Limits

WinCC Unified (TIA Portal V17 and later) introduces an explicit tag-limit panel that is accessible in the engineering tool, not just at runtime. This panel is documented in the Siemens TIA Portal Help for V21 under the topic Showing limits of tags (RT Unified).

  1. Open the WinCC Unified project in TIA Portal.
  2. In the project tree, expand the HMI device node.
  3. Double-click Runtime settings under the device. The Runtime settings editor opens in the main work area.
  4. In the navigation pane of the editor, select General → Screen.
  5. Locate the Show limits of tags group. Three options are available:
    • Off — Tag limit display is suppressed in Runtime (default in projects migrated from WinCC flexible).
    • Customized — The operator sees a configurable range defined by From and To values entered in the adjacent input fields. This is the recommended setting during commissioning and FAT.
    • Full — Displays the entire configured tag count range with no operator-side filtering.
  6. Set the mode to Customized and enter a representative range, for example From = 0, To = 500 on a 512-tag license.
  7. Compile the project. After a successful build, the Runtime tag panel shows current usage as n / To.

Tag Limit Behavior by Panel Family

Panel / Runtime Power-Tag License Tiers Tag Limit Display Path
Comfort Panels (TP700 / TP900 / TP1200 / TP1500 / TP1900 / TP2200) 128 / 256 / 512 / 2048 / 4096 Runtime settings → General → Tags (WinCC Comfort/Advanced)
WinCC Runtime Advanced (PC-based) 128 to 8192 (PowerPack upgrades) Runtime settings → General → Tags
WinCC Unified Comfort Panels (MTP700 / MTP1000 / MTP1200 / MTP1500 / MTP1900 / MTP2200) 100 / 250 / 500 / 1000 / 1500 / 3000 Runtime settings → General → Screen → Show limits of tags
WinCC Unified PC Runtime (ES / RT) 100 / 250 / 500 / 1000 / 2500 / 5000 / 10000 Runtime settings → General → Screen → Show limits of tags
WinCC Professional / SCADA Server Up to 128 000 power tags (license-key dependent) Project properties → Runtime → Tag statistics

Method 3 — WinCC Comfort/Advanced: Tag Statistics in Project Properties

For TIA Portal projects that use WinCC Comfort or WinCC Advanced (the line that succeeded WinCC flexible for Compact/Comfort Panels), the consolidated tag count is reported in Project properties → Runtime → Tag statistics after a full compile.

  1. Open the project in TIA Portal.
  2. Right-click the project node in the project tree and select Properties.
  3. In the project-properties dialog, click Runtime in the left column.
  4. Click the Tag statistics sub-entry. The dialog shows three columns: Total tags, Power tags, Tags in use.
  5. Note the Tags in use figure. This is the number that must not exceed the licensed power-tag count.

This view is convenient when comparing multiple HMI devices within the same TIA project, because the dialog lists all configured devices in a single table.

Step-by-Step: Commissioning Tag-Count Verification

Run this procedure on every panel or PC runtime before the customer-acceptance test. It is intentionally short so that it can be executed in under five minutes per device.

  1. Compile clean. Build the project to zero errors and zero warnings. Record the compiler's "Number of power tags used" line in the build log.
  2. Open device properties. In WinCC flexible, follow Method 1. In WinCC Unified, follow Method 2 and enable Show limits of tags = Customized with a range that matches the licensed tier.
  3. Compare three numbers.
    • Number reported by the engineering tool.
    • Number reported on the panel at runtime (visible on the configured tag-limit screen).
    • Number in the license audit (start WinCC Unified on the panel, open System → License information).
    All three must match. A mismatch indicates that the project was last edited in a different ES installation and has not been fully recompiled.
  4. Reserve headroom. Document the count and leave at least 15 % unused capacity for late-stage change requests. For a 256-tag license, plan for no more than 217 power tags.
  5. Sign off. Archive the screenshot of the tag-limit display and the ES-generated build log with the project's FAT report.

Tag-Count Diagnosis Matrix

Symptom Likely Root Cause Corrective Action
Properties dialog shows 0 power tags in WinCC flexible even though the project contains tags Project has not been compiled since the last edit Right-click the device → Compile and Check Consistency
Compile fails before the tag-count line is printed Unresolved symbolic PLC reference or duplicate tag name Open the Output window, fix the first error, recompile
Runtime tag-limit display is missing on a Unified Comfort Panel Show limits of tags = Off Set to Customized per TIA Portal V21 documentation and recompile
Tag count exceeds the licensed tier at runtime PowerPack upgrade required Order the correct PowerPack license (e.g., 6AV2 145-… for Comfort Panels) and activate it via Automation License Manager
Properties dialog count differs from Runtime display by a small integer (typically 1–4) Connection diagnostics tags generated by WinCC flexible internally Treat the Runtime display as the authoritative number for licensing
Tag count is 0 in TIA Portal after migrating a WinCC flexible project Migration runs an implicit compile but does not always populate the Tag statistics cache Right-click the HMI device → CompileSoftware (only)
Project tree shows folders but the total tag count is not visible at the folder level WinCC flexible does not expose per-folder totals Use the device-level Properties dialog; if per-folder breakdowns are required, export the tag list via Project → Export → Tags to a CSV and pivot in Excel

Tag Export for Off-Line Audits

When the customer requires a tag-by-tag breakdown for change-control or cybersecurity review, neither WinCC flexible nor TIA Portal exposes a per-folder counter. The supported workflow is an export to CSV.

  1. In WinCC flexible: Project → Export → Tags. Choose the desired tag class (all, external, internal) and the destination folder.
  2. In TIA Portal (WinCC Comfort/Advanced): Open the HMI tag table, then Edit → Export to XLSX or CSV.
  3. In WinCC Unified: Open the HMI tag table, right-click the table header, and select Export. CSV is the recommended format for downstream tooling.
  4. Open the file in any spreadsheet tool and create a pivot table on the Connection column to count tags per PLC, or on the Folder column to count tags per engineering folder.
Security Note: Tag exports may contain symbolic names that map to process variables such as tank levels, pressures, and interlock states. Treat the exported CSV as confidential engineering data and follow the site's information-classification policy when transmitting it outside the engineering network.

PowerTag Licensing Mechanics

Siemens licenses HMI external tags on a graduated scale. The price increments are coarse, so it is worth choosing the tier that covers the design point plus a 15–20 % reserve, then planning for PowerPack upgrades only when a major scope change occurs.

License Key Example (Comfort Panels, V18/V19/V20/V21) Power-Tag Count Typical Use
6AV2 145-2GBx0-xxxx 128 Small machines, single PLC
6AV2 145-2HBx0-xxxx 256 Standard machines with 2–3 PLCs
6AV2 145-2JBx0-xxxx 512 Lines with multiple drives and I/O
6AV2 145-2KBx0-xxxx 2048 Large cells and skid-mounted packages
6AV2 145-2LBx0-xxxx 4096 Plant-wide SCADA clients on Comfort hardware

PowerPack upgrades are sold as a license-key delta (for example, upgrading from 128 to 512 on a TP1200 Comfort). They are written to the panel's license container via the Automation License Manager (ALM) and are recognized on the next Runtime start.

Cross-Generation Migration Notes

Engineers frequently port projects from WinCC flexible to TIA Portal (WinCC Comfort/Advanced) or to WinCC Unified. The migration preserves tags but changes the counter location, which catches first-time migrators off guard.

  • WinCC flexible → WinCC Comfort/Advanced: After the migration wizard runs, the tag counter is empty until you explicitly compile the HMI device. Open the device editor, right-click the device, and select Compile → Software (only). The number then appears in Project properties → Runtime → Tag statistics.
  • WinCC Comfort/Advanced → WinCC Unified: The first compile populates the Runtime settings → General → Screen → Show limits of tags panel. The panel is disabled (greyed out) until the compile completes, so do not interpret a greyed-out panel as a configuration error.
  • ProTool → WinCC flexible: The ProTool status-bar count is not migrated. Engineers must use the device Properties dialog as described in Method 1.

Verification Checklist

  • [ ] Project compiles to zero errors and zero warnings.
  • [ ] WinCC flexible: Device Properties → Tags shows the expected power-tag total.
  • [ ] WinCC Unified: Runtime settings → General → Screen → Show limits of tags is set to Customized with the licensed range.
  • [ ] Runtime on the panel reports a tag count that matches the engineering tool within ±1.
  • [ ] Exported CSV tag list reconciles with the engineering tool count when pivoted by Connection.
  • [ ] 15 %–20 % unused capacity remains below the licensed power-tag tier.

FAQ

Where do I find the total tag count in WinCC flexible 2008?

Right-click the HMI device (default name Device_1) in the project tree and choose Properties. The Tags section of the dialog displays the total number of power tags used in the project. This counter updates after every successful compile and remains visible even when the compiler's Output window is suppressed by build errors.

How do I enable the tag-limit display on a WinCC Unified Comfort Panel?

Double-click Runtime settings in the project tree, navigate to General → Screen, and set Show limits of tags to Customized. Enter a From and To range that matches the licensed power-tag tier, then recompile the device. The configured range appears on the panel at runtime, as documented in the TIA Portal V21 Unified runtime help.

Why is the tag count zero in TIA Portal after migrating a WinCC flexible project?

The migration wizard does not perform a full compile of the imported HMI device. Right-click the device in the project tree and select Compile → Software (only). Once the build completes, the tag statistics appear under Project properties → Runtime → Tag statistics.

What is the difference between a power tag and a regular tag?

A power tag is any external tag that is mapped to a PLC variable and consumes a license. Internal tags live only on the HMI, are used for screen-local calculations, and do not require a license. Pointer tags, array elements, and tag-prefix-expanded tags are also excluded from the power-tag count.

How do I count tags per engineering folder in WinCC flexible?

WinCC flexible does not expose a per-folder total. Export the tag list via Project → Export → Tags to a CSV, then use Excel or any spreadsheet tool to pivot the Folder column and count entries per engineering folder. The device Properties dialog provides only the project-wide total.

Back to blog