Message: First Operand of __QueryPointer must be an interface reference or the instance of a function block
Possible error cause: Incorrect operands are passed to the operator __QueryPointer
.
Error correction: Pass an interface reference or the instance of a function block.
Example of the error:
PROGRAM PLC_PRG VAR a : INT; ITFref : ITF; pt : POINTER TO FB; END_VAR __QueryPointer(a,pt); --> C0240: First Operand of __QueryPointer must be an interface reference or the instance of a function block
Error correction:
Example: __QueryPointer (ITFref, pt);