SA0120: Program calls

Function

Determines program calls.

Reason

According to the IEC 61131-3 standard, programs can only be called in the task configuration. The code becomes easier to port if program calls elsewhere are avoided.

Importance

Low

Sample:

Program SubProgram:

PROGRAM SubProgram

MAIN program:

PROGRAM MAIN
SubProgram();                    // => SA0120