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?
| Value | Definition 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 name | Each tool is identified by a number between 0 and 32767; tool names can have up to 32 characters |
| T0 | The 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.

| Step | What to do | What you see |
|---|---|---|
| 1 | Select any machine operating mode (e.g. Manual Operation) | – |
| 2 | Press the TOOL TABLE soft key | The tool table opens |
| 3 | Set the EDIT soft key to ON | The table can be edited |
| 4 | Select the tool number (line) with the up/down arrow keys | The cursor is on that tool’s line |
| 5 | Select the column with the right/left arrow keys (L, R, DL, DR) | The cursor is in that cell |
| 6 | Type the new value | It overwrites the old value |
| 7 | Leave 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?
| Column | Meaning |
|---|---|
| T | Number by which the tool is called in the program (e.g. 5; indexed: 5.2) |
| NAME | Tool name: up to 32 characters, capitals only, no spaces |
| L | Tool length |
| R | Tool radius |
| R2 | Second radius for toroid (corner-radius) cutters |
| DL, DR, DR2 | Delta values for length and radii |
| TL | Tool lock (Tool Locked) |
| RT | Number of the replacement tool; empty or 0 means none is defined |
| CUT | Number of teeth (maximum 99) |
| LTOL, RTOL | Wear tolerance for automatic tool measurement; if exceeded, the control locks the tool (0 to 0.9999 mm) |
| LBREAK, RBREAK | Breakage 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.

| Step | What to do | What you see |
|---|---|---|
| 1 | Place the gauge block on the machine table | – |
| 2 | Position the spindle nose next to the gauge block | – |
| 3 | Move gradually in the Z+ direction until you can just slide the gauge block under the spindle nose | – |
| 4 | Set the datum in Z | The Z preset is defined |
| 5 | Insert the tool to be measured | – |
| 6 | Touch off the surface with the tool | The actual position in the position display is the absolute tool length |
| 7 | Enter 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?

| Step | What to do | What you see |
|---|---|---|
| 1 | Clamp the tool setter onto the machine table | – |
| 2 | Bring the flexible inner ring of the tool setter to the same height as the fixed outer ring | – |
| 3 | Set the gauge to 0 | The gauge reads 0 |
| 4 | Move the calibration pin onto the flexible inner ring | – |
| 5 | Set the datum in Z | The Z preset is defined |
| 6 | Insert the tool to be measured | – |
| 7 | Move the tool onto the flexible inner ring until the gauge displays 0 | The actual position in the position display is the absolute tool length |
| 8 | Enter 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.
| Step | What to do | What you see |
|---|---|---|
| 1 | Set the Z preset once with the gauge block or calibration pin | – |
| 2 | Insert or call the first tool | – |
| 3 | Bring the tool onto the surface (or onto the ring until the gauge reads 0) | The absolute tool length is shown in the position display |
| 4 | Enter L and R in that tool’s line of the tool table | – |
| 5 | Repeat steps 2 to 4 for the next tool | Every 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.
| Step | What to do | What you see |
|---|---|---|
| 1 | First make a backup copy of the existing TOOL.T | Protection against data loss |
| 2 | Copy TOOL_Import.T from the external data carrier to any directory | – |
| 3 | In the file manager, copy this table onto the existing TOOL.T | The control asks whether the existing table should be overwritten |
| 4 | Press the REPLACE FIELDS soft key | Only 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)
| Where | What to enter | What for |
|---|---|---|
| Tool table, DL and DR columns | Negative delta value (undersize) | Compensating tool wear |
| TOOL CALL block, DL and DR | Positive 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)
| Step | What to do | What you see |
|---|---|---|
| 1 | Press the TOOL CALL key | You are asked for the tool number |
| 2 | Enter the tool number. A name or a selection from a pop-up window is also possible via soft keys | In the selection window the tools present in the magazine are marked green |
| 3 | Enter the spindle axis (e.g. Z) | – |
| 4 | Enter the spindle speed (S); the VC soft key switches to cutting speed | – |
| 5 | If needed, enter feed rate (F) and delta values (DL, DR) | – |
| 6 | Close the block with END | The 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?

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
- 1. Heidenhain TNC 640 Keys, Screen and Operating Modes
- 2. Entering, Editing and Deleting Programs on Heidenhain
- 3. Transferring CAM Programs to Heidenhain and File Management
- 4. Heidenhain Tool Length Setting: Single Tool and All Tools (this page)
- 5. Setting the Work Zero (Preset) on Heidenhain
- 6. Resuming an Interrupted Program on Heidenhain
- 7. Heidenhain Error Messages, PLC Messages and MOD Settings
- 8. Heidenhain Cycles: Drilling, Tapping and Pockets
- 9. Mill-Turning on Heidenhain: Turning Mode and 800-Series Cycles
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.
