Compiler Error C0062
Message: '<variable name>' is no structured variable
Possible error cause: A variable that is not a structure variable is treated like a structure variable.
Error correction: Make sure that the variable is a structure variable.
Example 357. Example of the error:
PROGRAM PLC_PRG
VAR
pt : PUNKT;
i : INT;
END_VAR
i.x := 1024;
TYPE Punkt :
STRUCT
x : REAL;
y : REAL;
END_STRUCT
END_TYPE
Message:
C0018: 'i.x' is no valid assignment target
C0062: 'Variable' is no structure variable
Error correction:
Beispiel: pt.x := 1024;