0% found this document useful (0 votes)
195 views165 pages

User's Manual Touch Probe Cycles: NC Software 340 551-03 340 554-03

This document is a user's manual that describes touch probe cycles for a TNC 320 control. It provides information on calibrating and using touch probes in manual and electronic handwheel modes as well as cycles for automatic workpiece inspection and datum setting. The manual covers functions including basic rotation measurement, corner and circle center measurement, and automatic compensation of workpiece misalignment.

Uploaded by

Muhammed Shahid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
195 views165 pages

User's Manual Touch Probe Cycles: NC Software 340 551-03 340 554-03

This document is a user's manual that describes touch probe cycles for a TNC 320 control. It provides information on calibrating and using touch probes in manual and electronic handwheel modes as well as cycles for automatic workpiece inspection and datum setting. The manual covers functions including basic rotation measurement, corner and circle center measurement, and automatic compensation of workpiece misalignment.

Uploaded by

Muhammed Shahid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 165

Users Manual

Touch Probe Cycles

TNC 320

NC Software
340 551-03
340 554-03

English (en)
7/2008
TNC Model, Software and Features
TNC Model, Software and Features
This manual describes functions and features provided by TNCs as of
the following NC software numbers.

TNC model NC software number


TNC 320 340 551-03

TNC 320 programming station 340 554-03

The machine tool builder adapts the usable features of the TNC to his
machine by setting machine parameters. Some of the functions
described in this manual may therefore not be among the features
provided by the TNC on your machine tool.
TNC functions that may not be available on your machine include:
Tool measurement with the TT
Please contact your machine tool builder to become familiar with the
features of your machine.
Many machine manufacturers, as well as HEIDENHAIN, offer
programming courses for the TNCs. We recommend these courses as
an effective way of improving your programming skill and sharing
information and ideas with other TNC users.

Users Manual:
All TNC functions that have no connection with touch
probes are described in the User's Manual of the TNC 320.
Please contact HEIDENHAIN if you need a copy of this
Users Manual. ID 550 671-xx

HEIDENHAIN TNC 320 3


TNC Model, Software and Features
Software options
The TNC features various software options that can be enabled by
your machine tool builder. Each option is to be enabled separately and
contains the following respective functions:

Software option 1
Cylinder surface interpolation (Cycles 27, 28 and 39)

Feed rate in mm/min on rotary axes: M116

Tilting the machining plane (Cycle 19 and 3-D ROT soft key in the
manual operating mode)

Circle in 3 axes with tilted working plane

Feature content level (upgrade functions)


Along with software options, significant further improvements of the
TNC software are managed via the Feature Content Level upgrade
functions. Functions subject to the FCL are not available simply by
updating the software on your TNC.

All upgrade functions are available to you without


surcharge when you receive a new machine.

Upgrade functions are identified in the manual with FCL n, where n


indicates the sequential number of the feature content level.
You can purchase a code number in order to permanently enable the
FCL functions. For more information, contact your machine tool
builder or HEIDENHAIN.

Intended place of operation


The TNC complies with the limits for a Class A device in accordance
with the specifications in EN 55022, and is intended for use primarily
in industrially-zoned areas.

4
New functions with 340 55x-03
New functions with 340 55x-03
The TNC now also supports datum administration via the preset
table (see Writing the measured values from touch probe cycles in
the preset table, page 28)
The TNC now also supports the tilting of working planes on machine
tools with swivel heads and tilting tables
Cycle 240 centering
Cycle 208 helical finish milling: milling method (climb milling /
conventional up-cut milling) can now be selected
Cycle 209 tapping with chip breaking: now with rapid retraction
Touch probe cycles 400 to 405 for automatic measurement and
compensation of workpiece misalignment newly added (see Touch
Probe Cycles Users Manual)
Touch probe cycles 408 to 419 for automatic datum setting newly
added (see Touch Probe Cycles Users Manual)
Touch probe cycles 420 to 431 for automatic tool measurement
newly added (see Touch Probe Cycles Users Manual)
Touch probe cycles 480 (30) to 483 (33) for automatic tool
measurement newly added (see Touch Probe Cycles Users
Manual)
Cycle 19 WORKING PLANE and 3D-ROT soft key
Backspace dialog key

HEIDENHAIN TNC 320 5


Contents Introduction
1
Touch Probe Cycles in the Manual and
Electronic Handwheel Modes 2
Touch Probe Cycles for Automatic
Workpiece Inspection 3
Touch Probe Cycles for Automatic Tool
Measurement 4

HEIDENHAIN TNC 320 7


1 Working with Touch Probe Cycles ..... 15
1.1 General Information on Touch Probe Cycles ..... 16
Method of function ..... 16
Consider a basic rotation in the Manual Operation mode ..... 16
Touch probe cycles in the Manual and Electronic Handwheel modes ..... 16
Touch probe cycles for automatic operation ..... 17
1.2 Before You Start Working with Touch Probe Cycles ..... 19
Maximum traverse to touch point: DIST in touch probe table ..... 19
Set-up clearance to touch point: SET_UP in touch probe table ..... 19
Orient the infrared touch probe to the programmed probe direction: TRACK in touch probe table ..... 19
Touch trigger probe, probing feed rate: F in touch probe table ..... 20
Touch trigger probe, rapid traverse for positioning: FMAX ..... 20
Touch trigger probe, rapid traverse for positioning: F_PREPOS in touch probe table ..... 20
Multiple measurements ..... 20
Confidence range for multiple measurement ..... 20
Running touch probe cycles ..... 21
1.3 Touch probe table ..... 22
General ..... 22
Editing touch probe tables ..... 22
Touch probe data ..... 23

HEIDENHAIN TNC 320 9


2 Touch Probe Cycles in the Manual and Electronic Handwheel Modes ..... 25
2.1 Introduction ..... 26
Overview ..... 26
Selecting probe cycles ..... 26
Writing the measured values from touch probe cycles in datum tables ..... 27
Writing the measured values from touch probe cycles in the preset table ..... 28
2.2 Calibrating a touch trigger probe ..... 29
Introduction ..... 29
Calibrating the effective length ..... 29
Calibrating the effective radius and compensating center misalignment ..... 30
Displaying calibration values ..... 31
2.3 Compensating Workpiece Misalignment ..... 32
Introduction ..... 32
Measuring the basic rotation ..... 32
Saving the basic rotation in the preset table ..... 33
Displaying a basic rotation ..... 33
To cancel a basic rotation ..... 33
2.4 Setting the Datum with a 3-D Touch Probe ..... 34
Introduction ..... 34
Datum setting in any axis ..... 34
Corner as datum ..... 35
Circle center as datum ..... 36
2.5 Measuring Workpieces with a 3-D Touch Probe ..... 37
Introduction ..... 37
To find the coordinate of a position on an aligned workpiece: ..... 37
Finding the coordinates of a corner in the working plane ..... 37
To measure workpiece dimensions ..... 38
To find the angle between the angle reference axis and a side of the workpiece ..... 39

10
3 Touch Probe Cycles for Automatic Workpiece Inspection ..... 41
3.1 Measuring Workpiece Misalignment ..... 42
Overview ..... 42
Characteristics common to all touch probe cycles for measuring workpiece misalignment ..... 43
BASIC ROTATION (touch probe cycle 400, DIN/ISO: G400) ..... 44
BASIC ROTATION from two holes (touch probe cycle 401, DIN/ISO: G401) ..... 46
BASIC ROTATION over two studs (touch probe cycle 402, DIN/ISO: G402) ..... 49
BASIC ROTATION compensation via rotary axis (touch probe cycles 403, DIN/ISO: G403) ..... 52
Setting a BASIC ROTATION (touch probe cycle 404, DIN/ISO: G404) ..... 56
Compensating workpiece misalignment by rotating the C axis (touch probe cycle 405, DIN/ISO: G405) ..... 57
3.2 Presetting automatically ..... 61
Overview ..... 61
Characteristics common to all touch probe cycles for datum setting ..... 63
DATUM SLOT CENTER (touch probe Cycle 408, DIN/ISO: G408) ..... 65
DATUM RIDGE CENTER (touch probe cycle 409, DIN/ISO: G409) ..... 68
DATUM FROM INSIDE OF RECTANGLE (touch probe cycle 410, DIN/ISO: G410) ..... 71
DATUM FROM OUTSIDE OF RECTANGLE (touch probe cycle 411, DIN/ISO: G411) ..... 74
DATUM FROM INSIDE OF CIRCLE (touch probe cycle 412, DIN/ISO: G412) ..... 76
DATUM FROM OUTSIDE OF CIRCLE (touch probe cycle 413, DIN/ISO: G413) ..... 81
DATUM FROM OUTSIDE OF CORNER (touch probe cycle 414, DIN/ISO: G414) ..... 85
DATUM FROM INSIDE OF CORNER (touch probe cycle 415, DIN/ISO: G415) ..... 88
DATUM CIRCLE CENTER (touch probe cycle 416, DIN/ISO: G416) ..... 91
DATUM IN TOUCH PROBE AXIS (touch probe cycle 417, DIN/ISO: G417) ..... 94
Datum at center of 4 holes (touch probe cycle 418, DIN/ISO: G418) ..... 96
DATUM IN ONE AXIS (touch probe cycle 419, DIN/ISO: G419) ..... 99

HEIDENHAIN TNC 320 11


3.3 Automatic Workpiece Measurement ..... 105
Overview ..... 105
Recording the results of measurement ..... 106
Measurement results in Q parameters ..... 107
Classification of results ..... 107
Tolerance monitoring ..... 108
Tool monitoring ..... 108
Reference system for measurement results ..... 109
REFERENCE PLANE (touch probe cycle 0, DIN/ISO: G55) ..... 110
DATUM PLANE (touch probe cycle 1) ..... 111
MEASURE ANGLE (touch probe cycle 420, DIN/ISO: G420) ..... 112
MEASURE HOLE (touch probe cycle 421, DIN/ISO: G421) ..... 114
MEASURE OUTER WIDTH (touch probe cycle 422, DIN/ISO: G422) ..... 117
MEASURE INSIDE RECTANGLE (touch probe cycle 423, DIN/ISO: G423) ..... 120
MEASURE RECTANGLE FROM OUTSIDE (touch probe cycle 424, ISO: G424) ..... 123
MEASURE INSIDE WIDTH (touch probe cycle 425, DIN/ISO: G425) ..... 126
MEASURE OUTER RIDGE (touch probe cycle 426, DIN/ISO: G426) ..... 128
MEASURE COORDINATE (touch probe cycle 427, DIN/ISO: G427) ..... 130
MEAS. BOLT HOLE CIRC (touch probe cycle 430, DIN/ISO: G430) ..... 133
MEASURE PLANE (touch probe cycle 431, DIN/ISO: G431) ..... 136
3.4 Special Cycles ..... 143
Overview ..... 143
MEASURING (touch probe cycle 3) ..... 144

12
4 Touch Probe Cycles for Automatic Tool Measurement ..... 147
4.1 Tool Measurement with the TT Tool Touch Probe ..... 148
Overview ..... 148
Setting the machine parameters ..... 148
Entries in the tool table TOOL.T ..... 150
4.2 Available Cycles ..... 152
Overview ..... 152
Differences between Cycles 31 to 33 and Cycles 481 to 483 ..... 152
Calibrating the TT (touch probe cycle 30 or 480, DIN/ISO: G480) ..... 153
Measuring the tool length (touch probe cycle 31 or 481, DIN/ISO: G481) ..... 154
Measuring the tool radius (touch probe cycle 32 or 482, ISO: G482) ..... 157
Measuring the tool radius (touch probe cycle 33 or 483, ISO: G483) ..... 159

HEIDENHAIN TNC 320 13


Working with Touch
Probe Cycles
1.1 General Information on Touch Probe Cycles
1.1 General Information on Touch
Probe Cycles

The TNC must be specially prepared by the machine tool


builder for the use of a 3-D touch probe.

Method of function
Whenever the TNC executes a touch probe cycle, the 3-D touch probe
approaches with a probing feed rate determined by the machine tool
builder in a direction determined by you. The probing feed rate is
defined in a machine parameter (see Before You Start Working with
Touch Probe Cycles later in this chapter). Z
When the probe stylus contacts the workpiece, Y
the 3-D touch probe transmits a signal to the TNC: the coordinates
of the probed position are stored,
the touch probe stops moving, and X
F
returns to its starting position at rapid traverse.
If the stylus is not deflected within a defined distance, the TNC
displays an error message (distance: DIST from touch probe table). F
F MAX

Consider a basic rotation in the Manual


Operation mode
During probing the TNC considers an active basic rotation and
approaches the workpiece at an angle.

Touch probe cycles in the Manual and Electronic


Handwheel modes
In the Manual Operation and El. Handwheel modes, the TNC provides
touch probe cycles that allow you to:
Calibrate the touch probe
Compensate workpiece misalignment
Workpiece presetting

16
1.1 General Information on Touch Probe Cycles
Touch probe cycles for automatic operation
Besides the touch probe cycles, which you can use in the Manual and
Electronic Handwheel modes, the TNC provides numerous cycles for
a wide variety of applications in automatic mode:
Calibrating the touch probe (Chapter 3)
Compensating workpiece misalignment (Chapter 3)
Setting reference points (Chapter 3)
Automatic workpiece inspection (Chapter 3)
Automatic workpiece measurement (Chapter 4)
You can program the touch probe cycles in the Programming
operating mode via the TOUCH PROBE KEY. Like the most recent
fixed cycles, touch probe cycles use Q parameters with numbers of
400 and above as transfer parameters. Parameters with specific
functions that are required in several cycles always have the same
number: For example, Q260 is always assigned the clearance height,
Q261 the measuring height, etc.
To simplify programming, the TNC shows a graphic during cycle
definition. In the graphic, the parameter that needs to be entered is
highlighted.

HEIDENHAIN TNC 320 17


1.1 General Information on Touch Probe Cycles
Defining the touch probe cycle in the Programming mode of
operation
8 The soft-key row shows all available touch probe Example: NC blocks
functions divided into groups.
5 TCH PROBE 410 DATUM INSIDE RECTAN.
8 Select the desired probe cycle, for example datum
setting. Cycles for automatic tool measurement are Q321=+50 ;CENTER 1ST AXIS
available only if your machine has been prepared for Q322=+50 ;CENTER 2ND AXIS
them.
Q323=60 ;FIRST SIDE LENGTH
8 Select a cycle, e.g. datum setting at pocket. The TNC
initiates the programming dialog and asks for all Q324=20 ;SECOND SIDE LENGTH
required input values. At the same time a graphic of Q261=-5 ;MEASURING HEIGHT
the input parameters is displayed in the right screen
window. The parameter that is asked for in the dialog Q320=0 ;SET-UP CLEARANCE
prompt is highlighted. Q260=+20 ;CLEARANCE HEIGHT
8 Enter all parameters requested by the TNC and Q301=0 ;MOVE TO CLEARANCE
conclude each entry with the ENT key.
Q305=10 ;NO. IN TABLE
8 The TNC ends the dialog when all required data has Q331=+0 ;DATUM
been entered.
Q332=+0 ;DATUM
Group of measuring cycles Soft key Page Q303=+1 ;MEAS. VALUE TRANSFER
Cycles for automatic measurement and Page 42 Q381=1 ;PROBE IN TS AXIS
compensation of workpiece
misalignment Q382=+85 ;1ST CO. FOR TS AXIS
Q383=+50 ;2ND CO. FOR TS AXIS
Cycles for automatic workpiece Page 61
presetting Q384=+0 ;3RD CO. FOR TS AXIS
Q333=+0 ;DATUM
Cycles for automatic workpiece Page 105
inspection

Special cycles Page 143

Cycles for automatic tool measurement Page 148


(enabled by the machine tool builder)

18
1.2 Before You Start Working with Touch Probe Cycles
1.2 Before You Start Working with
Touch Probe Cycles
To make it possible to cover the widest possible range of applications
for measuring tasks, machine parameters enable you to determine the
behavior common to all touch probe cycles. If you run several touch
probes on your machine tool, these settings are globally valid for all
touch probes.
In addition, settings are available in the touch probe table that you can
separately define for each touch probe. These settings allow you to
adapt the behavior of each touch probe or a specific application (see
Touch probe table on page 22).

Maximum traverse to touch point: DIST in touch


probe table
If the stylus is not deflected within the path defined in DIST, the TNC
outputs an error message.

Set-up clearance to touch point: SET_UP in Z


touch probe table
Y
In SET_UP you define how far from the defined (or calculated) touch
point the TNC is to pre-position the touch probe. The smaller the value X
you enter, the more exactly must you define the touch point position.
In many touch probe cycles you can also define a setup clearance that MP6130
is added to SET_UP.

Orient the infrared touch probe to the


programmed probe direction: TRACK in touch
probe table
To increase measuring accuracy, you can use TRACK = ON to have an
infrared touch probe oriented in the programmed probe direction
before every probe process. In this way the stylus is always deflected
in the same direction.

If you change TRACK = ON, you must recalibrate the Z


touch probe.
Y
X

MP6140

HEIDENHAIN TNC 320 19


1.2 Before You Start Working with Touch Probe Cycles
Touch trigger probe, probing feed rate: F in
touch probe table
In F you define the feed rate at which the TNC is to probe the
workpiece.

Touch trigger probe, rapid traverse for Z


positioning: FMAX
Y
In FMAX you define the feed rate at which the TNC pre-positions the
touch probe, or positions it between measuring points.
X
Touch trigger probe, rapid traverse for MP6120
positioning: F_PREPOS in touch probe table MP6360

MP6150
In F_PREPOS you define whether the TNC is to position the touch MP6361
probe at the feed rate defined in FMAX or at rapid traverse.
Input value = FMAX_PROBE: Position at feed rate from FMAX
Input value = FMAX_MACHINE: Pre-position at rapid traverse

Multiple measurements
To increase measuring certainty, the TNC can run each probing
process up to three times in sequence. Define the number of
measurements in machine parameter Probe Settings >
Configuration of probe behavior > Automatic mode: Multiple
measurements with probe function. If the measured position values
differ too greatly, the TNC outputs an error message (the limit value is
defined in confidence range for multiple measurement). With
multiple measurement it is possible to detect random errors, e.g.,
from contamination.
If the measured values lie within the confidence interval, the TNC
saves the mean value of the measured positions.

Confidence range for multiple measurement


When you perform a multiple measurement, you store the value that
the measured values may vary in Probe Settings > Configuration of
probe behavior > Automatic mode: Confidence range for multiple
measurement. If the difference in the measured values exceeds the
value defined by you, the TNC outputs an error message.

20
1.2 Before You Start Working with Touch Probe Cycles
Running touch probe cycles
All touch probe cycles are DEF active. This means that the TNC runs
the cycle automatically as soon as the TNC executes the cycle
definition in the program run.

When running touch probe cycles, no cycles must be


active for conversion of coordinates (Cycle 7 DATUM,
Cycle 8 REFLECTION, Cycle 10 ROTATION, Cycles 11 and
26 SIZE FACTOR and Cycle 19 WORKING PLANE).

You can also run the touch probe cycles 408 to 419 during
an active basic rotation. Make sure, however, that the
basic rotation angle does not change when you use Cycle
7 DATUM SHIFT with datum tables after the measuring
cycle.

Touch probe cycles with a number greater than 400 position the touch
probe according to a positioning logic:
If the current coordinate of the south pole of the stylus is less than
the coordinate of the clearance height (defined in the cycle), the TNC
retracts the touch probe in the probe axis to the clearance height
and then positions it in the working plane to the first starting
position.
If the current coordinate of the south pole of the stylus is greater
than the coordinate of the clearance height, the TNC first positions
the probe in the working plane to the first starting position and then
moves it immediately to the measuring height in the touch probe
axis.

HEIDENHAIN TNC 320 21


1.3 Touch probe table
1.3 Touch probe table
General
Various data is stored in the touch probe table that defines behavior
with the probe process. If you run several touch probes on your
machine tool, you can save separate data for each touch probe.

Editing touch probe tables


To edit the touch probe table, proceed as follows:
8 Select the Manual operating mode

8 To select the touch probe functions, press the PROBE


FUNCTION soft key. The TNC displays additional soft
keys see table above.
8 Select the touch probe table: Press the TOUCH
PROBE TABLE soft key.
8 Set the EDIT soft key to ON
8 Using the arrow keys, select the desired setting
8 Perform desired changes
8 Exit the touch probe table: Press the END soft key

22
1.3 Touch probe table
Touch probe data
Abbr. Inputs Dialog
NO Number of the touch probe: Enter this number in the tool table
(column: TP_NO) under the appropriate tool number

TYPE Selection of the touch probe used Selection of touch probe?

CAL_OF1 Offset of the touch probe axis to the spindle axis for the reference TS center misalignmt. ref. axis?
axis [mm]

CAL_OF2 Offset of the touch probe axis to the spindle axis for the minor TS center misalignmt. ref. axis?
axis [mm]

CAL_ANG The TNC orients the touch probe to the orientation angle before Spindle angle for calibration?
calibration or probing (if orientation is possible)

F Feed rate at which the TNC is to probe the workpiece. Probing feed rate? [mm/min]

FMAX Feed rate at which the touch probe pre-positions, or is positioned Rapid traverse in probing cycle?
between the measuring points [mm/min]

DIST If the stylus is not deflected within the defined path, the TNC Maximum measuring path? [mm]
outputs an error message

SET_UP In SET_UP you define how far from the defined (or calculated) Set-up clearance? [mm]
touch point the TNC is to pre-position the touch probe. The
smaller the value you enter, the more exactly must you define the
touch point position. In many touch probe cycles you can also
define a setup clearance in addition that is added to Machine
Parameter SET_UP

F_PREPOS Defining speed with pre-positioning: Pre-positioning at rap. traverse?


ENT/NO ENT
Pre-positioning with speed from FMAX: FMAX_PROBE
Pre-positioning with machine rapid traverse: FMAX_MACHINE

TRACK To increase measuring accuracy, you can use TRACK = ON to have Orient touch probe cycles? Yes=ENT,
an infrared touch probe oriented in the programmed probe No=NOENT
direction before every probe process. In this way the stylus is
always deflected in the same direction:
ON: Perform spindle tracking
OFF: Do not perform spindle tracking

HEIDENHAIN TNC 320 23


Touch Probe Cycles in
the Manual and
Electronic Handwheel
Modes
2.1 Introduction
2.1 Introduction
Overview
The following touch probe cycles are available in the Manual mode:

Function Soft key Page


Calibrate the effective length Page 29

Calibrate the effective radius Page 30

Measure a basic rotation using a line Page 32

Set the datum in any axis Page 34

Set a corner as datum Page 35

Set a circle center as datum Page 36

Touch probe system data management Page 22

Selecting probe cycles


8 Select the Manual Operation or Electronic Handwheel mode of
operation.
8 To select the touch probe functions, press the TOUCH
PROBE soft key. The TNC displays additional soft
keyssee table above
8 To select the probe cycle, press the appropriate soft
key, for example PROBING ROT, and the TNC
displays the associated menu.

26
2.1 Introduction
Writing the measured values from touch probe
cycles in datum tables

Use this function if you want to save measured values in


the workpiece coordinate system. If you want to save
measured values in the fixed machine coordinate system
(REF coordinates), press the ENTER IN PRESET TABLE
soft key (see Writing the measured values from touch
probe cycles in the preset table on page 28).

With the ENTER IN DATUM TABLE soft key, the TNC can write the
values measured after any touch probe cycle into a datum table active
for machine operation:
8 Select any probe function
8 Enter the desired coordinates of the datum in the appropriate input
boxes (depends on the touch probe cycle being run).
8 Enter the datum number in the Number in table= input box.
8 Enter the name of the datum table (complete path) in the Datum
table input box.
8 Press the ENTER IN DATUM TABLE soft key. The TNC saves the
datum in the indicated datum table under the entered number.

HEIDENHAIN TNC 320 27


2.1 Introduction
Writing the measured values from touch probe
cycles in the preset table

Use this function if you want to save measured values in


the fixed machine coordinate system (REF coordinates). If
you want to save measured values in the workpiece
coordinate system, press the ENTER IN DATUM TABLE
soft key(see Writing the measured values from touch
probe cycles in datum tables on page 27).

With the ENTER IN PRESET TABLE soft key, the TNC can write the
values measured during a probe cycle in the preset table. The
measured values are then stored referenced to the machine-based
coordinate system (REF coordinates). The preset table has the name
PRESET.PR, and is saved in the directory TNC:\.
8 Select any probe function
8 Enter the desired coordinates of the datum in the appropriate input
boxes (depends on the touch probe cycle being run).
8 Enter the preset number in the Number in table: input box.
8 Press the ENTER IN PRESET TABLE soft key. The TNC saves the
datum in the preset table under the entered number.

28
2.2 Calibrating a touch trigger probe
2.2 Calibrating a touch trigger
probe
Introduction
The touch probe must be calibrated in the following cases:
Commissioning
Stylus breakage
Stylus exchange
Change in the probe feed rate
Irregularities caused, for example, when the machine heats up
Changing of touch probe axis
During calibration, the TNC finds the effective length of the stylus
and the effective radius of the ball tip. To calibrate the touch probe,
clamp a ring gauge of known height and known internal radius to the
machine table.

Calibrating the effective length

The effective length of the touch probe is always


referenced to the tool datum. The machine tool builder
usually defines the spindle tip as the tool datum.
Z
8 Set the datum in the spindle axis such that for the machine tool table
Z=0.
8 To select the calibration function for the touch probe Y
length, press the TOUCH PROBE and CAL. L soft
keys. The TNC then displays a menu window with
four input fields 5
X
8 Enter the tool axis (with the axis key)
8 Datum: Enter the height of the ring gauge
8 Effective ball radius and Effective length do not
require input
8 Move the touch probe to a position just above the ring
gauge
8 To change the traverse direction (if necessary), press
a soft key or an arrow key
8 To probe the upper surface of the ring gauge, press
the machine START button

HEIDENHAIN TNC 320 29


2.2 Calibrating a touch trigger probe
Calibrating the effective radius and
compensating center misalignment
After the touch probe is inserted, it normally needs to be aligned
exactly with the spindle axis. The misalignment is measured with this
calibration function and compensated electronically.
The TNC rotates the 3-D touch probe by 180 for calibrating the center
misalignment. The rotation is initiated by a miscellaneous function that Z
is set by the machine tool builder in Machine Parameter
mStrobeUTurn.
Proceed as follows for manual calibration: Y
8 In the Manual Operation mode, position the ball tip in the bore of the
ring gauge. X
8 To select the calibration function for the ball-tip radius
10
and the touch probe center misalignment, press the
CAL. R soft key.
8 Select the tool axis and enter the radius of the ring
gauge.
8 To probe the workpiece, press the machine START
button four times. The touch probe contacts a
position on the bore in each axis direction and
calculates the effective ball-tip radius.
8 If you want to terminate the calibration function at this
point, press the END soft key.

In order to be able to determine ball-tip center


misalignment, the TNC needs to be specially prepared by
the machine manufacturer. The machine tool manual
provides further information.

8 If you want to determine the ball-tip center


misalignment, press the 180 soft key. The TNC
rotates the touch probe by 180.
8 To probe the workpiece, press the machine START
button four times. The touch probe contacts a
position on the bore in each axis direction and
calculates the ball-tip center misalignment.

30
2.2 Calibrating a touch trigger probe
Displaying calibration values
The TNC saves the effective length and effective radius of the touch
probe in the tool table. The TNC saves the ball-tip center misalignment
in the touch-probe table, in the CAL_OF1 (main axis) and CAL_OF2
(secondary axis) columns. You can display the values on the screen by
pressing the TOUCH-PROBE TABLE soft key.

Make sure that you have activated the correct tool number
before using the touch probe, regardless of whether you
wish to run the touch probe cycle in automatic mode or
manual mode.
The determined calibration values are first calculated after
a tool call.

HEIDENHAIN TNC 320 31


2.3 Compensating Workpiece Misalignment
2.3 Compensating Workpiece
Misalignment
Introduction
The TNC compensates workpiece misalignment by computing a
basic rotation.
For this purpose, the TNC sets the rotation angle to the desired angle
with respect to the reference axis in the working plane. See figure at
right. Y Y
The TNC saves the basic rotation, depending upon tool axis, in the
columns SPA, SPB or SPC of the preset table. .

Select the probe direction perpendicular to the angle


reference axis when measuring workpiece misalignment. PA
To ensure that the basic rotation is calculated correctly
during program run, program both coordinates of the X X
working plane in the first positioning block. A B

Measuring the basic rotation


8 Select the probe function by pressing the PROBING
ROT soft key.
8 Position the ball tip at a starting position near the first
touch point.
8 Select the probe direction perpendicular to the angle
reference axis: Select the axis by soft key.
8 To probe the workpiece, press the machine START
button.
8 Position the ball tip at a starting position near the
second touch point.
8 To probe the workpiece, press the machine START
button. The TNC determines the basic rotation and
displays the angle after the dialog Rotation angle =
8 Activate basic rotation: Press the SET BASIC
ROTATION soft key
8 Terminate the probe function by pressing the END
soft key

32
2.3 Compensating Workpiece Misalignment
Saving the basic rotation in the preset table
8 After the probing process, enter the preset number in which the
TNC is to save the active basic rotation in the Number in table:
input box.
8 Press the ENTRY IN PRESET TABLE soft key to save the basic
rotation in the preset table.

Displaying a basic rotation


The angle of the basic rotation appears after ROTATION ANGLE
whenever PROBING ROT is selected. The TNC also displays the
rotation angle in the additional status display (STATUS POS.).
In the status display a symbol is shown for a basic rotation whenever
the TNC is moving the axes according to a basic rotation.

To cancel a basic rotation


8 Select the probe function by pressing the PROBING ROT soft key.
8 Enter rotation range 0, confirm with SET BASIC ROTATION soft key
8 Terminate the probe function by pressing the END soft key

HEIDENHAIN TNC 320 33


2.4 Setting the Datum with a 3-D Touch Probe
2.4 Setting the Datum with a
3-D Touch Probe
Introduction
The following functions are available for setting the datum on an
aligned workpiece:
Datum setting in any axis with PROBING POS
Defining a corner as datum with PROBING P
Setting the datum at a circle center with PROBING CC

Datum setting in any axis


8 Select the probe function by pressing the PROBING
POS soft key.
8 Move the touch probe to a starting position near the
touch point.
8 Select the probe axis and direction in which you wish Z
to set the datum, such as Z in direction Z. Selection
is made via soft keys. Y
8 To probe the workpiece, press the machine START
button.
X
8 Datum: Enter the nominal coordinate and confirm your
entry with SET DATUM, or write the value to a table
(see Writing the measured values from touch probe
cycles in datum tables, page 27, or see Writing the
measured values from touch probe cycles in the
preset table, page 28).
8 To terminate the probe function, press the END key.

34
2.4 Setting the Datum with a 3-D Touch Probe
Corner as datum
8 Select the probe function by pressing the PROBING P
soft key.
8 Position the touch probe near the first touch point on Y Y
the same side of the workpiece.
8 Select the probe direction by soft key.
8 To probe the workpiece, press the machine START
button.
8 Position the touch probe near the second touch point Y=?
P P
on the same side.
8 To probe the workpiece, press the machine START X X
button. X=?

8 Position the touch probe near the first touch point on


the second side of the workpiece.
8 Select the probe direction by soft key.
8 To probe the workpiece, press the machine START
button.
8 Position the touch probe near the second touch point
on the same side.
8 To probe the workpiece, press the machine START
button.
8 Datum: Enter both coordinates of the datum in the
menu window, confirm with the SET DATUM soft
key, or write the values to a table (see Writing the
measured values from touch probe cycles in datum
tables, page 27, or see Writing the measured
values from touch probe cycles in the preset table,
page 28).
8 To terminate the probe function, press the END key.

HEIDENHAIN TNC 320 35


2.4 Setting the Datum with a 3-D Touch Probe
Circle center as datum
With this function, you can set the datum at the center of bore holes,
circular pockets, cylinders, studs, circular islands, etc. Y
Inside circle:
The TNC automatically probes the inside wall in all four coordinate axis
directions. Y+

For incomplete circles (circular arcs) you can choose the appropriate
probing direction. X X+

8 Position the touch probe approximately in the center of the circle.


8 Select the probe function by pressing the PROBING
CC soft key Y

8 To probe the workpiece, press the machine START


button four times. The touch probe touches four X
points on the inside of the circle.
8 Datum: In the menu window, enter both coordinates
of the circle center, confirm with the SET DATUM
soft key, or write the values to a table (see Writing
the measured values from touch probe cycles in
Y
Y
datum tables, page 27, or see Writing the
measured values from touch probe cycles in the X+
preset table, page 28).
8 To terminate the probe function, press the END key.

Outside circle
8 Position the touch probe at the starting position for the first touch
point outside of the circle. X
8 Select the probe direction by soft key.
8 To probe the workpiece, press the machine START button.
8 Repeat the probing process for the remaining three points. See
Y+ X
figure at lower right.
8 Datum: Enter the coordinates of the datum and confirm your entry
with the SET DATUM soft key, or write the values to a table (see
Writing the measured values from touch probe cycles in datum
tables, page 27, or see Writing the measured values from touch
probe cycles in the preset table, page 28).
8 To terminate the probe function, press the END key.

After the probing procedure is completed, the TNC displays the


coordinates of the circle center and the circle radius PR.

36
2.5 Measuring Workpieces with a 3-D Touch Probe
2.5 Measuring Workpieces with a
3-D Touch Probe
Introduction
You can also use the touch probe in the Manual and Electronic
Handwheel operating modes to make simple measurements on the
workpiece. Numerous programmable probing cycles are available for
more complex measuring tasks (see Automatic Workpiece
Measurement on page 105). With a 3-D touch probe you can
determine:
position coordinates, and from them,
dimensions and angles on the workpiece.

To find the coordinate of a position on an aligned


workpiece:
8 Select the probe function by pressing the PROBING
POS soft key.
8 Move the touch probe to a starting position near the
touch point.
8 Select the probe direction and axis of the coordinate.
Use the corresponding soft keys for selection.
8 To probe the workpiece, press the machine START
button.
The TNC shows the coordinates of the touch point as reference point.

Finding the coordinates of a corner in the


working plane
Find the coordinates of the corner point: See Corner as datum, page
35. The TNC displays the coordinates of the probed corner as
reference point.

HEIDENHAIN TNC 320 37


2.5 Measuring Workpieces with a 3-D Touch Probe
To measure workpiece dimensions
8 Select the probe function by pressing the PROBING
POS soft key.
Z
8 Position the touch probe at a starting position near the
first touch point A.
8 Select the probing direction by soft key.
8 To probe the workpiece, press the machine START
button.
A
8 If you will need the current datum later, write down Y
the value that appears in the Datum display.
B X
8 Datum: Enter 0.
l
8 To terminate the dialog, press the END key.
8 Select the probe function by pressing the PROBING
POS soft key.
8 Position the touch probe at a starting position near the
second touch point B.
8 Select the probe direction with the soft keys: Same
axis but from the opposite direction.
8 To probe the workpiece, press the machine START
button.
The value displayed as datum is the distance between the two points
on the coordinate axis.

To return to the datum that was active before the length


measurement:
8 Select the probe function by pressing the PROBING POS soft key.
8 Probe the first touch point again.
8 Set the datum to the value that you wrote down previously.
8 To terminate the dialog, press the END key.

Measuring angles
You can use the 3-D touch probe to measure angles in the working
plane. You can measure
the angle between the angle reference axis and a workpiece side, or
the angle between two sides.
The measured angle is displayed as a value of maximum 90.

38
2.5 Measuring Workpieces with a 3-D Touch Probe
To find the angle between the angle reference
axis and a side of the workpiece
8 Select the probe function by pressing the PROBING
ROT soft key.
8 Rotation angle: If you will need the current basic
rotation later, write down the value that appears
under Rotation angle.
8 Make a basic rotation with the side of the workpiece
(see Compensating Workpiece Misalignment on
page 32).
8 Press the PROBING ROT soft key to display the angle
between the angle reference axis and the side of the
workpiece as the rotation angle.
PA
8 Cancel the basic rotation, or restore the previous basic
rotation.
8 This is done by setting the rotation angle to the value
that you previously wrote down.

To measure the angle between two workpiece sides:


Z
8 Select the probe function by pressing the PROBING ROT soft key.
8 Rotation angle: If you will need the current basic rotation later, write L?
Y
down the displayed rotation angle.
8 Make a basic rotation with the side of the workpiece (see
a?
100
Compensating Workpiece Misalignment on page 32). X
8 Probe the second side as for a basic rotation, but do not set the a?
rotation angle to zero!
8 Press the PROBING ROT soft key to display the angle PA between
the two sides as the rotation angle.
100
8 Cancel the basic rotation, or restore the previous basic rotation by 10
setting the rotation angle to the value that you wrote down
previously.

HEIDENHAIN TNC 320 39


Touch Probe Cycles for
Automatic Workpiece
Inspection

HEIDENHAIN TNC 320 41


3.1 Measuring Workpiece Misalignment
3.1 Measuring Workpiece
Misalignment
Overview
The TNC provides five cycles that enable you to measure and
compensate workpiece misalignment. In addition, you can reset a
basic rotation with Cycle 404:

Cycle Soft key Page


400 BASIC ROTATION Automatic Page 44
measurement using two points.
Compensation via basic rotation.

401 ROT OF 2 HOLES Automatic Page 46


measurement using two holes.
Compensation via basic rotation.

402 ROT OF 2 STUDS Automatic Page 49


measurement using two studs.
Compensation via basic rotation.

403 ROT IN ROTARY AXIS Automatic Page 52


measurement using two points.
Compensation by turning the table.

405 ROT IN C AXIS Automatic alignment Page 57


of an angular offset between a hole
center and the positive Y axis.
Compensation via table rotation.

404 SET BASIC ROTATION Setting any Page 56


basic rotation.

42
3.1 Measuring Workpiece Misalignment
Characteristics common to all touch probe
cycles for measuring workpiece misalignment
Y
For Cycles 400, 401 and 402 you can define through parameter Q307
Default setting for basic rotation whether the measurement
result is to be corrected by a known angle (see figure at right). This
enables you to measure the basic rotation against any straight line 1
1
of the workpiece and to establish the reference to the actual 0
direction 2.
2

HEIDENHAIN TNC 320 43


3.1 Measuring Workpiece Misalignment
BASIC ROTATION (touch probe cycle 400,
DIN/ISO: G400) Y
Touch probe cycle 400 determines a workpiece misalignment by
measuring two points, which must lie on a straight surface. With the
basic rotation function the TNC compensates the measured value
(See also \gCompensating Workpiece Misalignment on page 32).
1 The TNC positions the touch probe to the starting points at rapid
traverse (value from FMAX column) following the positioning logic
(see Running touch probe cycles on page 21) to the 2
programmed starting point 1. The TNC offsets the touch probe by
1
the safety clearance in the direction opposite the defined traverse
direction.
X
2 Then the touch probe moves to the entered measuring height and
probes the first touch point at the probing feed rate (column F).
3 Then the touch probe moves to the next starting position 2 and
probes the second position.
4 The TNC returns the touch probe to the clearance height and
performs the basic rotation.

Before programming, note the following


Before a cycle definition you must have programmed a
tool call to define the touch probe axis.
The TNC will reset an active basic rotation at the beginning
of the cycle.

44
3.1 Measuring Workpiece Misalignment
8 1st measuring point in 1st axis Q263 (absolute): +
coordinate of the first touch point in the reference Q267
axis of the working plane. Y +
Q272=2
8 1st measuring point in 2nd axis Q264 (absolute):
coordinate of the first touch point in the minor axis of
the working plane.
8 2nd measuring point in 1st axis Q265 (absolute):
Q266 MP6140
coordinate of the second touch point in the reference
Q264 +
axis of the working plane Q320
8 2nd measuring point in 2nd axis Q266 (absolute):
coordinate of the second touch point in the minor axis
of the working plane
X
8 Measuring axis Q272: Axis in the working plane in Q263 Q265 Q272=1
which the measurement is to be made:
1: Reference axis = measuring axis
2:Minor axis = measuring axis
8 Traverse direction 1 Q267: Direction in which the
probe is to approach the workpiece:
-1:Negative traverse direction
+1:Positive traverse direction
8 Measuring height in the touch probe axis Q261
(absolute): Coordinate of the ball tip center (= touch
point) in the touch probe axis in which the
measurement is to be made.
8 Setup clearance Q320 (incremental): Additional
distance between measuring point and ball tip. Q320
is added to column SET_UP.
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool
and workpiece (fixtures) can occur.
8 Traversing to clearance height Q301: Definition of
Example: NC blocks
how the touch probe is to move between the
measuring points: 5 TCH PROBE 400 BASIC ROTATION
0: Move at measuring height between measuring
points Q263=+10 ;1ST POINT 1ST AXIS
1: Move at clearance height between measuring Q264=+3.5 ;1ST POINT 2ND AXIS
points
Q265=+25 ;2ND POINT 1ST AXIS
8 Default setting for basic rotation Q307
(absolute): If the misalignment is to be measured Q266=+2 ;2ND POINT 2ND AXIS
against a straight line other than the reference axis, Q272=2 ;MEASURING AXIS
enter the angle of this reference line. The TNC will
then calculate the difference between the value Q267=+1 ;TRAVERSE DIRECTION
measured and the angle of the reference line for the Q261=-5 ;MEASURING HEIGHT
basic rotation.
Q320=0 ;SET-UP CLEARANCE
8 Preset number in table Q305: Enter the preset
number in the table in which the TNC is to save the Q260=+20 ;CLEARANCE HEIGHT
determined basic rotation. If you enter Q305=0, the Q301=0 ;MOVE TO CLEARANCE
TNC automatically places the determined basic
rotation in the ROT menu of the Manual mode of Q307=0 ;PRESET BASIC ROTATION
operation. Q305=0 ;NO. IN TABLE

HEIDENHAIN TNC 320 45


3.1 Measuring Workpiece Misalignment
BASIC ROTATION from two holes (touch probe
cycle 401, DIN/ISO: G401) Y
The touch probe cycle 401 measures the centers of two holes. Then
the TNC calculates the angle between the reference axis in the 2
working plane and the line connecting the two hole centers. With the
basic rotation function, the TNC compensates the calculated value
(See also \gCompensating Workpiece Misalignment on page 32). As 1
an alternative, you can also compensate the determined misalignment
by rotating the rotary table.
1 The TNC positions the touch probe at rapid traverse (value from
column FMAX) and with positioning logic (see Running touch
probe cycles on page 21) to the point entered as center of the first X
hole 1.
2 Then the probe moves to the entered measuring height and
probes four points to find the first hole center.
3 The touch probe returns to the clearance height and then to the
position entered as center of the second hole 2
4 The TNC moves the touch probe to the entered measuring height
and probes four points to find the second hole center.
5 Then the TNC returns the touch probe to the clearance height and
performs the basic rotation.

Before programming, note the following


Before a cycle definition you must have programmed a
tool call to define the touch probe axis.
The TNC will reset an active basic rotation at the beginning
of the cycle.
This touch probe cycle is not allowed when the tilted
working plane function is active.
If you want to compensate the misalignment by rotating
the rotary table, the TNC will automatically use the
following rotary axes:
C for tool axis Z
B for tool axis Y
A for tool axis X

46
3.1 Measuring Workpiece Misalignment
8 First hole: Center in 1st axis Q268 (absolute):
center of the first hole in the reference axis of the
working plane. Y
8 First hole: Center in 2nd axis Q269 (absolute):
center of the first hole in the minor axis of the working
plane. Q271
8 Second hole: Center in 1st axis Q270 (absolute):
center of the second hole in the reference axis of the Q269
working plane.
8 Second hole: Center in 2nd axis Q271 (absolute):
center of the second hole in the minor axis of the
working plane.
X
8 Measuring height in the touch probe axis Q261 Q268 Q270
(absolute): Coordinate of the ball tip center (= touch
point) in the touch probe axis in which the
measurement is to be made.
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool Z
and workpiece (fixtures) can occur.
8 Default setting for basic rotation Q307
(absolute): If the misalignment is to be measured
against a straight line other than the reference axis, Q260
enter the angle of this reference line. The TNC will
Q261
then calculate the difference between the value
measured and the angle of the reference line for the
basic rotation.

HEIDENHAIN TNC 320 47


Example: NC blocks
3.1 Measuring Workpiece Misalignment
8 Preset number in table Q305: Enter the preset
number in the table in which the TNC is to save the
determined basic rotation. If you enter Q305=0, the 5 TCH PROBE 401 ROT OF 2 HOLES
TNC automatically places the determined basic Q268=-37 ;1ST CENTER IN 1ST AXIS
rotation in the ROT menu of the Manual mode of
operation. The parameter has no effect if the Q269=+12 ;1ST CENTER IN 2ND AXIS
misalignment is to be compensated by a rotation of Q270=+75 ;2ND CENTER IN 1ST AXIS
the rotary table (Q402=1). In this case the
misalignment is not saved as an angular value. Q271=+20 ;2ND CENTER IN 2ND AXIS
8 Basic rotation / alignment Q402: Specify whether Q261=-5 ;MEASURING HEIGHT
the TNC should compensate misalignment with a Q260=+20 ;CLEARANCE HEIGHT
basic rotation, or by rotating the rotary table:
0: Set basic rotation Q307=0 ;PRESET BASIC ROTATION
1: Rotate the rotary table Q305=0 ;NO. IN TABLE
When you select rotary table, the TNC does not save
the measured alignment, not even when you have Q402=0 ;ALIGNMENT
defined a table line in parameter Q305. Q337=0 ;SET TO ZERO
8 Set to zero after alignment Q337: Definition of
whether the TNC should set the display of the aligned
rotary axis to zero:
0: Do not reset the display of the rotary axis to 0 after
alignment
1: Reset the display of the rotary axis to 0 after
alignment
The TNC sets the display to 0 only if you have defined
Q402=1.

48
3.1 Measuring Workpiece Misalignment
BASIC ROTATION over two studs (touch probe
cycle 402, DIN/ISO: G402) Y
The touch probe cycle 402 measures the centers of two studs. Then
the TNC calculates the angle between the reference axis in the
working plane and the line connecting the two stud centers. With the 5
basic rotation function, the TNC compensates the calculated value
(See also \gCompensating Workpiece Misalignment on page 32). As
an alternative, you can also compensate the determined misalignment 1
by rotating the rotary table.
1 Following the positioning logic (see Running touch probe cycles
on page 21), the TNC positions the touch probe in rapid traverse
(value from column FMAX) to the starting point 1 of the first stud. X
2 Then the probe moves to the entered measuring height 1 and
probes four points to find the center of the first stud. The touch
probe moves on a circular arc between the touch points, each of
which is offset by 90.
3 The touch probe returns to the clearance height and then to the
starting point for probing 5 the second stud.
4 The TNC moves the touch probe to the entered measuring height
2 and probes four points to find the center of the second stud.
5 Then the TNC returns the touch probe to the clearance height and
performs the basic rotation.

Before programming, note the following


Before a cycle definition you must have programmed a
tool call to define the touch probe axis.
The TNC will reset an active basic rotation at the beginning
of the cycle.
This touch probe cycle is not allowed when the tilted
working plane function is active.
If you want to compensate the misalignment by rotating
the rotary table, the TNC will automatically use the
following rotary axes:
C for tool axis Z
B for tool axis Y
A for tool axis X

HEIDENHAIN TNC 320 49


3.1 Measuring Workpiece Misalignment
8 First stud: Center in 1st axis (absolute): center of
the first stud in the reference axis of the working
plane. Y
8 First stud: Center in 2nd axis Q269 (absolute):
center of the first stud in the minor axis of the
working plane. Q271 Q314
8 Diameter of stud 1 Q313: Approximate diameter of
the 1st stud. Enter a value that is more likely to be too Q269 Q313
large than too small.
8 Measuring height 1 in the probe axis Q261
(absolute): Coordinate of the ball tip center (= touch
point in the touch probe axis) at which stud 1 is to be
X
measured.
Q268 Q270
8 Second stud: Center in 1st axis Q270 (absolute):
center of the second stud in the reference axis of the
working plane.
8 Second stud: Center in 2nd axis Q271 (absolute):
center of the second stud in the minor axis of the Z
working plane.
8 Diameter of stud 2 Q314: Approximate diameter of
the 2nd stud. Enter a value that is more likely to be Q261
too large than too small. Q260
Q315
8 Measuring height 2 in the probe axis Q315
(absolute): Coordinate of the ball tip center (= touch
point in the touch probe axis) at which stud 2 is to be
measured.
8 Setup clearance Q320 (incremental): Additional MP6140
distance between measuring point and ball tip. Q320 +
X
is added to column SET_UP. Q320

8 Clearance height Q260 (absolute): Coordinate in the


touch probe axis at which no collision between tool
and workpiece (fixtures) can occur.

50
Example: NC blocks

3.1 Measuring Workpiece Misalignment


8 Traversing to clearance height Q301: Definition of
how the touch probe is to move between the
measuring points: 5 TCH PROBE 402 ROT OF 2 STUDS
0: Move at measuring height between measuring Q268=-37 ;1ST CENTER IN 1ST AXIS
points
1: Move at clearance height between measuring Q269=+12 ;1ST CENTER IN 2ND AXIS
points Q313=60 ; DIAMETER OF STUD 1
8 Default setting for basic rotation Q307 Q261=-5 ;MEASURING HEIGHT 1
(absolute): If the misalignment is to be measured
Q270=+75 ;2ND CENTER IN 1ST AXIS
against a straight line other than the reference axis,
enter the angle of this reference line. The TNC will Q271=+20 ;2ND CENTER IN 2ND AXIS
then calculate the difference between the value
Q314=60 ; DIAMETER OF STUD 2
measured and the angle of the reference line for the
basic rotation. Q315=-5 ;MEASURING HEIGHT 2
8 Preset number in table Q305: Enter the preset Q320=0 ;SET-UP CLEARANCE
number in the table in which the TNC is to save the Q260=+20 ;CLEARANCE HEIGHT
determined basic rotation. If you enter Q305=0, the
TNC automatically places the determined basic Q301=0 ;MOVE TO CLEARANCE
rotation in the ROT menu of the Manual mode of Q307=0 ;PRESET BASIC ROTATION
operation. The parameter has no effect if the
misalignment is to be compensated by a rotation of Q305=0 ;NO. IN TABLE
the rotary table (Q402=1). In this case the Q402=0 ;ALIGNMENT
misalignment is not saved as an angular value.
Q337=0 ;SET TO ZERO
8 Basic rotation / alignment Q402: Specify whether
the TNC should compensate misalignment with a
basic rotation, or by rotating the rotary table:
0: Set basic rotation
1: Rotate the rotary table
When you select rotary table, the TNC does not save
the measured alignment, not even when you have
defined a table line in parameter Q305.
8 Set to zero after alignment Q337: Definition of
whether the TNC should set the display of the aligned
rotary axis to zero:
0: Do not reset the display of the rotary axis to 0 after
alignment
1: Reset the display of the rotary axis to 0 after
alignment
The TNC sets the display to 0 only if you have defined
Q402=1.

HEIDENHAIN TNC 320 51


3.1 Measuring Workpiece Misalignment
BASIC ROTATION compensation via rotary axis
(touch probe cycles 403, DIN/ISO: G403)
Y
Touch probe cycle 403 determines a workpiece misalignment by
measuring two points, which must lie on a straight surface. The TNC
compensates the determined misalignment by rotating the A, B or C
axis. The workpiece can be clamped in any position on the rotary table.
The combinations of measuring axis (Cycle Parameter Q272) and
compensation axis (Cycle Parameter Q312) listed below are
permitted. Function for tilting the working plane:
2
Active TX axis Measuring axis Compensation axis 1
Z X (Q272=1) C (Q312=6) X
Z Y (Q272=2) C (Q312=6)

Z Z (Q272=3) B (Q312=5) or A
(Q312=4)

Y Z (Q272=1) B (Q312=5)

Y X (Q272=2) C (Q312=5)

Y Y (Q272=3) C (Q312=6) or A
(Q312=4)

X Y (Q272=1) A (Q312=4)

X Z (Q272=2) A (Q312=4)

X X (Q272=3) B (Q312=5) or C
(Q312=6)

52
3.1 Measuring Workpiece Misalignment
1 The TNC positions the touch probe to the starting points at rapid
traverse (value from FMAX column) following the positioning logic
(see Running touch probe cycles on page 21) to the
programmed starting point 1. The TNC offsets the touch probe by
the safety clearance in the direction opposite the defined traverse
direction.
2 Then the touch probe moves to the entered measuring height and
probes the first touch point at the probing feed rate (column F).
3 Then the touch probe moves to the next starting position 2 and
probes the second position.
4 The TNC returns the touch probe to the clearance height and
moves the rotary axis, which was defined in the cycle, by the
measured value. Optionally you can have the display set to 0 after
alignment.

Before programming, note the following


Before a cycle definition you must have programmed a
tool call to define the touch probe axis.
Cycle 403 must not be used if the Tilt working plane
function is active.
The TNC stores the measured angle in parameter Q150.

HEIDENHAIN TNC 320 53


3.1 Measuring Workpiece Misalignment
8 1st measuring point in 1st axis Q263 (absolute): +
coordinate of the first touch point in the reference Q267
axis of the working plane. Y +
Q272=2
8 1st measuring point in 2nd axis Q264 (absolute):
coordinate of the first touch point in the minor axis of A
the working plane. B
C
8 2nd measuring point in 1st axis Q265 (absolute):
Q266 MP6140
coordinate of the second touch point in the reference
Q264 +
axis of the working plane Q320
8 2nd measuring point in 2nd axis Q266 (absolute):
coordinate of the second touch point in the minor axis
of the working plane X
8 Measuring axis Q272: Axis in which the Q263 Q265 Q272=1
measurement is to be made:
1: Reference axis = measuring axis
2: Minor axis = measuring axis
3: Touch probe axis = measuring axis
8 Traverse direction 1 Q267: Direction in which the Z
probe is to approach the workpiece:
-1: Negative traverse direction
+1: Positive traverse direction
8 Measuring height in the touch probe axis Q261 Q260
(absolute): Coordinate of the ball tip center (= touch
point) in the touch probe axis in which the
measurement is to be made. Q261
8 Setup clearance Q320 (incremental): Additional
distance between measuring point and ball tip. Q320
is added to column SET_UP. X
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool
and workpiece (fixtures) can occur.

54
Example: NC blocks

3.1 Measuring Workpiece Misalignment


8 Traversing to clearance height Q301: Definition of
how the touch probe is to move between the
measuring points: 5 TCH PROBE 403 ROT IN C-AXIS
0: Move at measuring height between measuring Q263=+0 ;1ST POINT 1ST AXIS
points
1: Move at clearance height between measuring Q264=+0 ;1ST POINT 2ND AXIS
points Q265=+20 ;2ND POINT 1ST AXIS
8 Axis for compensation motion Q312: assignment of Q266=+30 ;2ND POINT 2ND AXIS
the rotary axis in which the TNC is to compensate the
measured misalignment: Q272=1 ;MEASURING AXIS
4: Compensate misalignment with rotary axis A Q267=-1 ;TRAVERSE DIRECTION
5: Compensate misalignment with rotary axis B
6: Compensate misalignment with rotary axis C Q261=-5 ;MEASURING HEIGHT

8 Set to zero after alignment Q337: Definition of Q320=0 ;SET-UP CLEARANCE


whether the TNC should set the display of the aligned Q260=+20 ;CLEARANCE HEIGHT
rotary axis to zero:
0: Do not reset the display of the rotary axis to 0 after Q301=0 ;MOVE TO CLEARANCE
alignment Q312=6 ;COMPENSATION AXIS
1:Reset the display of the rotary axis to 0 after
alignment Q337=0 ;SET TO ZERO
Q305=1 ;NO. IN TABLE
8 Number in table Q305: Enter the number in the
preset table/datum table in which the TNC is to set Q303=+1 ;MEAS. VALUE TRANSFER
the rotary axis to zero. Only effective if Q337 is set to
Q380=+90 ;REFERENCE ANGLE
1.
8 Measured-value transfer (0, 1) Q303: Specify if the
determined basic rotation is to be saved in the datum
table or in the preset table:
0: Write the measured basic rotation as a datum shift
in the active datum table. The reference system is the
active workpiece coordinate system.
1: Write the measured basic rotation into the preset
table. The reference system is the machine
coordinate system (REF system).
8 Reference angle? (0=ref. axis) Q380: Angle with
which the TNC is to align the probed straight line.
Only effective if the rotary axis C is selected
(Q312 = 6)

HEIDENHAIN TNC 320 55


3.1 Measuring Workpiece Misalignment
Setting a BASIC ROTATION (touch probe
cycle 404, DIN/ISO: G404)
With touch probe cycle 404, you can set any basic rotation Example: NC blocks
automatically during program run. This cycle is intended primarily for
resetting a previous basic rotation. 5 TCH PROBE 404 BASIC ROTATION

8 Preset value for basic rotation: Angular value at Q307=+0 ;PRESET BASIC ROTATION
which the basic rotation is to be set.

56
3.1 Measuring Workpiece Misalignment
Compensating workpiece misalignment by
rotating the C axis (touch probe cycle 405,
DIN/ISO: G405)
With touch probe cycle 405, you can measure
Y
the angular offset between the positive Y axis of the active
coordinate system and the center of a hole, or
the angular offset between the nominal position and the actual 2
position of a hole center.
3 1
The TNC compensates the determined angular offset by rotating the 4
C axis. The workpiece can be clamped in any position on the rotary
table, but the Y coordinate of the hole must be positive. If you
measure the angular misalignment of the hole with touch probe axis Y X
(horizontal position of the hole), it may be necessary to execute the
cycle more than once because the measuring strategy causes an
inaccuracy of approx. 1% of the misalignment.
1 The TNC positions the touch probe at rapid traverse (value from
FMAX column) following the positioning logic (see Running touch
probe cycles on page 21) to the starting point 1. The TNC
calculates the probe starting points from the data in the cycle and
the safety clearance from the SET_UP column of the touch probe
table Y
2 Then the touch probe moves to the entered measuring height and
runs the first probing process at the probing feed rate (column F).
The TNC derives the probing direction automatically from the
programmed starting angle.
3 Then the touch probe moves in a circular arc either at measuring
height or at clearance height to the next starting point 2 and probes
the second touch point.
4 The TNC positions the probe to starting point 3 and then to starting X
point 4 to probe the third and fourth touch points and positions the
touch probe on the hole centers measured.
5 Finally the TNC returns the touch probe to the clearance height and
aligns the workpiece by rotating the table. The TNC rotates the
rotary table so that the hole center after compensation lies in the
direction of the positive Y axis, or on the nominal position of the
hole center both with a vertical and horizontal touch probe axis.
The measured angular misalignment is also available in parameter
Q150.

Before programming, note the following


To prevent a collision between the touch probe and the
workpiece, enter a low estimate for the nominal diameter
of the pocket (or hole).
If the dimensions of the pocket and the safety clearance
do not permit pre-positioning in the proximity of the touch
points, the TNC always starts probing from the center of
the pocket. In this case the touch probe does not return to
the clearance height between the four measuring points.
Before a cycle definition you must have programmed a
tool call to define the touch probe axis.

HEIDENHAIN TNC 320 57


3.1 Measuring Workpiece Misalignment
8 Center in 1st axis Q321 (absolute value): Center of
the hole in the reference axis of the working plane.
Y
8 Center in 2nd axis Q322 (absolute value): Center of
the hole in the minor axis of the working plane. If you
program Q322 = 0, the TNC aligns the hole center to
the positive Y axis. If you program Q322 not equal to Q247
0, then the TNC aligns the hole center to the nominal Q325

Q262
position (angle of the hole center). Q322
8 Nominal diameter Q262: Approximate diameter of the
circular pocket (or hole). Enter a value that is more
likely to be too small than too large.
8 Starting angle Q325 (absolute): Angle between the
reference axis of the working plane and the first touch
X
Q321
point.
8 Stepping angle Q247 (incremental): Angle between
two measuring points. The algebraic sign of the
stepping angle determines the direction of rotation
(negative = clockwise) in which the touch probe
moves to the next measuring point. If you wish to
probe a circular arc instead of a complete circle, then
program the stepping angle to be less than 90.

The smaller the angle, the less accurately the TNC can
calculate the circle center. Minimum input value: 5.

58
3.1 Measuring Workpiece Misalignment
8 Measuring height in the touch probe axis Q261
(absolute): Coordinate of the ball tip center (= touch Z
point) in the touch probe axis in which the
measurement is to be made.
8 Setup clearance Q320 (incremental): Additional
distance between measuring point and ball tip. Q320 Q260
is added to column SET_UP.
8 Clearance height Q260 (absolute): Coordinate in the
Q261
touch probe axis at which no collision between tool
and workpiece (fixtures) can occur.
8 Traversing to clearance height Q301: Definition of
how the touch probe is to move between the MP6140 X
+
measuring points: Q320
0: Move at measuring height between measuring
points
1: Move at clearance height between measuring
points Example: NC blocks
8 Set to zero after alignment Q337: Definition of 5 TCH PROBE 405 ROT IN C AXIS
whether the TNC should set the display of the C axis
to zero, or write the angular offset in column C of the Q321=+50 ;CENTER 1ST AXIS
datum table: Q322=+50 ;CENTER 2ND AXIS
0: Set display of C to 0
>0: Write the angular misalignment, including Q262=10 ;NOMINAL DIAMETER
algebraic sign, in the datum table. Line number = Q325=+0 ;STARTING ANGLE
value of Q337. If a C-axis shift is registered in the
datum table, the TNC adds the measured angular Q247=90 ;STEPPING ANGLE
misalignment. Q261=-5 ;MEASURING HEIGHT
Q320=0 ;SET-UP CLEARANCE
Q260=+20 ;CLEARANCE HEIGHT
Q301=0 ;MOVE TO CLEARANCE
Q337=0 ;SET TO ZERO

HEIDENHAIN TNC 320 59


3.1 Measuring Workpiece Misalignment
Example: Determining a basic rotation from two holes

Y Y

35

15

X Z
25 80

0 BEGIN PGM CYC401 MM


1 TOOL CALL 69 Z
2 TCH PROBE 401 ROT 2 HOLES
Q268=+25 ;1ST CENTER IN 1ST AXIS Center of the 1st hole: X coordinate
Q269=+15 ;1ST CENTER IN 2ND AXIS Center of the 1st hole: Y coordinate
Q270=+80 ;2ND CENTER IN 1ST AXIS Center of the 2nd hole: X coordinate
Q271=+35 ;2ND CENTER IN 2ND AXIS Center of the 2nd hole: Y coordinate
Q261=-5 ;MEASURING HEIGHT Coordinate in the touch probe axis in which the measurement is
made
Q260=+20 ;CLEARANCE HEIGHT Height in the touch probe axis at which the probe can traverse
without collision
Q307=+0 ;PRESET BASIC ROTATION Angle of the reference line
Q402=1 ;ALIGNMENT Compensate misalignment by rotating the rotary table
Q337=1 ;SET TO ZERO Set the display to zero after the alignment
3 CALL PGM 35K47 Part program call
4 END PGM CYC401 MM

60
3.2 Presetting automatically
3.2 Presetting automatically
Overview
The TNC offers twelve cycles for automatically finding reference
points and handling them as follows:
Setting the determined values directly as display values
Entering the determined values in the preset table
Entering the determined values in a datum table
Cycle Soft key Page
408 SLOT CENTER REF PT. Measuring Page 65
the inside width of a slot, and defining
the slot center as datum

409 RIDGE CENTER REF PT. Measuring Page 68


the outside width of a ridge, and defining
the ridge center as datum

410 DATUM INSIDE RECTAN. Page 71


Measuring the inside length and width of
a rectangle, and defining the center as
datum

411 DATUM OUTSIDE RECTAN. Page 74


Measuring the outside length and width
of a rectangle, and defining the center as
datum

412 DATUM INSIDE CIRCLE Measuring Page 76


any four points on the inside of a circle,
and defining the center as datum

413 DATUM OUTSIDE CIRCLE Page 81


Measuring any four points on the outside
of a circle, and defining the center as
datum

414 DATUM OUTSIDE CORNER Page 85


Measuring two lines from the outside of
the angle, and defining the intersection
as datum

415 DATUM INSIDE CORNER Page 88


Measuring two lines from within the
angle, and defining the intersection as
datum

416 DATUM CIRCLE CENTER (2nd soft- Page 91


key level) Measuring any three holes on a
bolt hole circle, and defining the bolt-hole
center as datum

HEIDENHAIN TNC 320 61


3.2 Presetting automatically
Cycle Soft key Page
417 DATUM IN TS AXIS (2nd soft-key Page 94
level) Measuring any position in the touch
probe axis and defining it as datum

418 DATUM FROM 4 HOLES (2nd soft- Page 96


key level) Measuring 4 holes crosswise
and defining the intersection of the lines
between them as datum

419 DATUM IN ONE AXIS (2nd soft-key Page 99


level) Measuring any position in any axis
and defining it as datum

62
3.2 Presetting automatically
Characteristics common to all touch probe
cycles for datum setting

You can also run the touch probe cycles 408 to 419 during
an active basic rotation.
The tilting the working plane function is not permitted in
combination with cycles 408 to 419.
When running touch probe cycles, no cycles must be
active for conversion of coordinates (Cycle 7 DATUM,
Cycle 8 REFLECTION, Cycle 10 ROTATION, Cycles 11 and
26 SIZE FACTOR and Cycle 19 WORKING PLANE).

Datum point and touch probe axis


From the touch probe axis that you have defined in the measuring
program the TNC determines the working plane for the datum:

Active touch probe axis Datum setting in


Z X and Y

Y Z and X

X Y and Z

HEIDENHAIN TNC 320 63


3.2 Presetting automatically
Saving the calculated datum
In all cycles for datum setting you can use the input parameters Q303
and Q305 to define how the TNC is to save the calculated datum:
Q305 = 0, Q303 = any value
The TNC sets the calculated datum in the display. The new datum is
active immediately.
Q305 not equal to 0, Q303 = -1

This combination can only occur if you


read in programs containing Cycles 410 to 418 created
on a TNC 4xx
read in programs containing Cycles 410 to 418 created
with an older software version on an iTNC 530
did not yourself define the measured-value transfer with
parameter Q303 in the cycle definition
In these cases the TNC outputs an error message, since
the complete handling of REF-referenced datum tables
has changed. You must define a measured-value transfer
yourself with parameter Q303.

Q305 not equal to 0, Q303 = 0


The TNC writes the calculated reference point in the active datum
table. The reference system is the active workpiece coordinate
system. The value of parameter Q305 determines the datum
number. Activate datum with Cycle 7 in the part program.
Q305 not equal to 0, Q303 = 1
The TNC writes the calculated reference point in the preset table.
The reference system is the machine coordinate system (REF
coordinates). The value of parameter Q305 determines the preset
number. Activate preset with Cycle 247 in the part program.

Measurement results in Q parameters


The TNC saves the measurement results of the respective touch
probe cycle in the globally effective Q parameters Q150 to Q160. You
can use these parameters in your program. Note the table of result
parameters that are listed with every cycle description.

64
3.2 Presetting automatically
DATUM SLOT CENTER (touch probe Cycle 408,
DIN/ISO: G408)
Y
Touch probe cycle 408 finds the center of a slot and defines its center
as datum. If desired, the TNC can also enter the coordinates into a
datum table or the preset table.
1 The TNC positions the touch probe at rapid traverse (value from 1
FMAX column) following the positioning logic (see Running touch
probe cycles on page 21) to the starting point 1. The TNC 2
calculates the probe starting points from the data in the cycle and
the safety clearance from the SET_UP column of the touch probe
table
2 Then the touch probe moves to the entered measuring height and
probes the first touch point at the probing feed rate (column F).
X
3 Then the touch probe moves either paraxially at the measuring
height or linearly at the clearance height to the next starting point
2 and probes the second touch point.
4 Finally the TNC returns the touch probe to the clearance height and
processes the determined datum depending on the cycle
parameters Q303 and Q305 (see Saving the calculated datum
on page 64) and saves the actual values in the Q parameters listed
below
5 If desired, the TNC subsequently measures the datum in the touch
probe axis in a separate probing.

Parameter number Meaning


Q166 Actual value of measured slot width

Q157 Actual value of the centerline

Before programming, note the following


To prevent a collision between touch probe and
workpiece, enter a low estimate for the slot width.
If the slot width and the safety clearance do not permit
pre-positioning in the proximity of the touch points, the
TNC always starts probing from the center of the slot. In
this case the touch probe does not return to the clearance
height between the two measuring points.
Before a cycle definition you must have programmed a
tool call to define the touch probe axis.

HEIDENHAIN TNC 320 65


3.2 Presetting automatically
8 Center in 1st axis Q321 (absolute value): Center of
the slot in the reference axis of the working plane. MP6140
Y +
8 Center in 2nd axis Q322 (absolute value): Center of Q320
the slot in the minor axis of the working plane.
8 Width of slot Q311 (incremental): Width of the slot,
regardless of its position in the working plane.

Q311
8 Measuring axis (1=1st axis / 2=2nd axis) Q272: Q322
Axis in which the measurement is to be made:
1: Reference axis = measuring axis
2: Minor axis = measuring axis
8 Measuring height in the touch probe axis Q261
(absolute): Coordinate of the ball tip center (= touch X
point) in the touch probe axis in which the Q321
measurement is to be made.
8 Setup clearance Q320 (incremental): Additional
distance between measuring point and ball tip. Q320
is added to column SET_UP.
Z
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool
and workpiece (fixtures) can occur.
8 Traversing to clearance height Q301: Definition of Q260
how the touch probe is to move between the
measuring points:
0: Move at measuring height between measuring
points Q261
1: Move at clearance height between measuring
points
8 Number in table Q305: Enter the number in the
X
datum/preset table in which the TNC is to save the
coordinates of the slot center. If you enter Q305=0,
the TNC automatically sets the display so that the
new datum is on the slot center.
8 New datum Q405 (absolute): Coordinate in the
measuring axis at which the TNC should set the
calculated slot center. Basic setting = 0

66
Example: NC blocks

3.2 Presetting automatically


8 Measured-value transfer (0, 1) Q303: Specify
whether the determined datum is to be saved in the
datum table or in the preset table: 5 TCH PROBE 408 SLOT CENTER REF PT
0: Write determined datum in the active datum table. Q321=+50 ;CENTER 1ST AXIS
The reference system is the active workpiece
coordinate system. Q322=+50 ;CENTER 2ND AXIS
1: Write determined datum in the preset table. The Q311=25 ;SLOT WIDTH
reference system is the machine coordinate system
(REF system). Q272=1 ;MEASURING AXIS
8 Probe in TS axis Q381: Specify whether the TNC Q261=-5 ;MEASURING HEIGHT
should also set the datum in the touch probe axis: Q320=0 ;SET-UP CLEARANCE
0: Do not set datum in the touch probe axis
1: Set datum in the touch probe axis Q260=+20 ;CLEARANCE HEIGHT

8 Probe TS axis: Coord. 1st axis Q382 (absolute): Q301=0 ;MOVE TO CLEARANCE
Coordinate of the probe point in the reference axis of Q305=10 ;NO. IN TABLE
the working plane at which point the reference point
is to be set in the touch probe axis. Only effective if Q405=+0 ;DATUM
Q381 = 1. Q303=+1 ;MEAS. VALUE TRANSFER
8 Probe TS axis: Coord. 2nd axis Q383 (absolute): Q381=1 ;PROBE IN TS AXIS
Coordinate of the probe point in the minor axis of the
Q382=+85 ;1ST CO. FOR TS AXIS
working plane at which point the reference point is to
be set in the touch probe axis. Only effective if Q383=+50 ;2ND CO. FOR TS AXIS
Q381 = 1.
Q384=+0 ;2RD CO. FOR TS AXIS
8 Probe TS axis: Coord. 3 rd axis Q384 (absolute): Q333=+0 ;DATUM
Coordinate of the probe point in the reference axis of
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1.
8 New datum for touch probe axis Q333 (absolute):
Coordinate in the touch probe axis at which the TNC
should set the datum. Basic setting = 0

HEIDENHAIN TNC 320 67


3.2 Presetting automatically
DATUM RIDGE CENTER (touch probe cycle 409,
DIN/ISO: G409)
Y
Touch probe cycle 409 finds the center of a ridge and defines its
center as datum. If desired, the TNC can also enter the coordinates
into a datum table or the preset table. 2
1 The TNC positions the touch probe at rapid traverse (value from
FMAX column) following the positioning logic (see Running touch
probe cycles on page 21) to the starting point 1. The TNC
calculates the probe starting points from the data in the cycle and
the safety clearance from the SET_UP column of the touch probe 1
table
2 Then the touch probe moves to the entered measuring height and
probes the first touch point at the probing feed rate (column F).
X
3 Then the touch probe moves at clearance height to the next touch
point 2 and probes the second touch point.
4 Finally the TNC returns the touch probe to the clearance height and
processes the determined datum depending on the cycle
parameters Q303 and Q305 (see Saving the calculated datum
on page 64) and saves the actual values in the Q parameters listed
below
5 If desired, the TNC subsequently measures the datum in the touch
probe axis in a separate probing.

Parameter number Meaning


Q166 Actual value of measured ridge width

Q157 Actual value of the centerline

Before programming, note the following


To prevent a collision between touch probe and
workpiece, enter a high estimate for the ridge width.
Before a cycle definition you must have programmed a
tool call to define the touch probe axis.

68
3.2 Presetting automatically
8 Center in 1st axis Q321 (absolute): Center of the
ridge in the reference axis of the working plane. MP6140
Y +
8 Center in 2nd axis Q322 (absolute): Center of the Q320
ridge in the minor axis of the working plane.
8 Width of ridge Q311 (incremental): Width of the
ridge, regardless of its position in the working plane.

Q311
8 Measuring axis (1=1st axis / 2=2nd axis) Q272: Q322
Axis in which the measurement is to be made:
1: Reference axis = measuring axis
2: Minor axis = measuring axis
8 Measuring height in the touch probe axis Q261
(absolute): Coordinate of the ball tip center (= touch X
point) in the touch probe axis in which the Q321
measurement is to be made.
8 Setup clearance Q320 (incremental): Additional
distance between measuring point and ball tip. Q320
is added to column SET_UP.
Z
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool
and workpiece (fixtures) can occur.
8 Number in table Q305: Enter the number in the Q260
datum/preset table in which the TNC is to save the
coordinates of the ridge center. If you enter Q305=0, Q261
the TNC automatically sets the display so that the
new datum is on the slot center.
8 New datum Q405 (absolute): Coordinate in the
measuring axis at which the TNC should set the
calculated ridge center. Basic setting = 0
X

HEIDENHAIN TNC 320 69


Example: NC blocks
3.2 Presetting automatically
8 Measured-value transfer (0, 1) Q303: Specify
whether the determined datum is to be saved in the
datum table or in the preset table: 5 TCH PROBE 409 SLOT CENTER STUD
0: Write determined datum in the active datum table. Q321=+50 ;CENTER 1ST AXIS
The reference system is the active workpiece
coordinate system. Q322=+50 ;CENTER 2ND AXIS
1: Write determined datum in the preset table. The Q311=25 ;RIDGE WIDTH
reference system is the machine coordinate system
(REF system). Q272=1 ;MEASURING AXIS
8 Probe in TS axis Q381: Specify whether the TNC Q261=-5 ;MEASURING HEIGHT
should also set the datum in the touch probe axis: Q320=0 ;SET-UP CLEARANCE
0: Do not set datum in the touch probe axis
1: Set datum in the touch probe axis Q260=+20 ;CLEARANCE HEIGHT

8 Probe TS axis: Coord. 1. st axis Q382 (absolute): Q305=10 ;NO. IN TABLE


Coordinate of the probe point in the reference axis of Q405=+0 ;DATUM
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1. Q303=+1 ;MEAS. VALUE TRANSFER
Q381=1 ;PROBE IN TS AXIS
8 Probe TS axis: Coord. 2. nd axis Q383 (absolute):
Coordinate of the probe point in the reference axis of Q382=+85 ;1ST CO. FOR TS AXIS
the working plane at which point the datum is to be
Q383=+50 ;2ND CO. FOR TS AXIS
set in the touch probe axis. Only effective if Q381 = 1.
Q384=+0 ;2RD CO. FOR TS AXIS
8 Probe TS axis: Coord. 3. rd axis Q384 (absolute):
Coordinate of the probe point in the reference axis of Q333=+0 ;DATUM
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1.
8 New datum for touch probe axis Q333 (absolute):
Coordinate in the touch probe axis at which the TNC
should set the datum. Basic setting = 0

70
3.2 Presetting automatically
DATUM FROM INSIDE OF RECTANGLE
(touch probe cycle 410, DIN/ISO: G410)
Y
Touch probe cycle 410 finds the center of a rectangular pocket and
defines its center as datum. If desired, the TNC can also enter the
coordinates into a datum table or the preset table.
1 The TNC positions the touch probe at rapid traverse (value from 4
FMAX column) following the positioning logic (see Running touch 1 3
probe cycles on page 21) to the starting point 1. The TNC
calculates the probe starting points from the data in the cycle and 2
the safety clearance from the SET_UP column of the touch probe
table
2 Then the touch probe moves to the entered measuring height and
probes the first touch point at the probing feed rate (column F).
X
3 Then the touch probe moves either paraxially at the measuring
height or linearly at the clearance height to the next starting point
2 and probes the second touch point.
4 The TNC positions the probe to starting point 3 and then to starting
point 4 to probe the third and fourth touch points.
5 Finally the TNC returns the touch probe to the clearance height and
processes the determined datum depending on the cycle
parameters Q303 and Q305. (see Saving the calculated datum
on page 64)
6 If desired, the TNC subsequently measures the datum in the touch
probe axis in a separate probing and saves the actual values in the
following Q parameters.

Parameter number Meaning


Q151 Actual value of center in reference axis

Q152 Actual value of center in minor axis

Q154 Actual value of length in the reference


axis

Q155 Actual value of length in the minor axis

Before programming, note the following


To prevent a collision between touch probe and
workpiece, enter low estimates for the lengths of the 1st
and 2nd sides.
If the dimensions of the pocket and the safety clearance
do not permit pre-positioning in the proximity of the touch
points, the TNC always starts probing from the center of
the pocket. In this case the touch probe does not return to
the clearance height between the four measuring points.
Before a cycle definition you must have programmed a
tool call to define the touch probe axis.

HEIDENHAIN TNC 320 71


3.2 Presetting automatically
8 Center in 1st axis Q321 (absolute value): Center of
the pocket in the reference axis of the working plane.
Y Q323
8 Center in 2nd axis Q322 (absolute value): Center of
the pocket in the minor axis of the working plane.
8 First side length Q323 (incremental value): Pocket
length, parallel to the reference axis of the working
plane.

Q324
Q322
8 Second side length Q324 (incremental value): Pocket MP6140
length, parallel to the minor axis of the working plane +
Q320
8 Measuring height in the touch probe axis Q261
(absolute): Coordinate of the ball tip center (= touch
point) in the touch probe axis in which the X
measurement is to be made. Q321

8 Setup clearance Q320 (incremental): Additional


distance between measuring point and ball tip. Q320
is added to column SET_UP.
8 Clearance height Q260 (absolute): Coordinate in the Z
touch probe axis at which no collision between tool
and workpiece (fixtures) can occur.
8 Traversing to clearance height Q301: Definition of
how the touch probe is to move between the Q260
measuring points:
0: Move at measuring height between measuring
points
1: Move at clearance height between measuring Q261
points
8 Datum number in table Q305: Enter the number in the
datum/preset table in which the TNC is to save the
X
coordinates of the pocket center. If you enter
Q305=0, the TNC automatically sets the display so
that the new datum is at the center of the pocket.
8 New datum for reference axis Q331 (absolute):
Coordinate in the reference axis at which the TNC
should set the pocket center. Basic setting = 0
8 New datum for minor axis Q332 (absolute):
Coordinate in the minor axis at which the TNC should
set the pocket center. Basic setting = 0

72
Example: NC blocks

3.2 Presetting automatically


8 Measured-value transfer (0, 1) Q303: Specify
whether the determined datum is to be saved in the
datum table or in the preset table: 5 TCH PROBE 410 DATUM INSIDE RECTAN.
-1: Do not use. Is entered by the TNC when old Q321=+50 ;CENTER 1ST AXIS
programs are read in (see Saving the calculated
datum on page 64). Q322=+50 ;CENTER 2ND AXIS
0: Write determined datum in the active datum table. Q323=60 ;FIRST SIDE LENGTH
The reference system is the active workpiece
coordinate system. Q324=20 ;SECOND SIDE LENGTH
1: Write determined datum in the preset table. The Q261=-5 ;MEASURING HEIGHT
reference system is the machine coordinate system
(REF system). Q320=0 ;SET-UP CLEARANCE

8 Probe in TS axis Q381: Specify whether the TNC Q260=+20 ;CLEARANCE HEIGHT
should also set the datum in the touch probe axis: Q301=0 ;MOVE TO CLEARANCE
0: Do not set datum in the touch probe axis
1: Set datum in the touch probe axis Q305=10 ;NO. IN TABLE

8 Probe TS axis: Coord. 1. st axis Q382 (absolute): Q331=+0 ;DATUM


Coordinate of the probe point in the reference axis of Q332=+0 ;DATUM
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1. Q303=+1 ;MEAS. VALUE TRANSFER
Q381=1 ;PROBE IN TS AXIS
8 Probe TS axis: Coord. 2. nd axis Q383 (absolute):
Coordinate of the probe point in the reference axis of Q382=+85 ;1ST CO. FOR TS AXIS
the working plane at which point the datum is to be
Q383=+50 ;2ND CO. FOR TS AXIS
set in the touch probe axis. Only effective if Q381 = 1.
Q384=+0 ;2RD CO. FOR TS AXIS
8 Probe TS axis: Coord. 3. rd axis Q384 (absolute):
Coordinate of the probe point in the reference axis of Q333=+0 ;DATUM
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1.
8 New datum for touch probe axis Q333 (absolute):
Coordinate in the touch probe axis at which the TNC
should set the datum. Basic setting = 0

HEIDENHAIN TNC 320 73


3.2 Presetting automatically
DATUM FROM OUTSIDE OF RECTANGLE
(touch probe cycle 411, DIN/ISO: G411) Y
Touch probe cycle 411 finds the center of a rectangular stud and
defines its center as datum. If desired, the TNC can also enter the 4
coordinates into a datum table or the preset table.
1 The TNC positions the touch probe at rapid traverse (value from
FMAX column) following the positioning logic (see Running touch
probe cycles on page 21) to the starting point 1. The TNC 1 3
calculates the probe starting points from the data in the cycle and
the safety clearance from the SET_UP column of the touch probe 2
table
2 Then the touch probe moves to the entered measuring height and X
probes the first touch point at the probing feed rate (column F).
3 Then the touch probe moves either paraxially at the measuring
height or linearly at the clearance height to the next starting point
2 and probes the second touch point.
4 The TNC positions the probe to starting point 3 and then to starting
point 4 to probe the third and fourth touch points.
5 Finally the TNC returns the touch probe to the clearance height and
processes the determined datum depending on the cycle
parameters Q303 and Q305. (see Saving the calculated datum
on page 64)
6 If desired, the TNC subsequently measures the datum in the touch
probe axis in a separate probing and saves the actual values in the
following Q parameters.

Parameter number Meaning


Q151 Actual value of center in reference axis

Q152 Actual value of center in minor axis

Q154 Actual value of length in the reference


axis

Q155 Actual value of length in the minor axis

Before programming, note the following


To prevent a collision between the touch probe and
workpiece, enter high estimates for the lengths of the 1st
and 2nd sides.
Before a cycle definition you must have programmed a
tool call to define the touch probe axis.

74
3.2 Presetting automatically
8 Center in 1st axis Q321 (absolute value): Center of
the stud in the reference axis of the working plane. MP6140
+
Y Q323 Q320
8 Center in 2nd axis Q322 (absolute value): Center of
the stud in the minor axis of the working plane.
8 1st side length Q323 (incremental value): Stud
length, parallel to the reference axis of the working

Q324
plane
Q322
8 2nd side length Q324 (incremental value): Stud
length, parallel to the secondary axis of the working
plane.
8 Measuring height in the touch probe axis Q261
(absolute): Coordinate of the ball tip center (= touch X
point) in the touch probe axis in which the Q321
measurement is to be made.
8 Setup clearance Q320 (incremental): Additional
distance between measuring point and ball tip. Q320
is added to column SET_UP.
Z
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool
and workpiece (fixtures) can occur.
8 Traversing to clearance height Q301: Definition of Q260
how the touch probe is to move between the
measuring points: Q261
0: Move at measuring height between measuring
points
1: Move at clearance height between measuring
points
8 Datum number in table Q305: Enter the datum
X
number in the table in which the TNC is to save the
coordinates of the pocket center. If you enter
Q305=0, the TNC automatically sets the display so
that the new datum is on the stud center.
8 New datum for reference axis Q331 (absolute):
Coordinate in the reference axis at which the TNC
should set the stud center. Basic setting = 0
8 New datum for minor axis Q332 (absolute):
Coordinate in the minor axis at which the TNC should
set the stud center. Basic setting = 0

HEIDENHAIN TNC 320 75


Example: NC blocks
3.2 Presetting automatically
8 Measured-value transfer (0, 1) Q303: Specify
whether the determined datum is to be saved in the
datum table or in the preset table: 5 TCH PROBE 411 DATUM OUTS. RECTAN.
-1: Do not use. Is entered by the TNC when old Q321=+50 ;CENTER 1ST AXIS
programs are read in (see Saving the calculated
datum on page 64). Q322=+50 ;CENTER 2ND AXIS
0: Write determined datum in the active datum table. Q323=60 ;FIRST SIDE LENGTH
The reference system is the active workpiece
coordinate system. Q324=20 ;SECOND SIDE LENGTH
1: Write determined datum in the preset table. The Q261=-5 ;MEASURING HEIGHT
reference system is the machine coordinate system
(REF system). Q320=0 ;SET-UP CLEARANCE

8 Probe in TS axis Q381: Specify whether the TNC Q260=+20 ;CLEARANCE HEIGHT
should also set the datum in the touch probe axis: Q301=0 ;MOVE TO CLEARANCE
0: Do not set datum in the touch probe axis
1: Set datum in the touch probe axis Q305=0 ;NO. IN TABLE

8 Probe TS axis: Coord. 1. st axis Q382 (absolute): Q331=+0 ;DATUM


Coordinate of the probe point in the reference axis of Q332=+0 ;DATUM
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1. Q303=+1 ;MEAS. VALUE TRANSFER
Q381=1 ;PROBE IN TS AXIS
8 Probe TS axis: Coord. 2. nd axis Q383 (absolute):
Coordinate of the probe point in the reference axis of Q382=+85 ;1ST CO. FOR TS AXIS
the working plane at which point the datum is to be
Q383=+50 ;2ND CO. FOR TS AXIS
set in the touch probe axis. Only effective if Q381 = 1.
Q384=+0 ;2RD CO. FOR TS AXIS
8 Probe TS axis: Coord. 3. rd axis Q384 (absolute):
Coordinate of the probe point in the reference axis of Q333=+0 ;DATUM
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1.
8 New datum for touch probe axis Q333 (absolute):
Coordinate in the touch probe axis at which the TNC
should set the datum. Basic setting = 0

DATUM FROM INSIDE OF CIRCLE (touch probe


cycle 412, DIN/ISO: G412)
Touch probe cycle 412 finds the center of a circular pocket (or of a
hole) and defines its center as datum. If desired, the TNC can also
enter the coordinates into a datum table or the preset table. Y
1 The TNC positions the touch probe at rapid traverse (value from
FMAX column) following the positioning logic (see Running touch
probe cycles on page 21) to the starting point 1. The TNC
calculates the probe starting points from the data in the cycle and 2
the safety clearance from the SET_UP column of the touch probe 3 1
table
2 Then the touch probe moves to the entered measuring height and 4
runs the first probing process at the probing feed rate (column F).
The TNC derives the probing direction automatically from the
programmed starting angle.
X
3 Then the touch probe moves in a circular arc either at measuring
height or at clearance height to the next starting point 2 and probes
the second touch point.

76
3.2 Presetting automatically
4 The TNC positions the probe to starting point 3 and then to starting
point 4 to probe the third and fourth touch points.
5 Finally the TNC returns the touch probe to the clearance height and
processes the determined datum depending on the cycle
parameters Q303 and Q305 (see Saving the calculated datum
on page 64) and saves the actual values in the Q parameters listed
below
6 If desired, the TNC subsequently measures the datum in the touch
probe axis in a separate probing.

Parameter number Meaning


Q151 Actual value of center in reference axis

Q152 Actual value of center in minor axis

Q153 Actual value of diameter

Before programming, note the following


To prevent a collision between the touch probe and the
workpiece, enter a low estimate for the nominal diameter
of the pocket (or hole).
If the dimensions of the pocket and the safety clearance
do not permit pre-positioning in the proximity of the touch
points, the TNC always starts probing from the center of
the pocket. In this case the touch probe does not return to
the clearance height between the four measuring points.
Before a cycle definition you must have programmed a
tool call to define the touch probe axis.

HEIDENHAIN TNC 320 77


3.2 Presetting automatically
8 Center in 1st axis Q321 (absolute value): Center of
the pocket in the reference axis of the working plane.
Y
8 Center in 2nd axis Q322 (absolute value): Center of
the pocket in the minor axis of the working plane. If
you program Q322 = 0, the TNC aligns the hole center
to the positive Y axis. If you program Q322 not equal Q247
to 0, then the TNC aligns the hole center to the Q325

Q262
nominal position. Q322
8 Nominal diameter Q262: Approximate diameter of the
circular pocket (or hole). Enter a value that is more
likely to be too small than too large.
8 Starting angle Q325 (absolute): Angle between the
reference axis of the working plane and the first touch
X
Q321
point.
8 Stepping angle Q247 (incremental): Angle between
two measuring points. The algebraic sign of the
stepping angle determines the direction of rotation
(- = clockwise) in which the touch probe moves to the Z
next measuring point. If you wish to probe a circular
arc instead of a complete circle, then program the
stepping angle to be less than 90.
Q260
The smaller the angle, the less accurately the TNC can
calculate the datum. Minimum input value: 5
Q261

MP6140 X
+
Q320

78
3.2 Presetting automatically
8 Measuring height in the touch probe axis Q261
(absolute): Coordinate of the ball tip center (= touch
point) in the touch probe axis in which the
measurement is to be made.
8 Setup clearance Q320 (incremental): Additional
distance between measuring point and ball tip. Q320
is added to column SET_UP.
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool
and workpiece (fixtures) can occur.
8 Traversing to clearance height Q301: Definition of
how the touch probe is to move between the
measuring points:
0: Move at measuring height between measuring
points
1: Move at clearance height between measuring
points
8 Datum number in table Q305: Enter the number in the
datum/preset table in which the TNC is to save the
coordinates of the pocket center. If you enter
Q305=0, the TNC automatically sets the display so
that the new datum is at the center of the pocket.

HEIDENHAIN TNC 320 79


Example: NC blocks
3.2 Presetting automatically
8 New datum for reference axis Q331 (absolute):
Coordinate in the reference axis at which the TNC
should set the pocket center. Basic setting = 0 5 TCH PROBE 412 DATUM INSIDE CIRCLE

8 New datum for minor axis Q332 (absolute): Q321=+50 ;CENTER 1ST AXIS
Coordinate in the minor axis at which the TNC should Q322=+50 ;CENTER 2ND AXIS
set the pocket center. Basic setting = 0
Q262=75 ;NOMINAL DIAMETER
8 Measured-value transfer (0, 1) Q303: Specify
whether the determined datum is to be saved in the Q325=+0 ;STARTING ANGLE
datum table or in the preset table: Q247=+60 ;STEPPING ANGLE
-1: Do not use. Is entered by the TNC when old
programs are read in (see Saving the calculated Q261=-5 ;MEASURING HEIGHT
datum on page 64). Q320=0 ;SET-UP CLEARANCE
0: Write determined datum in the active datum table.
The reference system is the active workpiece Q260=+20 ;CLEARANCE HEIGHT
coordinate system. Q301=0 ;MOVE TO CLEARANCE
1: Write determined datum in the preset table. The
reference system is the machine coordinate system Q305=12 ;NO. IN TABLE
(REF system). Q331=+0 ;DATUM
8 Probe in TS axis Q381: Specify whether the TNC Q332=+0 ;DATUM
should also set the datum in the touch probe axis:
Q303=+1 ;MEAS. VALUE TRANSFER
0: Do not set datum in the touch probe axis
1: Set datum in the touch probe axis Q381=1 ;PROBE IN TS AXIS
8 Probe TS axis: Coord. 1. st axis Q382 (absolute): Q382=+85 ;1ST CO. FOR TS AXIS
Coordinate of the probe point in the reference axis of Q383=+50 ;2ND CO. FOR TS AXIS
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1. Q384=+0 ;2RD CO. FOR TS AXIS
8 Probe TS axis: Coord. 2. nd axis Q383 (absolute): Q333=+0 ;DATUM
Coordinate of the probe point in the reference axis of Q423=4 ;NO. OF MEAS. POINTS
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1.
8 Probe TS axis: Coord. 3. rd axis Q384 (absolute):
Coordinate of the probe point in the reference axis of
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1.
8 New datum for touch probe axis Q333 (absolute):
Coordinate in the touch probe axis at which the TNC
should set the datum. Basic setting = 0
8 No. of measuring points (4/3) Q423: Specify
whether the TNC should measure the hole with 4 or
3 probing points:
4: Use 4 measuring points (standard setting)
3: Use 3 measuring points (standard setting)

80
3.2 Presetting automatically
DATUM FROM OUTSIDE OF CIRCLE
(touch probe cycle 413, DIN/ISO: G413)
Touch probe cycle 413 finds the center of a circular stud and defines
it as datum. If desired, the TNC can also enter the coordinates into a
datum table or the preset table. Y
1 The TNC positions the touch probe at rapid traverse (value from 2
FMAX column) following the positioning logic (see Running touch
probe cycles on page 21) to the starting point 1. The TNC
calculates the probe starting points from the data in the cycle and
the safety clearance from the SET_UP column of the touch probe 3 1
table
2 Then the touch probe moves to the entered measuring height and
runs the first probing process at the probing feed rate (column F).
The TNC derives the probing direction automatically from the 4
programmed starting angle.
X
3 Then the touch probe moves in a circular arc either at measuring
height or at clearance height to the next starting point 2 and probes
the second touch point.
4 The TNC positions the probe to starting point 3 and then to starting
point 4 to probe the third and fourth touch points.
5 Finally the TNC returns the touch probe to the clearance height and
processes the determined datum depending on the cycle
parameters Q303 and Q305 (see Saving the calculated datum
on page 64) and saves the actual values in the Q parameters listed
below
6 If desired, the TNC subsequently measures the datum in the touch
probe axis in a separate probing.

Parameter number Meaning


Q151 Actual value of center in reference axis

Q152 Actual value of center in minor axis

Q153 Actual value of diameter

Before programming, note the following


To prevent a collision between touch probe and
workpiece, enter a high estimate for the nominal diameter
of the stud.
Before a cycle definition you must have programmed a
tool call to define the touch probe axis.

HEIDENHAIN TNC 320 81


3.2 Presetting automatically
8 Center in 1st axis Q321 (absolute value): Center of
the stud in the reference axis of the working plane.
Y
8 Center in 2nd axis Q322 (absolute value): Center of
the stud in the minor axis of the working plane. If you
program Q322 = 0, the TNC aligns the hole center to Q247
the positive Y axis. If you program Q322 not equal to
0, then the TNC aligns the hole center to the nominal Q325

Q262
position. Q322
8 Nominal diameter Q262: Approximate diameter of the
stud. Enter a value that is more likely to be too large
than too small.
8 Starting angle Q325 (absolute): Angle between the
reference axis of the working plane and the first touch
X
Q321
point.
8 Stepping angle Q247 (incremental): Angle between
two measuring points. The algebraic sign of the
stepping angle determines the direction of rotation
(- = clockwise) in which the touch probe moves to the
next measuring point. If you wish to probe a circular Z
arc instead of a complete circle, then program the
stepping angle to be less than 90.
Q260

The smaller the angle, the less accurately the TNC can
Q261
calculate the datum. Minimum input value: 5.

MP6140 X
+
Q320

82
3.2 Presetting automatically
8 Measuring height in the touch probe axis Q261
(absolute): Coordinate of the ball tip center (= touch
point) in the touch probe axis in which the
measurement is to be made.
8 Setup clearance Q320 (incremental): Additional
distance between measuring point and ball tip. Q320
is added to column SET_UP.
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool
and workpiece (fixtures) can occur.
8 Traversing to clearance height Q301: Definition of
how the touch probe is to move between the
measuring points:
0: Move at measuring height between measuring
points
1: Move at clearance height between measuring
points
8 Datum number in table Q305: Enter the datum
number in the table in which the TNC is to save the
coordinates of the pocket center. If you enter
Q305=0, the TNC automatically sets the display so
that the new datum is on the stud center.

HEIDENHAIN TNC 320 83


Example: NC blocks
3.2 Presetting automatically
8 New datum for reference axis Q331 (absolute):
Coordinate in the reference axis at which the TNC
should set the stud center. Basic setting = 0 5 TCH PROBE 413 DATUM OUTSIDE CIRCLE

8 New datum for minor axis Q332 (absolute): Q321=+50 ;CENTER 1ST AXIS
Coordinate in the minor axis at which the TNC should Q322=+50 ;CENTER 2ND AXIS
set the stud center. Basic setting = 0
Q262=75 ;NOMINAL DIAMETER
8 Measured-value transfer (0, 1) Q303: Specify
whether the determined datum is to be saved in the Q325=+0 ;STARTING ANGLE
datum table or in the preset table: Q247=+60 ;STEPPING ANGLE
-1: Do not use. Is entered by the TNC when old
programs are read in (see Saving the calculated Q261=-5 ;MEASURING HEIGHT
datum on page 64). Q320=0 ;SET-UP CLEARANCE
0: Write determined datum in the active datum table.
The reference system is the active workpiece Q260=+20 ;CLEARANCE HEIGHT
coordinate system. Q301=0 ;MOVE TO CLEARANCE
1: Write determined datum in the preset table. The
reference system is the machine coordinate system Q305=15 ;NO. IN TABLE
(REF system). Q331=+0 ;DATUM
8 Probe in TS axis Q381: Specify whether the TNC Q332=+0 ;DATUM
should also set the datum in the touch probe axis:
Q303=+1 ;MEAS. VALUE TRANSFER
0: Do not set datum in the touch probe axis
1: Set datum in the touch probe axis Q381=1 ;PROBE IN TS AXIS
8 Probe TS axis: Coord. 1. st axis Q382 (absolute): Q382=+85 ;1ST CO. FOR TS AXIS
Coordinate of the probe point in the reference axis of Q383=+50 ;2ND CO. FOR TS AXIS
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1. Q384=+0 ;2RD CO. FOR TS AXIS
8 Probe TS axis: Coord. 2. nd axis Q383 (absolute): Q333=+0 ;DATUM
Coordinate of the probe point in the reference axis of Q423=4 ;NO. OF MEAS. POINTS
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1.
8 Probe TS axis: Coord. 3. rd axis Q384 (absolute):
Coordinate of the probe point in the reference axis of
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1.
8 New datum for touch probe axis Q333 (absolute):
Coordinate in the touch probe axis at which the TNC
should set the datum. Basic setting = 0
8 No. of measuring points (4/3) Q423: Specify
whether the TNC should measure the stud with 4 or
3 probing points:
4: Use 4 measuring points (standard setting)
3: Use 3 measuring points (standard setting)

84
3.2 Presetting automatically
DATUM FROM OUTSIDE OF CORNER
(touch probe cycle 414, DIN/ISO: G414)
Touch probe cycle 414 finds the intersection of two lines and defines
it as the datum. If desired, the TNC can also enter the intersection into
a datum table or preset table. Y
1 Following the positioning logic (see Running touch probe cycles
on page 21), the TNC positions the touch probe at rapid traverse
(value from FMAX column) to the first touch point 1 (see figure at
upper right). The TNC offsets the touch probe by the safety 4
clearance in the direction opposite the respective traverse
direction. 3
2 Then the touch probe moves to the entered measuring height and
runs the first probing process at the probing feed rate (column F).
The TNC derives the probing direction automatically from the 2
1
programmed 3rd measuring point.
X
The TNC always measures the first line in the direction of
the minor axis of the working plane.

3 Then the touch probe moves to the next starting position 2 and Y Y
probes the second position.
4 The TNC positions the probe to starting point 3 and then to starting
point 4 to probe the third and fourth touch points.
3 3
5 Finally the TNC returns the touch probe to the clearance height and A B
processes the determined datum depending on the cycle
parameters Q303 and Q305 (see Saving the calculated datum 1 2 X 2 1 X
on page 64) and saves the coordinates of the determined corner in
the Q parameters listed below Y Y
2 1 1 2
6 If desired, the TNC subsequently measures the datum in the touch C D
probe axis in a separate probing. 3 3
Parameter number Meaning
Q151 Actual value of corner in reference axis
X X

Q152 Actual value of corner in minor axis

Before programming, note the following


By defining the positions of the measuring points 1 and 3
you also determine the corner at which the TNC sets the
datum (see figure at right and table at lower right).
Before a cycle definition you must have programmed a
tool call to define the touch probe axis.

HEIDENHAIN TNC 320 85


3.2 Presetting automatically
Corner X coordinate Y coordinate
A Point 1 greater than point Point 1 less than point 3
3

B Point 1 less than point 3 Point 1 less than point 3

C Point 1 less than point 3 Point 1 greater than point 3

D Point 1 greater than Point 1 greater than point 3


point 3

8 1st measuring point in 1st axis Q263 (absolute):


coordinate of the first touch point in the reference
axis of the working plane. Y
8 1st measuring point in 2nd axis Q264 (absolute):
Q296

Q327
coordinate of the first touch point in the minor axis of
the working plane.
8 Spacing in 1st axis Q326 (incremental): Distance
between the first and second measuring points in the Q297 Q264
reference axis of the working plane.
MP6140
8 3rd measuring point in 1st axis Q296 (absolute): +
coordinate of the third touch point in the reference Q320
axis of the working plane. Q326
X
8 3rd measuring point in 2nd axis Q297 (absolute): Q263
coordinate of the third touch point in the minor axis of
the working plane.
8 Spacing in 2nd axis Q327 (incremental): Distance
between third and fourth measuring points in the
minor axis of the working plane. Y
8 Measuring height in the touch probe axis Q261
(absolute): Coordinate of the ball tip center (= touch
Q260
point) in the touch probe axis in which the
measurement is to be made.
Q261
8 Setup clearance Q320 (incremental): Additional
distance between measuring point and ball tip. Q320
is added to column SET_UP.
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool
and workpiece (fixtures) can occur.
X

8 Traversing to clearance height Q301: Definition of


how the touch probe is to move between the
measuring points:
0: Move at measuring height between measuring
points
1: Move at clearance height between measuring
points

86
3.2 Presetting automatically
8 Execute basic rotation Q304: Definition of whether
the TNC should compensate workpiece misalignment
with a basic rotation:
0: No basic rotation
1: Basic rotation
8 Datum number in table Q305: Enter the datum Example: NC blocks
number in the datum or preset table in which the TNC
is to save the coordinates of the corner. If you enter 5 TCH PROBE 414 DATUM INSIDE CORNER
Q305=0, the TNC automatically sets the display so Q263=+37 ;1ST POINT 1ST AXIS
that the new datum is on the corner.
Q264=+7 ;1ST POINT 2ND AXIS
8 New datum for reference axis Q331 (absolute):
Coordinate in the reference axis at which the TNC Q326=50 ;SPACING IN 1ST AXIS
should set the corner. Basic setting = 0 Q296=+95 ;3RD POINT 1ST AXIS
8 New datum for minor axis Q332 (absolute): Q297=+25 ;3RD POINT 2ND AXIS
Coordinate in the minor axis at which the TNC should
set the calculated corner. Basic setting = 0 Q327=45 ;SPACING IN 2ND AXIS
Q261=-5 ;MEASURING HEIGHT
8 Measured-value transfer (0, 1) Q303: Specify
whether the determined datum is to be saved in the Q320=0 ;SET-UP CLEARANCE
datum table or in the preset table:
Q260=+20 ;CLEARANCE HEIGHT
-1: Do not use. Is entered by the TNC when old
programs are read in (see Saving the calculated Q301=0 ;MOVE TO CLEARANCE
datum on page 64).
Q304=0 ;BASIC ROTATION
0: Write determined datum in the active datum table.
The reference system is the active workpiece Q305=7 ;NO. IN TABLE
coordinate system.
Q331=+0 ;DATUM
1: Write determined datum in the preset table. The
reference system is the machine coordinate system Q332=+0 ;DATUM
(REF system).
Q303=+1 ;MEAS. VALUE TRANSFER
8 Probe in TS axis Q381: Specify whether the TNC Q381=1 ;PROBE IN TS AXIS
should also set the datum in the touch probe axis:
0: Do not set datum in the touch probe axis Q382=+85 ;1ST CO. FOR TS AXIS
1: Set datum in the touch probe axis Q383=+50 ;2ND CO. FOR TS AXIS
8 Probe TS axis: Coord. 1. st axis Q382 (absolute): Q384=+0 ;2RD CO. FOR TS AXIS
Coordinate of the probe point in the reference axis of
the working plane at which point the datum is to be Q333=+0 ;DATUM
set in the touch probe axis. Only effective if Q381 = 1.
8 Probe TS axis: Coord. 2. nd axis Q383 (absolute):
Coordinate of the probe point in the reference axis of
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1.
8 Probe TS axis: Coord. 3. rd axis Q384 (absolute):
Coordinate of the probe point in the reference axis of
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1.
8 New datum for touch probe axis Q333 (absolute):
Coordinate in the touch probe axis at which the TNC
should set the datum. Basic setting = 0

HEIDENHAIN TNC 320 87


3.2 Presetting automatically
DATUM FROM INSIDE OF CORNER (touch probe
cycle 415, DIN/ISO: G415)
Touch probe cycle 415 finds the intersection of two lines and defines
it as the datum. If desired, the TNC can also enter the intersection into
a datum table or preset table. Y
1 Following the positioning logic (see Running touch probe cycles
on page 21), the TNC positions the touch probe at rapid traverse
(value from FMAX column) to the first touch point 1 (see figure at 4
upper right) that you have defined in the cycle. The TNC offsets the
touch probe by the safety clearance in the direction opposite the
respective traverse direction. 3
2 Then the touch probe moves to the entered measuring height and 1 2
runs the first probing process at the probing feed rate (column F).
The probing direction is derived from the number by which you
identify the corner.
X
The TNC always measures the first line in the direction of
the minor axis of the working plane.

3 Then the touch probe moves to the next starting position 2 and
probes the second position.
4 The TNC positions the probe to starting point 3 and then to starting
point 4 to probe the third and fourth touch points.
5 Finally the TNC returns the touch probe to the clearance height and
processes the determined datum depending on the cycle
parameters Q303 and Q305 (see Saving the calculated datum
on page 64) and saves the coordinates of the determined corner in
the Q parameters listed below
6 If desired, the TNC subsequently measures the datum in the touch
probe axis in a separate probing.

Parameter number Meaning


Q151 Actual value of corner in reference axis

Q152 Actual value of corner in minor axis

Before programming, note the following


Before a cycle definition you must have programmed a
tool call to define the touch probe axis.

88
3.2 Presetting automatically
8 1st measuring point in 1st axis Q263 (absolute):
coordinate of the first touch point in the reference MP6140
Y +
axis of the working plane. Q320

8 1st measuring point in 2nd axis Q264 (absolute):


coordinate of the first touch point in the minor axis of
the working plane. Q308=4 Q308=3
8 Spacing in 1st axis Q326 (incremental): Distance

Q327
between the first and second measuring points in the
reference axis of the working plane. Q308=1 Q308=2
8 Spacing in 2nd axis Q327 (incremental): Distance
Q264
between third and fourth measuring points in the
minor axis of the working plane. Q326
X
8 Corner Q308: Number identifying the corner which Q263
the TNC is to set as datum.
8 Measuring height in the touch probe axis Q261
(absolute): Coordinate of the ball tip center (= touch
point) in the touch probe axis in which the
measurement is to be made. Z
8 Setup clearance Q320 (incremental): Additional
distance between measuring point and ball tip. Q320
is added to column SET_UP.
Q260
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool
and workpiece (fixtures) can occur.
Q261
8 Traversing to clearance height Q301: Definition of
how the touch probe is to move between the
measuring points:
0: Move at measuring height between measuring
X
points
1: Move at clearance height between measuring
points
8 Execute basic rotation Q304: Definition of whether
the TNC should compensate workpiece misalignment
with a basic rotation:
0: No basic rotation
1: Basic rotation

HEIDENHAIN TNC 320 89


Example: NC blocks
3.2 Presetting automatically
8 Datum number in table Q305: Enter the datum
number in the datum or preset table in which the TNC
is to save the coordinates of the corner. If you enter 5 TCH PROBE 415 DATUM OUTSIDE CORNER
Q305=0, the TNC automatically sets the display so Q263=+37 ;1ST POINT 1ST AXIS
that the new datum is on the corner.
Q264=+7 ;1ST POINT 2ND AXIS
8 New datum for reference axis Q331 (absolute):
Coordinate in the reference axis at which the TNC Q326=50 ;SPACING IN 1ST AXIS
should set the corner. Basic setting = 0 Q296=+95 ;3RD POINT 1ST AXIS
8 New datum for minor axis Q332 (absolute): Q297=+25 ;3RD POINT 2ND AXIS
Coordinate in the minor axis at which the TNC should
set the calculated corner. Basic setting = 0 Q327=45 ;SPACING IN 2ND AXIS
Q261=-5 ;MEASURING HEIGHT
8 Measured-value transfer (0, 1) Q303: Specify
whether the determined datum is to be saved in the Q320=0 ;SET-UP CLEARANCE
datum table or in the preset table:
Q260=+20 ;CLEARANCE HEIGHT
-1: Do not use. Is entered by the TNC when old
programs are read in (see Saving the calculated Q301=0 ;MOVE TO CLEARANCE
datum on page 64).
Q304=0 ;BASIC ROTATION
0: Write determined datum in the active datum table.
The reference system is the active workpiece Q305=7 ;NO. IN TABLE
coordinate system.
Q331=+0 ;DATUM
1: Write determined datum in the preset table. The
reference system is the machine coordinate system Q332=+0 ;DATUM
(REF system).
Q303=+1 ;MEAS. VALUE TRANSFER
8 Probe in TS axis Q381: Specify whether the TNC Q381=1 ;PROBE IN TS AXIS
should also set the datum in the touch probe axis:
0: Do not set datum in the touch probe axis Q382=+85 ;1ST CO. FOR TS AXIS
1: Set datum in the touch probe axis Q383=+50 ;2ND CO. FOR TS AXIS
8 Probe TS axis: Coord. 1. st axis Q382 (absolute): Q384=+0 ;2RD CO. FOR TS AXIS
Coordinate of the probe point in the reference axis of
the working plane at which point the datum is to be Q333=+0 ;DATUM
set in the touch probe axis. Only effective if Q381 = 1.
8 Probe TS axis: Coord. 2. nd axis Q383 (absolute):
Coordinate of the probe point in the reference axis of
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1.
8 Probe TS axis: Coord. 3. rd axis Q384 (absolute):
Coordinate of the probe point in the reference axis of
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1.
8 New datum for touch probe axis Q333 (absolute):
Coordinate in the touch probe axis at which the TNC
should set the datum. Basic setting = 0

90
3.2 Presetting automatically
DATUM CIRCLE CENTER (touch probe cycle 416,
DIN/ISO: G416)
Touch probe cycle 416 finds the center of a bolt hole circle and defines
its center as datum. If desired, the TNC can also enter the coordinates
into a datum table or the preset table. Y
1 The TNC positions the touch probe at rapid traverse (value from
1
column FMAX) and with positioning logic (see Running touch
probe cycles on page 21) to the point entered as center of the first
hole 1. 2
2 Then the probe moves to the entered measuring height and
probes four points to find the first hole center.
3 The touch probe returns to the clearance height and then to the
position entered as center of the second hole 2. 3
4 The TNC moves the touch probe to the entered measuring height
and probes four points to find the second hole center. X
5 The touch probe returns to the clearance height and then to the
position entered as center of the third hole 3.
6 The TNC moves the touch probe to the entered measuring height
and probes four points to find the third hole center.
7 Finally the TNC returns the touch probe to the clearance height and
processes the determined datum depending on the cycle
parameters Q303 and Q305 (see Saving the calculated datum
on page 64) and saves the actual values in the Q parameters listed
below
8 If desired, the TNC subsequently measures the datum in the touch
probe axis in a separate probing.

Parameter number Meaning


Q151 Actual value of center in reference axis

Q152 Actual value of center in minor axis

Q153 Actual value of bolt hole circle diameter

Before programming, note the following


Before a cycle definition you must have programmed a
tool call to define the touch probe axis.

HEIDENHAIN TNC 320 91


3.2 Presetting automatically
8 Center of 1st axis Q273 (absolute): Bolt hole circle
center (nominal value) in the reference axis of the
working plane. Y
8 Center in 2nd axis Q274 (absolute): Bolt hole circle Q291
center (nominal value) in the minor axis of the working
plane.

Q292
8 Nominal diameter Q262: Enter the approximate bolt 62
Q274
hole circle diameter. The smaller the hole diameter, Q2
the more exact the nominal diameter must be.
8 Angle of 1st hole Q291 (absolute): Polar coordinate
angle of the first hole center in the working plane.
Q293
8 Angle of 2nd hole Q292 (absolute): Polar coordinate X
angle of the second hole center in the working plane. Q273

8 Angle of 3rd hole Q293 (absolute): Polar coordinate


angle of the third hole center in the working plane.
8 Measuring height in the touch probe axis Q261
(absolute): Coordinate of the ball tip center (= touch Y
point) in the touch probe axis in which the
measurement is to be made.
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool
and workpiece (fixtures) can occur.
8 Datum number in table Q305: Enter the number in the
datum or preset table in which the TNC is to save the
coordinates of the bolt-hole circle center. If you enter
Q305=0, the TNC automatically sets the display so
that the new datum is on the bolt hole center.
X
8 New datum for reference axis Q331 (absolute):
Coordinate in the reference axis at which the TNC
should set the bolt-hole center.
Basic setting = 0
8 New datum for minor axis Q332 (absolute):
Coordinate in the minor axis at which the TNC should
set the bolt-hole center.
Basic setting = 0

92
Example: NC blocks

3.2 Presetting automatically


8 Measured-value transfer (0, 1) Q303: Specify
whether the determined datum is to be saved in the
datum table or in the preset table: 5 TCH PROBE 416 DATUM CIRCLE CENTER
-1: Do not use. Is entered by the TNC when old Q273=+50 ;CENTER 1ST AXIS
programs are read in (see Saving the calculated
datum on page 64). Q274=+50 ;CENTER 2ND AXIS
0: Write determined datum in the active datum table. Q262=90 ;NOMINAL DIAMETER
The reference system is the active workpiece
coordinate system. Q291=+34 ;ANGLE OF 1ST HOLE
1: Write determined datum in the preset table. The Q292=+70 ;ANGLE OF 2ND HOLE
reference system is the machine coordinate system
(REF system). Q293=+210 ;ANGLE OF 3RD HOLE

8 Probe in TS axis Q381: Specify whether the TNC Q261=-5 ;MEASURING HEIGHT
should also set the datum in the touch probe axis: Q260=+20 ;CLEARANCE HEIGHT
0: Do not set datum in the touch probe axis
1: Set datum in the touch probe axis Q305=12 ;NO. IN TABLE

8 Probe TS axis: Coord. 1. st axis Q382 (absolute): Q331=+0 ;DATUM


Coordinate of the probe point in the reference axis of Q332=+0 ;DATUM
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1. Q303=+1 ;MEAS. VALUE TRANSFER
Q381=1 ;PROBE IN TS AXIS
8 Probe TS axis: Coord. 2. nd axis Q383 (absolute):
Coordinate of the probe point in the reference axis of Q382=+85 ;1ST CO. FOR TS AXIS
the working plane at which point the datum is to be
Q383=+50 ;2ND CO. FOR TS AXIS
set in the touch probe axis. Only effective if Q381 = 1.
Q384=+0 ;3RD CO. FOR TS AXIS
8 Probe TS axis: Coord. 3. rd axis Q384 (absolute):
Coordinate of the probe point in the reference axis of Q333=+0 ;DATUM
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1.
8 New datum for touch probe axis Q333 (absolute):
Coordinate in the touch probe axis at which the TNC
should set the datum. Basic setting = 0

HEIDENHAIN TNC 320 93


3.2 Presetting automatically
DATUM IN TOUCH PROBE AXIS (touch probe
cycle 417, DIN/ISO: G417)
Touch probe cycle 417 measures any coordinate in the touch probe
axis and defines it as datum. If desired, the TNC can also enter the
measured coordinate in a datum table or preset table.
Y
1 The TNC positions the touch probe to the starting points at rapid
traverse (value from FMAX column) following the positioning logic
(see Running touch probe cycles on page 21) to the
programmed starting point 1. The TNC offsets the touch probe by
the safety clearance in the positive direction of the touch probe 1
axis. Q264
2 Then the touch probe moves in its own axis to the coordinate
entered as starting point 1 and measures the actual position with
a simple probing movement.
3 Finally the TNC returns the touch probe to the clearance height and
processes the determined datum depending on the cycle X
parameters Q303 and Q305 (see Saving the calculated datum Q263
on page 64) and saves the actual values in the Q parameters listed
below

Parameter number Meaning


Z
Q160 Actual value of measured point

MP6140
Q320
+
Before programming, note the following
1 Q260
Before a cycle definition you must have programmed a Q294
tool call to define the touch probe axis. The TNC then sets
the datum in this axis.

8 1st measuring point in 1st axis Q263 (absolute):


coordinate of the first touch point in the reference
axis of the working plane.
X

8 1st measuring point in 2nd axis Q264 (absolute):


coordinate of the first touch point in the minor axis of
the working plane.
8 1st measuring point in 3rd axis Q294 (absolute):
coordinate of the first touch point in the touch probe
axis.
8 Setup clearance Q320 (incremental): Additional
distance between measuring point and ball tip. Q320
is added to column SET_UP.
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool
and workpiece (fixtures) can occur.

94
Example: NC blocks

3.2 Presetting automatically


8 Datum number in table Q305: Enter the number in the
datum or preset table in which the TNC is to save the
coordinate. If you enter Q305=0, the TNC 5 TCH PROBE 417 DATUM IN TS AXIS
automatically sets the display so that the new datum Q263=+25 ;1ST POINT 1ST AXIS
is on the probed surface.
Q264=+25 ;1ST POINT 2ND AXIS
8 New datum for touch probe axis Q333 (absolute):
Coordinate in the touch probe axis at which the TNC Q294=+25 ;1ST POINT 3RD AXIS
should set the datum. Basic setting = 0 Q320=0 ;SET-UP CLEARANCE
8 Measured-value transfer (0, 1) Q303: Specify Q260=+50 ;CLEARANCE HEIGHT
whether the determined datum is to be saved in the
datum table or in the preset table: Q305=0 ;NO. IN TABLE
-1: Do not use. Is entered by the TNC when old Q333=+0 ;DATUM
programs are read in (see Saving the calculated
datum on page 64). Q303=+1 ;MEAS. VALUE TRANSFER
0: Write determined datum in the active datum table.
The reference system is the active workpiece
coordinate system.
1: Write determined datum in the preset table. The
reference system is the machine coordinate system
(REF system).

HEIDENHAIN TNC 320 95


3.2 Presetting automatically
Datum at center of 4 holes (touch probe cycle
418, DIN/ISO: G418)
Touch probe cycle 418 calculates the intersection of the lines
connecting opposite corners of a rectangle defined by four hole Y
centers. If desired, the TNC can also enter the intersection into a
datum table or preset table.
1 The TNC positions the touch probe at rapid traverse (value from
column FMAX) and with positioning logic (see Running touch 4 3
probe cycles on page 21) to the center of the first hole 1.
2 Then the probe moves to the entered measuring height and
probes four points to find the first hole center.
3 The touch probe returns to the clearance height and then to the 1 2
position entered as center of the second hole 2.
4 The TNC moves the touch probe to the entered measuring height
and probes four points to find the second hole center. X
5 The TNC repeats steps 3 and 4 for the holes 3 and 4.
6 Finally the TNC returns the touch probe to the clearance height and
processes the determined datum depending on the cycle
parameters Q303 and Q305 (see Saving the calculated datum
on page 64). The TNC calculates the datum as the intersection of
the lines connecting the centers of holes 1/3 and 2/4 and saves
the actual values in the Q parameters listed below.
7 If desired, the TNC subsequently measures the datum in the touch
probe axis in a separate probing.
Parameter number Meaning
Q151 Actual value of intersection point in
reference axis

Q152 Actual value of intersection point in


minor axis

Before programming, note the following


Before a cycle definition you must have programmed a
tool call to define the touch probe axis.

96
3.2 Presetting automatically
8 First center in 1st axis Q268 (absolute): Center of
the 1st hole in the reference axis of the working Y Q318 Q316
plane.
8 First center in 2nd axis Q269 (absolute): Center of
the 1st hole in the minor axis of the working plane. Q319 Q317
8 Second center in 1st axis Q270 (absolute): Center
of the 2nd hole in the reference axis of the working
plane.
8 Second center in 2nd axis Q271 (absolute): Center
of the 2nd hole in the minor axis of the working Q269 Q271
plane.
8 Third center in 1st axis Q316 (absolute): Center of X
the 3rd hole in the reference axis of the working Q268 Q270
plane.
8 Third center in 2nd axis Q317 (absolute): Center of
the 3rd hole in the minor axis of the working plane.
8 Fourth center in 1st axis Q318 (absolute): Center
of the 4th hole in the reference axis of the working Z
plane.
8 Fourth center in 2nd axis Q319 (absolute): Center
of the 4th hole in the minor axis of the working plane.
Q260
8 Measuring height in the touch probe axis Q261
Q261
(absolute): Coordinate of the ball tip center (= touch
point) in the touch probe axis in which the
measurement is to be made.
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool X
and workpiece (fixtures) can occur.

HEIDENHAIN TNC 320 97


Example: NC blocks
3.2 Presetting automatically
8 Datum number in table Q305: Enter the number in the
datum or preset table in which the TNC is to save the
coordinates of the line intersection. If you enter 5 TCH PROBE 418 DATUM FROM 4 HOLES
Q305=0, the TNC automatically sets the display so Q268=+20 ;1ST CENTER IN 1ST AXIS
that the new datum is at the intersection of the
connecting lines. Q269=+25 ;1ST CENTER IN 2ND AXIS

8 New datum for reference axis Q331 (absolute): Q270=+150 ;2ND CENTER IN 1ST AXIS
Coordinate in the reference axis at which the TNC Q271=+25 ;2ND CENTER IN 2ND AXIS
should set the calculated intersection of the
connecting lines. Basic setting = 0 Q316=+150 ;3RD CENTER IN 1ST AXIS

8 New datum for minor axis Q332 (absolute): Q317=+85 ;3RD CENTER IN 2ND AXIS
Coordinate in the minor axis at which the TNC should Q318=+22 ;4TH CENTER IN 1ST AXIS
set the calculated intersection of the connecting
lines. Basic setting = 0 Q319=+80 ;4TH CENTER IN 2ND AXIS
Q261=-5 ;MEASURING HEIGHT
8 Measured-value transfer (0, 1) Q303: Specify
whether the determined datum is to be saved in the Q260=+10 ;CLEARANCE HEIGHT
datum table or in the preset table:
Q305=12 ;NO. IN TABLE
-1: Do not use. Is entered by the TNC when old
programs are read in (see Saving the calculated Q331=+0 ;DATUM
datum on page 64).
Q332=+0 ;DATUM
0: Write determined datum in the active datum table.
The reference system is the active workpiece Q303=+1 ;MEAS. VALUE TRANSFER
coordinate system.
Q381=1 ;PROBE IN TS AXIS
1: Write determined datum in the preset table. The
reference system is the machine coordinate system Q382=+85 ;1ST CO. FOR TS AXIS
(REF system).
Q383=+50 ;2ND CO. FOR TS AXIS
8 Probe in TS axis Q381: Specify whether the TNC Q384=+0 ;3RD CO. FOR TS AXIS
should also set the datum in the touch probe axis:
0: Do not set datum in the touch probe axis Q333=+0 ;DATUM
1: Set datum in the touch probe axis
8 Probe TS axis: Coord. 1. st axis Q382 (absolute):
Coordinate of the probe point in the reference axis of
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1.
8 Probe TS axis: Coord. 2. nd axis Q383 (absolute):
Coordinate of the probe point in the reference axis of
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1.
8 Probe TS axis: Coord. 3. rd axis Q384 (absolute):
Coordinate of the probe point in the reference axis of
the working plane at which point the datum is to be
set in the touch probe axis. Only effective if Q381 = 1.
8 New datum for touch probe axis Q333 (absolute):
Coordinate in the touch probe axis at which the TNC
should set the datum. Basic setting = 0

98
3.2 Presetting automatically
DATUM IN ONE AXIS (touch probe cycle 419,
DIN/ISO: G419)
Touch probe cycle 419 measures any coordinate in any axis and +
MP6140 + Q320
defines it as datum. If desired, the TNC can also enter the measured Q267
coordinate in a datum table or preset table.
Y +
1 The TNC positions the touch probe to the starting points at rapid Q272=2
traverse (value from FMAX column) following the positioning logic
(see Running touch probe cycles on page 21) to the
programmed starting point 1. The TNC offsets the touch probe by
the safety clearance in the direction opposite the programmed 1
probing direction. Q264
2 Then the touch probe moves to the programmed measuring height
and measures the actual position with a simple probing
movement.
3 Finally the TNC returns the touch probe to the clearance height and
processes the determined datum depending on the cycle X
parameters Q303 and Q305. (see Saving the calculated datum Q263 Q272=1
on page 64)

Before programming, note the following


+
Before a cycle definition you must have programmed a Z
tool call to define the touch probe axis. Q272=3 Q267

8 1st measuring point in 1st axis Q263 (absolute):


coordinate of the first touch point in the reference Q260
axis of the working plane. Q261 1

8 1st measuring point in 2nd axis Q264 (absolute):


coordinate of the first touch point in the minor axis of
the working plane.
8 Measuring height in the touch probe axis Q261
(absolute): Coordinate of the ball tip center (= touch X
point) in the touch probe axis in which the Q272=1
measurement is to be made.
8 Setup clearance Q320 (incremental): Additional
distance between measuring point and ball tip. Q320
is added to column SET_UP.
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool
and workpiece (fixtures) can occur.

HEIDENHAIN TNC 320 99


Example: NC blocks
3.2 Presetting automatically
8 Measuring axis (1...3: 1=reference axis) Q272:
Axis in which the measurement is to be made:
1: Reference axis = measuring axis 5 TCH PROBE 419 DATUM IN ONE AXIS
2: Minor axis = measuring axis Q263=+25 ;1ST POINT 1ST AXIS
3: Touch probe axis = measuring axis
Q264=+25 ;1ST POINT 2ND AXIS
Axis assignment Q261=+25 ;MEASURING HEIGHT
Corresponding Corresponding Q320=0 ;SET-UP CLEARANCE
Active touch probe
reference axis: minor axis:
axis: Q272 = 3 Q260=+50 ;CLEARANCE HEIGHT
Q272 = 1 Q272 = 2
Z X Y Q272=+1 ;MEASURING AXIS
Q267=+1 ;TRAVERSE DIRECTION
Y Z X
Q305=0 ;NO. IN TABLE
X Y Z
Q333=+0 ;DATUM

8 Traverse direction Q267: Direction in which the Q303=+1 ;MEAS. VALUE TRANSFER
probe is to approach the workpiece:
-1: Negative traverse direction
+1: Positive traverse direction
8 Datum number in table Q305: Enter the number in the
datum or preset table in which the TNC is to save the
coordinate. If you enter Q305=0, the TNC
automatically sets the display so that the new datum
is on the probed surface.
8 New datum Q333 (absolute): Coordinate at which the
TNC should set the datum. Basic setting = 0
8 Measured-value transfer (0, 1) Q303: Specify
whether the determined datum is to be saved in the
datum table or in the preset table:
-1: Do not use. See Saving the calculated datum,
page 64
0: Write determined datum in the active datum table.
The reference system is the active workpiece
coordinate system.
1: Write determined datum in the preset table. The
reference system is the machine coordinate system
(REF system).

100
3.2 Presetting automatically
Example: Datum setting in center of a circular segment and on top surface of
workpiece

Y Y

25

30
X Z
25 25

0 BEGIN PGM CYC413 MM


1 TOOL CALL 69 Z Call tool 0 to define the touch probe axis

HEIDENHAIN TNC 320 101


3.2 Presetting automatically
2 TCH PROBE 413 DATUM OUTSIDE CIRCLE
Q321=+25 ;CENTER 1ST AXIS Center of circle: X coordinate
Q322=+25 ;CENTER 2ND AXIS Center of circle: Y coordinate
Q262=30 ;NOMINAL DIAMETER Diameter of circle
Q325=+90 ;STARTING ANGLE Polar coordinate angle for 1st touch point
Q247=+45 ;STEPPING ANGLE Stepping angle for calculating the starting points 2 to 4
Q261=-5 ;MEASURING HEIGHT Coordinate in the touch probe axis in which the measurement is
made
Q320=2 ;SET-UP CLEARANCE Safety clearance in addition to SET_UP column
Q260=+10 ;CLEARANCE HEIGHT Height in the touch probe axis at which the probe can traverse
without collision
Q301=0 ;MOVE TO CLEARANCE Do not move to clearance height between measuring points
Q305=0 ;NO. IN TABLE Set display
Q331=+0 ;DATUM Set the display in X to 0
Q332=+10 ;DATUM Set the display in Y to 10
Q303=+0 ;MEAS. VALUE TRANSFER Without function, since display is to be set
Q381=1 ;PROBE IN TS AXIS Also set datum in the touch probe axis
Q382=+25 ;1ST CO. FOR TS AXIS X coordinate of touch point
Q383=+25 ;2ND CO. FOR TS AXIS Y coordinate of touch point
Q384=+25 ;3RD CO. FOR TS AXIS Z coordinate of touch point
Q333=+0 ;DATUM Set the display in Z to 0
3 CALL PGM 1860 Part program call
4 END PGM CYC413 MM

102
3.2 Presetting automatically
Example: Datum setting on top surface of workpiece and in center of a bolt hole circle

The measured bolt hole center shall be written in


the preset table so that it may be used at a later
time. Y Y

2
35

50
3

X Z
35 20

0 BEGIN PGM CYC416 MM


1 TOOL CALL 69 Z Call tool 0 to define the touch probe axis
2 TCH PROBE 417 DATUM IN TS AXIS Cycle definition for datum setting in the touch probe axis
Q263=+7.5 ;1ST POINT 1ST AXIS Touch point: X coordinate
Q264=+7.5 ;1ST POINT 2ND AXIS Touch point: Y coordinate
Q294=+25 ;1ST POINT 3RD AXIS Touch point: Z coordinate
Q320=0 ;SET-UP CLEARANCE Safety clearance in addition to SET_UP column
Q260=+50 ;CLEARANCE HEIGHT Height in the touch probe axis at which the probe can traverse
without collision
Q305=1 ;NO. IN TABLE Write Z coordinate in line 1
Q333=+0 ;DATUM Set touch-probe axis to 0
Q303=+1 ;MEAS. VALUE TRANSFER In the preset table PRESET.PR, save the calculated datum
referenced to the machine-based coordinate system (REF system)

HEIDENHAIN TNC 320 103


3.2 Presetting automatically
3 TCH PROBE 416 DATUM CIRCLE CENTER
Q273=+35 ;CENTER 1ST AXIS Center of the bolt hole circle: X coordinate
Q274=+35 ;CENTER 2ND AXIS Center of the bolt hole circle: Y coordinate
Q262=50 ;NOMINAL DIAMETER Diameter of the bolt hole circle
Q291=+90 ;ANGLE OF 1ST HOLE Polar coordinate angle for 1st hole center 1
Q292=+180 ;ANGLE OF 2ND HOLE Polar coordinate angle for 2nd hole center 2
Q293=+270 ;ANGLE OF 3RD HOLE Polar coordinate angle for 3rd hole center 3
Q261=+15 ;MEASURING HEIGHT Coordinate in the touch probe axis in which the measurement is
made
Q260=+10 ;CLEARANCE HEIGHT Height in the touch probe axis at which the probe can traverse
without collision
Q305=1 ;NO. IN TABLE Enter center of bolt hole circle (X and Y) in line 1
Q331=+0 ;DATUM
Q332=+0 ;DATUM
Q303=+1 ;MEAS. VALUE TRANSFER In the preset table PRESET.PR, save the calculated datum
referenced to the machine-based coordinate system (REF system)
Q381=0 ;PROBE IN TS AXIS Do not set a datum in the touch probe axis
Q382=+0 ;1ST CO. FOR TS AXIS No function
Q383=+0 ;2ND CO. FOR TS AXIS No function
Q384=+0 ;2RD CO. FOR TS AXIS No function
Q333=+0 ;DATUM No function
4 CYCL DEF 247 DATUM SETTING Activate new preset with Cycle 247
Q339=1 ;DATUM NUMBER
6 CALL PGM 1860 Part program call
7 END PGM CYC416 MM

104
3.3 Automatic Workpiece Measurement
3.3 Automatic Workpiece
Measurement
Overview
The TNC offers twelve cycles for measuring workpieces
automatically.
Cycle Soft key Page
0 REFERENCE PLANE Measuring a Page 110
coordinate in a selectable axis

1 POLAR DATUM PLANE Measuring a Page 111


point in a probing direction

420 MEASURE ANGLE Measuring an Page 112


angle in the working plane

421 MEASURE HOLE Measuring the Page 114


position and diameter of a hole

422 MEAS. CIRCLE OUTSIDE Measuring Page 117


the position and diameter of a circular
stud

423 MEAS. RECTAN. INSIDE Measuring Page 120


the position, length and width of a
rectangular pocket

424 MEAS. RECTAN. OUTSIDE Page 123


Measuring the position, length and width
of a rectangular stud

425 MEASURE INSIDE WIDTH (2nd soft- Page 126


key level) Measuring slot width

426 MEASURE RIDGE WIDTH (2nd soft- Page 128


key level) Measuring the width of a ridge

427 MEASURE COORDINATE (2nd soft- Page 130


key level) Measuring any coordinate in a
selectable axis

430 MEAS. BOLT HOLE CIRC. (2nd soft- Page 133


key level) Measuring position and
diameter of a bolt hole circle

431 MEASURE PLANE (2nd soft-key Page 136


level) Measuring the A and B axis angles
of a plane

HEIDENHAIN TNC 320 105


3.3 Automatic Workpiece Measurement
Recording the results of measurement
For all cycles in which you automatically measure workpieces (with
the exception of Cycles 0 and 1), you can have the TNC record the
measurement results. In the respective probing cycle you can define
if the TNC is to
Save the measuring log to a file.
Interrupt the program run and display the measuring log on the
screen.
Create no measuring log.
If you want to save the measuring log to a file, the TNC, by default,
saves the data as an ASCII file in the directory TNC:\..

All measured values listed in the log file are referenced to


the datum active during the respective cycle you are
running.
Use the HEIDENHAIN data transfer software TNCremo if
you wish to output the measuring log via the data
interface.

Example: Measuring log for touch probe cycle 421:


Measuring log for Probing Cycle 421 Hole Measuring
Date: 30-06-2005
Time: 6:55:04
Measuring program: TNC:\GEH35712\CHECK1.H
Nominal values: Center in reference axis: 50.0000
Center in minor axis: 65.0000
Diameter: 12.0000
Given limit values: Maximum dimension for center in reference axis:
50.1000 Minimum limit for center in reference axis: 49.9000
Maximum limit for center in minor axis: 65.1000
Minimum limit for center in minor axis: 64.9000
Maximum dimension for hole: 12.0450
Minimum dimension for hole: 12.0000
Actual values: Center in reference axis: 50.0810
Center in minor axis: 64.9530
Diameter: 12.0259
Deviations:Center in reference axis: 0.0810
Center in minor axis: -0.0470
Diameter: 0.0259
Further measuring results: Measuring height: -5.0000
End of measuring log

106
3.3 Automatic Workpiece Measurement
Measurement results in Q parameters
The TNC saves the measurement results of the respective touch
probe cycle in the globally effective Q parameters Q150 to Q160.
Deviations from the nominal value are saved in the parameters Q161
to Q166. Note the table of result parameters that are listed with every
cycle description.
During cycle definition the TNC also shows the result parameters for
the respective cycle in a help graphic (see figure at upper right). The
highlighted result parameter belongs to that input parameter.

Classification of results
For some cycles you can inquire the status of measuring results
through the globally effective Q parameters Q180 to Q182:

Class of results Parameter value


Measurement results are within tolerance Q180 = 1

Rework is required Q181 = 1

Scrap Q182 = 1

The TNC sets the rework or scrap marker as soon as one of the
measuring values falls outside of tolerance. To determine which of the
measuring results lies outside of tolerance, check the measuring log,
or compare the respective measuring results (Q150 to Q160) with
their limit values.
In Cycle 427 the TNC assumes that you are measuring an outside
dimension (stud). However, you can correct the status of the
measurement by entering the correct maximum and minimum
dimension together with the probing direction.

The TNC also sets the status markers if you have not
defined any tolerance values or maximum/minimum
dimensions.

HEIDENHAIN TNC 320 107


3.3 Automatic Workpiece Measurement
Tolerance monitoring
For most of the cycles for workpiece inspection you can have the TNC
perform tolerance monitoring. This requires that you define the
necessary limit values during cycle definition. If you do not wish to
monitor for tolerances, simply leave the 0 (the default value) in the
monitoring parameters.

Tool monitoring
For some cycles for workpiece inspection you can have the TNC
perform tool monitoring. The TNC then monitors whether
The tool radius should be compensated because of the deviations
from the nominal value (values in Q16x).
The deviations from the nominal value (values in Q16x) are greater
than the tool breakage tolerance.

Tool compensation

This function works only:


If the tool table is active.
If tool monitoring is switched on in the cycle: Q330 not
equal to 0.
If you perform several compensation measurements, the
TNC adds the respective measured deviation to the value
stored in the tool table.

The TNC always compensates the tool radius in the DR column of the
tool table, even if the measured deviation lies within the given
tolerance. You can inquire whether re-working is necessary via
Parameter Q181 in the NC program (Q181=1: must be reworked).
For Cycle 427:
If an axis of the active working plane is defined as measuring axis
(Q272 = 1 or 2), the TNC compensates the tool radius as described
above. From the defined traversing direction (Q267) the TNC
determines the direction of compensation.
If the touch probe axis is defined as measuring axis (Q272 = 3), the
TNC compensates the tool length.

108
3.3 Automatic Workpiece Measurement
Tool breakage monitoring

This function works only:


If the tool table is active.
If tool monitoring is switched on in the cycle (enter Q330
not equal to 0).
If the breakage tolerance RBREAK for the tool number
entered in the table is greater than 0 (see also the User's
Manual, section 5.2 Tool Data).

The TNC will output an error message and stop program run if the
measured deviation is greater than the breakage tolerance of the tool.
At the same time the tool will be deactivated in the tool table (column
TL = L).

Reference system for measurement results


The TNC transfers all the measurement results to the result
parameters and the protocol file in the active coordinate system, or as
the case may be, the displaced coordinate system.

HEIDENHAIN TNC 320 109


3.3 Automatic Workpiece Measurement
REFERENCE PLANE (touch probe cycle 0,
DIN/ISO: G55)
1 The touch probe moves at rapid traverse (value from FMAX
column) to the starting position 1 programmed in the cycle.
2 Then the touch probe runs the probing process at the probing feed
rate (column F). The probing direction is to be defined in the cycle. Z
3 After the TNC has saved the position, the probe retracts to the
starting point and saves the measured coordinate in a Q
1
parameter. The TNC also stores the coordinates of the touch probe
position at the time of the triggering signal in the parameters Q115
to Q119. For the values in these parameters the TNC does not
account for the stylus length and radius.

Before programming, note the following


Pre-position the touch probe in order to avoid a collision X
when the programmed pre-positioning point is
approached.

8 Parameter number for result: Enter the number of Example: NC blocks


the Q parameter to which you want to assign the
coordinate. 67 TCH PROBE 0.0 REF. PLANE Q5 X-

8 Probing axis/Probing direction: Enter the probing 68 TCH PROBE 0.1 X+5 Y+0 Z-5
axis with the axis selection keys or ASCII keyboard
and the algebraic sign for the probing direction.
Confirm your entry with the ENT key.
8 Position value: Use the axis selection keys or the
ASCII keyboard to enter all coordinates of the nominal
pre-positioning point values for the touch probe.
8 To conclude the input, press the ENT key.

110
3.3 Automatic Workpiece Measurement
DATUM PLANE (touch probe cycle 1)
Touch probe cycle 1 measures any position on the workpiece in any
direction.
Y
1 The touch probe moves at rapid traverse (value from FMAX
column) to the starting position 1 programmed in the cycle.
2 Then the touch probe runs the probing process at the probing feed
rate (column F). During probing the TNC moves simultaneously in
2 axes (depending on the probing angle). The scanning direction is
defined by the polar angle entered in the cycle. 1
3 After the TNC has saved the position, the probe returns to the
starting point. The TNC also stores the coordinates of the touch
probe position at the time of the triggering signal in parameters
Q115 to Q119.
X
Before programming, note the following
Pre-position the touch probe in order to avoid a collision
when the programmed pre-positioning point is
approached.

The probing axis defined in the cycle specifies the probing


plane:
Probing axis X: X/Y plane
Probing axis Y: Y/Z plane
Probing axis Z: Z/X plane

8 Probing axis: Enter the probing axis with the axis Example: NC blocks
selection keys or ASCII keyboard. Confirm your entry
with the ENT key. 67 TCH PROBE 1.0 POLAR DATUM PLANE

8 Probing angle: Angle, measured from the probing 68 TCH PROBE 1.1 X ANGLE: +30
axis, at which the touch probe is to move. 69 TCH PROBE 1.2 X+5 Y+0 Z-5
8 Position value: Use the axis selection keys or the
ASCII keyboard to enter all coordinates of the nominal
pre-positioning point values for the touch probe.
8 To conclude the input, press the ENT key.

HEIDENHAIN TNC 320 111


3.3 Automatic Workpiece Measurement
MEASURE ANGLE (touch probe cycle 420,
DIN/ISO: G420)
Touch probe cycle 420 measures the angle that any straight surface
on the workpiece describes with respect to the reference axis of the
working plane. Y
1 The TNC positions the touch probe to the starting points at rapid
traverse (value from FMAX column) following the positioning logic
(see Running touch probe cycles on page 21) to the
programmed starting point 1. The TNC offsets the touch probe by
the safety clearance in the direction opposite the defined traverse
direction.
2 Then the touch probe moves to the entered measuring height and
probes the first touch point at the probing feed rate (column F). 2
1
3 Then the touch probe moves to the next starting position 2 and
probes the second position.
X
4 The TNC returns the touch probe to the clearance height and saves
the measured angle in the following Q parameter:

Parameter number Meaning


Q150 The measured angle is referenced to the +
Q267
reference axis of the machining plane.
Y +
Q272=2

Before programming, note the following


Before a cycle definition you must have programmed a
tool call to define the touch probe axis. Q266 MP6140
Q264 +
Q320
8 1st measuring point in 1st axis Q263 (absolute):
coordinate of the first touch point in the reference
axis of the working plane.
8 1st measuring point in 2nd axis Q264 (absolute): X
Q263 Q265 Q272=1
coordinate of the first touch point in the minor axis of
the working plane.
8 2nd measuring point in 1st axis Q265 (absolute):
coordinate of the second touch point in the reference
axis of the working plane
8 2nd measuring point in 2nd axis Q266 (absolute):
coordinate of the second touch point in the minor axis
of the working plane
8 Measuring axis Q272: Axis in which the
measurement is to be made:
1: Reference axis = measuring axis
2: Minor axis = measuring axis
3: Touch probe axis = measuring axis

112
3.3 Automatic Workpiece Measurement
If touch probe axis = measuring axis, then:
Set Q263 equal to Q265 if the angle about the A axis is to
be measured; Set Q263 not equal to Q265 if the angle is
to be measured about the B axis.

8 Traverse direction 1 Q267: Direction in which the


probe is to approach the workpiece:
-1: Negative traverse direction
+1: Positive traverse direction
8 Measuring height in the touch probe axis Q261
(absolute): Coordinate of the ball tip center (= touch
point) in the touch probe axis in which the
measurement is to be made.
8 Setup clearance Q320 (incremental): Additional
distance between measuring point and ball tip. Q320
is added to column SET_UP.
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool
and workpiece (fixtures) can occur.
8 Traversing to clearance height Q301: Definition of
how the touch probe is to move between the
Example: NC blocks
measuring points:
0: Move at measuring height between measuring 5 TCH PROBE 420 MEASURE ANGLE
points
1: Move at clearance height between measuring Q263=+10 ;1ST POINT 1ST AXIS
points Q264=+10 ;1ST POINT 2ND AXIS
8 Measuring log Q281: Definition of whether the TNC is Q265=+15 ;2ND POINT 1ST AXIS
to create a measuring log:
0: No measuring log Q266=+95 ;2ND POINT 2ND AXIS
1: Generate measuring log: the TNC saves the log file Q272=1 ;MEASURING AXIS
TCHPR420.TXT by default in the directory TNC:\
2: Interrupt the program run and display the Q267=-1 ;TRAVERSE DIRECTION
measuring log on the screen. Resume program run Q261=-5 ;MEASURING HEIGHT
with NC Start.
Q320=0 ;SET-UP CLEARANCE
Q260=+10 ;CLEARANCE HEIGHT
Q301=1 ;MOVE TO CLEARANCE
Q281=1 ;MEASURING LOG

HEIDENHAIN TNC 320 113


3.3 Automatic Workpiece Measurement
MEASURE HOLE (touch probe cycle 421,
DIN/ISO: G421)
Touch probe cycle 421 measures the center and diameter of a hole (or
circular pocket). If you define the corresponding tolerance values in
the cycle, the TNC makes a nominal-to-actual value comparison and Y
saves the deviation value in system parameters.
1 The TNC positions the touch probe at rapid traverse (value from
FMAX column) following the positioning logic (see Running touch
probe cycles on page 21) to the starting point 1. The TNC 2
3
calculates the probe starting points from the data in the cycle and
the safety clearance from the SET_UP column of the touch probe 1
table 4
2 Then the touch probe moves to the entered measuring height and
runs the first probing process at the probing feed rate (column F).
The TNC derives the probing direction automatically from the
programmed starting angle.
X
3 Then the touch probe moves in a circular arc either at measuring
height or at clearance height to the next starting point 2 and probes
the second touch point.
4 The TNC positions the probe to starting point 3 and then to starting
point 4 to probe the third and fourth touch points.
5 Finally the TNC returns the touch probe to the clearance height and
saves the actual values and the deviations in the following Q
parameters:
Parameter number Meaning
Q151 Actual value of center in reference axis

Q152 Actual value of center in minor axis

Q153 Actual value of diameter

Q161 Deviation from center of reference axis

Q162 Deviation from center of minor axis

Q163 Deviation from diameter

Before programming, note the following


Before a cycle definition you must have programmed a
tool call to define the touch probe axis.

114
3.3 Automatic Workpiece Measurement
8 Center in 1st axis Q273 (absolute value): Center of
MP6140
the hole in the reference axis of the working plane. +
Y Q320
8 Center in 2nd axis Q274 (absolute value): Center of
the hole in the minor axis of the working plane.
8 Nominal diameter Q262: Enter the diameter of the
hole. Q247
Q325

Q262
Q275
Q276
8 Starting angle Q325 (absolute): Angle between the Q274Q280
reference axis of the working plane and the first touch
point.
8 Stepping angle Q247 (incremental): Angle between
two measuring points. The algebraic sign of the
stepping angle determines the direction of rotation X
(negative = clockwise). If you wish to probe a circular Q273Q279
arc instead of a complete circle, then program the
stepping angle to be less than 90.

The smaller the angle, the less accurately the TNC can
calculate the hole dimensions. Minimum input value: 5. Z

8 Measuring height in the touch probe axis Q261


(absolute): Coordinate of the ball tip center (= touch
point) in the touch probe axis in which the Q260
measurement is to be made.
8 Setup clearance Q320 (incremental): Additional
distance between measuring point and ball tip. Q320 Q261
is added to column SET_UP.
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool X
and workpiece (fixtures) can occur.
8 Traversing to clearance height Q301: Definition of
how the touch probe is to move between the
measuring points:
0: Move at measuring height between measuring
points
1: Move at clearance height between measuring
points
8 Maximum dimension of size for hole Q275:
Maximum permissible dimension for the hole (circular
pocket).
8 Minimum dimension for hole Q276: Minimum
permissible dimension for the hole (circular pocket).
8 Tolerance value for center 1st axis Q279:
Permissible position deviation in the reference axis of
the working plane.
8 Tolerance value for center 2nd axis Q280:
Permissible position deviation in the minor axis of the
working plane.

HEIDENHAIN TNC 320 115


Example: NC blocks
3.3 Automatic Workpiece Measurement
8 Measuring log Q281: Definition of whether the TNC is
to create a measuring log:
0: No measuring log 5 TCH PROBE 421 MEASURE HOLE
1: Generate measuring log: the TNC saves the log file Q273=+50 ;CENTER 1ST AXIS
TCHPR421.TXT by default in the directory TNC:\
2: Interrupt the program run and display the Q274=+50 ;CENTER 2ND AXIS
measuring log on the screen. Resume program run Q262=75 ;NOMINAL DIAMETER
with NC Start.
Q325=+0 ;STARTING ANGLE
8 PGM stop if tolerance error Q309: Definition of
whether in the event of a violation of tolerance limits Q247=+60 ;STEPPING ANGLE
the TNC is to interrupt the program run and output an Q261=-5 ;MEASURING HEIGHT
error message:
0: Do not interrupt program run, no error message Q320=0 ;SET-UP CLEARANCE
1: Interrupt program run, output an error message Q260=+20 ;CLEARANCE HEIGHT
8 Tool number for monitoring Q330: Definition of Q301=1 ;MOVE TO CLEARANCE
whether the TNC is to monitor the tool (see Tool
monitoring on page 108) Q275=75.12 ;MAX. LIMIT
0: Monitoring not active Q276=74.95 ;MIN. LIMIT
>0: Tool number in the tool table TOOL.T
Q279=0.1 ;TOLERANCE 1ST CENTER
8 No. of measuring points (4/3) Q423: Specify
Q280=0.1 ;TOLERANCE 2ND CENTER
whether the TNC should measure the stud with 4 or
3 probing points: Q281=1 ;MEASURING LOG
4: Use 4 measuring points (standard setting)
Q309=0 ;PGM STOP IF ERROR
3: Use 3 measuring points (standard setting)
Q330=0 ;TOOL NUMBER
Q423=4 ;NO. OF MEAS. POINTS

116
3.3 Automatic Workpiece Measurement
MEASURE OUTER WIDTH (touch probe cycle 422,
DIN/ISO: G422)
Touch probe cycle 422 measures the center and diameter of a circular
stud. If you define the corresponding tolerance values in the cycle, the
TNC makes a nominal-to-actual value comparison and saves the Y
deviation value in system parameters.
2
1 The TNC positions the touch probe at rapid traverse (value from
FMAX column) following the positioning logic (see Running touch
probe cycles on page 21) to the starting point 1. The TNC
calculates the probe starting points from the data in the cycle and 3 1
the safety clearance from the SET_UP column of the touch probe
table
2 Then the touch probe moves to the entered measuring height and
runs the first probing process at the probing feed rate (column F). 4
The TNC derives the probing direction automatically from the
programmed starting angle.
X
3 Then the touch probe moves in a circular arc either at measuring
height or at clearance height to the next starting point 2 and probes
the second touch point.
4 The TNC positions the probe to starting point 3 and then to starting
point 4 to probe the third and fourth touch points.
5 Finally the TNC returns the touch probe to the clearance height and
saves the actual values and the deviations in the following Q
parameters:
Parameter number Meaning
Q151 Actual value of center in reference axis

Q152 Actual value of center in minor axis

Q153 Actual value of diameter

Q161 Deviation from center of reference axis

Q162 Deviation from center of minor axis

Q163 Deviation from diameter

Before programming, note the following


Before a cycle definition you must have programmed a
tool call to define the touch probe axis.

HEIDENHAIN TNC 320 117


3.3 Automatic Workpiece Measurement
8 Center in 1st axis Q273 (absolute value): Center of
the stud in the reference axis of the working plane.
Y
8 Center in 2nd axis Q274 (absolute value): Center of
the stud in the minor axis of the working plane.
Q247
8 Nominal diameter Q262: Enter the diameter of the
stud.
Q325

Q278
Q262
Q277
8 Starting angle Q325 (absolute): Angle between the Q274Q280
reference axis of the working plane and the first touch
point. MP6140
+
8 Stepping angle Q247 (incremental): Angle between Q320
two measuring points. The algebraic sign of the
stepping angle determines the direction of rotation X
(negative = clockwise). If you wish to probe a circular Q273Q279
arc instead of a complete circle, then program the
stepping angle to be less than 90.

The smaller the angle, the less accurately the TNC can
calculate the dimensions of the stud. Minimum input Z
value: 5

8 Measuring height in the touch probe axis Q261 Q260


(absolute): Coordinate of the ball tip center (= touch Q261
point) in the touch probe axis in which the
measurement is to be made.
8 Setup clearance Q320 (incremental): Additional
distance between measuring point and ball tip. Q320
is added to column SET_UP.
8 Clearance height Q260 (absolute): Coordinate in the X
touch probe axis at which no collision between tool
and workpiece (fixtures) can occur.
8 Traversing to clearance height Q301: Definition of
how the touch probe is to move between the
measuring points:
0: Move at measuring height between measuring
points
1: Move at clearance height between measuring
points
8 Maximum dimension of size for stud Q277:
Maximum permissible dimension for the stud.
8 Minimum dimension of size for the stud Q278:
Minimum permissible dimension for the stud.
8 Tolerance value for center 1st axis Q279:
Permissible position deviation in the reference axis of
the working plane.
8 Tolerance value for center 2nd axis Q280:
Permissible position deviation in the minor axis of the
working plane.

118
Example: NC blocks

3.3 Automatic Workpiece Measurement


8 Measuring log Q281: Definition of whether the TNC is
to create a measuring log:
0: No measuring log 5 TCH PROBE 422 MEAS. CIRCLE OUTSIDE
1: Generate measuring log: the TNC saves the log file Q273=+50 ;CENTER 1ST AXIS
TCHPR422.TXT by default in the directory TNC:\
2: Interrupt the program run and display the Q274=+50 ;CENTER 2ND AXIS
measuring log on the screen. Resume program run Q262=75 ;NOMINAL DIAMETER
with NC Start.
Q325=+90 ;STARTING ANGLE
8 PGM stop if tolerance error Q309: Definition of
whether in the event of a violation of tolerance limits Q247=+30 ;STEPPING ANGLE
the TNC is to interrupt the program run and output an Q261=-5 ;MEASURING HEIGHT
error message:
0: Do not interrupt program run, no error message Q320=0 ;SET-UP CLEARANCE
1: Interrupt program run, output an error message Q260=+10 ;CLEARANCE HEIGHT
8 Tool number for monitoring Q330: Definition of Q301=0 ;MOVE TO CLEARANCE
whether the TNC is to monitor the tool (see Tool
monitoring on page 108): Q275=35.15 ;MAX. LIMIT
0: Monitoring not active Q276=34.9 ;MIN. LIMIT
>0: Tool number in the tool table TOOL.T
Q279=0.05 ;TOLERANCE 1ST CENTER
8 No. of measuring points (4/3) Q423: Specify
Q280=0.05 ;TOLERANCE 2ND CENTER
whether the TNC should measure the stud with 4 or
3 probing points: Q281=1 ;MEASURING LOG
4: Use 4 measuring points (standard setting)
Q309=0 ;PGM STOP IF ERROR
3: Use 3 measuring points (standard setting)
Q330=0 ;TOOL NUMBER
Q423=4 ;NO. OF MEAS. POINTS

HEIDENHAIN TNC 320 119


3.3 Automatic Workpiece Measurement
MEASURE INSIDE RECTANGLE (touch probe
cycle 423, DIN/ISO: G423)
Touch probe cycle 423 finds the center, length and width of a
rectangular pocket. If you define the corresponding tolerance values in
the cycle, the TNC makes a nominal-to-actual value comparison and
saves the deviation value in system parameters. Y
1 The TNC positions the touch probe at rapid traverse (value from
FMAX column) following the positioning logic (see Running touch
probe cycles on page 21) to the starting point 1. The TNC
4
calculates the probe starting points from the data in the cycle and
the safety clearance from the SET_UP column of the touch probe 1 3
table 2
2 Then the touch probe moves to the entered measuring height and
probes the first touch point at the probing feed rate (column F).
3 Then the touch probe moves either paraxially at the measuring
height or linearly at the clearance height to the next starting point X
2 and probes the second touch point.
4 The TNC positions the probe to starting point 3 and then to starting
point 4 to probe the third and fourth touch points.
5 Finally the TNC returns the touch probe to the clearance height and
saves the actual values and the deviations in the following Q
parameters:

Parameter number Meaning


Q151 Actual value of center in reference axis

Q152 Actual value of center in minor axis

Q154 Actual value of length in the reference


axis

Q155 Actual value of length in the minor axis

Q161 Deviation from center of reference axis

Q162 Deviation from center of minor axis

Q164 Deviation of length in reference axis

Q165 Deviation of length in minor axis

Before programming, note the following


Before a cycle definition you must have programmed a
tool call to define the touch probe axis.
If the dimensions of the pocket and the safety clearance
do not permit pre-positioning in the proximity of the touch
points, the TNC always starts probing from the center of
the pocket. In this case the touch probe does not return to
the clearance height between the four measuring points.

120
3.3 Automatic Workpiece Measurement
8 Center in 1st axis Q273 (absolute value): Center of
the pocket in the reference axis of the working plane. Q284
Q282
8 Center in 2nd axis Q274 (absolute value): Center of Y Q285
the pocket in the minor axis of the working plane.
8 First side length Q282: pocket length, parallel to
the reference axis of the working plane.
8 Second side length Q283: pocket length, parallel to

Q287
Q283
Q286
Q274Q280
the secondary axis of the working plane.
8 Measuring height in the touch probe axis Q261
(absolute): Coordinate of the ball tip center (= touch
point) in the touch probe axis in which the
measurement is to be made.
X
8 Setup clearance Q320 (incremental): Additional Q273Q279
distance between measuring point and ball tip. Q320
is added to column SET_UP.
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool Z
and workpiece (fixtures) can occur.
8 Traversing to clearance height Q301: Definition of
how the touch probe is to move between the
measuring points: Q260
0: Move at measuring height between measuring
points
1: Move at clearance height between measuring
points Q261

8 Max. size limit 1st side length Q284: Maximum


permissible length of the pocket.
MP6140 X
8 Min. size limit 1st side length Q285: Minimum +
Q320
permissible length of the pocket.
8 Max. size limit 2nd side length Q286: Maximum
permissible width of the pocket.
8 Min. size limit 2nd side length Q287: Minimum
permissible width of the pocket.
8 Tolerance value for center 1st axis Q279:
Permissible position deviation in the reference axis of
the working plane.
8 Tolerance value for center 2nd axis Q280:
Permissible position deviation in the minor axis of the
working plane.

HEIDENHAIN TNC 320 121


Example: NC blocks
3.3 Automatic Workpiece Measurement
8 Measuring log Q281: Definition of whether the TNC is
to create a measuring log:
0: No measuring log 5 TCH PROBE 423 MEAS. RECTAN. INSIDE
1: Generate measuring log: the TNC saves the log file Q273=+50 ;CENTER 1ST AXIS
TCHPR423.TXT by default in the directory TNC:\
2: Interrupt the program run and display the Q274=+50 ;CENTER 2ND AXIS
measuring log on the screen. Resume program run Q282=80 ;FIRST SIDE LENGTH
with NC Start.
Q283=60 ;SECOND SIDE LENGTH
8 PGM stop if tolerance error Q309: Definition of
whether in the event of a violation of tolerance limits Q261=-5 ;MEASURING HEIGHT
the TNC is to interrupt the program run and output an Q320=0 ;SET-UP CLEARANCE
error message:
0: Do not interrupt program run, no error message Q260=+10 ;CLEARANCE HEIGHT
1: Interrupt program run, output an error message Q301=1 ;MOVE TO CLEARANCE
8 Tool number for monitoring Q330: Definition of Q284=0 ;MAX. LIMIT 1ST SIDE
whether the TNC is to monitor the tool (see Tool
monitoring on page 108) Q285=0 ;MIN. LIMIT 1ST SIDE
0: Monitoring not active Q286=0 ;MAX. LIMIT 2ND SIDE
>0: Tool number in the tool table TOOL.T
Q287=0 ;MIN. LIMIT 2ND SIDE
Q279=0 ;TOLERANCE 1ST CENTER
Q280=0 ;TOLERANCE 2ND CENTER
Q281=1 ;MEASURING LOG
Q309=0 ;PGM STOP IF ERROR
Q330=0 ;TOOL NUMBER

122
3.3 Automatic Workpiece Measurement
MEASURE RECTANGLE FROM OUTSIDE
(touch probe cycle 424, ISO: G424)
Touch probe cycle 424 finds the center, length and width of a
rectangular stud. If you define the corresponding tolerance values in
the cycle, the TNC makes a nominal-to-actual value comparison and
saves the deviation value in system parameters. Y
1 The TNC positions the touch probe at rapid traverse (value from 4
FMAX column) following the positioning logic (see Running touch
probe cycles on page 21) to the starting point 1. The TNC
calculates the probe starting points from the data in the cycle and
the safety clearance from the SET_UP column of the touch probe
table 1 3
2 Then the touch probe moves to the entered measuring height and
probes the first touch point at the probing feed rate (column F). 2
3 Then the touch probe moves either paraxially at the measuring
height or linearly at the clearance height to the next starting point X
2 and probes the second touch point.
4 The TNC positions the probe to starting point 3 and then to starting
point 4 to probe the third and fourth touch points.
5 Finally the TNC returns the touch probe to the clearance height and
saves the actual values and the deviations in the following Q
parameters:

Parameter number Meaning


Q151 Actual value of center in reference axis

Q152 Actual value of center in minor axis

Q154 Actual value of length in the reference


axis

Q155 Actual value of length in the minor axis

Q161 Deviation from center of reference axis

Q162 Deviation from center of minor axis

Q164 Deviation of length in reference axis

Q165 Deviation of length in minor axis

Before programming, note the following


Before a cycle definition you must have programmed a
tool call to define the touch probe axis.

HEIDENHAIN TNC 320 123


3.3 Automatic Workpiece Measurement
8 Center in 1st axis Q273 (absolute value): Center of
the stud in the reference axis of the working plane. Q284
Q282
8 Center in 2nd axis Q274 (absolute value): Center of Y
Q285
the stud in the minor axis of the working plane.
8 First side length Q282: stud length, parallel to the
reference axis of the working plane

Q287
Q283
Q286
8 Second side length Q283: stud length, parallel to the Q274Q280
secondary axis of the working plane
8 Measuring height in the touch probe axis Q261
(absolute): Coordinate of the ball tip center (= touch
point) in the touch probe axis in which the
measurement is to be made.
X
8 Setup clearance Q320 (incremental): Additional Q273Q279
distance between measuring point and ball tip. Q320
is added to column SET_UP.
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool Z
and workpiece (fixtures) can occur.
8 Traversing to clearance height Q301: Definition of
how the touch probe is to move between the
measuring points: Q260
0: Move at measuring height between measuring
points Q261
1: Move at clearance height between measuring
points
8 Max. size limit 1st side length Q284: Maximum
permissible length of the stud.
MP6140 X
8 Min. size limit 1st side length Q285: Minimum +
Q320
permissible length of the stud.
8 Max. size limit 2nd side length Q286: Maximum
permissible width of the stud.
8 Min. size limit 2nd side length Q287: Minimum
permissible width of the stud.
8 Tolerance value for center 1st axis Q279:
Permissible position deviation in the reference axis of
the working plane.
8 Tolerance value for center 2nd axis Q280:
Permissible position deviation in the minor axis of the
working plane.

124
Example: NC blocks

3.3 Automatic Workpiece Measurement


8 Measuring log Q281: Definition of whether the TNC is
to create a measuring log:
0: No measuring log 5 TCH PROBE 424 MEAS. RECTAN. OUTS.
1: Generate measuring log: the TNC saves the log file Q273=+50 ;CENTER 1ST AXIS
TCHPR424.TXT by default in the directory TNC:\
2: Interrupt the program run and display the Q274=+50 ;CENTER 2ND AXIS
measuring log on the screen. Resume program run Q282=75 ;FIRST SIDE LENGTH
with NC Start.
Q283=35 ;SECOND SIDE LENGTH
8 PGM stop if tolerance error Q309: Definition of
whether in the event of a violation of tolerance limits Q261=-5 ;MEASURING HEIGHT
the TNC is to interrupt the program run and output an Q320=0 ;SET-UP CLEARANCE
error message:
0: Do not interrupt program run, no error message Q260=+20 ;CLEARANCE HEIGHT
1: Interrupt program run, output an error message Q301=0 ;MOVE TO CLEARANCE
8 Tool number for monitoring Q330: Definition of Q284=75.1 ;MAX. LIMIT 1ST SIDE
whether the TNC is to monitor the tool (see Tool
monitoring on page 108): Q285=74.9 ;MIN. LIMIT 1ST SIDE
0: Monitoring not active Q286=35 ;MAX. LIMIT 2ND SIDE
>0: Tool number in the tool table TOOL.T
Q287=34.95 ;MIN. LIMIT 2ND SIDE
Q279=0.1 ;TOLERANCE 1ST CENTER
Q280=0.1 ;TOLERANCE 2ND CENTER
Q281=1 ;MEASURING LOG
Q309=0 ;PGM STOP IF ERROR
Q330=0 ;TOOL NUMBER

HEIDENHAIN TNC 320 125


3.3 Automatic Workpiece Measurement
MEASURE INSIDE WIDTH (touch probe cycle 425,
DIN/ISO: G425)
Touch probe cycle 425 measures the position and width of a slot (or
pocket). If you define the corresponding tolerance values in the cycle,
the TNC makes a nominal-to-actual value comparison and saves the
deviation value in a system parameter. Y
1 The TNC positions the touch probe at rapid traverse (value from
FMAX column) following the positioning logic (see Running touch
probe cycles on page 21) to the starting point 1. The TNC
2
calculates the probe starting points from the data in the cycle and
the safety clearance from the SET_UP column of the touch probe
table
1
2 Then the touch probe moves to the entered measuring height and
runs the first probing process at the probing feed rate (column F).
1. The first probing is always in the positive direction of the
programmed axis. X
3 If you enter an offset for the second measurement, the TNC then
moves the touch probe paraxially to the next starting point 2 and
probes the second touch point. If you do not enter an offset, the
TNC measures the width in the exact opposite direction.
4 Finally the TNC returns the touch probe to the clearance height and
saves the actual values and the deviation in the following Q
parameters:

Parameter number Meaning


Q156 Actual value of measured length

Q157 Actual value of the centerline

Q166 Deviation of the measured length

Before programming, note the following


Before a cycle definition you must have programmed a
tool call to define the touch probe axis.

126
3.3 Automatic Workpiece Measurement
8 Starting point in 1st axis Q328 (absolute): Starting
point for probing in the reference axis of the working Q288
plane. Q311
Y
Q289
8 Starting point in 2nd axis Q329 (absolute): Starting Q272=2
point for probing in the minor axis of the working
plane. Q310
8 Offset for 2nd measurement Q310 (incremental):
Distance by which the touch probe is displaced
before the second measurement. If you enter 0, the
TNC does not displace the touch probe. Q329
8 Measuring axis Q272: Axis in the working plane in
which the measurement is to be made:
1: Reference axis = measuring axis X
2:Minor axis = measuring axis Q328 Q272=1
8 Measuring height in the touch probe axis Q261
(absolute): Coordinate of the ball tip center (= touch
point) in the touch probe axis in which the
measurement is to be made.
Z
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool
and workpiece (fixtures) can occur.
8 Nominal length Q311: Nominal value of the length to Q260
be measured.
8 Maximum dimension Q288: Maximum permissible
length. Q261

8 Minimum dimension Q289: Minimum permissible


length.
X
8 Measuring log Q281: Definition of whether the TNC is
to create a measuring log:
0: No measuring log
1: Generate measuring log: the TNC saves the log file
Example: NC blocks
TCHPR425.TXT by default in the directory TNC:\
2: Interrupt the program run and display the 5 TCH PROBE 425 MEASURE INSIDE WIDTH
measuring log on the screen. Resume program run
with NC Start. Q328=+75 ;STARTNG PNT 1ST AXIS
8 PGM stop if tolerance error Q309: Definition of Q329=-12.5 ;STARTNG PNT 2ND AXIS
whether in the event of a violation of tolerance limits Q310=+0 ;OFFS. 2ND MEASUREMNT
the TNC is to interrupt the program run and output an
error message: Q272=1 ;MEASURING AXIS
0: Do not interrupt program run, no error message Q261=-5 ;MEASURING HEIGHT
1: Interrupt program run, output an error message
Q260=+10 ;CLEARANCE HEIGHT
8 Tool number for monitoring Q330: Definition of
whether the TNC is to monitor the tool (see Tool Q311=25 ;NOMINAL LENGTH
monitoring on page 108): Q288=25.05 ;MAX. LIMIT
0: Monitoring not active
>0: Tool number in the tool table TOOL.T Q289=25 ;MIN. LIMIT
Q281=1 ;MEASURING LOG
Q309=0 ;PGM STOP IF ERROR
Q330=0 ;TOOL NUMBER

HEIDENHAIN TNC 320 127


3.3 Automatic Workpiece Measurement
MEASURE OUTER RIDGE (touch probe cycle 426,
DIN/ISO: G426)
Touch probe cycle 426 measures the position and width of a ridge. If
you define the corresponding tolerance values in the cycle, the TNC
makes a nominal-to-actual value comparison and saves the deviation
value in system parameters. Y
1 The TNC positions the touch probe at rapid traverse (value from
FMAX column) following the positioning logic (see Running touch
probe cycles on page 21) to the starting point 1. The TNC
calculates the probe starting points from the data in the cycle and 1
the safety clearance from the SET_UP column of the touch probe
table 2
2 Then the touch probe moves to the entered measuring height and
runs the first probing process at the probing feed rate (column F).
The first probing is always in the negative direction of the
programmed axis. X
3 Then the touch probe moves at clearance height to the next
starting position and probes the second touch point.
4 Finally the TNC returns the touch probe to the clearance height and
saves the actual values and the deviation in the following Q
parameters:

Parameter number Meaning


Q156 Actual value of measured length

Q157 Actual value of the centerline

Q166 Deviation of the measured length

Before programming, note the following


Before a cycle definition you must have programmed a
tool call to define the touch probe axis.

8 First measuring point in the 1st axis Q263


(absolute): Coordinate of the first touch point in the Q288
reference axis of the working plane. Q311
Y
Q289
8 First measuring point in the 2nd axis Q264 Q272=2
(absolute): Coordinate of the first touch point in the
minor axis of the working plane.
8 Second measuring point in the 1st axis Q265 Q264
(absolute): Coordinate of the second touch point in
the reference axis of the working plane. Q266
8 Second measuring point in the 2nd axis Q266 MP6140 + Q320
(absolute): Coordinate of the second touch point in
the minor axis of the working plane.
X
Q265 Q263 Q272=1

128
3.3 Automatic Workpiece Measurement
8 Measuring axis Q272: Axis in the working plane in
which the measurement is to be made:
1:Reference axis = measuring axis Z
2:Minor axis = measuring axis
8 Measuring height in the touch probe axis Q261
(absolute): Coordinate of the ball tip center (= touch
point) in the touch probe axis in which the Q260
measurement is to be made.
Q261
8 Setup clearance Q320 (incremental): Additional
distance between measuring point and ball tip. Q320
is added to column SET_UP.
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool
X
and workpiece (fixtures) can occur.
8 Nominal length Q311: Nominal value of the length to
be measured.
Example: NC blocks
8 Maximum dimension Q288: Maximum permissible
length. 5 TCH PROBE 426 MEASURE RIDGE WIDTH

8 Minimum dimension Q289: Minimum permissible Q263=+50 ;1ST POINT 1ST AXIS
length. Q264=+25 ;1ST POINT 2ND AXIS
8 Measuring log Q281: Definition of whether the TNC is Q265=+50 ;2ND POINT 1ST AXIS
to create a measuring log:
0: No measuring log Q266=+85 ;2ND POINT 2ND AXIS
1: Generate measuring log: The TNC saves the log Q272=2 ;MEASURING AXIS
file TCHPR426.TXT by default in the directory TNC:\
2: Interrupt the program run and display the Q261=-5 ;MEASURING HEIGHT
measuring log on the screen. Resume program run Q320=0 ;SET-UP CLEARANCE
with NC Start.
Q260=+20 ;CLEARANCE HEIGHT
8 PGM stop if tolerance error Q309: Definition of
Q311=45 ;NOMINAL LENGTH
whether in the event of a violation of tolerance limits
the TNC is to interrupt the program run and output an Q288=45 ;MAX. LIMIT
error message:
Q289=44.95 ;MIN. LIMIT
0: Do not interrupt program run, no error message
1: Interrupt program run, output an error message Q281=1 ;MEASURING LOG
8 Tool number for monitoring Q330: Definition of Q309=0 ;PGM STOP IF ERROR
whether the TNC is to monitor the tool (see Tool Q330=0 ;TOOL NUMBER
monitoring on page 108)
0: Monitoring not active
>0: Tool number in the tool table TOOL.T

HEIDENHAIN TNC 320 129


3.3 Automatic Workpiece Measurement
MEASURE COORDINATE (touch probe cycle 427,
DIN/ISO: G427)
Touch probe cycle 427 finds a coordinate in a selectable axis and saves
the value in a system parameter. If you define the corresponding
tolerance values in the cycle, the TNC makes a nominal-to-actual value
comparison and saves the deviation value in system parameters. Z
1 The TNC positions the touch probe at rapid traverse (value from
FMAX column) following the positioning logic (see Running touch
probe cycles on page 21) to the starting point 1. The TNC offsets 1
the touch probe by the safety clearance in the direction opposite
the defined traverse direction.
2 Then the TNC positions the touch probe to the entered touch point
1 in the working plane and measures the actual value in the
selected axis.
3 Finally the TNC returns the touch probe to the clearance height and X
saves the measured coordinate in the following Q parameter:

Parameter number Meaning


Q160 Measured coordinate

Before programming, note the following


Before a cycle definition you must have programmed a
tool call to define the touch probe axis.

130
3.3 Automatic Workpiece Measurement
8 First measuring point in the 1st axis Q263 +
MP6140 + Q320
(absolute): Coordinate of the first touch point in the Q267
reference axis of the working plane.
Y +
8 First measuring point in the 2nd axis Q264 Q272=2
(absolute): Coordinate of the first touch point in the
minor axis of the working plane.
8 Measuring height in the touch probe axis Q261
(absolute): Coordinate of the ball tip center (= touch Q264
point) in the touch probe axis in which the
measurement is to be made.
8 Setup clearance Q320 (incremental): Additional
distance between measuring point and ball tip. Q320
is added to column SET_UP. X
Q263 Q272=1
8 Measuring axis (1..3: 1=reference axis) Q272:
Axis in which the measurement is to be made:
1: Reference axis = measuring axis
2:Minor axis = measuring axis +
3: Touch probe axis = measuring axis
Z
8 Traverse direction 1 Q267: Direction in which the Q272=3 Q267
probe is to approach the workpiece:
-1: Negative traverse direction
+1: Positive traverse direction
Q260
Q261
8 Clearance height Q260 (absolute): Coordinate in the
touch probe axis at which no collision between tool
and workpiece (fixtures) can occur.

X
Q272=1

HEIDENHAIN TNC 320 131


Example: NC blocks
3.3 Automatic Workpiece Measurement
8 Measuring log Q281: Definition of whether the TNC is
to create a measuring log:
0: No measuring log 5 TCH PROBE 427 MEASURE COORDINATE
1: Generate measuring log: the TNC saves the log file Q263=+35 ;1ST POINT 1ST AXIS
TCHPR427.TXT by default in the directory TNC:\
2: Interrupt the program run and display the Q264=+45 ;1ST POINT 2ND AXIS
measuring log on the screen. Resume program run Q261=+5 ;MEASURING HEIGHT
with NC Start.
Q320=0 ;SET-UP CLEARANCE
8 Maximum dimension Q288: Maximum permissible
measured value. Q272=3 ;MEASURING AXIS

8 Minimum dimension Q289: Minimum permissible Q267=-1 ;TRAVERSE DIRECTION


measured value. Q260=+20 ;CLEARANCE HEIGHT
8 PGM stop if tolerance error Q309: Definition of Q281=1 ;MEASURING LOG
whether in the event of a violation of tolerance limits
Q288=5.1 ;MAX. LIMIT
the TNC is to interrupt the program run and output an
error message: Q289=4.95 ;MIN. LIMIT
0: Do not interrupt program run, no error message
Q309=0 ;PGM STOP IF ERROR
1: Interrupt program run, output an error message
Q330=0 ;TOOL NUMBER
8 Tool number for monitoring Q330: Definition of
whether the TNC is to monitor the tool (see Tool
monitoring on page 108):
0: Monitoring not active
>0: Tool number in the tool table TOOL.T

132
3.3 Automatic Workpiece Measurement
MEAS. BOLT HOLE CIRC (touch probe cycle 430,
DIN/ISO: G430)
Touch probe cycle 430 finds the center and diameter of a bolt hole
circle by probing three holes. If you define the corresponding tolerance
values in the cycle, the TNC makes a nominal-to-actual value Y
comparison and saves the deviation value in system parameters.
1
1 The TNC positions the touch probe at rapid traverse (value from
column FMAX) and with positioning logic (see Running touch
probe cycles on page 21) to the point entered as center of the first 2
hole 1.
2 Then the probe moves to the entered measuring height and
probes four points to find the first hole center.
3 The touch probe returns to the clearance height and then to the 3
position entered as center of the second hole 2.
4 The TNC moves the touch probe to the entered measuring height X
and probes four points to find the second hole center.
5 The touch probe returns to the clearance height and then to the
position entered as center of the third hole 3.
6 The TNC moves the touch probe to the entered measuring height
and probes four points to find the third hole center.
7 Finally the TNC returns the touch probe to the clearance height and
saves the actual values and the deviations in the following Q
parameters:

Parameter number Meaning


Q151 Actual value of center in reference axis

Q152 Actual value of center in minor axis

Q153 Actual value of bolt hole circle diameter

Q161 Deviation from center of reference axis

Q162 Deviation from center of minor axis

Q163 Deviation of bolt hole circle diameter

Before programming, note the following


Before a cycle definition you must have programmed a
tool call to define the touch probe axis.

HEIDENHAIN TNC 320 133


3.3 Automatic Workpiece Measurement
8 Center of 1st axis Q273 (absolute): Bolt hole circle
center (nominal value) in the reference axis of the
working plane. Y Q291
8 Center in 2nd axis Q274 (absolute): Bolt hole circle
center (nominal value) in the minor axis of the working
plane.

Q292

Q289
Q262
Q288
8 Nominal diameter Q262: Enter the bolt hole circle Q274Q280
diameter.
8 Angle of 1st hole Q291 (absolute): Polar coordinate
angle of the first hole center in the working plane.
8 Angle of 2nd hole Q292 (absolute): Polar coordinate Q293
angle of the second hole center in the working plane. X
Q273Q279
8 Angle of 3rd hole Q293 (absolute): Polar coordinate
angle of the third hole center in the working plane.
8 Measuring height in the touch probe axis Q261
(absolute): Coordinate of the ball tip center (= touch
point) in the touch probe axis in which the
Z
measurement is to be made.
8 Clearance height Q260 (absolute): Coordinate in the
Q260
touch probe axis at which no collision between tool
and workpiece (fixtures) can occur.
8 Maximum dimension Q288: Maximum permissible Q261
diameter of bolt hole circle.
8 Minimum dimension Q289: Minimum permissible
diameter of bolt hole circle.
8 Tolerance value for center 1st axis Q279: X
Permissible position deviation in the reference axis of
the working plane.
8 Tolerance value for center 2nd axis Q280:
Permissible position deviation in the minor axis of the
working plane.

134
Example: NC blocks

3.3 Automatic Workpiece Measurement


8 Measuring log Q281: Definition of whether the TNC is
to create a measuring log:
0: No measuring log 5 TCH PROBE 430 MEAS. BOLT HOLE CIRC
1: Generate measuring log: the TNC saves the log file Q273=+50 ;CENTER 1ST AXIS
TCHPR430.TXT by default in the directory TNC:\
2: Interrupt the program run and display the Q274=+50 ;CENTER 2ND AXIS
measuring log on the screen. Resume program run Q262=80 ;NOMINAL DIAMETER
with NC Start.
Q291=+0 ;ANGLE OF 1ST HOLE
8 PGM stop if tolerance error Q309: Definition of
whether in the event of a violation of tolerance limits Q292=+90 ;ANGLE OF 2ND HOLE
the TNC is to interrupt the program run and output an Q293=+180 ;ANGLE OF 3RD HOLE
error message:
0: Do not interrupt program run, no error message Q261=-5 ;MEASURING HEIGHT
1: Interrupt program run, output an error message Q260=+10 ;CLEARANCE HEIGHT
8 Tool number for monitoring Q330: Definition of Q288=80.1 ;MAX. LIMIT
whether the TNC is to monitor for tool breakage (see
Tool monitoring on page 108): Q289=79.9 ;MIN. LIMIT
0: Monitoring not active Q279=0.15 ;TOLERANCE 1ST CENTER
>0: Tool number in the tool table TOOL.T
Q280=0.15 ;TOLERANCE 2ND CENTER

Note: Only tool breakage monitoring active, no automatic Q281=1 ;MEASURING LOG
tool compensation. Q309=0 ;PGM STOP IF ERROR
Q330=0 ;TOOL NUMBER

HEIDENHAIN TNC 320 135


3.3 Automatic Workpiece Measurement
MEASURE PLANE (touch probe cycle 431,
DIN/ISO: G431)
Touch probe cycle 431 finds the angle of a plane by measuring three
points. It saves the measured values in system parameters. +Y
+X
1 Following the positioning logic (see Running touch probe cycles Z
on page 21), the TNC positions the touch probe at rapid traverse
(value from FMAX column) to the programmed starting point 1 and
measures the first touch point of the plane. The TNC offsets the
touch probe by the safety clearance in the direction opposite to the Y
direction of probing. 3
2 The touch probe returns to the clearance height and then moves in
the working plane to starting point 2 and measures the actual value B 2
of the second touch point of the plane. X
1
3 The touch probe returns to the clearance height and then moves in
the working plane to starting point 3 and measures the actual value
of the third touch point. A
4 Finally the TNC returns the touch probe to the clearance height and
saves the measured angle values in the following Q parameters:
Parameter number Meaning
Q158 Projection angle of the A axis

Q159 Projection angle of the B axis

Q170 Spatial angle A

Q171 Spatial angle B

Q172 Spatial angle C

Q173 Measured value in the touch probe axis

136
3.3 Automatic Workpiece Measurement
Before programming, note the following
Before a cycle definition you must have programmed a
tool call to define the touch probe axis.
For the TNC to be able to calculate the angular values, the
three measuring points must not be positioned on one
straight line.
The spatial angles that are needed for tilting the working
plane are saved in parameters Q170 Q172. With the first
two measuring points you also specify the direction of the
reference axis when tilting the working plane.
The third measuring point determines the direction of the
tool axis. Define the third measuring point in the direction
of the positive Y axis to ensure that the position of the tool
axis in a clockwise coordinate system is correct (see
figure).
If you run the cycle while a tilted working plane is active,
the spatial angle is measured with respect to the tilted
coordinate system. In these cases use the determined
spatial angle via incremental input with the tilting the
working plane function.

HEIDENHAIN TNC 320 137


3.3 Automatic Workpiece Measurement
8 1st measuring point in 1st axis Q263 (absolute):
coordinate of the first touch point in the reference Y
axis of the working plane.
8 1st measuring point in 2nd axis Q264 (absolute):
coordinate of the first touch point in the minor axis of
the working plane.
Q266
8 1st measuring point in 3rd axis Q294 (absolute):
coordinate of the first touch point in the touch probe
axis.
Q297
8 2nd measuring point in 1st axis Q265 (absolute):
Q264
coordinate of the second touch point in the reference
axis of the working plane
8 2nd measuring point in 2nd axis Q266 (absolute): X
coordinate of the second touch point in the minor axis Q263 Q265 Q296
of the working plane
8 2nd measuring point in 3rd axis Q295 (absolute):
coordinate of the second touch point in the touch
probe axis. Z
8 3rd measuring point in 1st axis Q296 (absolute): Q260
coordinate of the third touch point in the reference
axis of the working plane.
Q295 MP6140
8 3rd measuring point in 2nd axis Q297 (absolute): +
coordinate of the third touch point in the minor axis of Q298 Q320
the working plane.
Q294
8 3rd measuring point in 3rd axis Q298 (absolute):
coordinate of the third touch point in the touch probe
axis.
8 Setup clearance Q320 (incremental): Additional X
distance between measuring point and ball tip. Q320
is added to column SET_UP.
8 Clearance height Q260 (absolute): Coordinate in the Example: NC blocks
touch probe axis at which no collision between tool
and workpiece (fixtures) can occur. 5 TCH PROBE 431 MEASURE PLANE
8 Measuring log Q281: Definition of whether the TNC is Q263=+20 ;1ST POINT 1ST AXIS
to create a measuring log: Q264=+20 ;1ST POINT 2ND AXIS
0: No measuring log
1: Generate measuring log: the TNC saves the log file Q294=-10 ;1ST POINT 3RD AXIS
TCHPR431.TXT by default in the directory TNC:\ Q265=+50 ;2ND POINT 1ST AXIS
2: Interrupt the program run and display the
measuring log on the screen. Resume program run Q266=+80 ;2ND POINT 2ND AXIS
with NC Start. Q295=+0 ;2ND POINT 3RD AXIS
Q296=+90 ;3RD POINT 1ST AXIS
Q297=+35 ;3RD POINT 2ND AXIS
Q298=+12 ;3RD POINT 3RD AXIS
Q320=0 ;SET-UP CLEARANCE
Q260=+5 ;CLEARANCE HEIGHT
Q281=1 ;MEASURING LOG

138
3.3 Automatic Workpiece Measurement
Example: Measuring and reworking a rectangular stud

Program sequence:

- Roughing with 0.5 mm finishing allowance


Y Y
- Measuring 80

- Rectangular stud finishing in accordance with the


measured values

50

60
X Z
50 10

0 BEGIN PGM BEAMS MM


1 TOOL CALL 0 Z Prepare tool call
2 L Z+100 R0 FMAX Retract the tool.
3 FN 0: Q1 = +81 Pocket length in X (roughing dimension)
4 FN 0: Q2 = +61 Pocket length in Y (roughing dimension)
5 CALL LBL 1 Call subprogram for machining
6 L Z+100 R0 FMAX Retract the tool, change the tool
7 TOOL CALL 99 Z Call the touch probe
8 TCH PROBE 424 MEAS. RECTAN. OUTS. Measure the rough-milled rectangle
Q273=+50 ;CENTER 1ST AXIS
Q274=+50 ;CENTER 2ND AXIS
Q282=80 ;FIRST SIDE LENGTH Nominal length in X (final dimension)
Q283=60 ;SECOND SIDE LENGTH Nominal length in Y (final dimension)
Q261=-5 ;MEASURING HEIGHT
Q320=0 ;SET-UP CLEARANCE
Q260=+30 ;CLEARANCE HEIGHT
Q301=0 ;MOVE TO CLEARANCE
Q284=0 ;MAX. LIMIT 1ST SIDE Input values for tolerance checking not required
Q285=0 ;MIN. LIMIT 1ST SIDE
Q286=0 ;MAX. LIMIT 2ND SIDE

HEIDENHAIN TNC 320 139


3.3 Automatic Workpiece Measurement
Q287=0 ;MIN. LIMIT 2ND SIDE
Q279=0 ;TOLERANCE 1ST CENTER
Q280=0 ;TOLERANCE 2ND CENTER
Q281=0 ;MEASURING LOG No measuring log transmission
Q309=0 ;PGM STOP IF ERROR Do not output an error message
Q330=0 ;TOOL NUMBER No tool monitoring
9 FN 2: Q1 = +Q1 - +Q164 Calculate length in X including the measured deviation
10 FN 2: Q2 = +Q2 - +Q165 Calculate length in Y including the measured deviation
11 L Z+100 R0 FMAX Retract the touch probe, change the tool
12 TOOL CALL 1 Z S5000 Tool call for finishing
13 CALL LBL 1 Call subprogram for machining
14 L Z+100 R0 FMAX M2 Retract in the tool axis, end program
15 LBL 1 Subprogram with fixed cycle for rectangular studs
16 CYCL DEF 213 STUD FINISHING
Q200=20 ;SET-UP CLEARANCE
Q201=-10 ;DEPTH
Q206=150 ;FEED RATE FOR PLUNGING
Q202=5 ;PLUNGING DEPTH
Q207=500 ;FEED RATE FOR MILLING
Q203=+10 ;SURFACE COORDINATE
Q204=20 ;2ND SET-UP CLEARANCE
Q216=+50 ;CENTER 1ST AXIS
Q217=+50 ;CENTER 2ND AXIS
Q218=Q1 ;FIRST SIDE LENGTH Length in X variable for roughing and finishing
Q219=Q2 ;2ND SIDE LENGTH Length in Y variable for roughing and finishing
Q220=0 ;CORNER RADIUS
Q221=0 ;ALLOWANCE IN 1ST AXS
17 CYCL CALL M3 Cycle call
18 LBL 0 End of subprogram
19 END PGM BEAMS MM

140
3.3 Automatic Workpiece Measurement
Example: Measuring a rectangular pocket and recording the results

Y Y
90

40

70
X Z
50 -20
-15

0 BEGIN PGM BSMESS MM


1 TOOL CALL 1 Z Tool call for touch probe
2 L Z+100 R0 FMAX Retract the touch probe
3 TCH PROBE 423 MEAS. RECTAN. INSIDE
Q273=+50 ;CENTER 1ST AXIS
Q274=+40 ;CENTER 2ND AXIS
Q282=90 ;FIRST SIDE LENGTH Nominal length in X
Q283=70 ;SECOND SIDE LENGTH Nominal length in Y
Q261=-5 ;MEASURING HEIGHT
Q320=0 ;SET-UP CLEARANCE
Q260=+20 ;CLEARANCE HEIGHT
Q301=0 ;MOVE TO CLEARANCE
Q284=90.15 ;MAX. LIMIT 1ST SIDE Maximum limit in X
Q285=89.95 ;MIN. LIMIT 1ST SIDE Minimum limit in X
Q286=70.1 ;MAX. LIMIT 2ND SIDE Maximum limit in Y
Q287=69.9 ;MIN. LIMIT 2ND SIDE Minimum limit in Y
Q279=0.15 ;TOLERANCE 1ST CENTER Permissible position deviation in X
Q280=0.1 ;TOLERANCE 2ND CENTER Permissible position deviation in Y
Q281=1 ;MEASURING LOG Save measuring log to a file
Q309=0 ;PGM STOP IF ERROR Do not display an error message in case of a tolerance violation
Q330=0 ;TOOL NUMBER No tool monitoring

HEIDENHAIN TNC 320 141


3.3 Automatic Workpiece Measurement
4 L Z+100 R0 FMAX M2 Retract in the tool axis, end program
5 END PGM BSMESS MM

142
3.4 Special Cycles
3.4 Special Cycles
Overview
The TNC provides a cycle for the following special purpose:

Cycle Soft key Page


3 MEASURING Cycle for defining OEM Page 144
cycles

HEIDENHAIN TNC 320 143


3.4 Special Cycles
MEASURING (touch probe cycle 3)

The exact behavior of touch probe cycle 3 is defined by


your machine tool builder or a software manufacturer who
uses it within specific touch probe cycles.

Touch probe cycle 3 measures any position on the workpiece in a


selectable direction. Unlike other measuring cycles, Cycle 3 enables
you to enter the measuring path DISTand feed rate F directly. Also, the
touch probe retracts by a definable value after determining the
measured value MB.
1 The touch probe moves from the current position at the entered
feed rate in the defined probing direction. The probing direction
must be defined in the cycle as a polar angle.
2 After the TNC has saved the position, the touch probe stops. The
TNC saves the X, Y, Z coordinates of the probe-tip center in three
successive Q parameters. The TNC does not conduct any length
or radius compensations. You define the number of the first result
parameter in the cycle.
3 Finally, the TNC moves the touch probe back by that value against
the probing direction that you defined in the parameter MB.

Before programming, note the following


The machine parameters DIST (maximum traverse to
touch point) and F (probing feed rate), which are effective
in other measuring cycles, do not apply in touch probe
cycle 3.
Remember that the TNC always writes to 4 successive Q
parameters.
If the TNC was not able to determine a valid touch point,
the program is run without error message. In this case the
TNC assigns the value 1 to the 4th result parameter so
that you can deal with the error yourself.
The TNC retracts the touch probe by no more that the
retraction distance MB and does not pass the starting point
of the measurement. This rules out any collision during
retraction.
With function FN17: SYSWRITE ID 990 NR 6 you can set
whether the cycle runs through the probe input X12 or
X13.

144
Example: NC blocks

3.4 Special Cycles


8 Parameter number for result: Enter the number of
the Q parameter to which you want the TNC to assign
the first measured coordinate (X). The values Y and Z 4 TCH PROBE 3.0 MEASURING
are in the immediately following Q parameters. 5 TCH PROBE 3.1 Q1
8 Probing angle: Enter the angle in whose direction the 6 TCH PROBE 3.2 X ANGLE: +15
probe is to move and confirm with the ENT key.
7 TCH PROBE 3.3 DIST +10 F100 MB1
8 Probing angle: Angle, measured from the probing REFERENCE SYSTEM:0
axis at which the touch probe is to move. Confirm
with ENT 8 TCH PROBE 3.4 ERRORMODE1

8 Maximum measuring path: Enter the maximum


distance from the starting point by which the touch
probe is to move. Confirm with ENT.
8 Feed rate: Enter the measuring feed rate in mm/min.
8 Maximum retraction path: Traverse path in the
direction opposite the probing direction, after the
stylus was deflected. The TNC returns the touch
probe to a point no farther than the starting point, so
that there can be no collision.
8 REFERENCE SYSTEM (0=ACT/1=REF): Specify whether
the result of measurement is to be saved in the actual
coordinate system (ACT, can therefore be shifted or
rotated), or with respect to the machine coordinate
system (REF).
8 Error mode (0=OFF/1=ON): Specify whether the TNC
is to issue an error message if the stylus is deflected
at cycle start (0) or not (1). If you select mode 1, the
TNC continues to save the value 2.0 in the 4th result
parameter and continues the cycle.
8 To conclude the input, press the ENT key.

HEIDENHAIN TNC 320 145


Touch Probe Cycles for
Automatic Tool
Measurement
4.1 Tool Measurement with the TT Tool Touch Probe
4.1 Tool Measurement with the TT
Tool Touch Probe
Overview

The TNC and the machine tool must be set up by the


machine tool builder for use of the TT touch probe.
Some cycles and functions may not be provided on your
machine tool. Refer to your machine manual.

In conjunction with the TNCs tool measurement cycles, the tool touch
probe enables you to measure tools automatically. The compensation
values for tool length and radius can be stored in the central tool file
TOOL.T and are accounted for at the end of the touch probe cycle. The
following types of tool measurement are provided:
Tool measurement while the tool is at standstill.
Tool measurement while the tool is rotating.
Measuring individual teeth.

Setting the machine parameters

Before you start work with the TT cycles, inspect all


machine parameters defined in ProbSettings >
CfgToolMeasurement and CfgTTRoundStylus.
The TNC uses the feed rate for probing defined in
probingFeed when measuring a tool at standstill.

When measuring a rotating tool, the TNC automatically calculates the


spindle speed and feed rate for probing.
The spindle speed is calculated as follows:
n = maxPeriphSpeedMeas / (r 0.0063) where

n Spindle speed (rpm)


maxPeriphSpeedMeas Maximum permissible cutting speed in m/min
r Active tool radius in mm
The feed rate for probing is calculated from:
v = meas. tolerance n where

v Feed rate for probing in mm/min


Measuring Measuring tolerance [mm], depending on
tolerance maxPeriphSpeedMeas
n Speed in rpm

148
4.1 Tool Measurement with the TT Tool Touch Probe
probingFeedCalc determines the calculation of the probing feed rate:
probingFeedCalc = ConstantTolerance:
The measuring tolerance remains constant regardless of the tool
radius. With very large tools, however, the feed rate for probing is
reduced to zero. The smaller you set the maximum permissible
rotational speed (maxPeriphSpeedMeas) and the permissible tolerance
(measureTolerance1), the sooner you will encounter this effect.
probingFeedCalc = VariableTolerance:
The measuring tolerance is adjusted relative to the size of the tool
radius. This ensures a sufficient feed rate for probing even with large
tool radii. The TNC adjusts the measuring tolerance according to the
following table:

Tool radius Measuring tolerance


Up to 30 mm measureTolerance1

30 to 60 mm 2 measureTolerance1

60 to 90 mm 3 measureTolerance1

90 to 120 mm 4 measureTolerance1

probingFeedCalc = ConstantFeed:
The feed rate for probing remains constant, the error of measurement,
however, rises linearly with the increase in tool radius:
Measuring tolerance = (r measureTolerance1)/ 5 mm) where

r Active tool radius in mm


measureTolerance1 Maximum permissible error of measurement

HEIDENHAIN TNC 320 149


4.1 Tool Measurement with the TT Tool Touch Probe
Entries in the tool table TOOL.T
Abbr. Inputs Dialog
CUT Number of teeth (20 teeth maximum) Number of teeth?

LTOL Permissible deviation from tool length L for wear detection. If the Wear tolerance: length?
entered value is exceeded, the TNC locks the tool (status L). Input
range: 0 to 0.9999 mm

RTOL Permissible deviation from tool radius R for wear detection. If the Wear tolerance: radius?
entered value is exceeded, the TNC locks the tool (status L). Input
range: 0 to 0.9999 mm

DIRECT. Cutting direction of the tool for measuring the tool during rotation Cutting direction (M3 = )?

R-OFFS For tool length measurement: Tool offset between stylus center Tool offset: radius?
and tool center. Default setting: No value entered (offset = tool
radius)

L-OFFS Tool radius measurement: tool offset in addition to Tool offset: length?
offsetToolAxis between upper surface of stylus and lower
surface of tool. Default: 0

LBREAK Permissible deviation from tool length L for breakage detection. If Breakage tolerance: length?
the entered value is exceeded, the TNC locks the tool (status L).
Input range: 0 to 0.9999 mm

RBREAK Permissible deviation from tool radius R for breakage detection. If Breakage tolerance: radius?
the entered value is exceeded, the TNC locks the tool (status L).
Input range: 0 to 0.9999 mm

150
4.1 Tool Measurement with the TT Tool Touch Probe
Input examples for common tool types
Tool type CUT R-OFFS L-OFFS
Drill (no function) 0 (no offset required because
tool tip is to be measured)

End mill with diameter of 4 (4 teeth) 0 (no offset required because 0 (no additional offset
< 19 mm tool diameter is smaller than required for radius
the contact plate diameter of calibration; offset from
the TT) offsetToolAxis is used.)

End mill with diameter of 4 (4 teeth) R (offset required because 0 (no additional offset
> 19 mm tool diameter is larger that required for radius
the contact plate diameter of calibration; offset from
the TT) offsetToolAxis is used.)

Radius cutter 4 (4 teeth) 0 (no offset required because 5 (always define the tool
the south pole of the ball is to radius as the offset so that
be measured) the diameter is not
measured in the radius)

HEIDENHAIN TNC 320 151


4.2 Available Cycles
4.2 Available Cycles
Overview
You can program the cycles for tool measurement in the Programming
mode of operation via the TOUCH PROBE key. The following cycles
are available:

Cycle Old format New format


Calibrating the TT

Measuring the tool length

Measuring the tool radius

Measuring tool length and


radius

The measuring cycles can be used only when the central


tool file TOOL.T is active.
Before working with the measuring cycles, you must first
enter all the required data into the central tool file and call
the tool to be measured with TOOL CALL.

Differences between Cycles 31 to 33 and Cycles


481 to 483
The features and the operating sequences are absolutely identical.
There are only two differences between Cycles 31 to 33 and
Cycles 481 to 483:
Cycles 481 to 483 are also available in TNCs for ISO programming
under G481 to G483.
Instead of a selectable parameter for the status of the
measurement, the new cycles use the fixed parameter Q199.

152
4.2 Available Cycles
Calibrating the TT (touch probe cycle 30 or 480,
DIN/ISO: G480)

The method of function of the calibration cycle is


determined by the machine manufacturer. Refer to your
machine manual.
Before calibrating the touch probe, you must enter the
exact length and radius of the calibrating tool into the tool
table TOOL.T.
The position of the TT within the machine working space
must be defined by setting the Machine Parameters
centerPos > [0] to [2].
If you change the setting of any of the Machine
Parameters centerPos > [0] to [2], you must recalibrate.

The TT is calibrated with the measuring cycle TCH PROBE 30 or TCH


PROBE 480 (see also Differences between Cycles 31 to 33 and
Cycles 481 to 483 on page 152). The calibration process is automatic.
The TNC also measures the center misalignment of the calibrating tool
automatically by rotating the spindle by 180 after the first half of the
calibration cycle.
The calibrating tool must be a precisely cylindrical part, for example a
cylinder pin. The resulting calibration values are stored in the TNC
memory and are accounted for during subsequent tool measurement.
8 Clearance height: Enter the position in the spindle Example: NC blocks in old format
axis at which there is no danger of collision with the
workpiece or fixtures. The clearance height is 6 TOOL CALL 1 Z
referenced to the active workpiece datum. If you 7 TCH PROBE 30.0 CALIBRATE TT
enter such a small clearance height that the tool tip
would lie below the level of the probe contact, the 8 TCH PROBE 30.1 HEIGHT: +90
TNC automatically positions the tool above the level
of the probe contact (safety zone from Example: NC blocks in new format
safetyDistStylus).
6 TOOL CALL 1 Z
7 TCH PROBE 480 CALIBRATE TT
Q260=+100 ;CLEARANCE HEIGHT

HEIDENHAIN TNC 320 153


4.2 Available Cycles
Measuring the tool length (touch probe cycle 31
or 481, DIN/ISO: G481)

Before measuring a tool for the first time, enter the


following data on the tool into the tool table TOOL.T: the
approximate radius, the approximate length, the number
of teeth, and the cutting direction.

To measure the tool length, program the measuring cycle TCH PROBE
31 or TCH PROBE 480 (see also Differences between Cycles 31 to
33 and Cycles 481 to 483 on page 152). Depending on the input
parameters, you can measure the length of a tool by three methods:
If the tool diameter is larger than the diameter of the measuring
surface of the TT, you can measure the tool while it is rotating.
If the tool diameter is smaller than the diameter of the measuring
surface of the TT, or if you are measuring the length of a drill or
spherical cutter, you can measure the tool while it is at standstill.
If the tool diameter is larger than the diameter of the measuring
surface of the TT, you can measure the individual teeth of the tool
while it is at standstill.

154
4.2 Available Cycles
Measuring cycle for measuring a tool during rotation
The TNC determines the longest tooth of a rotating tool by positioning
the tool to be measured at an offset to the center of the touch probe
system and then moving it toward the measuring surface until it
contacts the surface. The offset is programmed in the tool table under
Tool offset: Radius (R-OFFS).

Measuring cycle for measuring a tool during standstill (e.g. for


drills)
The TNC positions the tool to be measured over the center of the
measuring surface. It then moves the non-rotating tool toward the
measuring surface of the TT until it touches the surface. To activate
this function, enter zero for the Tool offset: Radius (R-OFFS) in the tool
table.

Measuring cycle for measuring individual teeth


The TNC pre-positions the tool to be measured to a position at the side
of the touch probe head. The distance from the tip of the tool to the
upper edge of the touch probe head is defined in offsetToolAxis. You
can enter an additional offset with Tool offset: Length (L-OFFS) in the
tool table. The TNC probes the tool radially during rotation to
determine the starting angle for measuring the individual teeth. It then
measures the length of each tooth by changing the corresponding
angle of spindle orientation. To activate this function, program TCH
PROBE 31 = 1 for CUTTER MEASUREMENT.

You can run an individual tooth measurement of tools with


up to 20 teeth.

HEIDENHAIN TNC 320 155


4.2 Available Cycles
Define cycle
8 Measure tool=0 / Check tool=1: Select whether the Example: Measuring a rotating tool for the first
tool is to be measured for the first time or whether a time; old format
tool that has already been measured is to be
inspected. If the tool is being measured for the first 6 TOOL CALL 12 Z
time, the TNC overwrites the tool length L in the 7 TCH PROBE 31.0 TOOL LENGTH
central tool file TOOL.T by the delta value DL = 0. If
you wish to inspect a tool, the TNC compares the 8 TCH PROBE 31.1 CHECK: 0
measured length with the tool length L that is stored 9 TCH PROBE 31.2 HEIGHT: +120
in TOOL.T. It then calculates the positive or negative
deviation from the stored value and enters it into 10 TCH PROBE 31.3 PROBING THE TEETH: 0
TOOL.T as the delta value DL. The deviation can also
be used for Q parameter Q115. If the delta value is Example: Inspecting a tool and measuring the
greater than the permissible tool length tolerance for individual teeth and saving the status in Q5; old
wear or break detection, the TNC will lock the tool format
(status L in TOOL.T).
6 TOOL CALL 12 Z
8 Parameter number for result?: Parameter number in
which the TNC stores the status of the 7 TCH PROBE 31.0 TOOL LENGTH
measurement: 8 TCH PROBE 31.1 CHECK: 1 Q5
0.0: Tool is within the tolerance
1.0: Tool is worn (LTOL exceeded) 9 TCH PROBE 31.2 HEIGHT: +120
2.0: Tool is broken (LBREAK exceeded). If you do not 10 TCH PROBE 31.3 PROBING THE TEETH: 1
wish to use the result of measurement within the
program, answer the dialog prompt with NO ENT.
Example: NC blocks in new format
8 Clearance height: Enter the position in the spindle
axis at which there is no danger of collision with the 6 TOOL CALL 12 Z
workpiece or fixtures. The clearance height is
7 TCH PROBE 481 TOOL LENGTH
referenced to the active workpiece datum. If you
enter such a small clearance height that the tool tip Q340=1 ;CHECK
would lie below the level of the probe contact, the
Q260=+100 ;CLEARANCE HEIGHT
TNC automatically positions the tool above the level
of the probe contact (safety zone from Q341=1 ;PROBING THE TEETH
safetyDistStylus).
8 Cutter measurement? 0=No / 1=Yes: Choose whether
the TNC is to measure the individual teeth (maximum
of 20 teeth)

156
4.2 Available Cycles
Measuring the tool radius (touch probe cycle 32
or 482, ISO: G482)

Before measuring a tool for the first time, enter the


following data on the tool into the tool table TOOL.T: the
approximate radius, the approximate length, the number
of teeth, and the cutting direction.

To measure the tool radius, program the cycle TCH PROBE 32 or TCH
PROBE 482 (see also Differences between Cycles 31 to 33 and
Cycles 481 to 483 on page 152). Via input parameters you can
measure the radius of a tool by two methods:
Measuring the tool while it is rotating.
Measuring the tool while it is rotating and subsequently measuring
the individual teeth.

Cylindrical tools with diamond surfaces can be measured


with stationary spindle. To do so, define the number of
teeth (CUT) with 0 in the tool table and adjust the machine
parameter CfgToolMeasurement. Refer to your machine
manual.

Measuring cycle
The TNC pre-positions the tool to be measured to a position at the side
of the touch probe head. The distance from the tip of the milling tool
to the upper edge of the touch probe head is defined in
offsetToolAxis. The TNC probes the tool radially while it is rotating. If
you have programmed a subsequent measurement of individual teeth,
the TNC measures the radius of each tooth with the aid of oriented
spindle stops.

HEIDENHAIN TNC 320 157


4.2 Available Cycles
Define cycle
8 Measure tool=0 / Check tool=1: Select whether the Example: Measuring a rotating tool for the first
tool is to be measured for the first time or whether a time; old format
tool that has already been measured is to be
inspected. If the tool is being measured for the first 6 TOOL CALL 12 Z
time, the TNC overwrites the tool radius R in the 7 TCH PROBE 32.0 TOOL RADIUS
central tool file TOOL.T by the delta value DR = 0. If
you wish to inspect a tool, the TNC compares the 8 TCH PROBE 32.1 CHECK: 0
measured radius with the tool radius R that is stored 9 TCH PROBE 32.2 HEIGHT: +120
in TOOL.T. It then calculates the positive or negative
deviation from the stored value and enters it into 10 TCH PROBE 32.3 PROBING THE TEETH: 0
TOOL.T as the delta value DR. The deviation can also
be used for Q parameter Q116. If the delta value is Example: Inspecting a tool and measuring the
greater than the permissible tool radius tolerance for individual teeth and saving the status in Q5; old
wear or break detection, the TNC will lock the tool format
(status L in TOOL.T).
6 TOOL CALL 12 Z
8 Parameter number for result?: Parameter number in
which the TNC stores the status of the 7 TCH PROBE 32.0 TOOL RADIUS
measurement: 8 TCH PROBE 32.1 CHECK: 1 Q5
0.0: Tool is within the tolerance
1.0: Tool is worn (RTOL exceeded) 9 TCH PROBE 32.2 HEIGHT: +120
2.0: Tool is broken (RBREAK exceeded). If you do not 10 TCH PROBE 32.3 PROBING THE TEETH: 1
wish to use the result of measurement within the
program, answer the dialog prompt with NO ENT.
Example: NC blocks in new format
8 Clearance height: Enter the position in the spindle
axis at which there is no danger of collision with the 6 TOOL CALL 12 Z
workpiece or fixtures. The clearance height is
7 TCH PROBE 482 TOOL RADIUS
referenced to the active workpiece datum. If you
enter such a small clearance height that the tool tip Q340=1 ;CHECK
would lie below the level of the probe contact, the
Q260=+100 ;CLEARANCE HEIGHT
TNC automatically positions the tool above the level
of the probe contact (safety zone from Q341=1 ;PROBING THE TEETH
safetyDistStylus).
8 Cutter measurement? 0=No / 1=Yes: Choose whether
the TNC is also to measure the individual teeth
(maximum of 20 teeth)

158
4.2 Available Cycles
Measuring the tool radius (touch probe cycle 33
or 483, ISO: G483)

Before measuring a tool for the first time, enter the


following data on the tool into the tool table TOOL.T: the
approximate radius, the approximate length, the number
of teeth, and the cutting direction.

To measure both the length and radius of a tool, program the


measuring cycles TCH PROBE 33 or TCH PROBE 482 (see also
Differences between Cycles 31 to 33 and Cycles 481 to 483 on
page 152). This cycle is particularly suitable for the first measurement
of tools, as it saves time when compared with individual
measurement of length and radius. In input parameters you can select
the desired type of measurement:
Measuring the tool while it is rotating.
Measuring the tool while it is rotating and subsequently measuring
the individual teeth.

Cylindrical tools with diamond surfaces can be measured


with stationary spindle. To do so, define the number of
teeth (CUT) with 0 in the tool table and adjust the machine
parameter CfgToolMeasurement. Refer to your machine
manual.

Measuring cycle
The TNC measures the tool in a fixed programmed sequence. First it
measures the tool radius, then the tool length. The sequence of
measurement is the same as for measuring cycles 31 and 32.

HEIDENHAIN TNC 320 159


4.2 Available Cycles
Define cycle
8 Measure tool=0 / Check tool=1: Select whether the Example: Measuring a rotating tool for the first
tool is to be measured for the first time or whether a time; old format
tool that has already been measured is to be
inspected. If the tool is being measured for the first 6 TOOL CALL 12 Z
time, the TNC overwrites the tool radius R and the 7 TCH PROBE 33.0 MEASURE TOOL
tool length L in the central tool file TOOL.T by the
delta values DR = 0 and DL = 0. If you wish to inspect 8 TCH PROBE 33.1 CHECK: 0
a tool, the TNC compares the measured data with the 9 TCH PROBE 33.2 HEIGHT: +120
tool data stored in TOOL.T. The TNC calculates the
deviations and enters them as positive or negative 10 TCH PROBE 33.3 PROBING THE TEETH: 0
delta values DR and DL in TOOL.T. The deviations are
also available in the Q parameters Q115 and Q116. If Example: Inspecting a tool and measuring the
the delta values are greater than the permissible tool individual teeth and saving the status in Q5; old
tolerances for wear or break detection, the TNC will format
lock the tool (status L in TOOL.T).
6 TOOL CALL 12 Z
8 Parameter number for result?: Parameter number in
which the TNC stores the status of the 7 TCH PROBE 33.0 MEASURE TOOL
measurement: 8 TCH PROBE 33.1 CHECK: 1 Q5
0.0: Tool is within the tolerance
1.0: Tool is worn (LTOL or/and RTOL exceeded) 9 TCH PROBE 33.2 HEIGHT: +120
2.0: Tool is broken (LBREAK or/and RBREAK exceeded). 10 TCH PROBE 33.3 PROBING THE TEETH: 1
If you do not wish to use the result of measurement
within the program, answer the dialog prompt with
NO ENT. Example: NC blocks in new format

8 Clearance height: Enter the position in the spindle 6 TOOL CALL 12 Z


axis at which there is no danger of collision with the
7 TCH PROBE 483 MEASURE TOOL
workpiece or fixtures. The clearance height is
referenced to the active workpiece datum. If you Q340=1 ;CHECK
enter such a small clearance height that the tool tip
Q260=+100 ;CLEARANCE HEIGHT
would lie below the level of the probe contact, the
TNC automatically positions the tool above the level Q341=1 ;PROBING THE TEETH
of the probe contact (safety zone from
safetyDistStylus).
8 Cutter measurement? 0=No / 1=Yes: Choose whether
the TNC is also to measure the individual teeth
(maximum of 20 teeth)

160
Symbole F S
3-D touch probes ... 16 FCL function ... 4 Setting basic rotation
Calibrating Feature content level ... 4 ... 56
Triggering ... 29 For automatic tool measurement, see Slot width, measuring ... 126
tool measurement
A T
Angle of a plane, measuring ... 136 H Tolerance monitoring ... 108
Automatic tool measurement ... 150 Hole, measuring ... 114 Tool compensation ... 108
Tool measurement ... 150
B M Calibrating the TT ... 153
Basic rotation Machine parameters for 3-D touch Machine parameters ... 148
Measuring during program run ... 42 probes ... 19 Measuring tool length and
Measuring in the Manual Operation Measurement results in Q radius ... 159
mode ... 32 parameters ... 64, 107 Overview ... 152
Bolt hole circle, measuring ... 133 Measuring angles ... 112 Tool length ... 154
Measuring the angle of a plane ... 136 Tool radius ... 157
C Multiple measurements ... 20 Tool monitoring ... 108
Calibrating 3-D touch probes Touch probe cycles
P Touch probe cycles for automatic
Circle, measuring from inside ... 114 Positioning logic ... 21 operation ... 18
Circle, measuring from outside ... 117 Preset table ... 64 Touch probe data ... 23
Classification of results ... 107 Confirming probed values ... 28 Touch probe table ... 22
Compensating workpiece misalignment Presetting automatically ... 61
By measuring two points of a Center of 4 holes ... 96 W
line ... 44 Center of bolt hole circle ... 91 Width, measuring from inside ... 126
by measuring two points of a Center of circular pocket (or Width, measuring from outside ... 128
straight surface ... 32 hole) ... 76 Workpiece measurement ... 37, 105
Over two holes ... 46 Center of circular stud ... 81 Writing probed values in datum
Over two studs ... 49 Center of rectangular pocket ... 71 tables ... 27
Via rotary axis ... 52, 57 Center of rectangular stud ... 74 Writing probed values in preset
Confidence range ... 20 In any axis ... 99 table ... 28
Consider basic rotation ... 16 In inside corner ... 88
Coordinate, measuring a single ... 130 In the touch probe axis ... 94
Outside corner ... 85
D Ridge center ... 68
Datum Slot center ... 65
Save in a datum table ... 64 Probing cycles
Save in the preset table ... 64 Manual operation mode ... 26
Datum setting, manual Probing feed rate ... 20
Circle center as datum ... 36
Corner as datum ... 35 R
In any axis ... 34 Recording the results of
Datum table measurement ... 106
Confirming probed values ... 27 Rectangular pocket
measurement ... 123
Rectangular stud, measuring ... 120
Result parameters ... 64, 107
Ridge, measuring from outside ... 128

HEIDENHAIN TNC 320 161


Overview
Overview
Touch probe cycles
Cycle DEF- CALL-
Cycle designation Page
number active active
0 Reference plane Page 110

1 Polar datum Page 111

3 Measuring Page 144

30 Calibrating the TT Page 153

31 Measure/Inspect the tool length Page 154

32 Measure/Inspect the tool radius Page 157

33 Measure/Inspect the tool length and the tool radius Page 159

400 Basic rotation using two points Page 44

401 Basic rotation from two holes Page 46

402 Basic rotation from two studs Page 49

403 Compensate misalignment with rotary axis Page 52

404 Set basic rotation Page 56

405 Compensate misalignment with the C axis Page 57

408 Reference point at slot center (FCL 3 function) Page 65

409 Reference point at ridge center (FCL 3 function) Page 68

410 Datum from inside of rectangle Page 71

411 Datum from outside of rectangle Page 74

412 Datum from inside of circle (hole) Page 76

413 Datum from outside of circle (stud) Page 81

414 Datum from outside of corner Page 85

415 Datum from inside of corner Page 88

416 Datum from circle center Page 91

417 Datum in touch probe axis Page 94

418 Datum at center between four holes Page 96

419 Datum in any one axis Page 99

420 Workpiecemeasure angle Page 112

HEIDENHAIN TNC 320 163


Overview
Cycle DEF- CALL-
Cycle designation Page
number active active
421 Workpiecemeasure hole (center and diameter of hole) Page 114

422 Workpiecemeasure circle from outside (diameter of circular stud) Page 117

423 Workpiecemeasure rectangle from inside Page 120

424 Workpiecemeasure rectangle from outside Page 123

425 Workpiecemeasure inside width (slot) Page 126

426 Workpiecemeasure outside width (ridge) Page 128

427 Workpiecemeasure in any selectable axis Page 130

430 Workpiecemeasure bolt hole circle Page 133

431 Workpiecemeasure plane Page 136

480 Calibrating the TT Page 153

481 Measure/Inspect the tool length Page 154

482 Measure/Inspect the tool radius Page 157

483 Measure/Inspect the tool length and the tool radius Page 159

164
DR. JOHANNES HEIDENHAIN GmbH
Dr.-Johannes-Heidenhain-Strae 5
83301 Traunreut, Germany
{ +49 (8669) 31-0
| +49 (8669) 5061
E-Mail: [email protected]
Technical support | +49 (8669) 32-1000
Measuring systems { +49 (8669) 31-3104
E-Mail: [email protected]
TNC support { +49 (8669) 31-3101
E-Mail: [email protected]
NC programming { +49 (8669) 31-3103
E-Mail: [email protected]
PLC programming { +49 (8669) 31-3102
E-Mail: [email protected]
Lathe controls { +49 (8669) 31-3105
E-Mail: [email protected]
www.heidenhain.de

3-D Touch Probe Systems from HEIDENHAIN


help you to reduce non-cutting time:
For example in
workpiece alignment
datum setting
workpiece measurement
digitizing 3-D surfaces

with the workpiece touch probes


TS 220 with cable
TS 640 with infrared transmission

tool measurement
wear monitoring
tool breakage monitoring

with the tool touch probe


TT 140
Ve 00
661 873-20 SW03 3 7/2008 H Printed in Germany Subject to change without notice

You might also like