The variables of an application as a spreadsheet
Commissioning lists, HMI and SCADA tag databases, I/O checks and handover documents all start
from the variable table of the PLC. Control Expert can export variables as .XSY or text, but
only with the software at hand. Upload the application (.XEF, .ZEF, .STU, .STA) or a
variables export (.XSY) and get the table as Excel and CSV.
What is in the workbook
- Variables: name, data type, topological address (
%MW100,%I0.3.2...), initial value, comment and attributes such as constant, saved, HMI and alias, and whether the variable is a function block instance. On M580 Safety applications the process and safe namespaces are kept apart. - Initial values: one row per member of structured variables and DFB instances that has a
stored value, for example
Pub1.Var3[0]. - DDT types: every member with its type, initial value and comment; array types with their bounds.
- DFB types: inputs, outputs, in/outs, public and private variables of every DFB with types, initial values and comments.
- I/O modules: the address in the rack, part number, family, version, number of channels and the tasks they are assigned to.
- Cross reference: every place a variable is read, written or called, by section and rung, network or line.
- Sections and logic as text: the sections with their task, language and comment, and each rung and network as text, which makes searching and filtering in Excel easy.
The variables and the cross reference also come as CSV files (UTF-8 with a byte order mark, so Excel opens accents and Chinese comments correctly).
From an STU or STA file
A project file carries the names, types and comments of its variables in the data dictionary of the built application, but not their addresses or initial values, and not the DDT and DFB declarations. For a complete table, upload the XEF export of the application.
More about what this tool reads and writes: Schneider PLC Program Viewer (XEF, ZEF, STU to PDF).