Skip to main content

Compiler Error C0550

Message: Attribute 'pack_mode' for 'FUNCTION' ( 'METHOD' ) not allowed

Possible error causes: Functions or methods which are attributed with the pragma {attribute 'pack_mode' := ' <pack mode value>' }

Example 493. Example
{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

Message:

C0550: Attribute 'pack_mode' for 'METHOD' not allowed

C0550: Attribute 'pack_mode' for 'FUNCTION' not allowed

Error correction:

Delete the attribute pragma.



For more information, see: pack_mode