Compilerfehler C0550
Meldung: Attribut ‚pack_mode‘ für ‚FUNCTION‘ ( ‚METHOD‘ ) nicht erlaubt
Mögliche Fehlerursachen: Funktionen oder Methoden, die mit dem Pragma {attribute 'pack_mode' := ' <pack mode value>' }
attributiert sind
Beispiel 493. Beispiel
{attribute 'pack_mode' := '2'} METHOD METH : INT VAR_INPUT END_VAR
{attribute 'pack_mode' := '1'} FUNCTION FunPacked : DINT VAR_INPUT by1: BYTE; END_VAR VAR by2: BYTE; END_VAR
Meldung:
C0550: Attribut 'pack_mode' für 'METHOD' nicht erlaubt
C0550: Attribut 'pack_mode' für 'FUNCTION' nicht erlaubt
Fehlerbehebung:
Löschen Sie die Attribut-Pragmas
Für weitere Informationen siehe: pack_mode