Initial Value of a Variable

A variable can have an initial value. The value must be a valid constant expression that fits to the data type 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.

You can change the initial value of a variable by using the Variable Editor.