beautypg.com

Yx z – HEIDENHAIN TNC 360 User Manual User Manual

Page 147

background image

7-13

TNC 360

7

Programming with Q Parameters

7.7

Measuring with the 3D Touch Probe During Program Run

Example for exercise: Measuring the height of an island on a workpiece

Coordinates for pre-positioning the 3D touch
probe

Touch point 1:

X = + 20 mm (Q11)
Y =

50 mm (Q12)

Z =

10 mm (Q13)

Touch point 2:

X = + 50 mm (Q21)
Y =

10 mm (Q22)

Z =

0 mm (Q23)

Part program:

0

BEGIN PGM 3600717 MM

1

FN0: Q11 = + 20

2

FN0: Q12 = + 50

3

FN0: Q13 = + 10

4

FN0: Q21 = + 50

5

FN0: Q22 = + 10

6

FN0: Q23 = + 0

7

TOOL CALL 0 Z

8

L Z+100 R0 FMAX M6 ....................................... Insert touch probe

9

TCH PROBE 0.0 REF.PLANE Q10 Z–

10

TCH PROBE 0.1 X+Q11 Y+Q12 Z+Q13 ............. The Z coordinate probed in the negative direction is stored in

Q10 (1st point)

11

L X+Q21 Y+Q22 ................................................. Auxiliary point for second pre-positioning

12

TCH PROBE 0.0 REF.PLANE Q20 Z–

13

TCH PROBE 0.1 X+Q21 Y+Q22 Z+Q23 ............. The Z coordinate probed in the negative direction is stored in

Q20 (2nd point)

14

FN2: Q1 = Q20–Q10 .......................................... Measure the height of the island and assign to Q1

15

STOP .................................................................. Q1 can be checked after the program run has been stopped

(see page 7-14)

16

L Z+100 R0 FMAX M2

17

END PGM 3600717 MM .................................... Retract the tool and end the program

Y

X

Z

1

2

Begin the program; assign the coordinates for pre-
positioning the touch probe