Ellipse – HEIDENHAIN TNC 360 ISO Programming User Manual

Page 151

Advertising
background image

7-17

TNC 360

7

Programming with Q Parameters

Ellipse

X coordinate calculation:

X = a

.

cos

α

Y coordinate calculation:

Y = b

.

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

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
N10 to N120 of the part program.

Part program

7.8

Examples for Exercise

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...

%376015 G71 * ........................................................ Load data
N10 D00 Q01 P01 +50 * ........................................... X coordinate for center of ellipse
N20 D00 Q02 P01 +50 * ........................................... Y coordinate for center of ellipse
N30 D00 Q03 P01 +50 * ........................................... Semiaxis in X
N40 D00 Q04 P01 +20 * ........................................... Semiaxis in Y
N50 D00 Q05 P01 +0 * ............................................. Start angle
N60 D00 Q06 P01 +360 * ......................................... End angle
N70 D00 Q07 P01 +40 * ........................................... Number of calculating steps
N80 D00 Q08 P01 +0 * ............................................. Rotational position
N90 D00 Q09 P01 +10 * ........................................... Depth
N100 D00 Q10 P01 +100 * ....................................... Plunging feed rate
N110 D00 Q11 P01 +350 * ....................................... Milling feed rate
N120 D00 Q12 P01 +2 * ........................................... Setup clearance Z
N130 G30 G17 X+0 Y+0 Z-20 * ................................. Definition of workpiece blank
N140 G31 G90 X+100 Y+100 Z+0 *
N150 G99 T1 L+0 R+2.5 *
N160 T1 G17 S2500 *
N170 G00 G40 G90 Z+100 * ..................................... Retract in Z
N180 L10,0 * ............................................................. Call subprogram ellipse
N190 G00 Z+100 M02 * ............................................ Retract in Z, end of main program

Advertising
This manual is related to the following products: