Compiler Error C0076

Message: Unexpected structure initialization

Possible error cause: Syntax error in the structure initialization

Error correction: Make sure that the syntax is correct.

Example of the error:

PROGRAM MAIN
VAR
    st1 : INT := (p1 := 1);
END_VAR

Message:

Error correction:

st1 : STRUCT1 := (p1:=1,p2:=10);