HEIDENHAIN TNC 640 (34059x-04) ISO programming User Manual
Page 58

First Steps with the TNC 640
1.3
Programming the first part
1
58
TNC 640 | User's Manual for DIN/ISO Programming | 3/2014
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 PLNGNG
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 BOTTOM
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 the tool, end program
N99999999 %C200 G71 *
Further information on this topic
Creating a new program: See "Opening programs and entering",
page 95
Cycle programming: See User's Manual for Cycles, "Cycle
fundamentals / Overviews"