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

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

G<br />

G<br />

L<br />

9 8<br />

LABEL NUMBER?<br />

e.g. 5<br />

9<br />

5<br />

0<br />

8<br />

END<br />

END<br />

. 0<br />

ENT<br />

Resulting NC block: G98 L5 *<br />

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

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

LABEL NUMBER?<br />

ENT<br />

Resulting NC block: G98 L0 *<br />

To call the subprogram:<br />

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

Resulting NC block: L5,0 *<br />

END<br />

Select the label setting function.<br />

In this example, the subprogram begins with LABEL 5.<br />

Select the label setting function.<br />

End of subprogram.<br />

Calls the subprogram following LBL 5.<br />

The command L0,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!