Variables Grid

Use the variables grid of the Dictionary to manage the variables for the device or program organization units (POUs). Each device and POU has an instance of the grid. For the device, the grid displays global variables. For POUs, the grid displays local variables. Perform these tasks from the variables grid:
  • Create variables
  • Edit existing variables
  • Drag variables
  • Delete variables
  • Sort variables in the grid
  • Filter variables in the grid
For global or local variables, the properties are the following:
Column
Description
Possible Values
Name
Name of the variable
Limited to 32 characters beginning with a letter or single underscore followed by letters, digits, and single underscore characters. Names cannot be reserved words, defined words, or data types. Names must be unique.
Logical Value
Available while running online, monitoring, and simulating applications. Displays the value used by code being executed on the
Trusted®
controller. This cell enables forcing the value of variables.
Values display according to the variable data type
Physical Value
Available while running online and monitoring applications. Displays the value sent to and received from the drivers. Enables forcing the value of variables.
Values display according to the variable data type
Lock
Available while running online, monitoring, and simulating applications. The indication of whether the value of the I/O variable is locked.
Yes or No
Data Type
Data type of the variable
BOOL, DINT, REAL, TIME, MESSAGE or function blocks.
String Size
Maximum length for String-type variables
String capacity is limited to 252 characters excluding the terminating null character (0), a byte for the current length of the string, and a byte for the maximum length of the string
Wiring
(Read-only) Generated by the I/O wiring tool indicating the I/O channel wired to the variable
Uses the syntax of Directly Represented Variables
Attribute
Read and write access rights of a variable
Possible values are Read or Read/Write. The possible values depend on the direction of the variable. When wiring a variable, the attribute changes to match the direction required by the I/O device.
Direction
For the local variables of a program, indicates the variable is internal.
Possible value is Var
For the local variables of a function or function block, indicates whether the variable is internal, an input, or an output.
Possible values are Var, VarInput, or VarOutput
For the global variables of a device, indicates the variable is internal, for use with I/O wiring, or defined for an I/O channel.
For global variables, the possible value is VarGlobal. Wired variables must have the VarGlobal direction. When adding I/O devices, I/O channels are assigned the VarDirectlyRepresented direction.
Modbus
Address
Modbus
address of the variable
Possible
Modbus
address depends on the data type and extended attributes:
Modbus
Type
Modbus
Address
Data Type
Coil
1 - 10000
BOOL
Discrete Input
10001 - 20000
BOOL
Input Register
30001 - 39999
DINT, REAL
Holding Register
40001 - 49999
DINT, REAL
Message True
User-defined text that is used by the
SOE Collector
in the
Trusted
Sequence of Events and Process Historian Package when the value of a Boolean variable data type is TRUE.
Excluding: , % “ and without leading and trailing spaces
Message False
User-defined text that is used by the
SOE Collector
in the
Trusted
Sequence of Events and Process Historian Package when the value of a Boolean variable data type is FALSE.
Excluding: , % “ and without leading and trailing spaces
Retained
Indication of whether the
Trusted
controller saves the value of the variable at each cycle. For details on retaining or backing up variables, refer to the SYSTEM operator.
Yes or No
Initial Value
Value held by a variable when the
Trusted
controller starts the execution of the code
The initial value of a variable. Possible values are the default value, a value assigned by the user when defining the variable, or the value of the retain variable after the
Trusted
controller has stopped.
Unit
Unit of measure of the logical and physical values
Free format
Comment
User-defined text
Plain text
Customize the Dictionary environment by arranging the columns to display.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal