Programming and calling subprograms -3 – HEIDENHAIN TNC 360 ISO Programming User Manual

Page 126

Advertising
background image

6

Subprograms and Program Section Repeats

6-3

TNC 360

6.1

Subprograms

9

8

L

e.g.

5

0

G

G

5

8

9

.

0

ENT

ENT

END

END

END

Programming and calling subprograms

To mark the beginning of the subprogram:

Select the label setting function.

LABEL NUMBER?

In this example, the subprogram begins with LABEL 5.

Resulting NC block: G98 L5 *

To mark the end of the subprogram:

A subprogram must always end with label number 0.

Select the label setting function.

LABEL NUMBER?

End of subprogram.

Resulting NC block: G98 L0 *

To call the subprogram:

A subprogram is called with its label number.

Calls the subprogram following LBL 5.

Resulting NC block: L5,0 *

The command L0,0 is not allowed because label 0 can only be used to mark the end of a subprogram.

Advertising
This manual is related to the following products: