IMDHMIControls LibraryShop main store

Explainer

Unity Pro backup file extensions STU STA ZEF XEF STM explained

PLC programming Published 4 min read By IMDHMI controls team

Short answer

For a full backup of a Unity Pro or Control Expert project, save a ZEF file: it contains the XEF export and the DTM configuration source code. STU is the working file with binary, source and database, STA is a database-free archive, XEF holds the XML export without source code, and STM carries the executable only.

On this page
  1. Which extension is the full backup?
  2. What does each file extension actually contain?
  3. Why is STU the working file and not the backup?
  4. Why is STA smaller and slower to open?
  5. What is an STM file good for?
  6. How do you prove a backup is a real backup?
  7. What is the decision for each case?
  8. Questions asked

A Unity Pro project, or the same project under its current name EcoStruxure Control Expert, can be saved under five extensions, and they are not interchangeable: .stu, .sta, .zef, .xef and .stm each hold a different subset of the application. The decision rule is simple: for a full backup that must preserve DTM configuration source code, save a .zef file; for daily development keep the .stu working file; use .sta only for archiving or a one-version step up; keep .xef and .stm for export and executable transfer. This is a different task from an upload from the PLC, which recovers far less than a saved project file (see the article on why uploading a PLC program is not full source recovery).

Which extension is the full backup? #

Use .zef: it contains the .xef export plus the DTM configuration source code, and it is the only one of the five that carries that source. The .xef file alone is the XML backup of the application without source code, so an XEF-only procedure silently drops the DTM configuration source. If your full-backup procedure names any other extension, change the procedure to ZEF.

What does each file extension actually contain? #

Each extension is a compressed package, but the contents differ by purpose; the table gives the documented contents and the task each file serves.

Extension Contents Use it when
.stu Working file: binary, source application and database Daily development; the most complete working file, and it saves even if the application is not built
.sta Archive without the database Storing, sending, or moving the application up one software version
.zef XEF plus DTM configuration source code The full backup
.xef XML backup of the application, no source code An XML export or exchange is required
.stm Binary file with the executable only Executable transfer, uploaded from the PLC or downloaded with Unity Loader

Why is STU the working file and not the backup? #

STU is the default save format for daily work because it keeps the binary, the source application and the database together, so the project opens as you left it. It is also the only format that saves before a build. Its weakness as the only backup is that it ties you to the working file rather than a package built for recovery; keep the STU for development and produce the ZEF for the backup procedure.

Why is STA smaller and slower to open? #

STA omits the database, which makes it smaller than the corresponding STU and suitable for storage or sending, but the software must rebuild the database when you open it, so an STA takes longer to open than an STU. The same database-free structure is why STA is the documented format for moving an application one software version up. Do not use STA where the database itself must be preserved.

What is an STM file good for? #

STM transfers the executable and nothing else: it is a binary file that can be uploaded from the PLC or downloaded with Unity Loader, and you cannot view the application from it. It is the right file for a firmware-style executable handoff and the wrong file for every recovery task; a successful STM transfer proves nothing about the project backup. The source-control side of these formats is covered in the guide on Unity Pro source control with Git storing STA and XEF.

How do you prove a backup is a real backup? #

Saving a file proves nothing until you open it. After every full backup, open the .zef from the backup location on a machine with the same software version and confirm the DTM configuration source is present, not only the application binary. A quarterly restore check of one ZEF, recorded with the date and the software version it was opened on, turns the backup procedure from a habit into a verified one, and it catches a corrupted or truncated file before you need it.

What is the decision for each case? #

  • Continue development: keep the .stu working file; it saves even unbuilt.
  • Full backup with DTM configuration source: save .zef; a backup of an undocumented controller that recovered only partial data, as in recovering alarm data from an undocumented SLC 5/04, shows why the complete file matters.
  • Archive, compact storage for sending, or a one-version step up: save .sta and accept the database rebuild on open.
  • XML exchange without source: export .xef.
  • Executable-only transfer: use .stm via PLC upload or Unity Loader, and never count it as a project backup.

Questions asked

Why does opening an STA file take longer than opening an STU?

The STA archive omits the database to stay small, so the software must rebuild the database when you open it, and that rebuild takes longer than the direct open of an STU file that already contains the database.

Can I save a project that has not been built yet?

Yes, as an STU. The working STU file can be saved even when the application has not been built, which is one reason it is the file to use during development. Verify the saved extension is .stu and that it opens from the backup location.

Is an XEF export enough to recover a project with device configuration source?

No. An XEF is the XML backup of the application and does not contain source code, so the DTM configuration source would be lost. Use the ZEF package, which includes the XEF plus the DTM configuration source code.

What can I do with an STM file?

Only executable transfer: it is a binary file containing just the executable, uploaded from the PLC or downloaded with Unity Loader. You cannot view or edit the application from it, so it never replaces a project backup.

Keep reading

  • How-to

    Do-more Designer compare PLC project with disk project

    Open the controller project through COMM LINK in one Designer instance and the disk project in a second, release the shared link with PLC->Disconnect or a NEW LINK on Ethernet, and run the PROGRAM Designer's COMPARE from the disk project to walk the differences. Copy the reviewed changes into the controller instance and SAVE-AS the result as the original project name plus _ONLINE_EDITED.dmd. The comparison is interactive only — it writes no report file.

    PLC programming

  • How-to

    How to compare two CLICK PLC programs for differences

    CLICK Programming Software has no built-in project compare, and the vendor has said none exists in the current release. The working method is to upload each machine's running program as a dated baseline, compare hardware, field assignments, configuration and logic in six passes, classify every mismatch, and load one merged program only after every difference has an owner.

    PLC programming

  • Explainer

    Unity Pro system bits %S0 and %S1 for Grafcet startup initialization

    Unity Pro has no OB100: the hooks are the %S0 cold-restart and %S1 warm-restart system bits. Wire both in parallel on one rung, SET the initial Grafcet step bit and RESET every other step bit; for a native Grafcet chart call INITCHART from the same condition instead.

    PLC programming