Subprograms – HEIDENHAIN NC 124 User Manual
Page 95
![background image](/files/815891/content/doc095.png)
8
Subprograms and Program Section Repeats
TNC 124
95
Y
X
60
50
0
0
40
20
40
10
20
8
3
2
1
Subprograms
Programming example: Subprogram for slots
Slot lengths:
20 mm + tool diameter
Slot depths:
10 mm
Slot diameters:
8 mm (= tool diameter)
Infeed point coordinates
Slot
1
:
X = 20 mm
Y = 10 mm
Slot
2
:
X = 40 mm
Y = 50 mm
Slot
3
:
X = 60 mm
Y = 40 mm
This example requires a center-cut end mill (ISO 1641)!
/
ENT
1
ENT
or
or
The beginning of a subprogram (or a program section repeat) is now
marked with the label. Enter the program blocks for the subprogram
after the LBL block.
Label 0 (LBL 0) is used only to identify the end of a subprogram.
Example: Entering a subprogram call: CALL LBL
Go to the second soft-key row.
/
Example: Inserting label for subprogram
Operating mode: PROGRAMMING AND EDITING
Go to the second soft-key row.
Insert a label (LBL) for a subprogram.
The TNC offers the lowest available number.
L a b e l n u m b e r ?
Enter a label number (here, 1). Confirm your entry.
The current block now contains the label LBL 1.
Accept the default label number.
Call label.
The TNC offers the label number which was last set.