HEIDENHAIN TNC 360 ISO Programming User Manual
Page 112

5-29
TNC 360
5
Programming Tool Movements
5.5
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 the spindle and insert the tool
N60 I+50 J+50 * ........................................................ Set the pole
N70 G10 R+70 H–190 * ............................................. Pre-position in X, Y to polar coordinates
N80 Z–10 M03 * ........................................................ Pre-position 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 value
N130 G90 H–60 * ...................................................... Move to contour point 5, absolute value
N140 H+240 * ........................................................... Move to contour point 6
N150 H+180 * ........................................................... Move to contour point 1
N160 G10 G40 R+70 H+170 * ................................... Retract the tool in X, Y; cancel radius compensation
N170 Z+100 M02 * .................................................... Retract the tool in Z
N9999 %S530I G71 *
–10
I = 50
J = 50
5
5
60
°
R =45
Y
X
Z
100
100
1
2
3
4
5
6