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 498. 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_VARMessage:
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