Create multiple variables
Simultaneously create multiple local or global variables with
Quick Declaration
. Access Quick Declaration
from a dictionary instance.To create multiple variables using Quick Declaration
- In the dictionary instance, right click an empty row, and then clickQuick Declaration.
- Configure these attributes inQuick Declaration.
- Numbering-- The range of values for the variables. The defaultDigitsoption is auto. Change theDigitsoption to alter the quantity of displayed digits.
- Name-- The variable name contains aPrefixandSuffix. ThePrefixappears before the number value and can contain letters, digits, and single underscores. TheSuffixappears after the number value and can contain letters, digits, and single underscores. Neither can contain two consecutive underscores.
- Data Type-- Displays the variable types. Possible values include elementary IEC 61131-3 types (BOOL,DINT,MESSAGE,REAL, orTIME).
- Direction-- Indicates whether the variable is internal, an input, an output, or for use with I/O wiring. Possible values includeVar,VarInput,VarOutput, orVarGlobal. The possible values depend on the selected context.
- String Length-- Defined length only applying to the MESSAGE variable. Accepted values are 1 to 252.
- View a preview of the variable from the top-right ofQuick Declaration,and then clickOK.
Provide Feedback