Variables
All variables in the entire project are grouped by:
Description |
|
Global Variables |
List all global variables used and accessible throughout the entire program. |
Program Variables |
List the variables related to your specific selected program. |
List all variables to be retained when the system is powered down. |
For each variable, the Dictionary toolbox allows you to set these parameters:
Description |
|
The variable attributes are Read-only, External, IN, OUT.
|
|
Description |
The variable description is a long comment text that describes the variable. |
Dim. |
To declare an array, specify dimensions for an internal variable. See Arrays for more information. |
Select variables to be used in HMI. See Map Variables to HMI for more information. |
|
Init value |
The variable initial value when you start your application. See Variable Initial Value for more information. |
Name |
The variable name. |
Syb. |
Reserved. |
The variable tag is a short comment, that can be displayed together with the variable name in graphical editors. Click for examples
Edit the variable parameters. Add the variable to your FBD "Function Block Diagram" A function block diagram describes a function between input variables and output variables. A function is described as a set of elementary blocks program. Resize the rectangle to make the Tag and Description visible. |
|
Type |
The variable type (can also be 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 or complex structure). See Data Types for more information. |
User Group |
The variable user group (used for sorting variables). |
Value |
All the variables in the Dictionary are animated with real-time values 1
|