Rockwell Automation 8520-GUM 9/Series CNC Grinder Operation and Programming Manual Documentation Set User Manual

Page 294

Advertising
background image

Introduction to Programming

Chapter 10

10-16

Figure 10.3

Subprogram Nesting

Main
program

Sub-
program 1

Sub-
program 2

Sub-
program 3

Sub-
program 4

Level 1

Level 2

Level 3

Level 4

M02;p

M99;

M99;

M99;

M99;

M98P11111;

M98P22222;

M98P33333;

M98P44444;

0 00001;

0 11111;

0 22222;

0 33333;

0 44444;

12015-I

Important: Calling a macro (see chapter 20) does not add to the nesting
level of any active subprograms. Up to 4 subprograms can still be nested
though the combined total of nested macros and subprograms cannot
exceed 8.

Advertising