Skip to main content

Compiler Error C0203

Message: Only Structures and Function Blocks can contain variables of type BIT.

Possible error cause: An attempt is made to declare a variable of type BIT outside of structures and function blocks.

Error correction: Declare variables of type BIT only in structures and function blocks.

Example 429. Example of the error:
PROGRAM PLC_PRG
VAR
    b : BIT;
END_VAR

Message:

C0203: Only Structures and Function Blocks can contain variables of type BIT.