IMDTouchKnowledge BaseShop main store

Explainer

HMI tag arrays and communication load over Ethernet

HMI and touchscreens Published 8 min read By IMDTouch engineering team

Short answer

For S7-1200/1500 HMI connections the lowest-load tag format depends on change rate: change-driven cyclic reads resend a whole array when one element moves. Pack values that change together into arrays or UDTs, split fast members into their own tags, and confirm the result against a measured CPU communication load baseline and one traffic capture.

On this page
  1. How the connection actually transfers tags
  2. The budget the CPU gives you
  3. Group tags by change rate, not by data type
  4. Worked example: the fast element inside a large array
  5. Packing Bools without buying new load
  6. Block reads the engineering tools document
  7. The power-tag side effect
  8. Verify the restructure on the bench
  9. The decision, case by case
  10. Questions asked

The lowest-load way to read many tags from an S7-1200 or S7-1500 over Industrial Ethernet is decided by change rate, not by data type. On these connections the HMI registers its tags for cyclic read and the CPU returns only the values that changed since the last cycle, so an array with one fast element inside is resent whole at every change of that element. The rule that follows: pack values that change together into arrays or UDTs, split anything that moves on its own into a single tag, and keep fast bits out of packed words. Stay inside the CPU's communication allowance, 50% by default on an S7-1500, and close the job with a measurement: communication load and scan time before and after, plus one traffic capture that shows whether your runtime resends whole blocks or polls everything.

How the connection actually transfers tags #

Across WinCC versions, panel runtimes and CPU firmware generations the wire behavior differs, and no WinCC or SIMATIC manual documents it version by version. The pattern that protocol analysis of current combinations shows is change-driven: the HMI registers the tags it wants, the CPU sends a telegram each cycle, and the telegram carries only the values that changed since the previous one. A cycle in which nothing changed carries no values. Some runtimes instead poll — one request every cycle, an answer with every registered value. The two schemes optimize opposite quantities. Under change-driven transfer, load follows how often and how much data changes, so tag structure is the lever. Under polling, load follows the registered bytes, so shrinking what is registered is the lever.

One capture tells you which scheme you have: mirror the switch port that serves the HMI, hold the plant steady, and look at the payload of the CPU responses. Responses that stay near empty while every value is constant mean change-driven transfer. Responses that repeat every registered value each cycle mean polling, and on that connection tag structure matters less than the total registered bytes.

The budget the CPU gives you #

On an S7-1500, the share of each scan that may be spent serving communication is a CPU property named 'Cycle load due to communication', and the S7-1500 cycle and reaction times manual gives 50% as the default. Communication shares cycle execution with the program, so the allowance bounds how much HMI traffic the CPU serves before the scan stretches. Illustrative arithmetic: a program that needs 4 ms of pure logic per scan, with communication spending the full allowance, reaches scan times near 4 ms ÷ 0.5 = 8 ms; the real figure moves with your logic time and with the share you configure. The TIA Portal documentation for the parameter says to check the effect of changing it while the system is running, so the share can be tuned online — raising it serves more HMI traffic and eats scan time, lowering it does the reverse.

Read a baseline before touching any tag: the CPU's built-in web server serves diagnostic pages with CPU and process data from a browser, and the engineering tool's online diagnostics show the same figures. Record communication load and scan time twice, a few minutes apart, under the same plant state. If the two readings disagree, process activity is driving the traffic, and any before-and-after comparison has to wait for a repeatable state.

Group tags by change rate, not by data type #

Restructure the tag set around one question: what changes together? A UDT is carried as one element, and under change-driven transfer a change anywhere in an array or structure moves the whole thing. That is an advantage when the contents genuinely move together and pure overhead when they do not.

Tag group Typical change behavior Structure that pays
Drive or station status block, recipe line Whole block moves per event One UDT or array tag, read as a block
Mostly static data with one fast member Any change resends the whole array Fast member split into its own tag
Alarm and status bits of one function Rarely change, change in bursts One packed word or Bool array with a documented bit map
Continuously moving process values Change every cycle Small dedicated tags at the shortest acquisition cycle the screen needs

The fast-member row decides most real projects; the worked example below puts a number on it.

Worked example: the fast element inside a large array #

Example inputs, chosen to expose the mechanism: a data block holds an array of 100 Reals; 99 hold setup values that change only at shift change, and one holds a live temperature that moves about once per second. A Real is 4 bytes, so the array payload is 100 × 4 = 400 bytes.

Under change-driven transfer, every one-second change of the temperature resends the complete array: about 400 bytes per event, roughly 400 bytes of payload each second, to deliver 4 bytes of new information — a hundredfold overhead. Split the temperature into its own tag and each change carries 4 bytes, while the 99-element remainder travels only at shift change.

Reverse the case and the array wins: if all 100 values change together in a recipe download, one block read replaces a hundred individual tag requests with one telegram exchange. The decision rule is the same in both directions: if a capture of one toggled element shows the full array in the payload, split it out; if the payload carries only the element, array size hardly matters on that connection.

Packing Bools without buying new load #

Sixteen alarm or status Bools of one station become one word tag: one tag entry, one registration, one result item in the telegram, and the HMI evaluates the bits locally. Sixteen bits divided by eight make the 2-byte word, so one fast bit among fifteen quiet ones drags the whole word across the connection at every toggle — 2 bytes of payload to change one bit. That is the same shape of loss as the array example, so keep any bit that toggles faster than its group out of the pack.

Arrange the PLC data block so the related bits sit in one word or Bool array with a fixed, documented bit map, create one HMI tag for that word, and evaluate individual bits from it. Which bit-access methods a screen object offers varies by WinCC version and object type, so confirm the method in your tool before committing the screen design. After the change, force each bit at the PLC and check the HMI against the documented map.

Block reads the engineering tools document #

Two block mechanisms are documented and worth naming. The WinCC Advanced documentation describes block transfer for an ARRAY of a PLC data type (UDT) that sits in a data block containing no other elements besides the array — a flat structure that moves as one block. WinCC Unified runtimes offer the tag type BlockArray, which gives one external tag read and write access to a complete array of a PLC data block; the same documentation requires the array to exist in the PLC data block first, with the HMI external tag connected to it afterwards.

Both are version-specific capabilities, so a project moved between tool versions can gain or lose them. The same block-request idea, with the sizing arithmetic for one-shot reads, is worked through in reading PLC tag arrays in one block request.

The power-tag side effect #

Restructuring into arrays often shrinks the licensed tag count as well, because counting rules weigh an array differently from the same number of individual tags — but the rules differ between WinCC versions and runtimes. On Comfort panels, what counts against the TP1200 Comfort PowerTag 2048 limit breaks the count down; on Unified runtimes, why the WinCC Unified compiler tag count includes arrays shows how arrays land in the compiler's total.

Read the used tag total from the engineering tool's tag statistics after compiling, before and after the restructure, and treat the license result and the traffic result as separate outcomes.

Verify the restructure on the bench #

Do the comparison on an isolated bench with verified test tags before anything touches the line; testing HMI simulation against a live PLC sets out that bench and its disconnect-and-recovery checks.

  • Record the baseline communication load and scan time twice, minutes apart, under the same plant state.
  • Note the communication share configured in the CPU properties and leave it unchanged during the test.
  • Change one group at a time — split, pack or block — never several at once.
  • Capture the same interval after each change and compare bytes, telegram count and result items against the baseline.
  • Force every packed bit and split element at the PLC and confirm each HMI value against the documented map.
  • Run half an hour on the new structure: communication load and scan time at or below baseline, and no connection-loss or timeout entries in the HMI system alarms.
  • Confirm the compiled tag total against the counting rules of your WinCC version.

When a check fails, the usual culprit is a fast bit left inside a packed word or array — find it, split it out, and the load falls back.

The decision, case by case #

  • Values that change together — a status block, a recipe line: one UDT or array tag, read as a block.
  • Mostly static data with one or two fast members: split the fast members into their own tags and keep the quiet remainder together.
  • Alarm and status bits of one function: one packed word or Bool array with a documented bit map and no fast bits inside.
  • Continuously moving process values: small dedicated tags at the shortest acquisition cycle the screen actually needs.
  • Any version pair you have not measured: one capture with constant values and one with a toggled array element decide whether whole blocks travel on your connection.

Structure first, acquisition cycle second, and let the capture — not the data type — make the call.

Questions asked

How do I prove whether my runtime resends whole arrays?

Toggle one element of a test array on the bench while every other element holds a constant value, and capture the traffic for a minute. If each toggle produces a payload covering the whole array, your combination resends complete blocks and splitting by change rate will pay off. If the payload stays small, that version transmits partial updates and array size matters far less.

Do arrays always reduce the licensed tag count?

Not always, and it is a separate question from communication load. Counting rules differ between WinCC versions and runtimes, and arrays of structures or block tags can weigh differently again. Compile the project and read the used tag total in the engineering tool's tag statistics before and after the restructure. An array that saves tags can still raise traffic when its members change independently, so treat the two results as separate decisions.

What acquisition cycle suits a packed alarm word?

Set the cycle from the alarm delay the process tolerates, not from the network's capacity. The worst display delay for a bit inside the word is roughly its acquisition cycle plus the screen refresh, so a packed alarm word read at, for example, 500 ms can appear half a second late plus refresh. Faster cycles multiply traffic for rarely changing bits without buying anything.

Where can I read the CPU communication load while the line runs?

Open the CPU's built-in web server in a PC browser: it serves diagnostic pages with CPU and process data without interrupting the running program, and the engineering tool's online diagnostics show the same figures. Record load and cycle time before and after any tag restructure, and leave the cycle-load share in the CPU properties unchanged during the comparison; on an S7-1500 that share defaults to 50%.

Keep reading

  • Troubleshooting

    Why your HMI cannot read PLC tags without a communication shortcut

    An HMI reads a PLC tag only through the controller communication shortcut defined in its own engineering tool. Create that shortcut (RSLinx Enterprise, today FactoryTalk Linx) in the HMI project, then make the tag reference's shortcut name match it exactly. Adding the panel to the controller's I/O tree or finding the panel in a discovery browser does not create the tag path.

    HMI and touchscreens

  • Troubleshooting

    Fixing an HMI Date and Time Tag That Fails Over S7

    When ordinary tags read and write but a Siemens date and time tag returns a communication error, the driver imported the tag but cannot transfer that data type. Copy the clock into ordinary component variables in PLC logic and read and write those from the HMI. The Ethernet side needs no changes.

    HMI and touchscreens

  • How-to

    Backing up a KTP600 Basic Mono PN with ProSave over Ethernet

    The KTP600 Basic Mono PN has no memory card slot, so its only backup route is a SIMATIC ProSave image pulled over the panel's PROFINET interface from a service PC on the same subnet, with the panel switched to transfer mode. The result is a recovery image, not the editable TIA Portal project, so store the engineering archive separately.

    HMI and touchscreens