Skip to main content

Compiler Warning C0316

Message: Method is '<method name>' already called implicitly

Possible error cause: The FB_Exit method of the base function block is called in the FB_Exit of a derived block.

Error correction: Remove the call in the FB_Exit method.

Example 465. Example of the warning
FUNCTION_BLOCK Base_FB...
METHOD FB_Exit: BOOL
VAR_INPUT
      bInCopyCode : BOOL;
END_VAR

FUNCTION_BLOCK FB EXTENDS Base_FB
...
METHOD FB_Exit : BOOL
VAR_INPUT
      bInCopyCode : BOOL;
END_VAR
SUPER^.FB_Exit(bInCopyCode); 

The statement in the FB_Exit method produces the following warning.

Message:

C0316: Method 'FB_Exit' is already called implicitly