SA0029: Notation in code different to declaration

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

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