SA0120: Program calls
Detects program calls
Justification: According to the IEC 61131-3 standard, programs can be called in the task configuration only. The code is more easily portable when you do not call programs from other locations.
Importance: Low
Example 103. Example
PROGRAM prog_control VAR END_VAR ;
PROGRAM PLC_PRG VAR END_VAR
prog_control();
Output in the Messages view:
SA0120: Program call to 'prg_control' not allowed