Compiler Error C0076
Message:Unexpected structure initialisation
Possible error cause: Syntax error in the structure initialization
Error correction: Make sure that the syntax is correct.
Example 362. Example of the error:
PROGRAM PLC_PRG VAR st1 : INT := (p1 := 1); END_VAR
Message:
C0076: Unexpected structure initialisation
C0032: Type 'STRUCT(p1:=1)' can not be converted to type 'INT'
C0046: Identifier 'p1' not defined
C0018: 'p1' is no valid assignment target
Error correction:
st1 : STRUCT1 := (p1:=1,p2:=10);