12 special functions – HEIDENHAIN CNC Pilot 4290 User Manual
Page 178

4 DIN PLUS
166
4.12.6 Post-Process Measuring
The workpieces are measured outside of the lathe and the results are
transferred to the CNC PILOT. The measuring setup determines
whether measured values or compensation values are transferred.
A global measuring result should be transferred to measuring
position 0.
The results are evaluated by the NC program. Example: Tool wear
compensation. You can use the tool-life monitoring function when
the NC program sets ”tool diagnosis bit 5 - tool wear determined by
in-process workpiece measuring” in order to inform the CNC PILOT
of a worn-out tool (see ”
4.2.4 Tool Programming”).
Post-process measuring G915
With G915, measured values are received from the post-process
measuring system and stored in variables.
Variable assignment
■
V939: Global measuring result
■
V940 Measuring status
■
0: No new measured values
■
1: New measured values
■
V941..V956 (corresponding to measuring points 1..16).
Parameters
H:
Block
■
H=0: Reserved for further functions.
■
H=1: Measured values received are read in.
The post-process measuring status as
well as the measured values last received
can be checked in Automatic mode (see
”
3.5.9 Post-process Measuring Status
Display”).
Example:
Using measuring result for compensation
. . .
BEARBEITUNG
[MACHINING]
. . .
N2T1
[Contour finishing - Outside]
. . .
N49 . . .
[End of machining process]
N50 G915 H1
[Request measuring results]
N51 IF {V940 == 1}
[If results are available]
N52THEN
N53 V {D1 [X] = D1 [X] + V941}
[Add the measuring result to
compensation value D1]
N54 ENDIF
. . .
Evaluate the measurement status in
order to avoid that compensation values
are accounted for twice or incorrectly.
4.12 Special Functions
Example:
Monitoring for tool breakage
(Monitoring a limiting value)
. . .
BEARBEITUNG [MACHINING]
. . .
N2T1
[Contour Roughing - Outside]
. . .
N49 . . .
[End of machining process]
N50 G915 H1
[Request measuring results]
N51 IF {V940 == 1} [If results are available]
N52THEN
N53 IF {V941 >= 1} [Measured value > 1 mm]
N54THEN
N55 PRINTA (”Measured value > 1 mm = tool
breakage”)
N56 M0
[Programmed stop – Cycle stop]
N57 ENDIF
N58 ENDIF
. . .