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