beautypg.com

HEIDENHAIN TNC 410 ISO Programming User Manual

Page 164

background image

138

6 Programming: Programming Contours

6.

4 P

a

th Con

to

u

rs—

C

ar

te

sian Co

or

d

inat

e

s

Example: Full circle with Cartesian coordinates

%C-CC G71 *

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+12.5 *

Define the tool

N40 T1 G17 S3150 *

Tool call

N50 G00 G40 G90 Z+250 *

Retract the tool

N60 I+50 J+50 *

Define the circle center

N70 X-40 Y+50 *

Pre-position the tool

N80 G01 Z-5 F1000 M3 *

Move to working depth

N90 G41 X+0 Y+50 F300 *

Approach starting point, radius compensation G41

N100 G26 R5 F150 *

Tangential approach

N110 G02 X+0 *

Move to the circle end point (= circle starting point)

N120 G27 R5 F500 *

Tangential departure

N130 G01 G40 X-40 Y-50 F1000 *

Retract tool in the working plane, cancel radius compensation

N140 G00 Z+250 M2 *

Retract tool in the tool axis, end of program

N999999 %C-CC G71 *

X

Y

50

50

CC