WinCC Trend Control Latency: Problem Definition
Operators commissioning a Siemens WinCC Runtime project frequently observe that an Online Trend Control in a process picture updates noticeably slower than an adjacent I/O field bound to the same PLC tag. In a typical complaint, an analog process value is forced in STEP 7 / TIA Portal or via PLCSIM, the I/O field reflects the new value within one acquisition cycle, but the trend curve still shows the previous value for approximately three seconds before the new point is plotted.
This three-second latency is not a single tunable parameter. It is the cumulative sum of three independent update stages inside the WinCC Runtime:
- The PLC tag acquisition cycle managed by the WinCC tag management channel.
- The TagLogging acquisition and archive cycle that feeds the in-memory process value buffer.
- The picture update cycle of the picture window containing the Trend Control, plus the internal redraw rate of the trend widget itself.
Engineers must tune all three stages to compress the end-to-end latency from a default of roughly 2–3 seconds down to a sub-second figure suitable for emulating a paper recorder or capturing fast transients.
WinCC Trend Architecture: From PLC Bit to Pixel
Before touching parameters, understand the data path. A WinCC Online Trend Control does not read the PLC directly. It reads from a WinCC tag that has already been acquired by the tag management, and that tag's value has been recorded by the TagLogging runtime. The control then samples that historical buffer at a fixed display cadence.
| Stage | Component | Default Behavior | Effect on Latency |
|---|---|---|---|
| 1. PLC acquisition | Tag Management (e.g. S7-300/400/1200/1500 channel) | Updates WinCC tag at the configured acquisition cycle, typically 500 ms or 1000 ms | Bounded lower limit of PLC-to-tag delay |
| 2. TagLogging | TagLogging runtime + archive | Acquisition cycle 500 ms–1 s, archive cycle 1× acquisition to 10 s | Determines when a new point is stored in the in-memory ring buffer |
| 3. Picture redraw | Graphics Designer picture / WinCC Unified trend control | Picture cycle 2 s (standard) for classic WinCC, configurable in TIA Portal | Determines when the trend widget is repainted |
| 4. Trend sampling | Online Trend Control / Trend Control (Unified) | Internally samples the buffer on a 1 s tick | Final visual lag component |
The PLC tag in stage 1 is the same tag that the I/O field is bound to. That is why the I/O field is "fast" – it only waits for stage 1. The trend waits for stages 1 + 2 + 3 + 4. The total observed delay is the sum of these stages.
Root Cause Matrix: Why Your Trend Is Three Seconds Late
The most common root causes, in order of frequency, are:
| # | Root Cause | Symptom | Where to Fix |
|---|---|---|---|
| R1 | Archive cycle > 1 s (default 1×500 ms or 1×1 s configured; project-wide 2 s standard) | Trend curve takes 2 s or more to react to a step change | TagLogging editor → archive cycle of the process value |
| R2 | Picture update cycle of the picture is left at the default 2 s ("4" in legacy code) | All animations including the trend freeze between redraws | Graphics Designer → picture properties → Miscellaneous → Update Cycle |
| R3 | Trend Control internal sampling rate fixed at 1 s | Visible point-by-point jumps, even with sub-second archive | Cannot be changed in classic WinCC; consider WinCC Unified for higher rates |
| R4 | Acquisition cycle of the tag set to 1 s or 2 s | Both I/O field and trend lag, but field lags 1 s and trend 3 s | Tag Management → tag properties → Acquisition cycle |
| R5 | Trend window time range too long (e.g. 30 min) with single value display | New value hidden inside the curve; visual perception of delay | Trend Control properties → time range |
| R6 | SQL Server load (TagLogging archives to SQL) competing with other tools | Random spikes up to several seconds | Check external SQL consumers; switch to single-user TagLogging archive |
| R7 | PLCSIM throttling or STEP 7 variable table write rate | Variable change applied in bursts | Use VAT in RUN with single-shot writes, or use the PLCSIM API |
Configuring the Picture Update Cycle (Graphics Designer)
The picture update cycle is the most often missed parameter. It controls how often the entire picture window re-evaluates tags, animations, and control repaints. In classic WinCC (WinCC 7.x and TIA WinCC Professional), it is configured in the Graphics Designer:
- Open the picture that contains the Online Trend Control.
- Select the picture background (not the control).
- Open View → Properties (or right-click → Properties).
- Navigate to Miscellaneous → Update Cycle.
- Enter the cycle number from the table below.
| Number | Cycle Time | Notes |
|---|---|---|
| 0 | Upon change | Redraws only when a bound tag changes; lowest CPU load, but historically unreliable for some controls |
| 1 | 250 ms | Useful for sub-second paper-recorder emulation |
| 2 | 500 ms | Common for fast process loops |
| 3 | 1 s | Standard for trends tied to 1 s archive cycles |
| 4 | 2 s | Standard project default; this is the typical culprit for 2 s perceived lag |
| 5 | 5 s | Slow processes; not acceptable for transient capture |
For a paper-recorder style trend, set the picture update cycle to 1 (250 ms) or 2 (500 ms). Save and rebuild the runtime.
Configuring TagLogging Acquisition and Archive Cycles
TagLogging is the database layer behind the Online Trend Control. Two parameters drive its latency:
- Acquisition cycle – how often TagLogging reads the WinCC tag.
- Archive cycle – how often the acquired value is written to the in-memory ring buffer and SQL archive.
To configure them in classic WinCC / TIA Portal WinCC Professional:
- Open the Tag Logging editor.
- Select the archive (e.g. SYSTEM_ARCHIVE_01) and the process tag inside it.
- In the properties of the tag, set:
- Acquisition cycle =
500 ms(or 250 ms if the underlying WinCC tag supports it) - Archive cycle =
1 × 500 ms(1× the acquisition cycle, evaluated every 500 ms)
- Acquisition cycle =
The archive cycle's factor applies a multiple of the acquisition cycle. 1×500 ms means one archive entry per 500 ms acquisition tick. 10×1 s would store one point every 10 s, which is too slow for a paper-recorder emulation.
| Use Case | Acquisition | Archive | Resulting Trend Resolution |
|---|---|---|---|
| Paper recorder emulation | 250 ms | 1 × 250 ms | 4 points per second |
| Fast process trend | 500 ms | 1 × 500 ms | 2 points per second |
| General SCADA | 1 s | 1 × 1 s | 1 point per second (WinCC standard) |
| Long-term historian | 1 s | 10 × 1 s | 1 point per 10 s (compressed) |
| Daily report | 10 s | 6 × 10 s | 1 point per minute |
For a 3-second-latency complaint against a single process value, the typical diagnosis is an archive cycle of 1 × 2 s or 1 × 1 s combined with a picture update cycle of 2 s. Setting both to 500 ms typically drops the perceived latency to under 1 s.
Tuning the WinCC Online Trend Control Properties
Even with a 250 ms archive cycle, the Online Trend Control in classic WinCC has an internal sampling/display tick that historically runs at roughly 1 Hz. The control property knobs that influence responsiveness are:
- Time range of the X axis – a longer range spreads the same archive density over more pixels; perception of "delay" can be visual, not temporal. A 5-minute range with 250 ms archive points is 1200 points. A 30-minute range is 7200 points. Use the shortest range consistent with the operator's task.
- Number of visible points / time base – the time base of the curve (e.g. 500 ms per pixel) is derived from the time range and the screen width.
- Online configuration / source settings – confirm the control is bound to the TagLogging archive, not a static curve or formula.
- Trend type – Online trend (real-time only) is faster than History trend (database read) when starting from a cold cache.
WinCC Unified V20 Trend Control: Time Range and Refresh Behavior
WinCC Unified (TIA Portal V20 and later) re-implements the trend control as an HTML5 / JavaScript-based widget. The configuration dialog differs, but the underlying latency model is similar. To configure the displayed time range in WinCC Unified V20 RT:
- Click "Select time range" in the toolbar of the trend control. The "Time selection" dialog opens.
- Choose between the predefined ranges (Last 5 minutes, Last 30 minutes, etc.) or enter a custom start and end time.
- Confirm with OK; the trend control reloads the data for the selected window.
Reference: Changing the time range of a trend (WinCC Unified V20, TIA Portal)
For real-time updates in WinCC Unified, configure the HMI tag's acquisition cycle in the project tree under HMI tags → [tag] → Properties → Acquisition cycle. The trend control subscribes to the tag through the Unified runtime data source; the lower the acquisition cycle, the more frequently the curve receives new points. Typical values for paper-recorder emulation on a Unified Panel or Unified PC Runtime are 250 ms to 500 ms.
| Parameter | Classic WinCC (7.x / TIA Professional) | WinCC Unified V20 |
|---|---|---|
| Picture update cycle | Graphics Designer → Properties → Miscellaneous → Update Cycle (numeric code) | Screen → Properties → Update cycle (ms) |
| Tag acquisition | Tag Management → tag → Acquisition cycle (ms) | HMI tag → Properties → Acquisition cycle |
| Archive / logging | TagLogging editor → Acquisition + Archive cycles | Logs editor (HMI logs) → Logging cycle, Acquisition cycle |
| Trend time range | Trend Control properties → Time range | Toolbar → Select time range |
Verification Procedure with PLCSIM and Real PLCs
Validate the tuning with a deterministic test before deploying to the operator screen.
- Open the picture containing the trend and an I/O field on the same tag.
- Connect PLCSIM or a real S7-1200/1500. For PLCSIM, start a watch table in STEP 7 / TIA Portal and set the value of the analog input (e.g. MW100) to 0.
- Note the time on the runtime screen's clock.
- Apply a step change in the watch table (e.g. 0 → 100) and record the exact second.
-
Observe both indicators:
- The I/O field should update within one tag acquisition cycle (typically ≤ 1 s).
- The trend should display the new point within the sum of (archive cycle + picture update cycle). For 500 ms + 500 ms = approximately 1 s; for 250 ms + 250 ms = approximately 0.5 s.
- Repeat the test with the picture update cycle set to 1 (250 ms) and 4 (2 s). The delta in observed latency confirms whether the picture cycle is the dominant contributor.
- Repeat with the archive cycle at 1×500 ms and 1×2 s. The delta confirms the archive cycle contribution.
A correctly tuned system with 250 ms archive and 250 ms picture cycle should display a step change in the trend within roughly 500 ms to 1 s. If the I/O field also shows a 1 s delay, the bottleneck is the PLC tag acquisition, not the trend.
Edge Cases, Alias Tags, and Field-Proven Caveats
After the obvious parameters are tuned, a few less common factors still produce a "slow trend" symptom:
- Alias tags pointing to an indirectly accessed DB: If the trend is bound to an HMI tag that uses a tag-prefixed path through an S7 connection and the underlying DB is optimized (S7-1500), the symbolic access may take 1 s per request. Switch the DB access to absolute or to a non-optimized DB to test.
- Multiple trend windows open simultaneously: Each active Online Trend Control instance holds its own buffer subscription. Opening ten trend windows on ten fast tags can starve TagLogging cycles. Open only the trend window the operator needs.
- Compressed archive on a slow disk: If the runtime stores the TagLogging archive on a network share or a spinning disk under heavy SQL Server load, archive writes block. Move the archive to a local SSD or reduce the number of tags in the archive.
- PLCSIM throttling: PLCSIM in some TIA Portal versions caps variable writes to one per second through a watch table in RUN. Use the PLCSIM virtual controller's web API or a script (e.g. SCL in a cyclic OB) to drive faster changes during commissioning.
- License of TagLogging Fast: The "fast" archive option in WinCC TagLogging allows sub-second cycle archives but requires a valid WinCC Logging license. If the license is missing, the runtime silently falls back to a 1 s minimum cycle. Verify in WinCC Explorer → Properties → Runtime settings → TagLogging.
- OPC UA connection throttling: If the WinCC tag is sourced through an OPC UA server (third-party or another SCADA), the published item sampling interval on the OPC server is the floor of the trend's responsiveness. A 1 s OPC sampling rate cannot be improved from the WinCC side.
Troubleshooting Matrix
| Symptom | First Check | Second Check | Likely Fix |
|---|---|---|---|
| Trend shows new value 1 s after I/O field updates | TagLogging archive cycle | Picture update cycle | Set archive to 1×500 ms, picture cycle to 2 (500 ms) |
| Trend shows new value 2–3 s after I/O field updates | Picture update cycle default 2 s | Archive cycle default 1×1 s | Reduce both to 500 ms or 250 ms |
| Trend updates in visible jumps of 2 s regardless of tuning | Archive cycle of 1×2 s in TagLogging | Number of tags in the archive | Reduce archive cycle, prune archive membership |
| I/O field also slow (1 s+ lag) | PLC tag acquisition cycle | Connection / S7 driver load | Lower acquisition cycle to 250 ms or 500 ms |
| Slow only on certain tags | Tag is sourced through OPC UA / external | OPC server published item rate | Raise OPC server published rate or use direct S7 tag |
| Slow after a few hours of runtime | SQL archive size and disk | TagLogging archive size limit | Check archive size limit (default 500 MB) and segment rotation |
| Slow on PLCSIM only | PLCSIM write rate limit | Watch table in RUN update | Use SCL script or PLCSIM API for step tests |
Frequently Asked Questions
What is the default WinCC picture update cycle and why does it make my trend slow?
The default is cycle number 4, which corresponds to 2 seconds. With this setting the entire picture including the Online Trend Control is repainted at most every 2 seconds, even if TagLogging archives at 500 ms. Set the picture update cycle to 2 (500 ms) or 1 (250 ms) under Graphics Designer → Properties → Miscellaneous → Update Cycle to remove this bottleneck.
How do I reduce the WinCC Online Trend Control update time to sub-second?
Set the TagLogging archive cycle of the process tag to 1 × 500 ms (or 1 × 250 ms if the license supports it) and the picture update cycle of the picture to 1 (250 ms) or 2 (500 ms). On WinCC Unified V20, lower the HMI tag acquisition cycle to 250–500 ms and the screen update cycle to 250–500 ms. The trend will then display a new point within roughly 0.5–1 s of a step change in the PLC.
Why is my I/O field faster than the trend on the same tag?
The I/O field reads the WinCC tag directly on each picture update, while the Online Trend Control reads from the TagLogging archive buffer. The trend therefore waits for the archive cycle in addition to the picture cycle. This double-wait is the source of the perceived 1–3 s lag and is normal behavior, not a fault.
Does the trend refresh faster if I shorten the time range of the X axis?
The time range does not change the rate at which new points are stored or redrawn – that is controlled by the archive cycle and picture update cycle. A shorter time range does make new points visually more prominent and is good operator practice, but it does not by itself reduce latency.
Is WinCC Unified faster than classic WinCC for trend display?
WinCC Unified V20 trend control supports finer acquisition cycles and a modernized HMI tag model, but the fundamental limit of one trend point per acquisition cycle still applies. For most applications, both products can reach sub-second paper-recorder behavior once the picture update, acquisition, and archive cycles are set to 250–500 ms. Choose Unified for new projects that need web clients or modern panel hardware; classic WinCC remains viable for installed-base migration.