Variable Initial Value
- The value must have valid Constant Expressions that fits to the Data Types of the variable.
- The initial value is displayed in red if it is not a valid expression for the selected data type.
- There is no initial value for arrays and instances of function blocks.
- Change the initial value of a variable using the Variables tab.
-
- A retain variable's value may be assigned to the variable's initial value.
See Copy a Retained Variable Value to Init Value for more information.