Variable editor
The variable editor is a
table that enables you to declare all variables of the application.
Variables in the editor are sorted by groups:
- global variables
- "retain" non-volatile global variables
- I/O variables (each I/O device is a group)
- variables local to a program (including in and out parameters in case of a UDFB "User Defined Function Block" UDFB can be used as a sub-function block in another program of the application. It is described using FBD, LD, ST or IL language. Input / output parameters of a UDFB (as well as private variables) are declared in the variable editor as local variables of the UDFB).
Please refer to the description of variables in the language reference for a more detailed overview.
Each group is marked with a gray header in the variable list. The "-" or "+" icon on the left of the group header can be used to expand or collapse the group:
See how to: