Ellipse – HEIDENHAIN TNC 407 (280 580) User Manual User Manual
Page 205

TNC 425/TNC 415 B/TNC 407
7-20
7
Programming with Q Parameters
Ellipse
X coordinate calculation: X = a x cos
α
Y coordinate calculation: Y = b x sin
α
a, b
: Semimajor and semiminor axes of the
ellipse
α
: Angle between the leading axis and
the connecting line from P to the
center of the ellipse.
X
0
, Y
0
: Center of the ellipse
Process:
The points of the ellipse are calculated and
connected by many short lines. The more
points that are calculated and the shorter
the lines between them, the smoother the
curve.
The machining direction can be varied by
changing the entries for start and end angles.
The input parameters are listed below in blocks
1–12. Calculations are programmed with the
FORMULA function.
Part program
0 BEGIN PGM K72 MM ............................................. Load data
1 FN 0: Q1 = +50 ....................................................... X coordinate for center of ellipse
2 FN 0: Q2 = +50 ....................................................... Y coordinate for center of ellipse
3 FN 0: Q3 = +50 ....................................................... Semiaxis in X
4 FN 0: Q4 = +20 ....................................................... Semiaxis in Y
5 FN 0: Q5 = +0 ......................................................... Start angle
6 FN 0: Q6 = +360 ..................................................... End angle
7 FN 0: Q7 = +40 ....................................................... Number of calculating steps
8 FN 0: Q8 = +0 ......................................................... Rotational position
9 FN 0: Q9 = +10 ....................................................... Depth
10 FN 0: Q10 = +100 ................................................. Plunging feed rate
11 FN 0: Q11 = +350 ................................................. Milling feed rate
12 FN 0: Q12 = +2 ..................................................... Setup clearance Z
13 BLK FORM 0.1 Z X+0 Y+0 Z–20
14 BLK FORM 0.2 X+100 Y+100 Z+0
15 TOOL DEF 1 L+0 R+2.5
16 TOOL CALL 1 Z S2800
17 L Z+2000 R0 F MAX
18 CALL LBL 10 ......................................................... Call subprogram ellipse
19 L Z+20 R0 F MAX M2 ........................................... Retract in Z, end of main program
Y´
X´
Y´
X´
Y
1
X
2
X
1
Y
2
–b
b
a
–a
α
1
α
2
Q5
Q4
α
S
DR–
α
0
P
DR+
=α
E
X
X
Y
Y
Continued ...