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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6 Subprograms and Program Section Repeats<br />

6.1 Subprograms<br />

Programming and calling subprograms<br />

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

To mark the beginning of the subprogram:<br />

LBL<br />

SET<br />

LBL<br />

SET<br />

LBL<br />

CALL<br />

LABEL NUMBER?<br />

e.g. 5 ENT<br />

Resulting NC block: LBL 5<br />

To mark the end of the subprogram:<br />

A subprogram must always end with label number 0.<br />

LABEL NUMBER?<br />

e.g.<br />

0 ENT<br />

Resulting NC block: LBL 0<br />

To call the subprogram:<br />

A subprogram is called with its label number.<br />

LABEL NUMBER?<br />

5 ENT<br />

REPEAT REP?<br />

NO<br />

ENT<br />

Resulting NC block: CALL LBL 5<br />

The subprogram begins with label number 5.<br />

End of subprogram.<br />

Calls the subprogram following LBL 5.<br />

Program section is subprogram: no repetitions.<br />

The command CALL LBL 0 is not allowed because label 0 can only be used to mark the end of a subprogram.<br />

6-3

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

Saved successfully!

Ooh no, something went wrong!