Example: drilling in the w axis – HEIDENHAIN TNC 640 (34059x-05) User Manual

Page 418

Advertising
background image

Programming: Special functions

11.5

Working with the Parallel Axes U, V and W

11

418

TNC 640 | User's Manual

HEIDENHAIN Conversational Programming | 1/2015

Example: Drilling in the W axis

0 BEGIN PGM PAR MM
1 BLK FORM 0.1 Z X+0 Y+0 Z-20
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL CALL 5 Z S2222

Call the tool in the spindle axis Z

4 L Z+0 W+0 R0 FMAX M91

Reset the principle axis and minor axis

5 L Z+100 R0 FMAX M3

Position the principal axis

6 CYCL DEF 200 DRILLING

Q200=+2

;SET-UP CLEARANCE

Q201=-20

;DEPTH

Q206=+150

;FEED RATE FOR PLNGNG

Q202=+5

;

Q210=+0

;DWELL TIME AT TOP

Q203=+0

;SURFACE COORDINATE

Q204=+50

;2ND SET-UP CLEARANCE

Q211=+0

;DWELL TIME AT DEPTH

Q395=+0

;DEPTH REFERENCE

7 FUNCTION PARAXCOMP DISPLAY Z W

Activate display compensation

8 FUNCTION PARAXMODE X Y W

Positive axis selection

9 L X+50 Y+50 R0 FMAX M99

Infeed runs minor axis W

10 FUNCTION PARAXMODE OFF

Restore standard axis configuration

11 L Z+0 W+0 R0 FMAX M91

Reset the principle axis and minor axis

12 L M30
13 END PGM PAR MM

Advertising