SA0117: Variables with data type BIT
Detects variable declarations of data type BIT
(possible within structure definitions)
Justification: The IEC 61131-3 standard does not include the data type BIT
. The code is more easily portable without BIT
.
Importance: Low
Example 101. Example
TYPE Struct1 : STRUCT bitVar : BIT; iVar : INT; bVar : BOOL; END_STRUCT END_TYPE
Output in the Messages view:
SA0117: Variables with data type BIT