Repeating program section repeats – HEIDENHAIN TNC 360 User Manual User Manual

Page 134

Advertising
background image

6-11

TNC 360

6

Subprograms and Program Section Repeats

Move to first hole in each group, then call subprogram 2

Machine first hole, then move to and machine the other holes
using the same cycle

6.4

Nesting

1

2

1

1

3

7

4

2

2x

4

5

2x

6

.
.
.

.
.
.

.
.
.

.
.
.

.
.
.

30

LBL 1

31

L X+15 Y+10 R0 FMAX M3

32

L Z+2 FMAX

33

CALL LBL 2

34

L X+45 Y+60 FMAX

35

CALL LBL 2

36

L X+75 Y+10 FMAX

37

CALL LBL 2

38

LBL 0

39

LBL 2

40

L M99

41

L IX+20 F9999 M99

42

L IY+20 M99

43

L IX–20 M99

44

LBL 0

45

END PGM 3600610 MM

Repeating program section repeats

Program layout

0

BEGIN PGM 3600611 MM

e.g. 15

LBL 1

e.g. 20

LBL 2

e.g. 27

CALL LBL 2 REP 2/2 ................................ Program section between this block and LBL 2 (block 20) is

repeated twice

e.g. 35

CALL LBL 1 REP 1/1 ................................ Program section between this block and LBL 1 (block 15) is

repeated once

e.g. 50

END PGM 3600611 MM

Sequence of program execution

Step 1:

Main program 3600611 is executed up to block 27.

Step 2:

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

Step 3:

Main program 3600611 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 3600611 is executed from block 36 to block 50.
End of program.

Advertising