SA0115: Variables with data type UNION

Detects declarations of a UNION data type and variable declarations of the UNION type

Justification: The IEC 61131-3 standard does not include unions. The code is more easily portable without unions.

Importance: Low

Example

TYPE u1: UNION
 lrTemp : LREAL;
 liTemp : LINT;
END_UNION
END_TYPE

PROGRAM PLC_PRG
VAR
        uVar: u1;
END_VAR

--> SA0115: Unions nicht erlaubt