Configuration | Rules Sample: PROGRAM MAIN VAR pINT : POINTER TO INT; // => SA0111 END_VAR 4.2.1.5.12 SA0112: Reference variables | SA0112: Reference variables Sample: PROGRAM MAIN VAR refInt : REFERENCE TO INT; // => SA0112 END_VAR 4.2.1.5.13 SA0113: Variables with data type WSTRING | SA0113: Variables with data type WSTRING Sample: PROGRAM MAIN VAR wsVar : WSTRING; // => SA0113 END_VAR 4.2.1.5.14 SA0114: Variables with data type LTIME | SA0114: Variables with data type LTIME Sample: PROGRAM MAIN VAR tVar : LTIME; // => SA0114 END_VAR // no error SA0114 for the following code line: tVar := tVar + LTIME#1000D15H23M12S34MS2US44NS; 4.2.1.5.15 SA0115: Declarations with data type UNION | SA0115:
Declarations with data type UNION Samples: Union U_Sample: TYPE U_Sample : // => SA0115 UNION fVar : LREAL; TE1200 62 Version: 2.11.1 Function Determines variables of type REFERENCE TO. Reason The IEC 61131-3 standard does not allow references. Importance Low Function Determines variables of type WSTRING. Reason Not all systems support WSTRING. The code becomes easier to port if WSTRING is not used. Importance Low Function Determines variables of type LTIME. Reason Not all systems support LTIME. The code becomes more portable if LTIME is not used. Importance Low Function Determines declarations of a UNION data type and declarations of variables of the type of a UNION.
Reason The IEC-61131-3 standard has no provision for unions. The code becomes easier to port if there are no unions. Importance Low