Compiler Error C0240
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 463. Example of the error:
PROGRAM PLC_PRG
VAR
a : INT;
ITFref : ITF;
pt : POINTER TO FB;
END_VAR
__QueryPointer(a,pt);
Message:
C0240: First Operand of __QueryPointer must be an interface reference or the instance of a function block
Error correction:
__QueryPointer (ITFref, pt);