IMDTouchKnowledge BaseShop main store

Troubleshooting

Why WinCC Flexible PC Runtime Reverts to Old Recipes After a Power Cut

HMI and touchscreens Published 6 min read By IMDTouch engineering team

Short answer

When both recipes and runtime pages on a WinCC flexible PC Runtime station revert after a power cut, the usual cause is Enhanced Write Filter (EWF) protecting the volume that holds the runtime project and recipe data. Disable EWF for that storage or move recipes to unprotected storage, redeploy the project, and verify with a test recipe and a restart.

On this page
  1. Why do both recipes and pages revert after a power cut?
  2. How do I confirm EWF is enabled on the runtime PC?
  3. What happens to the runtime data when EWF discards writes?
  4. How do I disable EWF without losing data already written?
  5. What do I do about the recipes that are already gone?
  6. How do I verify the fix survives a real restart?
  7. What if the rollback continues after EWF is off?
  8. Questions asked

When a WinCC flexible PC Runtime station comes back from a power cut with recipes missing and recent page changes gone, the first thing to check is not the project at all. It is the write filter on the runtime PC. Enhanced Write Filter (EWF) intercepts writes to the protected volume and keeps them in an overlay that is lost on an unprotected restart, so everything the runtime wrote since the last commit disappears: operator-created recipes and downloaded page changes alike. Redeploying the project brings the pages back but cannot reconstruct recipes that were never persisted to disk.

Why do both recipes and pages revert after a power cut? #

Because a write filter rolls back everything on the protected volume at once, not just one data type. A recipe-handling fault or a backup job would explain old recipes only; a swapped runtime file would explain old pages only. When both change together, the common factor is the volume: the compiled runtime file the RT Loader starts and the recipe data store sit on the same protected disk, and the overlay holding their recent writes is discarded when power is cut without a commit.

The symptom pattern separates the causes:

  • Old recipes only: look at any scheduled backup or restore job around the recipes in the project.
  • Old pages only: look at what replaces the compiled runtime file on the runtime PC.
  • Both, with no backup or restore function in the project: check storage protection, meaning the write filter on the runtime volume.

In the case this article is built around, the station was a PC Runtime device started by the RT Loader, both recipes and pages reverted, and no backup or restore job existed. EWF turned out to be enabled. That is the answer to check first.

How do I confirm EWF is enabled on the runtime PC? #

Run the EWF manager against the runtime volume and read the state it reports. From a command prompt on the runtime PC:

ewfmgr c:

The output states whether the volume is protected and in which mode. If the runtime project sits on another drive letter, query that letter instead. EWF exists only on the Windows Embedded editions that shipped with many WinCC flexible runtime stations, so on a full desktop Windows installation there is nothing to find and the cause lies elsewhere.

Also confirm where the runtime project actually lives. The RT Loader starts a runtime file from a configured project folder; a typical standard location is C:\ProgramData\Siemens\HmiRtm\HmiRtm\Projects\. If that folder is on the protected volume, every runtime write is exposed to the overlay.

What happens to the runtime data when EWF discards writes? #

EWF redirects all writes on the protected volume into an overlay cache instead of the physical medium. The runtime keeps working, the screen shows the new recipes, and nothing looks wrong. The data exists only in the overlay. When power is cut before a commit command is issued, the overlay is not written back, and the next boot presents the disk exactly as it was at the last commit: old pages from the last committed download, recipes as of that same moment.

This is why the failure shows up "especially after longer power cuts": a controlled shutdown can run the commit, an abrupt power cut cannot. Everything written since the previous commit is what goes missing, and the amount of loss equals the time since that commit, not the length of the outage.

How do I disable EWF without losing data already written? #

Commit the current overlay first, then disable the protection, in that order. The documented sequence is:

ewfmgr c: -commitanddisable

This writes the overlay back to the disk and turns the filter off so it stays off after the next restart. The vendor's guidance carries one warning worth following: run the command only after a clean restart of the system, not in the middle of a running session, because committing a large overlay from a long-running session can in rare cases fail. Then restart once more and confirm with ewfmgr c: that the volume reports unprotected.

If your policy requires keeping EWF for the system volume, do not disable it there. Instead move the recipe storage and the runtime project folder to a partition, memory card or USB stick that is not covered by the filter. Splitting the flash into two volumes, with Windows on the protected one and the runtime data on the unprotected one, is the standard arrangement for exactly this situation.

What do I do about the recipes that are already gone? #

Redeploy the current runtime project to the RT Loader's project folder so the pages are current again. Understand that this does not bring the recipes back: operator-created recipe records live in the runtime data storage, not in the project upload, and if they were only ever in the discarded overlay they are gone. Recover what you can from any exported or retained recipe copy; there is no reconstruct-and-restore path inside the runtime for data that never reached the disk.

After the redeploy, treat the station as having an empty post-commit recipe history and re-enter the missing records from your retained copies.

How do I verify the fix survives a real restart? #

Do it in this order, on the machine during a planned window:

  1. With EWF disabled on the runtime volume, create a test recipe with a recognizable name, for example EWFTTEST01.
  2. Make one harmless page change or note the timestamp on a screen element, so both data types are covered.
  3. Restart the runtime PC through the normal Windows restart.
  4. Check that the test recipe and the page change are both still present.
  5. Repeat once through the shutdown path the machine actually uses, including the power-removal sequence that exposed the problem, using the approved machine shutdown procedure.

If the test recipe and the page change both survive step 5, the rollback is fixed. On a Windows 10 IoT station the equivalent protection is UWF, which works the same way with its own overlay and commit commands; the diagnosis is identical and the handling of the newer filter is covered in managing UWF on Windows 10 IoT HMI panels.

What if the rollback continues after EWF is off? #

Then stop looking at the filter and start looking at what touches the runtime files. The file that carries the compiled project is PDATA.FWX, and it is the file to track: check its modification date before and after a restart. If the timestamp changes when nobody downloaded a project, some startup process or stray executable is replacing it.

A clean diagnostic is to change the project folder in the RT Loader setup to a new folder of your own, place the runtime files there, and watch whether the rollback follows the old location or stops. File swapping is a hypothesis until you observe the replacement in the timestamps; do not rebuild the station on the assumption.

If the runtime PC itself is aging or unreliable under repeated power cuts, that is a separate replacement decision, and an industrial panel PC running the PC runtime is the direct successor hardware.

One safety note: run all of this with the machine in a safe state. Recipe and restart testing on a live process can write test values into production records; do it on an isolated station or during a planned window.

Questions asked

Why does uploading the project restore the pages but not the missing recipes?

The upload redeploys the runtime project files, including the compiled runtime file, so the pages come back. Recipes created at runtime by operators live in separate data storage and are not part of that upload, so they only return from a retained copy or backup if one exists.

Is Enhanced Write Filter the only thing that can cause this rollback?

No. A startup executable that swaps runtime files can produce the same symptom, which is why you track the compiled runtime file for modification before concluding. But in the case behind this article EWF was enabled, and disabling or routing around it is the first fix to try.

What is the difference between EWF and UWF here?

Both redirect writes on a protected volume into an overlay instead of the physical disk, and both discard that overlay depending on configuration. EWF belongs to the older Windows Embedded generations that shipped with many WinCC flexible PC Runtime stations; UWF is the successor on Windows 10 IoT.

Keep reading

  • How-to

    Running a WinCC Flexible 2008 Project in PC Runtime

    Yes — WinCC flexible 2008 Advanced targets a PC station. Compile the project to a .fwx file and run it with the separately installed, tag-licensed WinCC flexible Runtime through its loader; the compile never produces an .exe.

    HMI and touchscreens

  • Troubleshooting

    Opening PDF Files from WinCC Flexible 2008 Runtime

    WinCC flexible 2008 can open a PDF or Word file, but not with Execute: that statement runs its string as script code, so a bare path launches nothing. On PC runtime, a button script calls the Windows shell object's Run method with the document's full path, or StartProgram starts the viewer; the installed application and its file association do the rendering. On panels, the runtime's own PDF viewer displays the file within its documented format limit.

    HMI and touchscreens

  • Explainer

    Why an FWX compiled in WinCC Flexible 2008 needs 2008 runtime

    An FWX compiled by WinCC flexible 2008 runs only on WinCC flexible 2008 Runtime; a 2007 Runtime target will not load it. Save As Version converts the project to the 2007 format but never converts an already-compiled file, so you open the converted project in WinCC flexible 2007, compile it there, and deploy that FWX.

    HMI and touchscreens

Why a WinCC picture window keeps objects at the old size