Skip to main content

SA0123: Usages of INI, ADR or BITADR

Detects the use of the CODESYS Static Analysis-specific operators INI, ADR, and BITADR.

Justification: CODESYS-specific operators prevent the portability of code.

Importance: Low

Example 107. Example
PROGRAM PLC_PRG
VAR
    uiTemp : UINT;
    TempVarInFUNC : DWORD;
END_VAR
TempVarInFUNC := ADR(uiTemp);    //SA0123

Output in the Messages view:

  • sa_icon_message.png SA0123: Operator 'ADR' not allowed