Heidenhain TNC 640 Training 4: Tool Length Setting – Single Tool and All Tools

12 November 2026

Mentor CNC Editorial Team

Page 4 of the Heidenhain TNC 640 training series covers tool setting. On a Heidenhain control this means entering the length (L) and radius (R) of every tool in the tool table (TOOL.T). This page shows how to open the tool table, how to determine and enter the length of a single tool and of all tools, how to compensate wear and how to call a tool, key by key. The information is taken from the HEIDENHAIN user’s manuals.

What is the tool length (L) on a Heidenhain control and what is it based on?

ValueDefinition in the manual
L (tool length)Always entered as an absolute value based on the tool reference point. The machine tool builder usually defines the spindle nose as the tool reference point
R (tool radius)Entered directly
DL, DR (delta values)Deviations for length and radius. A negative value is an undersize and is entered in the tool table for wear; a positive value is an oversize and is given with TOOL CALL. Maximum ± 99.999 mm
Tool number and nameEach tool is identified by a number between 0 and 32767; tool names can have up to 32 characters
T0The zero tool: L=0 and R=0. T0 should also be defined this way in the tool table

How do you open the tool table (TOOL.T) and enter tool data?

The tool table that is active for program run is named TOOL.T and is stored in the TNC:\table directory.

Heidenhain TNC 640 tool table TOOL.T editing screen
Tool table: one line per tool; columns L, R, DL, DR and further data.
StepWhat to doWhat you see
1Select any machine operating mode (e.g. Manual Operation)–
2Press the TOOL TABLE soft keyThe tool table opens
3Set the EDIT soft key to ONThe table can be edited
4Select the tool number (line) with the up/down arrow keysThe cursor is on that tool’s line
5Select the column with the right/left arrow keys (L, R, DL, DR)The cursor is in that cell
6Type the new valueIt overwrites the old value
7Leave the tool table with the END key–

Caution: While you edit the tool table the selected tool is locked; if that tool is needed by the NC program being run, the control shows a message that the tool table is locked. For a newly created tool the length and radius columns stay empty until a value is entered; if you try to insert a tool whose data have not been entered, the control stops with an error message.

What do the tool table columns mean?

ColumnMeaning
TNumber by which the tool is called in the program (e.g. 5; indexed: 5.2)
NAMETool name: up to 32 characters, capitals only, no spaces
LTool length
RTool radius
R2Second radius for toroid (corner-radius) cutters
DL, DR, DR2Delta values for length and radii
TLTool lock (Tool Locked)
RTNumber of the replacement tool; empty or 0 means none is defined
CUTNumber of teeth (maximum 99)
LTOL, RTOLWear tolerance for automatic tool measurement; if exceeded, the control locks the tool (0 to 0.9999 mm)
LBREAK, RBREAKBreakage tolerance for automatic tool measurement; if exceeded, the control locks the tool

How do you determine the length of a single tool on the machine?

According to the manual, tools are measured externally with a tool presetter or directly in the machine with a tool touch probe. If that is not possible, the tool length can be determined in two ways: with a gauge block or with a calibration pin. In both cases the preset in the spindle axis (Z) must be set first. Both methods are described in HEIDENHAIN’s manual for setup, testing and running NC programs (SW 10, 2019).

How do you determine the tool length with a gauge block?

This method can only be used if the tool reference point is at the spindle nose. The preset is placed on the surface that will later be touched off with the tool; this surface may have to be created first.

Heidenhain tool length determination with a gauge block
With a gauge block: set Z with the spindle nose first, then touch off the surface with the tool.
StepWhat to doWhat you see
1Place the gauge block on the machine table–
2Position the spindle nose next to the gauge block–
3Move gradually in the Z+ direction until you can just slide the gauge block under the spindle nose–
4Set the datum in ZThe Z preset is defined
5Insert the tool to be measured–
6Touch off the surface with the toolThe actual position in the position display is the absolute tool length
7Enter this value in column L of that tool in the tool table–

How do you determine the tool length with a calibration pin and a tool setter?

Heidenhain tool length determination with calibration pin and tool setter with dial gauge
With a calibration pin: set Z while the gauge reads 0, then bring the tool to the same point.
StepWhat to doWhat you see
1Clamp the tool setter onto the machine table–
2Bring the flexible inner ring of the tool setter to the same height as the fixed outer ring–
3Set the gauge to 0The gauge reads 0
4Move the calibration pin onto the flexible inner ring–
5Set the datum in ZThe Z preset is defined
6Insert the tool to be measured–
7Move the tool onto the flexible inner ring until the gauge displays 0The actual position in the position display is the absolute tool length
8Enter this value in column L of that tool in the tool table–

How do you set all tools?

Once the Z preset has been set, the same measurement is repeated for every tool; each value is entered in that tool’s own line of the tool table.

StepWhat to doWhat you see
1Set the Z preset once with the gauge block or calibration pin–
2Insert or call the first tool–
3Bring the tool onto the surface (or onto the ring until the gauge reads 0)The absolute tool length is shown in the position display
4Enter L and R in that tool’s line of the tool table–
5Repeat steps 2 to 4 for the next toolEvery tool is stored in its own line

How do you load tools measured on a presetter into the table?

With an external tool presetter you note length and radius and enter them by hand, or transfer them to the machine with a file. The manual’s example: the presetter creates a TOOL_Import.T table with 10 tools.

StepWhat to doWhat you see
1First make a backup copy of the existing TOOL.TProtection against data loss
2Copy TOOL_Import.T from the external data carrier to any directory–
3In the file manager, copy this table onto the existing TOOL.TThe control asks whether the existing table should be overwritten
4Press the REPLACE FIELDS soft keyOnly the 10 transferred lines are overwritten; all other lines stay unchanged

For this function the target table must exist, the file being copied must contain only the lines to be replaced, and both tables must have the same file type.

What changes on a machine with a tool touch probe (TT)?

If the machine has a tool touch probe, tools are measured with automatic measuring cycles. The CUT, LTOL, RTOL, LBREAK and RBREAK columns of the tool table are used for this. The cycles are described in the HEIDENHAIN Cycle Programming manual and depend on how the machine tool builder has prepared the machine.

How do you compensate tool wear in length and diameter? (DL and DR)

WhereWhat to enterWhat for
Tool table, DL and DR columnsNegative delta value (undersize)Compensating tool wear
TOOL CALL block, DL and DRPositive delta value (oversize)Leaving a finishing allowance for that call

Example from the manual: TOOL CALL 5.2 Z S2500 F350 DL+0.2 DR-1 DR2+0.05. Tool 5.2 is called in tool axis Z at 2500 rpm and 350 mm/min, with an oversize of 0.2 mm for the length and an undersize of 1 mm for the radius.

How do you call a tool? (TOOL CALL)

StepWhat to doWhat you see
1Press the TOOL CALL keyYou are asked for the tool number
2Enter the tool number. A name or a selection from a pop-up window is also possible via soft keysIn the selection window the tools present in the magazine are marked green
3Enter the spindle axis (e.g. Z)–
4Enter the spindle speed (S); the VC soft key switches to cutting speed–
5If needed, enter feed rate (F) and delta values (DL, DR)–
6Close the block with ENDThe TOOL CALL block is created

The tool change is a machine-dependent function; see the machine manual for how tools are changed on your machine.

What is the pocket table (TOOL_P.TCH) for?

Heidenhain TNC 640 pocket table TOOL_P.TCH
Pocket table: magazine pockets and the tools in them.

The pocket table holds the pockets of the tool magazine and the tools in them; how it works depends on the machine. It is edited with the EDIT soft key set to ON and left with END. The data of a tool that is still stored in the pocket table cannot be deleted from the tool table.

Frequently asked questions

What is the tool length based on with Heidenhain?

L is entered as an absolute length based on the tool reference point. The machine tool builder usually defines the spindle nose as the tool reference point.

Why can’t I enter values in the tool table?

The EDIT soft key must be set to ON. While the table is being edited the selected tool is locked; if that tool is needed by the running program, the control reports that the tool table is locked.

The tool is worn. Which value do I change?

Enter a negative delta value in column DL (length) or DR (radius) of that tool in the tool table. Delta values can be up to ± 99.999 mm.

What does T0 mean?

Tool number 0 is the zero tool with length L=0 and radius R=0. T0 should be defined the same way in the tool table.

Why does a newly added tool cause an error when I call it?

For a newly created tool the length and radius columns are empty. If you try to insert a tool whose data have not been entered, the control stops with an error message; enter L and R first.

Heidenhain TNC 640 training series

Safety notice and disclaimer

A wrong tool length leads to a collision. Run the first cut with every newly measured tool in single block with a low feed override. The tool reference point, tool change and pocket table depend on the machine tool builder; the machine manual always takes priority.

Mentor CNC cannot be held responsible for tool breakage, scrapped parts, machine damage or accidents resulting from the use of the information on this page. Responsibility lies with the person and company carrying out the work.

Mentor CNC logo

MENTOR CNC
CNC knowledge from the shop floor

Mentor CNC turns hands-on shop-floor experience in CNC turning, CNC milling, CNC controls, cutting tools and engineering calculations into clear, practical technical content.

Our goal is to help operators, students, engineers and shop owners reach accurate information faster and make safer, more efficient decisions in production.