SA0107: Missing formal parameters

Function

Determines where formal parameters are missing.

Reason

Code becomes more readable if the formal parameters are specified when it is called.

Importance

Low

Sample:

Function F_Sample:

FUNCTION F_Sample : BOOL
VAR_INPUT
    bIn1 : BOOL;
    bIn2 : BOOL;
END_VAR
F_Sample := bIn1 AND bIn2;

MAIN program:

PROGRAM MAIN
VAR
    bReturn : BOOL;
END_VAR
bReturn := F_Sample(TRUE, FALSE);                   // => SA0107 
bReturn := F_Sample(TRUE, bIn2 := FALSE);           // => SA0107
bReturn := F_Sample(bIn1 := TRUE, bIn2 := FALSE);   // no error