30.07.2013 Views

User's Manual ISO TNC 360 (260020xx, 280490xx) - heidenhain

User's Manual ISO TNC 360 (260020xx, 280490xx) - heidenhain

User's Manual ISO TNC 360 (260020xx, 280490xx) - 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 />

Repeating program section repeats<br />

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

Program layout<br />

% REPS G71 *<br />

.<br />

.<br />

1<br />

.<br />

e.g. N15<br />

.<br />

G98 L1 *<br />

.<br />

.<br />

1 1x 4<br />

e.g. N20<br />

.<br />

G98 L2 *<br />

.<br />

.<br />

21<br />

2x 2 1x 4 2x 5<br />

e.g. N27<br />

.<br />

.<br />

.<br />

L2,2 * ....................................................... Program section between this block and G98 L2 (block 20) is<br />

repeated twice<br />

3 6<br />

e.g. N35 L1,1 * ....................................................... Program section between this block and G98 L1 (block 15) is<br />

.<br />

.<br />

.<br />

7<br />

repeated once<br />

N9999 % REPS G71 *<br />

Sequence of program execution<br />

Step 1: Main program REPS 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 REPS is executed from 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 REPS is executed from block 36 to block 50.<br />

End of program.<br />

6-11

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

Saved successfully!

Ooh no, something went wrong!