beautypg.com

12 programming examples, Example: roughing-out and fine-roughing a pocket, Programming examples – HEIDENHAIN TNC 640 (34059x-05) Cycle programming User Manual

Page 215: Programming examples 7.12

background image

Programming Examples

7.12

7

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

215

7.12

Programming Examples

Example: Roughing-out and fine-roughing a pocket

0 BEGIN PGM C20 MM
1 BLK FORM 0.1 Z X-10 Y-10 Z-40
2 BLK FORM 0.2 X+100 Y+100 Z+0

Definition of workpiece blank

3 TOOL CALL 1 Z S2500

Tool call: coarse roughing tool, diameter 30

4 L Z+250 R0 FMAX

Retract the tool

5 CYCL DEF 14.0 CONTOUR GEOMETRY

Define contour subprogram

6 CYCL DEF 14.1 CONTOUR LABEL 1
7 CYCL DEF 20 CONTOUR DATA

Define general machining parameters

Q1=-20

;MILLING DEPTH

Q2=1

;TOOL PATH OVERLAP

Q3=+0

;ALLOWANCE FOR SIDE

Q4=+0

;ALLOWANCE FOR FLOOR

Q5=+0

;SURFACE COORDINATE

Q6=2

;SET-UP CLEARANCE

Q7=+100

;CLEARANCE HEIGHT

Q8=0.1

;ROUNDING RADIUS

Q9=-1

;DIRECTION

8 CYCL DEF 22 ROUGH-OUT

Cycle definition: Coarse roughing

Q10=5

;PLUNGING DEPTH

Q11=100

;FEED RATE FOR PLNGNG

Q12=350

;FEED RATE FOR ROUGH-OUT

Q18=0

;COARSE ROUGHING TOOL

Q19=150

;RECIPROCATION FEED RATE

Q208=30000

;RETRACTION FEED RATE

9 CYCL CALL M3

Cycle call: Coarse roughing

10 L Z+250 R0 FMAX M6

Tool change