Message: Dereferencing requires a pointer
Possible error cause: A variable that is not a pointer variable is dereferenced.
Error correction: Dereference only variables that are pointer variables.
Example of the error:
PROGRAM PLC_PRG VAR i : INT; pi : POINTER TO INT; END_VAR i^:=1; --> C0018: 'i^' not a valid assignment target --> C0064: Dereferencing requires a pointer
Error correction:
Example: pi := ADR(i); pi^ := 1;