8 programming examples, Example: milling pockets, studs and slots, Programming examples – HEIDENHAIN TNC 640 (34059x-02) Cycle programming User Manual

Page 162

Advertising
background image

Fixed Cycles: Pocket Milling / Stud Milling / Slot Milling

5.8

Programming Examples

5

162

TNC 640 | User's Manual Cycle Programming | 5/2013

5.8

Programming Examples

Example: Milling pockets, studs and slots

0 BEGINN PGM C210 MM
1 BLK FORM 0.1 Z X+0 Y+0 Z-40

Definition of workpiece blank

2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL CALL 1 Z S3500

Call the tool for roughing/finishing

4 L Z+250 R0 FMAX

Retract the tool

5 CYCL DEF 256 RECTANGULAR STUD

Define cycle for machining the contour outside

Q218=90

;FIRST SIDE LENGTH

Q424=100

;WORKPC. BLANK SIDE 1

Q219=80

;2ND SIDE LENGTH

Q425=100

;WORKPC. BLANK SIDE 2

Q220=0

;CORNER RADIUS

Q368=0

;ALLOWANCE FOR SIDE

Q224=0

;ANGLE OF ROTATION

Q367=0

;STUD POSITION

Q207=250

;FEED RATE FOR MILLING

Q351=+1

;CLIMB OR UP-CUT

Q201=-30

;DEPTH

Q202=5

;PLUNGING DEPTH

Q206=250

;FEED RATE FOR PLNGNG

Q200=2

;SET-UP CLEARANCE

Q203=+0

;SURFACE COORDINATE

Q204=20

;2ND SET-UP CLEARANCE

Q370=1

;TOOL PATH OVERLAP

Q437=0

;APPROACH POSITION

6 L X+50 Y+50 R0 M3 M99

Call cycle for machining the contour outside

7 CYCL DEF 252 CIRCULAR POCKET

Define CIRCULAR POCKET MILLING cycle

Q215=0

;MACHINING OPERATION

Q223=50

;CIRCLE DIAMETER

Q368=0.2

;ALLOWANCE FOR SIDE

Q207=500

;FEED RATE FOR MILLING

Q351=+1

;CLIMB OR UP-CUT

Advertising