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 of the error:

PROGRAM MAIN
VAR
    b : BIT;
END_VAR

Message:

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