beautypg.com

Programming examples 16.14 – HEIDENHAIN TNC 640 (34059x-05) Cycle programming User Manual

Page 561

background image

Programming Examples 16.14

16

TNC 640 | User's Manual Cycle Programming | 1/2015

561

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 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