What an STU file holds
An .STU file is the working copy of a Control Expert or Unity Pro project: a ZIP archive of the
editor's databases plus the application as it was last built. An .STA file is the archived
form of the same application. Neither opens without the software, and even with it a project
only opens in the version that saved it or a newer one.
The built application carries a copy of the sources, the "upload information" that lets Control Expert read a program back from a PLC. It is on by default, and this is what the tool reads: the LD, FBD, ST, IL and SFC sections of every task, the SR sections, the code of the DFB types, the section comments and activation conditions, and the data dictionary with the names, types and comments of the variables. The project's title, the PLC and its firmware version, the software version and the list of modules come from the archive too.
Reading it here
Upload the .STU or .STA file as it is, or a ZIP holding it. You get the printout with every
section drawn as in the editor, the offline viewer, the sources as text and the variables as
Excel and CSV. Projects of Unity Pro 10 and 13 and of Control Expert 14 and 15 were tested, for
M340, M580 and Premium PLCs.
Limits worth knowing
- The sections are those of the last build. Changes made after it are only in the project databases, which are not read.
- A project built without upload information, or never built, gives only its name, PLC and version, with a note saying so.
- The data dictionary has no addresses or initial values, and DDT and DFB declarations are not in the built application. The XEF export has all of these.
- When sections were edited after the first build, Control Expert stores their sources out of order. Each is then matched to a section of the same language, and the result says so: two sections of the same language may carry each other's names.
When you can get an XEF
If someone with Control Expert can export the application (File, Export Project, .XEF or
.ZEF), upload that instead or as well: it holds the complete variable table, the types and the
configuration, and every section with its exact name.
More about what this tool reads and writes: Schneider PLC Program Viewer (XEF, ZEF, STU to PDF).