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
  1. In the dictionary instance, right click an empty row, and then click
    Quick Declaration
    .
  2. Configure these attributes in
    Quick Declaration
    .
    • Numbering
      -- The range of values for the variables. The default
      Digits
      option is auto. Change the
      Digits
      option to alter the quantity of displayed digits.
    • Name
      -- The variable name contains 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.
    • Data Type
      -- Displays the variable types. Possible values include elementary IEC 61131-3 types (
      BOOL
      ,
      DINT
      ,
      MESSAGE
      ,
      REAL
      , or
      TIME
      ).
    • Direction
      -- Indicates whether the variable is internal, an input, an output, or for use with I/O wiring. Possible values include
      Var
      ,
      VarInput
      ,
      VarOutput
      , or
      VarGlobal
      . The possible values depend on the selected context.
    • String Length
      -- Defined length only applying to the MESSAGE variable. Accepted values are 1 to 252.
  3. View a preview of the variable from the top-right of
    Quick Declaration,
    and then click
    OK.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal