3 measur ing wo rkpieces with a 3-d touc h p robe – HEIDENHAIN TNC 426B (280 472) ISO programming User Manual
Page 326

HEIDENHAIN TNC 410, TNC 426, TNC 430
311
12.3 Measur
ing Wo
rkpieces with a 3-D
Touc
h
P
robe
Example: Measuring the height of an island on a workpiece
Program sequence
■
Assign the program parameters
■
Measure height with Cycle G55
■
Calculate the height
X
Y
20
50
10
50
Z
Y
10
%3DPROBE G71 *
N10 D00 Q11 P01 +20 *
N20 D00 Q12 P01 +50 *
N30 D00 Q13 P01 +10 *
N40 D00 Q21 P01 +50 *
N50 D00 Q22 P01 +10 *
N60 D00 Q23 P01 +0 *
N70 T0 G17 *
N80 G00 G40 G90 Z+250 *
N90 X+Q11 Y+Q12 *
N100 G55 P01 10 P02 Z-
X+Q11 Y+Q12 Z+Q13 *
N110 X+Q21 Y+Q22 *
N120 G55 P01 20 P02 Z- Z+Q23 *
N130 D02 Q1 P01 +Q20 P02 +Q10 *
N140 G38 *
N150 G00 G40 Z+250 M2 *
N999999 %3DPROBE G71 *
1st touch point: X coordinate
1st touch point: Y coordinate
1st touch point: Z coordinate
2nd touch point: X coordinate
2nd touch point: Y coordinate
2nd touch point: Z coordinate
Call touch probe
Retract touch probe
Pre-position touch probe
Measure upper surface of the workpiece
Pre-position for second measurement
Measure the depth
Calculate the absolute height of the island
Interrupt program run: check Q1
Retract in the tool axis, end program
Okap12.pm6
29.06.2006, 08:06
311