beautypg.com

1 1 pr ogr amming examples, Example: convex sphere machined with end mill – HEIDENHAIN iTNC 530 (60642x-03) ISO programming User Manual

Page 322

background image

322

Programming: Q parameters

9.1

1

Pr

ogr

amming examples

Example: Convex sphere machined with end mill

Program sequence

This program requires an end mill.

The contour of the sphere is approximated by
many short lines (in the Z/X plane, defined in
Q14). The smaller you define the angle
increment, the smoother the curve becomes.

You can determine the number of contour cuts
through the angle increment in the plane
(defined in Q18).

The tool moves upward in three-dimensional
cuts.

The tool radius is compensated automatically.

%SPHERE G71 *

N10 Q1 = +50 *

Center in X axis

N20 Q2 = +50 *

Center in Y axis

N30 Q4 = +90 *

Starting angle in space (Z/X plane)

N40 Q5 = +0 *

End angle in space (Z/X plane)

N50 Q14 = +5 *

Angle increment in space

N60 Q6 = +45 *

Sphere radius

N70 Q8 = +0 *

Starting angle of rotational position in the X/Y plane

N80 Q9 = +360 *

End angle of rotational position in the X/Y plane

N90 Q18 = +10 *

Angle increment in the X/Y plane for roughing

N100 Q10 = +5 *

Allowance in sphere radius for roughing

N110 Q11 = +2 *

Set-up clearance for pre-positioning in the spindle axis

N120 Q12 = +350 *

Feed rate for milling

N130 G30 G17 X+0 Y+0 Z-50 *

Definition of workpiece blank

N140 G31 G90 X+100 Y+100 Z+0 *

N160 T1 G17 S4000 *

Tool call

N170 G00 G40 G90 Z+250 *

Retract the tool

X

Y

50

100

100

Z

Y

-50

R45

50

R45