Quick Declaration of Variables
The
Quick Declaration
dialog box enables simultaneously creating multiple local or global variables. Quick Declaration
can be accessed using the Dictionary. A preview of the variable is available on the top-right of the Quick Declaration
dialog box.
Attributes to configure for variables in
Quick Declaration
are:Property | Description |
---|---|
Numbering | The range of values for the variables. The digits option is set to auto by default and can be changed to alter the quantity of displayed digits. |
Name | The variable name is separated into a prefix and suffix. The prefix appears before the number value and can contain letters, digits, and single underscores. The suffix appears after the number value and can contain letters, digits, and single underscores. Neither can contain two consecutive underscores. |
Attributes | These attributes are available: Data type: Drop down combo box displaying the variable types. Possible values are elementary IEC 61131-3 types (BOOL, BYTE, DATE, DINT, DWORD, INT, LINT, LREAL, LWORD, REAL, SINT, STRING, TIME, UDINT, UINT, ULINT, USINT, or WORD) or derived types (arrays, structures, or function blocks). Direction: Indicates whether the variable is internal, input, or output. Possible values are Var, VarInput, or VarOutput. String Length: Defined length only applying to the STRING variable. Possible values are 1 to 255. |
To create multiple variables using Quick Declaration
- In the required dictionary instance, right click an empty row, and then clickQuick Declaration.
- Configure the variable attributes in theQuick Declarationdialog box, and then clickOK.
Provide Feedback