Variable Initial Value

A variable can have an 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.