Example: linear movement, Programming: tool movements 6.2 tool movements – HEIDENHAIN TNC 128 (77184x-02) User Manual
Page 172

Programming: Tool movements
6.2
Tool movements
6
172
TNC 128 | User's Manual HEIDENHAIN Conversational Programming | 5/2014
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
Close the contour and retract
14 Z+250 R0 FMAX M30
Retract the tool, end program
16 END PGM LINEAR MM