Detects the code locations where the notation of an identifier is different from the notation in its declaration
Justification: 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 is confusing and misleading and should be avoided.
Importance: Medium
Example
A PLC_PRG
POU and a fnc
(function) POU exist in the device tree.
PROGRAM PLC_PRG
VAR
iVar: INT;
_123test_var_: INT;
END_VAR
ivar := iVar + 1; // SA0029
_123TEST_var_ := _123test_var_; // SA0029
Fnc(); // SA0029
--> SA0029: Notation in Code (ivar) muss der Deklaration (iVar) entsprechen
--> SA0029: Notation in Code (_123TEST_var_) muss der Deklaration (_123test_var_) entsprechen
--> SA0029: Notation in Code (Fnc) muss der Deklaration (fnc) entsprechen
See also