Skip to main content

Compiler Error C0221

Message: Direct Address '<address>' malformed

Possible error cause: An address is not displayed completely.

Error correction: Make sure that the address is displayed correctly.

Example 443. Example of the error:
PROGRAM PLC_PRG
VAR
    xVar : BOOL;
END_VAR;
xVar := %IX0;

Message:

C0221: Direct address '%IXO' malformed

Error correction:

xVar := %IX0.2;