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
- From theApplication View, double-click the Dictionary instance for the device or POU.
- In an empty row of theVariables 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
- PressEnter.
Provide Feedback