Create a variable

Create global and local variables for use in
Trusted®
projects. Create variables for use in program organization units (POUs) as inputs, outputs, or internal variables. Create variables before defining POUs.
TIP: Update each instance of a function or function block after adding, removing, renaming, changing data type, or changing direction of parameters in all POUs using the instance. Identify these POUs with the
Cross Reference Browser
, then open each POU and reselect the modified instance using the
Block Selector
.
To create a variable
  1. From the
    Application View
    , double-click the Dictionary instance for the device or POU.
  2. In an empty row of the
    Variables Grid
    , define the properties for the variable:
    • Name
    • Data Type
    • String Size
    • Attribute
    • Direction
    • Modbus Address
    • Message True
    • Message False
    • Retained
    • Initial Value
    • Unit
    • Comment
  3. Press
    Enter
    .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal