Compiler Error C0554
Message: No explicit calls of '<FB name>' allowed. <value of attribute 'no_explicit_call'>
Possible error causes: A function block with the no_explicit_call attribute has been called.
Example 499. Example
{attribute 'no_explicit_call' := 'Call of this FB is not allowed'}
FUNCTION_BLOCK FB1
VAR_INPUT
END_VAR
VAR_OUTPUT
END_VAR
VAR
END_VARPROGRAM PLC_PRG
VAR
myFB: FB1;
END_VAR
myFB();
Message:
C0554: No explicit calls of 'FB1' allowed. Call of this FB is not allowed.
Error correction:
Delete the attribute pragma.