Heidenhain TNC 640 Training 5: Setting the Work Zero (Preset) and the Preset Table

12 November 2026

Mentor CNC Editorial Team

Page 5 of the Heidenhain TNC 640 training series covers the work zero. On a Heidenhain control the work zero is called the preset and is kept in the preset table. This page shows, key by key, how to set the preset with an end mill, with a mechanical edge finder and with a 3D touch probe, and how to save and activate presets in the preset table. The information is taken from the HEIDENHAIN user’s manual.

Where is the work zero (preset) stored on a Heidenhain control?

Heidenhain TNC 640 preset table PRESET.PR
Preset table: one preset per line; X, Y, Z and rotary axis columns.
TopicWhat the manual says
FileThe preset table is named PRESET.PR and is stored in TNC:\table\
Where it is editedOnly in the Manual Operation and Electronic Handwheel modes. It can be opened in Programming but not edited there
Line 0Write-protected. The preset you set last by hand with the axis keys or a soft key is always stored here
Status displayIf a manually set preset is active, the status display shows PR MAN(0)
New linesFor safety reasons they can only be added at the end of the table
BackupThe table may be copied to another directory for backup; do not change the number of lines in the copy. To activate a copy, copy it back to TNC:\table\

How do you set the work zero with an end mill?

Without a touch probe, the preset is set by touching (scratching) the workpiece with the tool. Preparation: clamp and align the workpiece, insert the zero tool with a known radius into the spindle and make sure the control shows actual positions.

StepWhat to doWhat you see
1Press the Manual Operation key–
2Move the tool slowly until it touches (scratches) the workpiece surface–
3Select the axis (e.g. Z), or press the SET PRESET soft key and select the axisThe PRESETTING Z= dialog opens
4In the spindle axis: set the display to a known workpiece position (e.g. 0) or enter the thickness d of the shimThe Z preset is set
5In the working plane (X, Y): touch the edge and enter the value; the control takes the tool radius into accountThe X and Y presets are set
6Repeat for the remaining axesThe preset is stored automatically in line 0 of the preset table

How do you avoid scratching the workpiece surface?

Place a shim of known thickness (d) on the workpiece and touch the shim with the tool. Enter a value larger by d for the preset (e.g. Z=d instead of Z=0).

How do you set Z with a tool whose length is already measured?

According to the manual, if the tool in the spindle axis has already been set (measured), set the display of the tool axis to the length L of the tool, or enter the sum Z = L + d if you use a shim. How to measure tool length is shown on page 4 of this series.

How do you set the work zero with a mechanical edge finder or dial gauge?

If the machine has no electronic 3D touch probe, the manual probing functions can also be used with a mechanical probe (edge finder, dial gauge) or by scratching with the tool. Instead of the probe’s signal, you capture each position yourself with a soft key.

StepWhat to doWhat you see
1Select a probing function by soft key (e.g. corner or circle center)–
2Move the mechanical probe to the first position the control should capture–
3Press the soft key for capturing the actual positionThe control stores the current position
4Move to the next position and capture it the same way; repeat for further points if needed–
5Enter the coordinates of the new preset in the menu window and accept them with the soft key for setting the presetThe preset is set (or written to a table)
6End the probing function with END–

How do you set the work zero with a 3D touch probe?

The control must have been prepared for the touch probe by the machine tool builder. The probing functions in Manual Operation are: preset in any axis, corner, circle center and center line.

How do you set the preset in one axis (e.g. the Z surface)?

StepWhat to doWhat you see
1Press the PROBING POS soft key–
2Move the touch probe near the touch point–
3Select the axis and probing direction by soft key (e.g. Z−)–
4Press NC StartThe probe touches the surface
5Enter the nominal coordinate (e.g. 0) and accept it with the soft key for setting the presetThe preset is set
6Leave with the END soft key–

How do you set a workpiece corner as the preset?

StepWhat to doWhat you see
1Press the PROBING P soft key–
2Position the probe near the first touch point on the first edge, select the probing direction, NC StartThe first point is captured
3Move to the second point on the same edge, NC StartThe first edge is complete
4Move to the first point on the second edge, select the probing direction, NC Start–
5Move to the second point on the same edge, NC StartThe corner is calculated
6Enter both preset coordinates and accept them with the soft key for setting the presetThe corner becomes the zero
7Leave with the END soft key–

Corner probing also finds the angles of both edges. If you want to use the basic rotation (the workpiece misalignment), select ROT 1 or ROT 2 before setting the preset; once the preset is set these soft keys are no longer shown.

How do you set a hole or stud center as the preset?

StepWhat to doWhat you see
1Hole: position the probe roughly in the center. Stud: position it outside the circle near the first touch point–
2Press the PROBING CC soft key–
3Select the probing direction, NC StartThe probe touches the wall
4Repeat for the other directions (at least 3, preferably 4 points)–
5Press the evaluation soft keyThe center coordinates and circle radius are shown
6Enter both center coordinates and accept them with the soft key for setting the preset, or write the values to a tableThe center becomes the zero
7Leave with the END soft key–

The control can calculate a circle from three points, but four points give a more accurate result. Pre-position the probe as close to the center as possible.

How do you save the work zero in the preset table?

For several workpieces or setups you can store presets in different lines of the preset table.

StepWhat to doWhat you see
1Press the Manual Operation key–
2Move the tool carefully until it touches the workpiece, or position the dial gauge–
3Press the PRESET MANAGEMENT soft keyThe preset table opens with the cursor on the active preset
4Select the preset entry functionsThe entry options appear in the soft-key row
5Select the line to change (line number = preset number) and, if needed, the column (axis)–
6Select one of the entry options below by soft keyThe value is stored
Entry optionWhat it does
Take the actual position as presetStores the current tool position as the new preset, only in the axis where the cursor is
Assign a value to the actual positionAssigns any value to the current tool position; the value is entered in a pop-up window
Shift incrementallyShifts the preset stored in the table by the entered correction value (with the correct sign)
Save the active preset to a lineStores the currently active preset in all axes in the selected line and activates that line
Enter directly (without kinematics)Only for machines with a rotary table, to place the preset at the rotary table center

How do you activate a preset from the preset table?

StepWhat to doWhat you see
1Press the Manual Operation key–
2Press the PRESET MANAGEMENT soft keyThe preset table opens
3Select the preset number to activate (or GOTO, number, ENT)–
4Press the ACTIVATE PRESET soft key and confirmThe control sets the display and, if defined, the basic rotation
5Leave the preset table–

Caution: When a preset is activated from the preset table, the control resets an active datum shift, mirror image, rotation and scaling factor. A tilted working plane programmed with Cycle 19 or PLANE stays active. To select a preset from within an NC program, use Cycle 247 with the preset number.

How do you protect a preset from being changed by mistake?

StepWhat to doWhat you see
1Press the CHANGE PRESET soft key–
2Select the LOCKED column–
3Press the EDIT CURRENT FIELD soft key–
4For protection without a password press LOCK / UNLOCKL is written in the LOCKED column; the line is highlighted

To remove the protection, repeat the steps and press LOCK / UNLOCK again. Password protection also exists, but if you forget the password the protection cannot be removed; the manual recommends the simple protection without a password.

Frequently asked questions

Where is the work zero stored on a Heidenhain control?

In the preset table (PRESET.PR). A preset set manually with the axis keys is stored automatically in line 0 of the table; the status display shows PR MAN(0).

How do I touch off Z without scratching the workpiece surface?

Place a shim of known thickness on the workpiece, touch the shim with the tool and enter the shim thickness (d) as the preset value.

How do I select a different work zero, like G54, in the program?

Heidenhain uses the lines of the preset table for this. Manually you select one with the ACTIVATE PRESET soft key in Manual Operation; from within a program you use Cycle 247.

How do I find a hole center without a touch probe?

The circle center probing function can also be used with a mechanical probe or dial gauge. At each point you capture the position with the soft key for the actual position.

Why can’t I change line 0 of the preset table?

Line 0 is write-protected; the control always stores the preset you set last by hand there. Use the other lines for permanent presets.

Heidenhain TNC 640 training series

Safety notice and disclaimer

A wrong work zero causes collisions. Run the first part with a new preset in single block with a low feed override and check the distance to go on the first moves. Probing functions and soft keys may differ with the machine builder and software version; 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.