beautypg.com

HEIDENHAIN TNC 406 User Manual

Page 222

background image

HEIDENHAIN TNC 406, TNC 416

201

1

0.8 Measur

ing with a pr

obing electr

ode dur

ing pr

ogr

am r

u

n

Example: Measuring the height of an island on a workpiece

Program sequence

„

Store coordinates for pre-positioning the
electrode in Q parameters

„

Probe probe point 1

„

Probe probe point 2

„

Determine the height from the difference in Z
values

0 BEGIN PGM PROBE MM

1 FN 0: Q11 = +20

Parameter coordinates for probe point 1 in the X axis

2 FN 0: Q12 = +50

Parameter coordinates for probe point 1 in the Y axis

3 FN 0: Q13 = +10

Parameter coordinates for probe point 1 in the Z axis

4 FN 0: Q21 = +50

Parameter coordinates for probe point 2 in the X axis

5 FN 0: Q22 = +10

Parameter coordinates for probe point 2 in the Y axis

6 FN 0: Q23 = +0

Parameter coordinates for probe point 2 in the Z axis

7 TOOL CALL 0 Z

Insert probing electrode

8 L Z+100 R0 F MAX M

Retract to safety clearance

9 TCH PROBE 0.0 REF. PLANE Q10 Z–

Assign the Z coordinate probed in the negative direction to Q10

10 TCH PROBE 0.1 X+Q11 Y+Q12 Z+Q13

Touch probe is valid for point 1

11 L X+Q21 Y+Q22

Auxiliary point for second pre-positioning

12 TCH PROBE 0.0 REF. PLANE Q20 Z–

Assign the Z coordinate probed in the negative direction to Q20

13 TCH PROBE 0.1 X+Q21 Y+Q22 Z+Q23

Touch probe is valid for point 2

14 FN2: Q1 = Q10–Q20

Measure the height of the island and assign to Q1

15 STOP

Q1 can be checked after program run has stopped

16 L Z+100 R0 F MAX M2

Retract probing electrode and end program

17 END PGM PROBE MM

End of program

Y

X

Z

1

2

This manual is related to the following products: