1 0 pr ogr amming examples – HEIDENHAIN TNC 426B (280 472) ISO programming User Manual
Page 284

HEIDENHAIN TNC 410, TNC 426, TNC 430
269
Example: Ellipse
1
0.1
0 Pr
ogr
amming Examples
Example: Ellipse
Center in X axis
Center in Y axis
Semiaxis in X
Semiaxis in Y
Starting angle in the plane
End angle in the plane
Number of calculating steps
Rotational position of the ellipse
Milling depth
Feed rate for plunging
Feed rate for milling
Setup clearance for pre-positioning
Define the workpiece blank
Define the tool
Call the tool
Retract the tool
Call machining operation
Retract in the tool axis, end program
%ELLIPSIS G71 *
N10 D00 Q1 P01 +50 *
N20 D00 Q2 P01 +50 *
N30 D00 Q3 P01 +50 *
N40 D00 Q4 P01 +30 *
N50 D00 Q5 P01 +0 *
N60 D00 Q6 P01 +360 *
N70 D00 Q7 P01 +40 *
N80 D00 Q8 P01 +30 *
N90 D00 Q9 P01 +5 *
N100 D00 Q10 P01 +100 *
N110 D00 Q11 P01 +350 *
N120 D00 Q12 P01 +2 *
N130 G30 G17 X+0 Y+0 Z-20 *
N140 G31 G90 X+100 Y+100 Z+0 *
N150 G99 T1 L+0 R+2.5 *
N160 T1 G17 S4000 *
N170 G00 G40 G90 Z+250 *
N180 L10.0 *
N190 G00 Z+250 M2 *
Program sequence
■
The contour of the ellipse is approximated by
many short lines (defined in Q7). The more
calculating steps you define for the lines, the
smoother the curve becomes.
■
The machining direction can be altered by
changing the entries for the starting and end
angles in the plane:
Clockwise machining direction:
starting angle > end angle
Counterclockwise machining direction:
starting angle < end angle
■
The tool radius is not taken into account.
X
Y
50
50
30
50
Mkap10.pm6
29.06.2006, 08:06
269