beautypg.com

3 pr ogr amming the first p a rt – HEIDENHAIN TNC 640 (34059x-01) ISO programming User Manual

Page 44

background image

44

First Steps with the TNC 640

1

.3 Pr

ogr

amming the First P

a

rt

Example NC blocks

Further information on this topic

„

Creating a new program: See "Creating and Writing Programs" on
page 81

„

Cycle programming: See User’s Manual for Cycles

%C200 G71 *

N10 G30 G17 X+0 Y+0 Z-40 *

Definition of workpiece blank

N20 G31 X+100 Y+100 Z+0 *

N30 T5 G17 S4500 *

Tool call

N40 G00 G40 G90 Z+250 *

Retract the tool

N50 G200 DRILLING

Define the cycle

Q200=2

;SET-UP CLEARANCE

Q201=-20

;DEPTH

Q206=250

;FEED RATE FOR PLNGN

Q202=5

;PLUNGING DEPTH

Q210=0

;DWELL TIME AT TOP

Q203=-10

;SURFACE COORDINATE

Q204=20

;2ND SET-UP CLEARANCE

Q211=0.2

;DWELL TIME AT DEPTH

N60 X+10 Y+10 M13 M99 *

Spindle and coolant on, call the cycle

N70 X+10 Y+90 M99 *

Call the cycle

N80 X+90 Y+10 M99 *

Call the cycle

N90 X+90 Y+90 M99 *

Call the cycle

N100 G00 Z+250 M2 *

Retract in the tool axis, end program

N99999999 %C200 G71 *