Message: Variables of type BIT must be declared within a VAR_INPUT-, VAR_OUTPUT or VAR-block
Possible error cause: An attempt is made to define a variable of type BIT or as a VAR_IN_OUT parameter.
Error correction: Define variables of type BIT only within a VAR_INPUT, VAR_OUTPUT or VAR block.
Example of the error:
PROGRAM PLC_PRG VAR inst : FB; END_VAR FUNCTION_BLOCK FB VAR_IN_OUT b : BIT; END_VAR --> C0204: Variables of type BIT must be declared within a VAR_INPUT-, VAR_OUTPUT or VAR-block