Variable lists for HMI, SCADA and documentation
Setting up an HMI or a SCADA tag list, a Modbus or OPC UA mapping, or an I/O list for the electrical drawings starts with the variables of the controller. In Sysmac Studio you can copy them out of the variable table, a POU at a time, but only with the software. Upload the project here and every variable comes out in one workbook.
Sheets in the workbook
- Variables: the global variables and the variables of every program, function block and
function, one row each: where it is declared, scope (VAR, VAR_INPUT, VAR_OUTPUT, VAR_IN_OUT,
VAR_EXTERNAL, VAR_GLOBAL), name, data type, AT specification (for example
%D100or an I/O port such asIOBus://unit#1/Ch1 Analog Input Value), initial value, retain, constant, network publication and comment. Comments on single array elements are added to the comment. - Global variables on their own sheet.
- Data types: structures and unions member by member with type, initial value, offset and comment, enumerations with each value, and derived types.
- POUs, Tasks and Libraries.
- EtherCAT slaves, PDO mapping (every entry with index, bit offset, length and the variable wired to it), Slave parameters, NX units, IO map, Axes, Axis settings and Cam tables.
- Used variables and Cross reference: where each variable is read and written, by POU, section and rung or line of structured text.
The variables, the data types and the cross reference also come as CSV files (UTF-8), which import into most HMI and SCADA editors.
Good to know
- Variables in network publication show "Input", "Output" or "Publish only", which is what an HMI or a tag browser connected over EtherNet/IP can see.
- Variables of libraries are not mixed into the list; the interfaces of library POUs are on their own sheet.
- Names are kept exactly as written, including namespaces (
Namespace\Type).
More about what this tool reads and writes: Omron Sysmac Studio Project Viewer (SMC2 to PDF).