Quick declaration variable settings

Quick declaration variable settings
Category
Setting
Description
Name
Prefix
The first part of the variable name that appears before the number value
The naming conventions are as follows:
  • Contains no more than 37 characters, including letters, numbers, or underscores.
  • Starts with an underscore or letter.
  • Cannot contain consecutive underscores.
From
The starting value for the first variable
The
From
value must be smaller than the
To
value.
The value is from 0 through 99998.
To
The ending value for the last variable
The
To
value must be larger than the
From
value.
The value is from 1 through 99999.
Suffix
The last part of the variable name that appears after the number value
The naming conventions are as follows:
  • Contains no more than 37 characters, including letters, numbers, and underscores.
  • Starts with an underscore or letter.
  • Cannot contain consecutive underscores.
Attributes
Data type
The type of the variable
Supported types are:
For information about data types, see Data types overview.
Direction
The role of the variable as input, output, or internal
Options are:
  • VarInput
  • VarOutput
  • Var
This parameter is available for the local variables of user-defined functions or user-defined function blocks.
String size
The length of a string variable, which applies to the STRING data type
The size is from 1 through 255.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal