Troubleshooting
Why a WinCC Unified trend stays empty until its value changes
Short answer
A WinCC Unified trend in its default Online configuration draws a sample only when the selected tag's value changes, so a correctly assigned constant tag leaves the plot empty. Confirm the runtime source switch separately, then force one distinguishable value change within the Y-axis range to prove the trend path works.

On this page
- Why does a WinCC Unified trend stay empty with a correct data source?
- How do I confirm the runtime source switch actually took effect?
- How do I force the value change that proves the trend path?
- Which settings hide samples that did arrive?
- What do I change if constant values must appear immediately?
- Questions asked
The data source on a WinCC Unified trend can be assigned correctly and the plot still stays empty. With the default trend configuration, the control draws a sample only when the selected tag's value changes, so a tag sitting at a constant level produces nothing until it moves. This article separates the two operations that people merge into one: selecting which tag the trend reads, and acquiring the samples that make it draw. You will test each one in turn, force a value change as the deciding test, and know by the end whether your button scripts, your trend settings or your constant values were the cause.
Why does a WinCC Unified trend stay empty with a correct data source? #
With the data source mode "Online" selected, the trend control monitors value changes over time, so a new sample is drawn when the selected tag's value changes and a constant tag delivers no sample at all. That is the whole fault in the common case: the assignment succeeded, the runtime switch succeeded, and the tag simply never moved. A blank plot on its own cannot tell you which operation failed, so treat the empty screen as two separate questions: did the source selection take effect, and did a value update arrive.
Worked example, matching a typical bench setup: one trend control, two buttons that switch the Y source between two internal HMI tags of type Real, named E1 and E2 in this example. Both tags were written once and left constant: E1 at 50 and E2 at 10. After either button is pressed, the trend stays blank because neither value has changed since the source was selected. The buttons and scripts are fine; the configuration is waiting for an update that never comes.
How do I confirm the runtime source switch actually took effect? #
Operate each button through its release event, since the assigned script runs when the interaction completes, and confirm which tag the trend control now references before you test anything about values. In the engineering system, a trend's Y data source identifies the value plotted on the vertical axis; in runtime, your script changes that assignment. Check the two paths separately:
- Press and release the first button (Engine1). Expected result: the script runs without error and the trend's Y source references E1.
- Press and release the second button (Engine2). Expected result: the same trend control now references E2.
- If the source does not change, inspect the event assignment, the object reference and the tag reference in the script before touching acquisition settings.
- Use the property names and assignment method shown in the installed WinCC Unified engineering help. Do not copy a similarly named property from another HMI product, and do not assume a changed caption changes a trend's data source.
If both switches take effect and the plot is still blank, stop editing the scripts. The remaining fault is on the acquisition side, and the next test proves it.
How do I force the value change that proves the trend path? #
Display both internal tag values numerically on the same screen, then change only the selected tag to a distinguishable value inside the Y-axis range and watch for a new point. This is the deciding test, because it distinguishes a working trend path from a missing one:
- Select Engine1. Write 55 into E1 using a temporary test input or another approved runtime write method. Expected result: the numeric display moves and a point appears on the trend.
- Change the value again, for example back to the original level. Expected result: a second point appears and the control connects them into a line; a line needs multiple points, so a single sample can look like nothing at all.
- Select Engine2 and change E2 the same way. Expected result: the trend responds to the newly selected source.
- Change the unselected tag separately. Expected result: it does not feed the selected series; points from an earlier trace may remain visible, so judge the incoming data, not the old curve.
- If the numeric display does not change, fix the write or the tag reference first; nothing downstream can work until it does.
When the numeric value changes and the trend draws it, the original empty plot was the value-change behavior of the default configuration, not a failed source selection. Remove the temporary test writes afterwards so the tags return to their application values.
Which settings hide samples that did arrive? #
If a confirmed tag change still produces nothing visible, three settings decide whether an arriving sample is shown, and each is checked under its own documented location. The source mode comes first: under "Data source Y > Source" the entry "Online" monitors live value changes, whereas a historical source needs a logging configuration and recorded samples; a live tag write proves nothing about archived data, a separate failure path covered for restart cases in why a WinCC trend is empty after a runtime restart.
- Time axis: open "Properties > General > Time axes" and confirm the displayed interval contains the moment of your test. A view positioned on an earlier interval hides new samples; on Unified panels a wrong UTC offset can also place new samples outside the window, as explained in why a Unified panel trend plots only the current value.
- Value axis: open the value axis settings under "Properties > General > Trend areas > Trends > Left value axis > Value axis Y [0]" and confirm the live value and your test change both fall inside the limits. In the worked example the axis ran from 0 to 100, so both the initial level and the test step were in range; a sample outside the limits is acquired but never drawn.
- Acquisition versus display: an acquisition setting determines when values become samples; a display setting determines which samples fit the plot. Correct the one that failed instead of rewriting both.
| Observation | Meaning | Next check |
|---|---|---|
| Source references the intended tag, plot empty | Selection worked; no sample arrived | Force one value change within the Y-axis range |
| Source still references the previous tag | Runtime switch did not take effect | Release event, object reference, tag reference in the script |
| Changed value appears as a point | Source and trend path both work | Repeat the test for the other button |
| Numeric display changes, plot stays empty | Update arrived; trend settings hide it | Source mode, time interval, Y-axis limits |
What do I change if constant values must appear immediately? #
Decide by what the screen is for: the default Online trend cannot draw a constant at the moment of selection, so give the operator a numeric display of the selected tag beside the trend, or switch to a logging configuration that records samples periodically. For a machine screen, the numeric display is the right fix, because a real process value moves and the trend fills itself while the numeric readout covers the still moments. For a bench or acceptance test on constant internal tags, log the tags periodically and point the trend at the logged data instead, and validate that configuration with a measured value change before you accept the screen.
The decisions, case by case:
- Buttons switch the source, value change draws a point: keep everything; the empty plot was the constant-value behavior, and no script or setting needs changing.
- Buttons switch the source, value change draws nothing: fix the time interval or the Y-axis limits, whichever excludes the sample.
- Button does not switch the source: fix the release event and references first; acquisition testing is meaningless until it does.
- Screen must show a still value the moment it is selected: add a numeric display, or move the trend to periodically logged data and verify it with a forced change.
Questions asked
Does the value have to change by a minimum amount before the trend reacts?
The configuration guidance referenced here states no minimum step or deadband; the control reacts to a change of the tag value. In the worked example a step of 5 on a Y-axis of 0 to 100 was enough to produce a visible point. If you suspect a deadband, look for such a setting in the installed engineering help for your version before assuming one exists.
Will this behavior also hit trends fed from a real PLC?
Only while the process value holds perfectly still. A live measurement normally fluctuates enough to generate updates, so the empty plot mostly appears on a bench or in simulation with internal tags written once. If a live trend is still flat, verify the tag is actually being updated on the HMI connection before blaming the trend control.
Does switching the data source at runtime erase the trace of the previous source?
Not necessarily. Points already drawn may stay visible after a new source is selected, so an old trace on screen proves nothing about the new source. Judge the incoming data instead: change the newly selected tag and watch for new points, rather than trusting the presence of an earlier curve.

