Repeating program section repeats -11 – HEIDENHAIN TNC 360 ISO Programming User Manual

Page 134

Advertising
background image

6

Subprograms and Program Section Repeats

6-11

TNC 360

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 * ....................................................... Program section between this block and G98 L2 (block 20) is

repeated twice

e.g. N35

L1,1 * ....................................................... Program section between this block and G98 L1 (block 15) is

repeated once

N9999

% REPS G71 *

Sequence of program execution

Step 1:

Main program REPS is executed up to block 27.

Step 2:

Program section between block 27 and block 20 is repeated
twice.

Step 3:

Main program REPS is executed from block 28 to block 35.

Step 4:

Program section between block 35 and block 15 is repeated
once.

Step 5:

Repetition of step 2 within step

4

.

Step 6:

Repetition of step 3 within step

4

.

Step 7:

Main program REPS is executed from block 36 to block 50.
End of program.

Advertising
This manual is related to the following products: