Problem: "Invalid Path for Log" in WinCC Flexible 2008 Data Log Editor
When configuring a tag or message log in the WinCC Flexible 2008 SP2/SP3 engineering software, the Data Logs dialog rejects user-defined local Windows paths such as C:\WinCCTrend\Logs with the message "Invalid path for log". The path field then defaults to a panel-specific template such as \Storage Card MMC\Logs, which is not useful on a development workstation that has no physical HMI attached.
This is the most common data-logging configuration fault reported on Multi Panel projects (MP 177, MP 277, MP 377) when engineers attempt to commission tag logging against the WinCC Flexible Runtime simulator instead of the physical panel.
Root Cause: Device-Type Specific Storage Targets
WinCC Flexible 2008 binds every Data Log to a storage medium declared in the project, not to a Windows filesystem path. The set of valid media targets is derived from the selected HMI device type:
| Device Type Selected in Project | Valid Log Targets | Typical Path Format |
|---|---|---|
| WinCC Flexible Runtime (PC) | Local hard disk, network share |
C:\Logs\, \\SERVER\share\Logs\
|
| MP 277 10" Touch / Key | MMC/SD card, USB stick, network path |
\Storage Card MMC\Logs\, \USB\Logs\
|
| MP 377 15" Touch | MMC/SD card, USB stick, network path |
\Storage Card MMC\Logs\, \USB\Logs\
|
| OP 177B / OP 277 6" | MMC card only | \Storage Card MMC\Logs\ |
| TP 177B 4" | No log support (no SD/MMC slot on base unit) | N/A |
When the project is bound to a panel that has no internal flash log area (the MP 277 is one of these), the only valid log targets are removable media or an explicit network share. The Windows drive letter C:\ resolves to the panel's internal C: drive, which is reserved for the firmware image and the running project — it is not writable for user data logs. This is why the dialog flags the path as invalid and reverts to the MMC template.
Affected Versions and Products
- Engineering software: WinCC Flexible 2008 (all Service Packs), WinCC Flexible 2008 SP2, WinCC Flexible 2008 SP3, WinCC Flexible 2008 SP4 (HF6 / HF7). Behavior is identical across SPs.
- Runtime targets verified: SIMATIC MP 277 10" Touch (6AV6 643-0CD01-1AX1), MP 277 10" Key (6AV6 643-0CB01-1AX1), MP 277 8" Touch/Key, MP 377 12"/15"/19" Touch.
- Runtime image: Windows CE 5.0 / CE 6.0 on the panel; Windows XP SP3 / Windows 7 (32-bit) on the engineering PC for the simulator.
Solution 1: Test Data Logs in the WinCC Flexible Runtime Simulator
If the goal is to verify tag and alarm archiving on the engineering PC (no panel hardware available), the device type in the project must be changed from the MP 277 to the WinCC Flexible Runtime target. This unblocks local Windows paths.
- In the WinCC Flexible project tree, right-click the HMI device and select Change Device Type.
- In the device selector, navigate to PC systems > WinCC Flexible Runtime and pick the resolution that matches your development monitor (e.g., WinCC Flexible Runtime 1024 x 768).
- Confirm the device swap. WinCC Flexible will re-validate all references; some MP 277-specific objects (PROFINET IO diagnostics, Sm@rtAccess view) will be lost.
- Open Historical Data > Data Logs. Create a new log, for example
TrendLog_01. - In the Storage location dropdown choose File (not Database). For RDB logs a Microsoft SQL Server instance is required; for a quick functional check, file-based CSV logs are sufficient.
- Enter the path as a standard Windows path:
C:\WinCCTrend\Logs\. The dialog will now accept it because the target runtime is Windows, not Windows CE. - Compile the project with Project > Compiler > All (with consistency check) and start the runtime with Start Runtime (F5) or
Start > Start Runtimefrom the menu. - Insert a Trend View control bound to the log, force a tag value change, and verify that a new
*.csv/*.rdbfile appears inC:\WinCCTrend\Logs\.
Solution 2: Configure Data Logs on a Physical MP 277
For the deployed panel, configure a removable storage target. The MP 277 has one MMC/SD slot and one USB-A port; either can host the log files.
- Insert a Siemens-approved MMC or SD card (FAT16/FAT32, 32 MB – 2 GB for MMC, up to 32 GB for SDHC on later firmware) into the slot, or plug in a USB stick.
- In WinCC Flexible 2008, with the MP 277 device selected, open Historical Data > Data Logs.
- Create a new log. The Path field will offer pre-defined entries:
-
\Storage Card MMC\Logs\(default for the on-board slot) -
\USB\Logs\(only present on panels with USB host support, e.g. MP 277 8"/10") -
\Network\Logs\(when a network share is declared under Device Settings > Network)
-
- Do not invent new root directories; the runtime only mounts these three virtual roots regardless of physical partitioning. Append a project-specific subfolder, e.g.
\Storage Card MMC\Logs\Line01\. - Under Storage Parameters, set:
- Storage method:
Circular log(recommended for continuous trend data) orSegmented logwith a 24-hour segment cycle for shift reports. - Maximum number of segments: 30 (default), increase to 365 only for long-term archiving with sufficient card capacity.
- Storage method:
- Assign the log to one or more tags under Properties > Tag Selection. The acquisition cycle should match the Trend View update rate (default 1 s).
- Compile and transfer the project to the panel via Ethernet (S7RT or PN/IE), MPI/PROFIBUS, or USB. After the first transfer, format the storage card on the panel: Control Panel > System > Storage Manager > select card > Format (FAT, allocation unit 4 KB).
Solution 3: Network Path as a Universal Target
When a removable card is undesirable — for example, the panel is in a sealed enclosure — a UNC network share is the only valid non-removable target the dialog will accept.
- On the Windows file server, create a share:
\\PLCSRV\HMI_Logs\MP277_Line01\. Grant the panel's Windows CE userEveryone : Change. - In the WinCC Flexible project, open Device Settings > Network > Network Drives and map the share. Authentication: enter a service-account user/password. The runtime will reconnect on each panel reboot.
- Set the Data Log path to
\Network\MP277_Line01\. The leading backslash is mandatory; it is the CE mount root, not a UNC root. - Verify reachability with a Ping or by reading/writing a recipe on the same share before commissioning the trend.
Verification Checklist
| Check | Pass Criterion | Tool / Location |
|---|---|---|
| Log file is created at runtime start | First segment file Log_00001.csv exists in target folder |
Windows Explorer on PC, File Explorer on panel (Control Panel > File Explorer) |
| Trend View shows real-time data | Trend curve tracks the bound tag within one acquisition cycle | HMI screen, online watch in WinCC Flexible |
| Log rotation works | After configured time/size, oldest segment is renamed/deleted (circular) or new file created (segmented) | Storage card or share directory listing |
| Power-cycle persistence | Power off MP 277, restore power, last segment still readable | Remove card, read on PC with Siemens ProSave or any text editor |
| Database integrity (RDB logs only) | WinCC Flexible / WinCC archive viewer can re-import the log without repair | WinCC Archive Viewer, SQL Server Management Studio for RDB |
Path Format Reference
| Path Entered | Accepted? | Why |
|---|---|---|
C:\Logs |
No (panel) / Yes (PC runtime) | Internal C: is firmware-protected on CE panels |
\Storage Card MMC\Logs |
Yes (MP 277) | CE mount point for the MMC/SD slot |
\USB\Logs |
Yes (MP 277 8"/10") | CE mount point for the USB host port |
\Network\Logs |
Yes (if a network drive is mapped) | CE mount point for the mapped UNC share |
D:\Logs |
No | No D: drive exists on an MP 277 |
\\SERVER\share\Logs |
No (direct entry) | UNC paths must be wrapped through \Network root |
Storage Card MMC\Logs (no leading backslash) |
No | Leading backslash required for CE root |
\Hard Disk\Logs |
No | No such CE root on Multi Panels |
Why the Dialog Auto-Accepts "\Storage Card MMC\Logs"
WinCC Flexible scans the currently selected device type's HMI device description file (the *.hmi or device database entry) for declared storage locations. When the device is an MP 277, the description enumerates \Storage Card MMC\ and \USB\ as legal mount roots; when it is a PC runtime, it enumerates the Windows drive letters. The validation routine in flexlogedit.dll simply rejects any path whose root does not appear in that enumeration — which is why your C:\WinCCTrend\Logs entry is overwritten and why the MMC template is restored as a hint.
Common Follow-On Errors and Fixes
| Symptom | Root Cause | Fix |
|---|---|---|
| "The storage medium is write-protected" at runtime | SD card physical lock or FAT32 corruption | Slide lock, reformat on panel via Storage Manager |
| Trend View shows curve but log file remains 0 bytes | Tag is not toggled / log is configured but not linked to a process tag | Bind a real process tag, force a value change in PLCSim or via simulation tag |
| Log file is written but archive viewer rejects it | Mixing CSV and RDB readers, or file opened in Excel while runtime holds a lock | Close Excel, stop runtime cleanly, copy file before viewing |
| "Path not found" at runtime start on panel | Subfolder does not exist on card | Pre-create folder on PC, or enable "Create subfolder if missing" in log properties (WinCC Flexible 2008 SP3+) |
| Time stamp of log entries is offset by one hour | Daylight-saving flag set incorrectly on panel | Control Panel > Date/Time > disable auto-DST, or set correct time zone in project |
Recommendations by Use Case
| Scenario | Recommended Storage Target | Rationale |
|---|---|---|
| Engineering bench test, no hardware | Switch device to WinCC Flexible Runtime, use C:\ on PC |
Fastest iteration, no card handling |
| Commissioning in cabinet | Industrial-grade SD card (Siemens 6AV6 671-1CB00-0AX2 2 GB or equivalent) | Vibration-resistant, predictable wear |
| Continuous 24/7 production logging | Network share with circular log, 30-day retention | Avoids card wear-out, central archive |
| Audit / FDA-style trace retention | Network share plus daily backup to NAS; segmented log, append-only flag | Compliance, chain of custody |
| Mobile / no network | USB stick on the panel's USB host port | Removable for off-line analysis |
Related Configuration Touchpoints
- Control Panel settings on the MP 277: Control Panel > Transfer — set channel, enable automatic transfer for commissioning.
- ProSave: Use Siemens ProSave to back up the panel image and the storage card contents; ProSave is the only tool that reads the internal flash structure correctly.
-
Runtime version on the panel: The MP 277 ships with WinCC Flexible Runtime. The compiled project transfers as a
*.fwcfile; mismatched versions produce a "Different runtime version" transfer error rather than the path error described here. - Licensing: Logging is a base feature of WinCC Flexible 2008; no additional license key is required for tag or alarm logs. Audit Trail / GMP logs do require the WinCC Flexible / Audit option.
References to Official Documentation
Why does WinCC Flexible 2008 refuse C:\ paths on an MP 277 project?
Because the internal C: drive of the panel is reserved for the CE firmware image and the running project; it is not a valid user log target. Valid targets on a Multi Panel are limited to \Storage Card MMC\, \USB\ (on models with a host port), and \Network\ (a mapped UNC share). To use a Windows path, switch the project device type to WinCC Flexible Runtime.
How do I simulate data logging on the engineering PC without a panel?
In the project tree right-click the HMI device, choose Change Device Type > PC systems > WinCC Flexible Runtime. After recompiling, enter any local Windows path (e.g. C:\WinCCTrend\Logs\) in the Data Logs editor and start the runtime with F5. The Trend View will write CSV or RDB segments to that folder.
Which storage media are supported on the MP 277 10"?
The MP 277 10" has one MMC/SD card slot (FAT16/FAT32, up to 2 GB MMC, up to 32 GB SDHC on later firmware revisions) and one USB-A host port. Both \Storage Card MMC\ and \USB\ appear in the path dropdown; only the MMC slot is present on the smaller 6" MP 277 variants.
Can a tag log be written to a network share without an MMC card installed?
Yes. Declare the UNC share under Device Settings > Network > Network Drives with a service account that has Change rights. Then set the Data Log path to \Network\<subfolder>\. The runtime reconnects on every panel reboot; verify reachability with a recipe transfer before commissioning the trend log.
What causes the path to revert to "\Storage Card MMC\Logs" every time I type my own path?
The Data Logs editor validates the path against the device-type-specific list of mount roots. Any root not in that list is rejected and the field is replaced with the default template. To create a custom subfolder, append it to a valid root — for example \Storage Card MMC\Logs\Line01\ — rather than typing a fresh path.