HEIDENHAIN TNC 407 (280 580) ISO Programming User Manual
Page 162

5 - 2 9
TNC 426/TNC 425/TNC 415 B/TNC 407
5
Programming Tool Movements
Path Contours – Polar Coordinates
Example for exercise: Milling a hexagon
Corner point coordinates:
1
H
= 180°
R
= 45 mm
2
H
= 120°
R
= 45 mm
3
H
=
60°
R
= 45 mm
4
H
=
0°
R
= 45 mm
5
H
= 300°
R
= 45 mm
6
H
= 240°
R
= 45 mm
Milling depth:
Z
= –10 mm
Tool radius:
R
=
5 mm
Part program
%S530I G71 * ............................................................ Begin program
N10 G30 G17 X+0 Y+0 Z–20 * .................................. Define the workpiece blank
N20 G31 G90 X+100 Y+100 Z+0 *
N30 G99 T1 L+0 R+17 * ............................................ Define the tool
N40 T1 G17 S3200 * .................................................. Call the tool
N50 G00 G40 G90 Z+100 M06 * ............................... Retract and insert tool
N60 I+50 J+50 * ........................................................ Set pole
N70 G10 R+70 H–190 * ............................................. Pre-position in the working plane with polar
...................................................................................
coordinates
N80 Z–10 M03 * ........................................................ Move tool to working depth
N90 G11 G41 R+45 H+180 F100 * ............................ Move to contour point 1
N100 H+120 * ........................................................... Move to contour point 2
N110 H+60 * ............................................................. Move to contour point 3
N120 G91 H–60 * ...................................................... Move to contour point 4, incremental dimensions
N130 G90 H–60 * ...................................................... Move to contour point 5, absolute dimensions
N140 H+240 * ........................................................... Move to contour point 6
N150 H+180 * ........................................................... Move to contour point 1
N160 G10 G40 R+70 H+170 * ................................... Depart contour, cancel radius compensation
N170 Z+100 M02 * .................................................... Retract in the infeed axis
N99999 %S530I G71 *
–10
I = 50
J = 50
5
5
60
°
R =45
Y
X
Z
100
100
1
2
3
4
5
6