Siemens Industry Online Support
Siemens AG
Entry type: Application example Entry ID: 109477071, Entry date: 04/10/2019

Long-term data archiving with WinCC Runtime Advanced and SIMATIC HMI operating devices with WinCC (TIA Portal)

  • Entry
  • Associated product(s)
Create practically any number of extensive long-term archives independent of the quantity structures of the operator interfaces and display them on PCs and HMI panels using trend views and f(x) trend views.

The storage of process tags in the form of data logs on internal drives or removable media of HMI operator interfaces allows the subsequent evaluation of the process at any time. However, there are limits to the method, since data logs can only reach a certain size depending on the type of operating device used. However, it is often desirable to record larger amounts of data over a longer period of time. The trend views/f(x) trend views should also be able to reproduce data logs whose scope is not limited by the default quantity structures.

To avoid the limitation of the maximum log size (and thus the recording time of the logs), a script is called when the data log is full. This script suspends the archive recording without data loss and copies the log into a directory for long-term storage. After that the data log is empty and can be filled again. A "library" of stored archive sections is created.

A second script is used to display the saved logs, and this script restores the long-term archived values from the "Library" and displays them in the HMI or Runtime.

The configuration can easily be adapted to different quantity structures, project requirements and existing hardware.

Fig. 01

The application example provides a WinCC (TIA Portal) V15.1 project for WinCC RT Advanced as well as for HMI operator interfaces for download.


  • No additional hardware required
  • Use with PC-Runtime or operating devices
  • No intervention in communication or control, no interruption of archiving
  • Scalable for a wide range of operator panels and project requirements
  • Archive size limited only by the storage medium (MMC card / USB stick / hard disk)

 Documentation and example project
  Documentation (1,6 MB)
 Registrierung notwendig  WinCC (TIA Portal) V15.1 Project (49,1 MB)
 SHA256 checksum12A44A7C5A8629A47D3C05FD55470B4C2DE7460C8F776DC7F47A7F4E2590F84F

Course offers
Our SITRAIN courses provide you the fundamentals of using and operating WinCC (TIA Portal):

  • SITRAIN basic course: SIMATIC WinCC (TIA Portal) on the machine level for Comfort Panels and WinCC Runtime Advanced (Entry ID: 109758624)

  • SITRAIN advanced course: SIMATIC WinCC (TIA Portal) on the machine level for Comfort Panels and WinCC Runtime Advanced (Entry ID: 109758626)

 Further information 
How can long-term archiving be carried out with WinCC flexible?


Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
Support to the statistics
With this function the IDs found are listed according to number (format .txt).

Generate list
Copy URL
Display page in new design
mySupport Cockpit