beautypg.com

Repeating program section repeats -11 – HEIDENHAIN TNC 407 (280 580) ISO Programming User Manual

Page 189

background image

6-11

TNC 426/TNC 425/TNC 415 B/TNC 407

6

Subprograms and Program Section Repeats

6.4

Nesting

1

2

1

1

3

7

4

2

1x

2x

4

1x

5

2x

6

.
.
.

Repeating program section repeats

Program layout

% REPS G71 *

e.g. N15

G98 L1 *

e.g. N20

G98 L2 *

e.g. N27

L2,2 * ........................................................ The program section between this block and G98 L2 (block 20)

is repeated twice

e.g. N35

L1,1 * ........................................................ The program section between this block and G98 L1 (block 15)

is repeated once

N99999

% REPS G71 *

Program execution

1st step: Main program REPS is executed up to block 27.

2nd step: Program section between block 27 and block 20 is repeated twice.

3rd step: Main program REPS is executed from block 28 to block 35.

4th step: Program section between block 35 and block 15 is repeated once.

5th step: Repetition of the second step within step

4

.

6th step: Repetition of the third step within step

4

.

7th step: Main program REPS is executed from block 36 to block 50. End of program.

.
.
.

.
.
.

.
.
.

.
.
.