Skip to main content

Erreur du compilateur C0554

Un message: Aucun appel explicite de '<nom FB>' n'est autorisé. <valeur de l'attribut 'no_explicit_call'>

Causes d'erreur possibles: Un bloc fonction avec le no_explicit_call l'attribut a été appelé.

Exemple 494. Exemple
{attribute 'no_explicit_call' := 'Call of this FB is not allowed'}
FUNCTION_BLOCK FB1
VAR_INPUT
END_VAR
VAR_OUTPUT
END_VAR
VAR
END_VAR
PROGRAM PLC_PRG
VAR
    myFB: FB1;
END_VAR

myFB();

Message:

C0554 : Aucun appel explicite de 'FB1' n'est autorisé. Call of this FB is not allowed.

Correction des erreurs:

Supprimez l'attribut pragma.