10 programming examples, Example: drilling cycles, Programming examples – HEIDENHAIN TNC 128 (77184x-02) User Manual
Page 417: Programming examples 16.10

Programming Examples 16.10
16
TNC 128 | User's Manual HEIDENHAIN Conversational Programming | 5/2014
417
16.10
Programming Examples
Example: Drilling cycles
0 BEGIN PGM C200 MM
1 BLK FORM 0.1 Z X+0 Y+0 Z-20
Definition of workpiece blank
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL CALL 1 Z S4500
Tool call (tool radius 3)
4 Z+250 R0 FMAX
Retract the tool
5 CYCL DEF 200 DRILLING
Cycle definition
Q200=2
;SET-UP CLEARANCE
Q201=-15
;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
Q395=0
;DEPTH REFERENCE
6 X+10 R0 FMAX M3
Approach hole 1, spindle ON
7 Y+10 R0 FMAX M99
Approach hole 1, call cycle
8 X+90 R0 FMAX M99
Approach hole 2, call cycle
9 Y+90 R0 FMAX M99
Approach hole 3, call cycle
10 X+10 R0 FMAX M99
Approach hole 4, call cycle
11 Z+250 R0 FMAX M2
Retract the tool, end program
12 END PGM C200 MM