beautypg.com

Cycles: turning 12.33 example program – HEIDENHAIN TNC 640 (34059x-05) Cycle programming User Manual

Page 434

background image

Cycles: Turning

12.33 Example program

12

434

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

Q484=+0.2

;OVERSIZE IN Z

Q505=+0.2

;FINISHING FEED RATE

Q506=+0

;CONTOUR SMOOTHING

12 CYCL CALL M8

Cycle call

13 M305

Turning spindle off

14 TOOL CALL 15

Tool call

15 M140 MB MAX

Retract the tool

16 FUNCTION TURNDATA SPIN VCONST:ON VC:100

Constant cutting speed

17 CYCL DEF 800 ADAPT ROTARY COORDINATE SYSTEM

Cycle definition adapt rotary coordinate system

Q497=+0

;PRECISION ANGLE

Q498=+0

;REVERSE TOOL

18 L X+165 Y+0 R0 FMAX

Move to starting point in the plane

19 L Z+2 R0 FMAX M304

Set-up clearance, turning spindle on

20 CYCL DEF 862 RADIAL RECESSING EXTENDED

Cycle definition recess

Q215=+0

;MACHINING OPERATION

Q460=+2

;SAFETY CLEARANCE

Q491=+150

;DIAMETER AT CONTOUR START

Q492=-12

;CONTOUR START IN Z

Q493=+142

;DIAMETER AT END OF CONTOUR

Q494=-18

;CONTOUR END IN Z

Q495=+0

;ANGLE OF SIDE

Q501=+1

;TYPE OF STARTING ELEMENT

Q502=+1

;SIZE OF STARTING ELEMENT

Q500=+0

;RADIUS OF CONTOUR EDGE

Q496=+0

;ANGLE OF SECOND SIDE

Q503=+1

;TYPE OF END ELEMENT

Q504=+1

;SIZE OF END ELEMENT

Q478=+0.3

;ROUGHING FEED RATE

Q483=+0.4

;OVERSIZE FOR DIAMETER

Q484=+0.2

;OVERSIZE IN Z

Q505=+0.15

;FINISHING FEED RATE

Q463=+0

;LIMIT TO DEPTH

21 CYCL CALL M8

Cycle call

22 M305

Turning spindle off

23 M137

Feed rate in mm per minute

24 M140 MB MAX

Retract the tool

25 FUNCTION MODE MILL

Activate Milling mode

26 M30

End of program

27 END PGM SHOULDER MM