Infosys在阅读器中打开 / AI 翻译

TE1200 | PLC Static Analysis · 0 次阅读

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