31.07.2013 Views

User's Manual TNC 360 (from 259 900-11) - heidenhain

User's Manual TNC 360 (from 259 900-11) - heidenhain

User's Manual TNC 360 (from 259 900-11) - heidenhain

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6 Subprograms and Program Section Repeats<br />

6.4 Nesting<br />

<strong>TNC</strong> <strong>360</strong><br />

30 LBL 1<br />

31 L X+15 Y+10 R0 FMAX M3<br />

32 L Z+2 FMAX<br />

33 CALL LBL 2<br />

34 L X+45 Y+60 FMAX<br />

35 CALL LBL 2<br />

36 L X+75 Y+10 FMAX<br />

37 CALL LBL 2<br />

38 LBL 0<br />

39 LBL 2<br />

40 L M99<br />

41 L IX+20 F9999 M99<br />

42 L IY+20 M99<br />

43 L IX–20 M99<br />

44 LBL 0<br />

45 END PGM <strong>360</strong>0610 MM<br />

Repeating program section repeats<br />

Program layout<br />

0<br />

.<br />

BEGIN PGM <strong>360</strong>06<strong>11</strong> MM<br />

.<br />

.<br />

1<br />

e.g. 15. LBL 1<br />

.<br />

.<br />

1<br />

e.g. 20 LBL 2<br />

.<br />

.<br />

.<br />

21<br />

4<br />

2x 2 4 2x 5<br />

Move to first hole in each group, then call subprogram 2<br />

Machine first hole, then move to and machine the other holes<br />

using the same cycle<br />

e.g. 27 CALL LBL 2 REP 2/2 ................................ Program section between this block and LBL 2 (block 20) is<br />

.<br />

repeated twice<br />

. 3 6<br />

.<br />

e.g. 35 CALL LBL 1 REP 1/1 ................................ Program section between this block and LBL 1 (block 15) is<br />

.<br />

.<br />

.<br />

7<br />

repeated once<br />

e.g. 50 END PGM <strong>360</strong>06<strong>11</strong> MM<br />

Sequence of program execution<br />

Step 1: Main program <strong>360</strong>06<strong>11</strong> is executed up to block 27.<br />

Step 2: Program section between block 27 and block 20 is repeated<br />

twice.<br />

Step 3: Main program <strong>360</strong>06<strong>11</strong> is executed <strong>from</strong> block 28 to block 35.<br />

Step 4: Program section between block 35 and block 15 is repeated<br />

once.<br />

Step 5: Repetition of step 2 within step 4 .<br />

Step 6: Repetition of step 3 within step 4 .<br />

Step 7: Main program <strong>360</strong>06<strong>11</strong> is executed <strong>from</strong> block 36 to block 50.<br />

End of program.<br />

6-<strong>11</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!