WinCC Runtime Advanced · Trends · Data Logging

Real-Time Trends & Historical Data Logging in WinCC Runtime Advanced

Convert raw PLC analog signals into engineering values, log the right tags at the right rate, and build Runtime trend screens that help operators and maintenance teams diagnose the process instead of merely drawing moving lines.

TIA PortalWinCC Runtime AdvancedS7-1200 / S7-1500Hands-On HMI Engineering

Learning Overview

  • Part 1: PLC engineering values
  • Part 2: Tag logging/archive design
  • Part 3: Trend visualization

Estimated time: 120–180 minutes

Prerequisites / What You’ll Need

  • Working analog input in the Siemens PLC
  • WinCC Runtime Advanced communication established
  • Defined engineering units and expected signal range
  • A sampling/retention requirement for the process

Real-Time Trends & Historical Data Logging in WinCC Runtime Advanced: Complete Contents

Practical WinCC Runtime Advanced Engineering Guide

1. Start with a Trustworthy Engineering Value

Trend quality begins in the PLC. Validate the raw analog signal, module configuration, sensor range and fault behavior before logging anything. The HMI should normally receive a scaled engineering value such as °C, bar, %, mm or rpm plus diagnostic quality/status information where required.

2. Analog Scaling with NORM_X and SCALE_X

For a common Siemens raw range, normalize the integer input and scale it into engineering units. Always confirm the actual module range and sensor configuration before copying constants.

3. SCL Scaling Example

// Example only: verify your analog module raw range
TempNorm := NORM_X(MIN := 0, VALUE := RawTempAI, MAX := 27648);
TempPV   := SCALE_X(MIN := 0.0, VALUE := TempNorm, MAX := 1200.0);

// Example alarm preparation
TempHigh := TempPV > TempHighLimit;
Expose TempPV and the setpoint to the HMI using clear REAL tags. If the analog channel can signal wire break/overflow, carry a quality/diagnostic state so the operator does not trust a misleading trend.

4. Create a Tag Logging Archive

In WinCC Runtime Advanced, configure tag logging for the process values that require history. Do not archive every animation tag. Select values that support operation, troubleshooting, quality or reporting: temperature PV/SP, pressure, speed, current, production count and key states. Define storage and retention according to the machine requirement.

5. Choose Sampling and Logging Cycles Intentionally

The logging cycle should match process dynamics. A furnace temperature may not need a 100 ms archive; a fast motion signal may require a different diagnostic tool entirely. Faster logging increases data volume and can reduce usefulness when the process changes slowly. Set the interval from the engineering question you need the trend to answer.

6. Configure the Runtime Trend View

Add a trend view/control and connect archived or real-time tags as required. Use clear pen names, engineering units and sensible Y-axis ranges. Display PV and SP together where operator comparison matters. Avoid putting too many unrelated variables into one chart; create purpose-specific trend screens for temperature, drive load or production rate.
Give operators useful controls for time range, scrolling, zoom and curve selection. A trend that only shows the last few seconds is not useful for investigating a 20-minute process upset. Define a default view for normal operation and a maintenance/history view for deeper analysis.

8. Handle Bad or Missing Data

Communication loss, PLC stop, invalid analog input and Runtime restart can create gaps or misleading values. Make data quality visible where practical and avoid substituting zero for an invalid process signal unless zero is genuinely meaningful. A discontinuity is often more honest than a fabricated value.

9. Industrial Trend Applications

Useful applications include furnace heat cycles, pressure stability, VFD speed/current comparison, tank filling profiles, PID response, batch setpoint tracking and production-rate analysis. Pair the trend with event/alarm timestamps so engineers can correlate process changes with machine states.

10. Trend Troubleshooting

SymptomLikely causeCheck
Flat lineWrong tag or scalingPLC watch table and HMI tag value
No historyArchive not loggingLogging settings, storage, runtime state
Trend too noisySignal/process noiseSensor, grounding, filtering, sample strategy
Huge data volumeCycle too fastRecalculate required sampling interval

11. Hands-On Trend Lab

Scale one analog input, create PV and SP HMI tags, configure an archive, display both values in a Runtime trend and deliberately create a step change. Record response time, overshoot and stabilization. Then stop communication briefly and confirm the engineer can identify the resulting data-quality/history behavior.

WinCC Runtime Advanced Hands-On Lab

Use a non-production PLC/HMI project, document the test conditions, and verify every HMI behavior against the PLC watch table or diagnostics. The objective is not only to make the screen work, but to prove that the engineer can diagnose a deliberate fault and recover the system methodically.

Frequently Asked Questions

What is tag logging in WinCC Runtime Advanced?

Tag logging stores selected process values over time so Runtime can display historical trends and support troubleshooting or process review.

How fast should WinCC Runtime Advanced log data?

Use a cycle appropriate to the process dynamics and diagnostic need. Logging faster than necessary creates more data without automatically producing better insight.

Should analog scaling be done in the PLC or HMI?

For control-oriented systems, scaling and signal validation are normally clearer and more reusable in the PLC, while the HMI visualizes the engineering value.

Can I trend PV and setpoint together?

Yes. Displaying process value and setpoint together is a common way to evaluate control response and operator/process behavior.

Related WinCC Runtime Advanced & Siemens HMI Resources

Need Practical WinCC Runtime Advanced Training?

Build the complete HMI workflow from PLC communication and tags through alarms, trends, recipes and user administration with a practical Siemens automation project.

Discuss Training or Project Support
Verified learning pathway

Discuss SQL Fundamentals and Automation Training

Explore practical SQL Server, PLC/SCADA integration and industrial data training options.

Content reviewed: 4 August 2026

☎ Call WhatsApp ✉ Email Enquire Now