Configuration | Rules 4.2.1.2.9 SA0029: Notation in code different to declaration | SA0029: Notation in code different to declaration Samples: Function F_TEST: FUNCTION F_TEST : BOOL MAIN program: PROGRAM MAIN VAR nVar : INT; bReturn : BOOL; END_VAR nvar := nVar + 1; // => SA0029 bReturn := F_Test(); // => SA0029 4.2.1.2.10 SA0031: Unused signatures | SA0031: Unused signatures SA0031 is only checked with the 'run static analysis [Check all objects]' command The SA0031: Unused Signatures rule is only checked when the command to check all objects – including unused ones – is executed ( Command 'Run static analysis [Check all objects]' [ } 111] .
The Command 'Run static analysis' [ } 110] command does not check the SA0031 rule. 4.2.1.2.11 SA0032: Unused enumeration constants | SA0032: Unused enumeration constants Sample: Enumeration E_Sample: TYPE E_Sample : ( eNull, eOne, // => SA0032 eTwo ); END_TYPE MAIN program: PROGRAM MAIN VAR eSample : E_Sample; END_VAR TE1200 34 Version: 2.11.1 Function Determines the code positions (in the implementation) at which the notation of an identifier differs from the notation in its declaration. Reason The IEC 61131-3 standard defines identifiers as not case-sensitive. This means that a variable declared as "varx" can also be used as "VaRx" in the code.
However, this can be confusing and misleading and should therefore be avoided. Importance Medium Function Determines programs, function blocks, functions, data types, interfaces, methods, properties, actions etc., which are not called within the compiled program code. Reason Unused objects result in unnecessary project bloat and confusion when the code is read. Importance Low PLCopen rule CP2 Function Determines enumeration constants that are not used in the compiled program code. Reason Unused enumeration constants result in unnecessary enumeration definition bloat and confusion when the program is read. Importance Low PLCopen rule CP24