PCS 7 v8.1 WinCC Trend Properties Storage: Files and Config

David Krause12 min read
SCADA ConfigurationSiemensTutorial / How-to
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Overview of PCS 7 WinCC Trend Property Storage

When an operator changes trend display properties (color, time range, pens, scaling) during runtime in a Siemens PCS 7 v8.1 OS, the persistence behavior of those changes is governed by the WinCC OnlineTrendControl. The location, file format, and per-user separation of those trend properties changed significantly between PCS 7 V6/V7.0 and PCS 7 V7.1 SPx / V8.x. This article documents the on-disk locations, the runtime behavior behind each option in the Online configuration tab, the user-specific profile folder, and the procedure to restore an engineer's "original" properties after an operator modifies them on shift.

The information below applies to PCS 7 V8.1 and the corresponding WinCC V7.x runtime that ships inside the PCS 7 installation. References are made to the PCS 7 Process Control System manuals and the WinCC Information System.

Trend File Format and Folder Location: Before vs. After V7.1

WinCC trends used by the OnlineTrendControl and the more recent WinCC Online Trend Control (OCX) are persisted on the local engineering / server station in the project directory.

PCS 7 / WinCC Version Folder File Format File Extension Description
WinCC < V7.0 / PCS 7 < V7.1 <WinCC project>\TRG\ Text .TRG Human-readable text representation; each trend saved as a flat text file.
WinCC ≥ V7.1 / PCS 7 V7.1 SPx / V8.x <WinCC project>\TRG\ XML .TRC Structured XML; same on-disk location, new extension, additional metadata nodes.

The TRG subfolder is created automatically by WinCC Explorer the first time the Graphics Designer compiles or opens a picture containing an OnlineTrendControl. Even though the folder name still says "TRG" (a legacy artifact from the .TRG era), the files inside are now named *.TRC. The path on a typical PCS 7 OS server looks like:

C:\Program Files (x86)\Siemens\Automation\PCS7\<ProjectName>\TRG\

If you do not see the TRG folder, compile the OS once from the PCS 7 project (right-click the OS in SIMATIC Manager → OS → Compile) and the directory is created. The TRC files are loaded by the WinCC runtime when the picture is opened; they are also the source used by the Graphics Designer when a project is opened in configuration.

Note: The trend property file (TRC) is per-picture, not per-trend-control-instance, when more than one OnlineTrendControl exists in the same picture. Each picture can hold multiple controls; however the per-user overrides discussed below are split further into the Profiles subfolder.

OnlineTrendControl "Online configuration" Tab Options

Open the picture containing the OnlineTrendControl in Graphics Designer, double-click the control, then select Properties → Online configuration. The three radio buttons define how the operator's runtime changes are handled:

Option Persistence Survives Picture Change Survives Runtime Exit Survives RT Restart
Do not retain None (volatile) No No No
Retain during runtime RAM only Yes No No
Retain permanently Disk (XML in Profiles) Yes Yes Yes

Do not retain — the operator's change applies to the live trend display only; the next time the picture is loaded, WinCC reads the original TRC from the TRG folder and discards the operator's modifications.

Retain during runtime — the change is written to the in-memory representation of the trend; it persists as long as the WinCC Runtime process is alive. A picture change preserves the change, but a clean exit of WinCC Runtime (RT\_PM.exe / RT\_PCS7.exe) or a server reboot drops it.

Retain permanently — the change is written to disk into the user-specific profile folder (see next section). It survives picture changes, runtime restarts, and OS server reboots. This is the only option that materially persists the operator's modifications.

Recommendation: For most production pictures, leave the default Retain permanently. If a control is intended to be read-only for operators (e.g., on operator stations without engineering rights), use Do not retain so that intentional mis-configurations self-heal on picture change.

User-Specific Storage: The "Profiles" Folder

With the new controls for Tag Logging and Alarm Logging that became available in WinCC V7.0, runtime changes to controls are no longer stored in a single shared file. Each change is now associated with the WinCC user that is currently logged in, and persisted under:

<WinCC project>\Profiles\<WinCCUserName>\<PictureNameWithoutExtension>

Concrete path on a PCS 7 V8.1 OS server:

C:\Program Files (x86)\Siemens\Automation\PCS7\<ProjectName>\Profiles\Operator1\S7_Program\AlarmLogPic.Pdl

The file inside that folder is named exactly like the picture (PDL) that contains the control, with no extension. It is a small XML containing only the property overrides applied at runtime. Multiple controls inside the same picture store their overrides in the same file.

Important: The Profiles folder is not created at OS compile time. It is created lazily the first time a WinCC user invokes the online configuration of any control (Tag Logging, Alarm Logging, or OnlineTrendControl) and selects Retain permanently. If the folder does not exist on your OS server, no operator has used the online configuration yet. The folder will appear after the first such action is performed.

Restoring the Engineer's Original Trend Properties

The original trend properties configured by the engineer in Graphics Designer are stored in the .TRC file inside the TRG folder. To restore those originals after an operator has changed them with Retain permanently, perform the following steps on the OS server (or OS client that owns the picture):

  1. Stop WinCC Runtime on the affected station (open WinCC Explorer → File → Exit WinCC Explorer, or stop the "WinCC Runtime" service).
  2. Navigate to <Project>\Profiles\<UserName>\.
  3. Locate the file that matches the picture name (e.g., Overview.Pdl).
  4. Delete this file (or rename to *.bak as a safety copy).
  5. Optionally also delete the matching entry in <Project>\Profiles\<UserName>\<UserName>.urf if you want a clean slate for that user.
  6. Restart WinCC Runtime.

On restart, WinCC cannot find the per-user override, so it falls back to the engineering values stored in the .TRC file inside the TRG folder. The picture now displays with the original colors, time range, pens, and limits as configured by the engineer.

Bulk restore script: If you need to restore all users for a given picture, use a short batch / PowerShell script that enumerates all subfolders of Profiles\ and deletes the file matching the picture name. Stop WinCC Runtime first to avoid file-lock errors.

Project Folder Layout Diagram (SVG)

<WinCC Project> layout in PCS 7 V8.1 TRG\ (legacy folder, holds .TRC XML) Overview.TRc Faceplate1.TRc Profiles\ (per-user overrides) Operator1\ Overview Faceplate1 Engineer1\ Overview (Profiles auto-created on first use)

Activating Alarm Logging and Tag Logging in PCS 7 V8.1

PCS 7 automatically generates WinCC alarms and archive tags from CFC blocks that support the OCM (Operator Control and Monitoring) capability. To make sure the runtime actually publishes and records these, both Alarm Logging Runtime and Tag Logging Runtime must be enabled in the OS server's startup list.

Alarm Logging Runtime

  1. On the OS server, open WinCC Explorer.
  2. Right-click the computer name under Computer and select Properties.
  3. Switch to the Startup tab.
  4. In the WinCC Runtime Start up Order list, check the box next to Alarm Logging Runtime.
  5. Click Apply, then OK. The activation requires a restart of WinCC Runtime.
OS Clients do not run Alarm Logging locally. They consume alarms from the OS server's Alarm Logging service. Enabling Alarm Logging Runtime on a client is unnecessary and is normally left disabled. Standard PCS 7 OS clients receive all alarm events from the package server.

Tag Logging Runtime

Tag Logging Runtime is enabled by default in the WinCC Runtime Start up Order of a PCS 7 OS server. Verify by following the same procedure as above and confirming that the Tag Logging Runtime entry is checked. If you disabled it during earlier maintenance, re-enable it and restart runtime.

Configuring Tag Archive Properties on a CFC Parameter

Each OCM-capable block parameter can be individually marked for archiving. The configuration is performed in the CFC editor:

  1. Open the CFC chart that contains the block (e.g., an APL block such as OpDi01, MotSpd, VlvAnl, etc.).
  2. Right-click the desired parameter (for example SetOp on OpDi01) and select Object Properties.
  3. Switch to the Archive tab.
  4. Select one of the three options listed below.
  5. Compile the OS so the archive tag is created in WinCC Tag Logging.
Archive Option Effect at OS Compile Time Runtime Effect Recommended Use
No archiving No tag created in Tag Logging editor. Parameter is not logged. Display-only parameters without regulatory or historical value.
Archiving Tag created in Tag Logging editor of the OS server, configured in the standard Process Value Archive. Values are stored in the local OS archive (and the optional Process Historian if connected). Most process values; this is the standard setting.
Long-term archiving Tag created with the long-term attribute; the OS is expected to forward the value to a Process Historian. Values are sent to PH and stored in PH databases. Values that must be retained for years, batch records, regulatory archives.

The default option for most APL blocks is Archiving. Switch to Long-term archiving only when a Process Historian is part of the system architecture. Selecting Long-term archiving on an OS that is not connected to a PH will still create the local archive tag; the values are stored locally but not forwarded.

TagLogging Segment, Size, and Backup Configuration

Inside WinCC Explorer → Tag Logging editor, each archive can be tuned to match disk budget and retention rules. The most important parameters are:

  • Segment size (MB or number of datapoints): when the active segment reaches the configured size, the runtime rolls a new segment and starts writing into it.
  • Segment time period: the maximum lifetime of one segment (e.g., one day, one week, one month) before it is closed.
  • Backup path: location where closed segments are moved for long-term storage. Point this to a network share that is included in your backup cycle. The runtime continues to write to the local segment while the backup copy is created.
  • Swap behavior: when the configured maximum number of segments is reached, the oldest segment is either overwritten (ring archive) or the runtime stops accepting new values (linear archive). Ring archive is the default for PCS 7 process value archives.

For full details, open the WinCC Information System within the OS server and navigate to Working with WinCC → Archiving Process Values. The same content is mirrored in the printed PCS 7 Operator Station manual set.

Verification Procedure After Restoring Trend Properties

  1. Confirm the .TRC file still exists in the project's TRG folder and is readable.
  2. Confirm the user-specific override file was deleted (or renamed to .bak).
  3. Restart WinCC Runtime and log in as the affected operator user.
  4. Open the picture that contains the OnlineTrendControl.
  5. Verify visually that the trends show the engineering colors, time range, pen selection, and Y-axis scaling.
  6. Modify one property as the operator (e.g., zoom in to 10 minutes), then close the picture and reopen it. With Retain permanently, the change is preserved; with Do not retain, the engineering values come back immediately.
  7. Check that the operator's profile file is regenerated under Profiles\<User>\ when Retain permanently was used.

Troubleshooting Matrix

Symptom Likely Cause Remedy
TRG folder does not exist OS has not been compiled yet, or the picture does not contain an OnlineTrendControl. Compile the OS in SIMATIC Manager; confirm the picture actually contains the OnlineTrendControl activeX.
Profiles folder does not exist No WinCC user has invoked the online configuration of a control with Retain permanently. This is normal. The folder is created lazily. Trigger one configuration change as a user and verify.
Operator changes are lost at every restart OnlineTrendControl is set to Do not retain or Retain during runtime. Change the setting in the Online configuration tab to Retain permanently and recompile the OS.
Engineer cannot see original properties The user profile override file masks the engineering TRC. Stop runtime, delete the per-user file under Profiles\<User>\<PictureName>, restart runtime.
Alarms not appearing on the OS Alarm Logging Runtime not enabled, or the OS server / client configuration is mismatched. Enable Alarm Logging Runtime in the OS server start-up list and restart runtime. Check package server assignment on the client.
Tag values not being archived CFC parameter not set to Archiving or Long-term archiving; or Tag Logging Runtime disabled. Open the block's Archive property and select Archiving; re-compile the OS; verify Tag Logging Runtime is in the start-up list.
Tag values are archived but not visible in long-term queries Parameter set to Archiving only, no Process Historian connected, or the PH connector is not licensed. If long-term storage is required, set the parameter to Long-term archiving and ensure the PH is online and licensed.

Notes on PCS 7 V8.1 vs. Newer PCS 7 Versions

PCS 7 V8.1 and V8.2 use the same TRC / Profiles storage scheme described above. PCS 7 V9.0 introduced WinCC Unified (TIA Portal-based HMI) as a parallel runtime; Unified uses a different storage model entirely (a database-backed configuration store) and the .TRC / Profiles mechanism only applies to the classic WinCC Runtime (sometimes called "WinCC Professional Classic" or simply "WinCC RT"). If you migrate specific pictures to Unified, the file locations and per-user override behavior change accordingly and are not covered by this article.

Where does PCS 7 V8.1 save WinCC OnlineTrendControl properties?

Engineering defaults are stored in <Project>\TRG\<Picture>.TRC (XML). Runtime operator changes done with Retain permanently are stored per WinCC user under <Project>\Profiles\<WinCCUser>\<PictureNameWithoutExtension>.

What is the difference between .TRG and .TRC files?

.TRG was the text-format trend file used in WinCC before V7.0. .TRC is the XML trend file used in WinCC V7.1 and later, including all PCS 7 V8.x releases. The folder is still called TRG for backwards compatibility, but the files inside are .TRC.

How do I restore the original trend properties configured by the engineer?

Stop WinCC Runtime, delete the matching file (named after the picture, no extension) from <Project>\Profiles\<UserName>\, and restart runtime. The TRC engineering values in the TRG folder will be used again.

How do I activate Alarm Logging on the PCS 7 OS server?

In WinCC Explorer on the OS server, right-click the computer name → Properties → Startup tab, and check Alarm Logging Runtime in the start-up order. Restart WinCC Runtime. OS clients do not run Alarm Logging locally; they receive alarms from the server.

How do I enable archiving for a CFC parameter in PCS 7?

Open the CFC block, go to the parameter's Object Properties → Archive tab, and select Archiving (standard) or Long-term archiving (for Process Historian). Recompile the OS so the tag is created in Tag Logging.

Why is the Profiles folder missing in my PCS 7 V8.1 project?

The Profiles folder is not created at OS compile time. It is created automatically the first time a WinCC user invokes the online configuration of a control (trend, alarm, or tag logging) and selects Retain permanently. Until then, the folder does not exist — this is normal.

Back to blog