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 />

Repeating subprograms<br />

6-12<br />

Program layout<br />

0<br />

.<br />

BEGIN PGM <strong>360</strong>0612 MM<br />

.<br />

.<br />

1<br />

e.g. 10<br />

<strong>11</strong><br />

LBL 1<br />

CALL LBL 2 ............................................... 2x 3<br />

Subprogram call<br />

12 CALL LBL 1 REP 2/2 ..... Program section repeat<br />

.<br />

.<br />

.<br />

4<br />

e.g. 19 L Z+100 R0 FMAX M2 .............................. Last program block of main program with M2<br />

20 LBL 2 ......................................................... Beginning of subprogram<br />

.<br />

. 52<br />

.<br />

e.g. 28 LBL 0 ......................................................... End of subprogram<br />

29 END PGM <strong>360</strong>0612 MM ........................... End of main program<br />

Sequence of program execution<br />

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

Step 2: Subprogram 2 is called and executed.<br />

Step 3: Program section between block 12 and block 10 is repeated<br />

twice: subprogram 2 is repeated twice.<br />

Step 4: Main program <strong>360</strong>0612 is executed <strong>from</strong> block 13 to block<br />

19. End of program.<br />

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

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

Saved successfully!

Ooh no, something went wrong!