Programming Examples 15.14
15
HEIDENHAIN | TNC 320 | User’s manual for cycle programming | 9/2016
417
12 TOOL CALL 1 Z S5000
Tool call for finishing
13 CALL LBL 1
Call subprogram for machining
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 MILLNG
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 ;2ND 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