2 pr ogr a mming t ool mo v e ments, Example: linear movement – HEIDENHAIN TNC 128 (77184x-01) User Manual
Page 164

164
Programming: Tool movements
6.2 Pr
ogr
a
mming t
ool mo
v
e
ments
Example: Linear movement
0 BEGIN PGM LINEAR MM
1 BLK FORM 0.1 Z X+0 Y+0 Z-20
Define the workpiece blank for graphic workpiece simulation
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL CALL 1 Z S4000
Call the tool in the spindle axis and with the spindle speed S
4
Z+250 R0 FMAX
Retract the tool in the spindle axis at rapid traverse FMAX
5
X-10 R0 FMAX
Pre-position the tool
6
Y-10 R0 FMAX
Pre-position the tool
7
Z+2 R0 FMAX
Pre-position the tool
8
Z-5 R0 F1000 M13
Move to working depth at feed rate F = 1000 mm/min
9
X+5 R- F500
Contour approach
10
Y+95 R+
Move to point 2
11
X+95 R+
Move to point 3
12
Y+5 R+
Move to point 4
13
X-10 R0
Move to last contour point 1 and retract
14
Z+250 R0 FMAX M30
Retract the tool, end program
15 END PGM LINEAR MM
X
Y
95
5
95
5
1
4
2
3