beautypg.com

5 nesting – HEIDENHAIN TNC 426B (280 472) ISO programming User Manual

Page 261

background image

245

HEIDENHAIN TNC 410, TNC 426, TNC 430

9.5 Nesting

9.5 Nesting

You can nest subprograms and program section repeats in the
following ways:

Subprograms within a subprogram

Program section repeats within a program section repeat

Subprograms repeated

Program section repeats within a subprogram

Nesting depth
The nesting depth is the number of successive levels in which
program sections or subprograms can call further program sections
or subprograms.

Maximum nesting depth for subprograms: 8

Maximum nesting depth for calling main programs: 4

You can nest program section repeats as often as desired

Subprogram within a subprogram

Example NC blocks

%UPGMS G71 *
...
N170 L1.0 *
...
N350 G00 G40 Z+100 M2 *

N360 G98 l1 *
...
N390 L2.0 *
...
N450 G98 L0 *
N460 G98 L2 *
...
N620 G98 L0 *
N999999 %UPGMS G71*

Subprogram at label G98 L1 is called

Last program block of the

main program (with M2)

Beginning of subprogram 1

Subprogram at label G98 L2 is called.

End of subprogram 1

Beginning of subprogram 2

End of subprogram 2

Lkap9.pm6

29.06.2006, 08:07

245