Rockwell Automation 8520-MUM 9/Series CNC Mill Operation and Programming Manual Documentation Set User Manual
Page 289
Advertising
Introduction to Programming
Chapter 10
10-15
Example 10.8
Subprogram Calls and Returns
MAIN PROGRAM
SUBPROGRAM 1
SUBPROGRAM 2
(MAIN PROGRAM);
(SUBPROGRAM 1);
(SUBPROGRAM 2);
N00010...;
N00110;
N00210;
N00020...;
N00120...;
N00220...M99;
N00030M98P1;
N00130M99;
N00040...;
N00140...;
N00050...;
N00150M30;
N00060M98P2L2;
N00070M30;
The following path of execution will result when the main program
above is selected as the active program.
(MAIN PROGRAM);
N00010...;
N00020...;
N00030M98P1;
(SUBPROGRAM 1);
N00110;
N00120...;
N00130M99;
N00040...;
N00050...;
N00060M98P2;
(SUBPROGRAM 2);
N00210;
N00220...M99;
(SUBPROGRAM 2);
N00210;
N00220...M99;
N00070M30;
Advertising