Troubleshooting
Why the WinCC Unified compiler tag count includes arrays
Short answer
The WinCC Unified compiler reports one total of configured tags: local tags, unused tags and every array element are counted individually, so a PLC array of N elements adds N and an HMI array adds N plus one. That total is an inventory of configuration, not the licensing count; compare the power tags against the documented maximum for your exact target before changing anything.

On this page
When you rebuild a WinCC Unified project, the compiler shows one tag total that mixes local HMI tags, controller-connected tags, tags no screen references, and every array element as its own entry. That number is an inventory of your configured data model, not the power-tag licensing count, and a large value alone does not prove you exceeded a panel or runtime limit. Before you delete anything, count the power tags separately and compare them against the documented maximum for your exact target.
What the compiler total actually counts #
The Unified compile statistic differs from Comfort/Advanced in four ways that explain every surprising number:
- Local and external tags share one total. The compiler no longer separates PLC-connected power tags from HMI-internal local tags, so the displayed figure is not a power-tag count you can check against a license.
- Usage is irrelevant. A tag counts because it exists in the configuration, not because a screen, script, alarm or log references it. In Comfort, a PLC UDT with 20 members connected to the HMI counted only the members your faceplate instances actually used; Unified counts the configured data broadly.
- Arrays expand to their elements. One array declaration contributes a number of counted tags equal to its element count, regardless of how many elements the application touches. Comfort counted the whole array as a single tag even when every element was on screen.
- The total appears at the start of the build. The number is produced as a configuration statistic before compilation finishes, so read the complete compile result for actual warnings and errors instead of treating the count as a verdict.
Keep three quantities distinct when you interpret the figure: the compiler total (a configuration inventory), the target's documented capacity, and the licensed power-tag allowance. They are three different numbers that happen to describe the same project.
The documented array counting rule #
Siemens documents the counting rule explicitly. For Unified PC Runtime, an HMI array with 5 elements counts as 6 configured tags: one for the array itself plus 5 for the elements. A PLC array with 5 elements counts as 5 power tags, one per element with no extra entry for the array. You size the element count yourself in the tag's Array limits field, where the low limit is 0, with the data type chosen in the Data type field.
For the licensing side, the documented ceiling for WinCC Unified PC is 600,000 power tags, with the usable amount depending on the license. The runtime settings also include tag optimization options that reduce the power tags consumed, with restrictions documented under the power-tag topic.
Unified handles arrays differently at runtime too, which is why a WinCC Unified V19 script cannot read an HMI array at once and must address elements individually.
Worked example: migrating a Comfort application #
Take a representative TP1200 Comfort application you are rebuilding for Unified, configured as follows:
- 412 external scalar tags on the PLC connection
- 150 local scalar HMI tags
- one HMI array of 200 Bool elements
- one PLC array of 800 Real elements
Power tags (the licensing quantity): only controller-connected data counts. The PLC array contributes one per element, so:
412 + 800 = 1,212 power tags
Against the documented Unified PC ceiling: 1,212 / 600,000 = 0.002, so the project uses about 0.2 percent of the maximum.
Local configured tags: the HMI array counts as N plus 1:
150 + (1 + 200) = 351 configured local tags
Compiler total shown at rebuild: 1,212 + 351 = 1,563 tags, including tags no screen uses. The same project in Comfort would have reported roughly 563 (412 external plus 150 local, both arrays counted as one tag each). The jump from 563 to 1,563 is entirely the array expansion and the counting of unused configuration. Nothing about the machine changed.
The decision for each case #
- Large compiler total, project runs, documented capacity not exceeded: ship it. Do not delete working configuration to shrink a statistic. The number is doing its job, which is inventorying configuration.
- Power-tag count above the licensed allowance on a Unified PC runtime: reduce consumed power tags deliberately. Shrink oversized arrays by tightening their element counts in the
Array limitsfield, remove genuinely obsolete external tags after checking screens, faceplates, scripts, alarms and logging, and apply the documented tag-optimization settings. License the correct tier for whatever remains; a larger runtime entitlement is cheaper than a broken application. - Unified panel target, no hardware tested yet: your PC test proves the counting behavior but not panel capacity. A field report describes an MTP1200 compiling and running arrays totaling more than 2,000 elements with no runtime complaint, which tells you thousands of array elements are routine, not that the limit is proven. Confirm the tag capacity in the technical data for your exact panel model and configuration before ordering.
- Estimating a Comfort-to-Unified migration: count every element and every configured tag, not just used ones. Where the workflow permits, configure only the UDT members the HMI actually needs, preserving members used by shared faceplate interfaces and indirect references.
Bench check before you change the production project #
Confirm the counting rule in a small project first, keeping the target and software version fixed:
- Record the baseline: configured target, TIA Portal version, compiler total and full rebuild output.
- Add one unreferenced local scalar tag and rebuild. The total rises by 1.
- Add one external scalar tag on a valid connection and rebuild. It lands in the same total, confirming local and external data are merged.
- Replace the scalar with an unreferenced HMI array of a known length, for example 50 elements. The total follows the element count, rising by 51, not by 1.
- Reference a few elements on a screen, then remove the references and rebuild each time. The count does not move; usage does not drive it.
Once the rule is reproduced, apply the worked example's arithmetic to your real tag tables, compare the power-tag result against your target's documented ceiling and license, and make the decision above. In almost every migration the answer is that the number grew and the project is fine.
Questions asked
Does the WinCC Unified compiler count tags that no screen uses?
Yes. The total reflects the configured data model, not current usage. A tag that exists in the tag table counts even when no screen, script or alarm references it. Deleting the screen reference does not reduce the number; only deleting the tag itself does, so remove configuration only when it is genuinely obsolete.
How many power tags can WinCC Unified PC runtime use?
The documented maximum is 600,000 power tags, and the usable amount depends on the license installed on the runtime PC. Check the license documentation for the exact tier before concluding that a project exceeds it.
Does an array count as one tag in Unified like it did in Comfort?
No. A PLC array with N elements counts as N power tags, and an HMI local array with N elements counts as N plus 1 configured tags, one for the array itself plus one per element. Comfort counted the array as a single tag, so migrated projects show a much larger number for the same data.
Will a large compiler count stop a Unified panel from running the project?
Not by itself. A field report describes an MTP1200 running compiled arrays totaling more than 2,000 elements with no runtime complaint about the tag count. That is one successful test condition, not the panel's documented capacity, so confirm the limit in the target's technical data for your configuration.


