SA0117: Variables with data type BIT

Function

Determines declarations of variables of type BIT (possible within structure and function block definitions).

Reason

The IEC-61131-3 has no provision for data type BIT. The code becomes easier to port if BIT is not used.

Importance

Low

Samples:

Structure ST_sample:

TYPE ST_Sample :
STRUCT
    bBIT  : BIT;                 // => SA0117
    bBOOL : BOOL;
END_STRUCT
END_TYPE

Function block FB_Sample:

FUNCTION_BLOCK FB_Sample
VAR
    bBIT  : BIT;                 // => SA0117
    bBOOL : BOOL;
END_VAR