25 example program – HEIDENHAIN TNC 640 (34059x-01) Cycle programming User Manual

Page 363

Advertising
background image

HEIDENHAIN TNC 640

363

13.25 Example pr

ogr

am

13.25 Example program

Example: Shoulder with recess

0 BEGIN PGM SHOULDER MM

1 BLK FORM 0.1 Y X+0 Y-10 Z-35

Definition of workpiece blank

2 BLK FORM 0.2 X+87 Y+10 Z+2

3 TOOL CALL 12

Tool call

4 M140 MB MAX

Retract the tool

5 FUNCTION MODE TURN

Activate Turning mode

6 FUNCTION TURNDATA SPIN VCONST:ON VC:150

Constant surface speed

7 CYCL DEF 800 ADAPT ROTARY COORDINATE
SYSTEM

Cycle definition adapt rotary coordinate system

Q497=+0

;PRECESSION ANGLE

Q498=+0

;REVERSE TOOL

8 M136

Feed rate in mm per revolution

9 L X+165 Y+0 R0 FMAX

Move to starting point in the plane

10 L Z+2 R0 FMAX M304

Set-up clearance, turning spindle on

¬142

¬150

2x45°

40

¬160

12

18

Advertising