Overview of the DOTS_SWP Behavior in STEP 7 and PCS 7
The DOTS_SWP directory and its resident DOTS00.SWP file are an internal working-storage mechanism used by the Siemens SIMATIC Manager environment, most visibly by the CFC (Continuous Function Chart) editor in PCS 7. The directory is created at runtime, used as a temporary swap area while projects are loaded and compiled, and removed automatically when SIMATIC Manager closes. The behavior is documented in Siemens technical support material covering the general conditions for SIMOTION and CFC: "CFC creates the 'DOTS_SWP' directory in the root directory of the partition that has the most free memory space" (Siemens Support, Simotion Corrected General Conditions since V4.1.2 to V4.4).
Although the file appears in the same manner as a Microsoft Word shadow copy, it is not user data and is not recoverable. Engineers observing the folder for the first time typically believe the workstation has been compromised by malware. The behavior is benign by design but becomes problematic when the partition selected by the algorithm is small, slow, write-restricted, or shared with another application that fills the disk during compile operations.
When and Why the DOTS_SWP Folder is Created
Three preconditions must all be true before DOTS_SWP appears on a drive:
- SIMATIC Manager (or PCS 7) must be running. The folder is never written by background services.
- A S7 project (S7P) or multi-project must be open. Opening SIMATIC Manager with no project loaded does not create the folder.
- The CFC editor must be invoked at least once during the session, or a CFC chart must be present in the active project. The swap area is allocated when CFC first touches the chart database.
The companion executable that allocates and frees the directory is S7tgtopx.exe, located by default in the STEP 7 install path:
C:\Program Files (x86)\Siemens\Step7\S7BIN\S7tgtopx.exe
Because the binary resolves the target volume relative to its own load drive, installations on D:\ will preferentially allocate on D:\. The explicit selection logic, however, is "drive with most free space at allocation time," so an engineer with multiple partitions will see the folder migrate between sessions depending on which volume has the largest free-byte count.
File Contents and Lifecycle
The single artifact inside the folder is named DOTS00.SWP. Its size is dynamic:
| Project State | Typical DOTS00.SWP Size | Notes |
|---|---|---|
| Project open, no compile | 0 KB – 1 KB | Allocation only, not yet written |
| Charts open in CFC editor | 1 MB – 20 MB | Proportional to number of open chart instances |
| Full CFC compile (Übersetzen) | 20 MB – 250 MB+ | Scales with chart count, FB instance DBs, runtime blocks |
| CFC of a multi-project > 5000 charts | 300 MB – 1 GB+ | Multiple swap segments may be created in some V8.x builds |
The directory is removed when SIMATIC Manager closes cleanly. An unclean termination (kill of S7tgtopx.exe, BSOD, power loss) leaves the folder orphaned. Orphaned folders can be deleted manually; they will be re-created on the next session.
Common Symptoms and Reported Errors
While the folder is functionally a scratch area, several failure modes appear repeatedly in field deployments:
| Symptom | Typical Cause | Affected Versions |
|---|---|---|
| Folder appears on USB HDD when connected | USB volume reports highest free-space count | STEP 7 V5.3 – V5.5 SPx |
| Folder appears on slow secondary HDD | Largest free space = slowest spindle | All STEP 7 V5.x, PCS 7 V6-V8 |
| Compile aborts with "Platte voll" (German UI: disk full) | Target partition < 200 MB free during Übersetzen | PCS 7 V6.1 – V9.0 |
| CFC error code 1739:310 | Swap allocation failed; volume too small or write-protected | PCS 7 V7.1 – V8.2 (pre-SP2) |
| Folder persists after SIMATIC Manager exit | Abnormal termination of S7tgtopx.exe
|
All versions |
| Folder not visible at all on VM with single drive | Selection algorithm collapses to C:\ only; size < 4 KB so hidden by Explorer | STEP 7 V5.5 on virtualized SSD |
The error code 1739:310 originates from the CFC chart cache layer when the runtime cannot extend its swap segment. The literal translation from the German message catalog is "no space left on device" (errno 28 on POSIX-style runtimes). On Windows it is mapped to HRESULT 0x80070027 / Win32 39.
Root Cause Analysis
The selection algorithm in S7tgtopx.exe is a single-pass scan over fixed and removable drives. It does not weigh:
- Drive rotational latency or SSD endurance
- Drive write policy (some USB enclosures report read-only after a CRC mismatch)
- Whether the volume is a network share (UNC mapping returns valid free-space data and is selected)
- Whether the user has write permission (the allocation fails silently and reverts to the install drive)
Combined with Windows file-system reporting quirks (e.g., the read-only attribute displayed for files inside the folder is purely a Windows Explorer presentation artifact and is not the DOS read-only bit; see Microsoft Q&A on read-only folders for the underlying behavior), the result is that the algorithm picks a partition that is technically largest but operationally unsuitable.
Root cause for the disk-full class of failures is therefore not a corrupt file but a wrong drive selection compounded by a small or write-restricted volume.
Solution: Configure the Swap File Folder on PCS 7 V8.2 / V9.0
Starting with PCS 7 V8.2.x and V9.0.x, when the latest CFC hotfix updates are installed, the swap-file destination can be assigned explicitly through the SIMATIC Manager menu tree. This is the supported remediation path.
Prerequisites
- SIMATIC Manager closed on all nodes of the multi-project
- User logged in with administrator privileges on the engineering station
- PCS 7 V8.2 SP1 or later, or PCS 7 V9.0 SPx with current CFC update package installed (verify via SIMATIC Manager > Help > About > Installed Software)
- Target partition formatted NTFS, write-enabled, with at least 1 GB of sustained free space
Step-by-Step Configuration
- Launch SIMATIC Manager.
- In the project tree, select the root of the project or multi-project (do not select an individual chart or station).
- Open the menu: Options → Charts → Settings for swap file…
- In the dialog, the current path field displays the algorithm-detected volume. Click Browse and select the target directory (for example
C:\Siemens\CFC_SWAP\). - Confirm with OK. The setting is written to the project registry under
HKCU\Software\Siemens\Automation\SWP_Pathand persists per Windows user. - Re-open the project to force
S7tgtopx.exeto allocateDOTS_SWPin the new location.
Verification
- After opening the project, watch the target partition for the
DOTS_SWPdirectory creation event (use Sysinternals Process Monitor filtered toS7tgtopx.exeand file create operations). - Trigger a full compile (CFC → Compile → Charts or Charts → Übersetzen) and confirm
DOTS00.SWPgrowth on the selected drive. - Confirm no
DOTS_SWPdirectory appears on previously selected drives within 30 seconds of opening the project.
Workarounds for STEP 7 V5.x and PCS 7 V6 – V8.1
The configuration menu was introduced only with PCS 7 V8.2. Older installations require one of the following workarounds. Each addresses a specific failure mode.
Workaround A – Constrain Free Space on Unwanted Volumes
Because the algorithm selects "drive with most free space," fill the unwanted volumes with non-erasable files until the target drive becomes the largest. This is reliable but operationally awkward.
- Identify unwanted drives (for example, a USB backup drive that mounts as
E:\). - Create a 1 GB sparse file on each unwanted drive:
fsutil file createnew E:\placeholder.dat 1073741824 - Mark the file as system + hidden so it is not accidentally deleted:
attrib +H +S E:\placeholder.dat - Open the project. Verify
DOTS_SWPappears on the engineering drive instead.
Workaround B – Remap the Install Drive
The algorithm falls back to the install drive when no other candidate has more free space. If STEP 7 is installed on a small SSD but the data volume is large, moving the install path via junction is unreliable because of service dependencies. The simpler approach is to install STEP 7 on the desired drive (for example, an SSD with 50 GB free) so the fallback path is correct.
Workaround C – RAM Disk
For very large projects, point the largest free-space candidate at a RAM disk. This requires a third-party RAM disk driver (ImDisk, AMD Radeon RAMDisk, etc.) sized at 2 GB or larger. The swap area is highly I/O intensive during compile, and RAM-backed storage can cut CFC compile time by 30 – 60 percent on multi-project builds.
- Install and start the RAM disk driver.
- Create a 4 GB NTFS-formatted RAM disk, mount as
R:\. - Pre-fill it with a 1 GB placeholder file so it remains the largest free-space candidate across reboots (the placeholder survives only if the driver supports persistent images).
- Open the project and confirm
DOTS_SWPlands onR:\.
Workaround D – Migrate to PCS 7 V9.0
If the deployment footprint allows, upgrading to PCS 7 V9.0 with the latest CFC update gives the engineer the supported configuration path described above and eliminates the algorithmic drive selection entirely.
Disk Space Sizing Calculation
To pre-size the target partition before commissioning, estimate the worst-case swap requirement:
SWP_max (MB) ≈ Charts_total × 0.08 + FB_instances × 0.012 + SFC_instances × 0.005
Where:
-
Charts_total= total CFC chart count across the multi-project -
FB_instances= total function-block instance count (CTRL, MOT, VAL, etc.) -
SFC_instances= total SFC chart instances
Worked example for a 1500-chart PCS 7 plant with 8000 FB instances and 200 SFCs:
SWP_max ≈ 1500 × 0.08 + 8000 × 0.012 + 200 × 0.005
≈ 120 + 96 + 1
≈ 217 MB
Apply a 3× safety factor and round up to the next whole-GB partition size: 1 GB free on the target drive is the engineering baseline. Plants exceeding 10,000 charts should target 2 GB free minimum.
Error Code Reference Table
| Error Code | Message (DE) | Message (EN equivalent) | Remediation |
|---|---|---|---|
| 1739:310 | Platte voll | Disk full | Free space on selected volume, or reconfigure swap path |
| 1739:311 | Schreibfehler auf Platte | Write error on disk | Check write permissions, chkdsk the volume |
| 1739:312 | Swap-Segment nicht erweiterbar | Swap segment cannot be extended | Volume has max file size limit; reformat as NTFS |
| 1739:313 | Pfad nicht zugänglich | Path not accessible | UNC path lost or network share offline |
Troubleshooting Matrix
| Observed Behavior | Likely Cause | Diagnostic Command / Action | Fix |
|---|---|---|---|
| Folder on USB drive that dismounts during compile | USB power-save suspend | powercfg /devicequery wake_armed |
Disable USB selective suspend in Power Options |
| Folder on network share (\\server\share) | UNC reports highest free space |
net use check |
Disconnect share or apply workaround A |
| Folder persists after SIMATIC Manager close |
S7tgtopx.exe crashed |
Windows Event Viewer → Application log | Manually delete folder; check disk health |
| Folder appears, size 0 KB, no growth on compile | Project has no CFC charts | Open project in SIMATIC Manager, count CFC nodes | Expected behavior; no action |
| Compile hangs at chart 50/200 with 1739:310 | Swap exceeded partition free space mid-compile | Watch DOTS00.SWP size during compile | Resize partition or move to larger drive |
| Read-only attribute cannot be removed on DOTS_SWP | Windows Explorer presentation artifact |
attrib -R D:\DOTS_SWP /D /S from elevated CMD |
Cosmetic; no functional impact |
Process Monitor Capture Procedure for Diagnostics
When escalating to Siemens Technical Support, capture a ProcMon trace of the DOTS_SWP creation event:
- Launch Sysinternals Process Monitor as administrator.
- Set filter:
Process Name is S7tgtopx.exethen Add. - Set filter:
Operation is CreateFilethen Add. - Clear the display, open the S7 project, and stop the capture after 60 seconds.
- Export the resulting log as PML and attach to the support request along with the version output from SIMATIC Manager → Help → About.
Safety and Operational Notes
DOTS00.SWP in a hex editor while SIMATIC Manager is running. The file is locked with exclusive write access; attempting to read it can corrupt the swap segment and force a project restart. Always close SIMATIC Manager before inspecting the file.
DOTS_SWP from antivirus real-time scanning on a wholesale basis. Add a targeted exclusion only for the configured path (for example C:\Siemens\CFC_SWAP\DOTS_SWP\*). Broad exclusions can mask malware abusing the directory name.
Verification Checklist Before Closing a Ticket
-
DOTS_SWPdirectory lands on the configured drive, not the drive with the most free space. - Full CFC compile completes without 1739:31x error codes.
- Directory is removed automatically within 5 seconds of SIMATIC Manager closing.
- Reopening the project re-creates the directory in the configured path.
- Multi-project builds compile in expected wall-clock time (within ±10 % of baseline).
- Disk free space on the configured drive is > 1 GB after compile.
What is the DOTS_SWP folder that appears when I open STEP 7?
DOTS_SWP is a temporary swap directory created by the S7tgtopx.exe runtime while a STEP 7 or PCS 7 project is open. It contains a single file called DOTS00.SWP that the CFC editor uses as working storage during compile. It is automatically deleted when SIMATIC Manager closes and is not a virus, malware artifact, or recoverable user data.
How do I stop DOTS_SWP from being created on my USB drive or slowest partition?
On PCS 7 V8.2 SP1 or later with current CFC updates, use Options → Charts → Settings for swap file in SIMATIC Manager to assign a specific folder. On older versions, fill the unwanted drives with placeholder files until the target drive has the most free space, or move the STEP 7 installation to the desired drive so the fallback path is correct.
What does CFC error 1739:310 (Platte voll) mean during compile?
Error 1739:310 is the German CFC message for "disk full." It is raised when the DOTS00.SWP segment cannot be extended because the partition selected by the drive-selection algorithm has less than the required free space. Free at least 1 GB on the target volume or reconfigure the swap path to a larger drive.
Can I safely delete DOTS_SWP while STEP 7 is running?
No. DOTS00.SWP is held under exclusive write lock by S7tgtopx.exe. Deleting or moving the directory while SIMATIC Manager is open can corrupt the swap segment and force a project restart with unsaved chart changes lost. Always close SIMATIC Manager first, then delete the orphan folder.
Why does DOTS_SWP not appear on virtual machines with a single SSD drive?
The selection algorithm chooses the partition with the most free space. On a VM with only C:\, the directory is created on C:\ but is so small (often 0 KB when no CFC compile is active) that Windows Explorer hides it. It still exists; enable "Show hidden files" to verify.