HEIDENHAIN TNC 620 (34056x-04) Cycle programming User Manual
Page 396

Touch Probe Cycles: Automatic Workpiece Inspection
16.14 Programming Examples
16
396
TNC 620 | User's Manual Cycle Programming | 5/2013
14 L Z+100 R0 FMAX M2
Retract in the tool axis, end program
15 LBL 1
Subprogram with fixed cycle for rectangular stud
16 CYCL DEF 213 STUD FINISHING
Q200=20
;SET-UP CLEARANCE
Q201=-10
;DEPTH
Q206=150
;FEED RATE FOR PLNGNG
Q202=5
;PLUNGING DEPTH
Q207=500
;FEED RATE FOR MILLING
Q203=+10
;SURFACE COORDINATE
Q204=20
;2ND SET-UP CLEARANCE
Q216=+50
;CENTER IN 1ST AXIS
Q217=+50
;CENTER IN 2ND AXIS
Q218=Q1
;FIRST SIDE LENGTH
Length in X variable for roughing and finishing
Q219=q2
;SECOND SIDE LENGTH
Length in Y variable for roughing and finishing
Q220=0
;CORNER RADIUS
Q221=0
;ALLOWANCE IN 1ST AXS
17 CYCL CALL M3
Cycle call
18 LBL 0
End of subprogram
19 END PGM BEAMS MM