Compiler Error C0062

Message

‘<variable name>’ is no structured variable

Message Cause

A variable that is not a structure variable is treated like a structure variable.

Solution

Make sure that the variable is a structure variable.

Error Example

PROGRAM PLC_PRG
VAR
  pt : PUNKT;
  i : INT;
END_VAR
i.x := 1024;
TYPE Punkt :
STRUCT
  x : REAL;
  y : REAL;
END_STRUCT
END_TYPE

--> C0018: 'i.x' is no valid assignment target

--> C0062: 'Variable' is no structured variable

Error Correction

pt.x := 1024;