Message: Initialisation list for {0} <data type> expected
Possible error cause: An array of the type of a structure is initialized with elements that are not structure initializations or variables.
Error correction: As shown in the example below, use structure initializations or existing variables to initialize arrays of structures.
Example of the error:
PROGRAM PLC_PRG VAR values : ARRAY[0..2] OF COLOR := [1,2,3]; END_VAR --> C0233: Initialisation list for COLOR expected
Error correction:
Example: PROGRAM PLC_PRG VAR colorVariable : COLOR := (red:=0, green:=0, blue:=255); value : ARRAY[0..2] OF COLOR := [ colorVariable, (red:=255, green:=0, blue:=0), (red:=0, green:=255, blue:=0)]; END_VAR