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?

| Topic | What the manual says |
|---|---|
| File | The preset table is named PRESET.PR and is stored in TNC:\table\ |
| Where it is edited | Only in the Manual Operation and Electronic Handwheel modes. It can be opened in Programming but not edited there |
| Line 0 | Write-protected. The preset you set last by hand with the axis keys or a soft key is always stored here |
| Status display | If a manually set preset is active, the status display shows PR MAN(0) |
| New lines | For safety reasons they can only be added at the end of the table |
| Backup | The 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.
| Step | What to do | What you see |
|---|---|---|
| 1 | Press the Manual Operation key | – |
| 2 | Move the tool slowly until it touches (scratches) the workpiece surface | – |
| 3 | Select the axis (e.g. Z), or press the SET PRESET soft key and select the axis | The PRESETTING Z= dialog opens |
| 4 | In the spindle axis: set the display to a known workpiece position (e.g. 0) or enter the thickness d of the shim | The Z preset is set |
| 5 | In the working plane (X, Y): touch the edge and enter the value; the control takes the tool radius into account | The X and Y presets are set |
| 6 | Repeat for the remaining axes | The 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.
| Step | What to do | What you see |
|---|---|---|
| 1 | Select a probing function by soft key (e.g. corner or circle center) | – |
| 2 | Move the mechanical probe to the first position the control should capture | – |
| 3 | Press the soft key for capturing the actual position | The control stores the current position |
| 4 | Move to the next position and capture it the same way; repeat for further points if needed | – |
| 5 | Enter the coordinates of the new preset in the menu window and accept them with the soft key for setting the preset | The preset is set (or written to a table) |
| 6 | End 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)?
| Step | What to do | What you see |
|---|---|---|
| 1 | Press the PROBING POS soft key | – |
| 2 | Move the touch probe near the touch point | – |
| 3 | Select the axis and probing direction by soft key (e.g. Z−) | – |
| 4 | Press NC Start | The probe touches the surface |
| 5 | Enter the nominal coordinate (e.g. 0) and accept it with the soft key for setting the preset | The preset is set |
| 6 | Leave with the END soft key | – |
How do you set a workpiece corner as the preset?
| Step | What to do | What you see |
|---|---|---|
| 1 | Press the PROBING P soft key | – |
| 2 | Position the probe near the first touch point on the first edge, select the probing direction, NC Start | The first point is captured |
| 3 | Move to the second point on the same edge, NC Start | The first edge is complete |
| 4 | Move to the first point on the second edge, select the probing direction, NC Start | – |
| 5 | Move to the second point on the same edge, NC Start | The corner is calculated |
| 6 | Enter both preset coordinates and accept them with the soft key for setting the preset | The corner becomes the zero |
| 7 | Leave 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?
| Step | What to do | What you see |
|---|---|---|
| 1 | Hole: position the probe roughly in the center. Stud: position it outside the circle near the first touch point | – |
| 2 | Press the PROBING CC soft key | – |
| 3 | Select the probing direction, NC Start | The probe touches the wall |
| 4 | Repeat for the other directions (at least 3, preferably 4 points) | – |
| 5 | Press the evaluation soft key | The center coordinates and circle radius are shown |
| 6 | Enter both center coordinates and accept them with the soft key for setting the preset, or write the values to a table | The center becomes the zero |
| 7 | Leave 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.
| Step | What to do | What you see |
|---|---|---|
| 1 | Press the Manual Operation key | – |
| 2 | Move the tool carefully until it touches the workpiece, or position the dial gauge | – |
| 3 | Press the PRESET MANAGEMENT soft key | The preset table opens with the cursor on the active preset |
| 4 | Select the preset entry functions | The entry options appear in the soft-key row |
| 5 | Select the line to change (line number = preset number) and, if needed, the column (axis) | – |
| 6 | Select one of the entry options below by soft key | The value is stored |
| Entry option | What it does |
|---|---|
| Take the actual position as preset | Stores the current tool position as the new preset, only in the axis where the cursor is |
| Assign a value to the actual position | Assigns any value to the current tool position; the value is entered in a pop-up window |
| Shift incrementally | Shifts the preset stored in the table by the entered correction value (with the correct sign) |
| Save the active preset to a line | Stores 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?
| Step | What to do | What you see |
|---|---|---|
| 1 | Press the Manual Operation key | – |
| 2 | Press the PRESET MANAGEMENT soft key | The preset table opens |
| 3 | Select the preset number to activate (or GOTO, number, ENT) | – |
| 4 | Press the ACTIVATE PRESET soft key and confirm | The control sets the display and, if defined, the basic rotation |
| 5 | Leave 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?
| Step | What to do | What you see |
|---|---|---|
| 1 | Press the CHANGE PRESET soft key | – |
| 2 | Select the LOCKED column | – |
| 3 | Press the EDIT CURRENT FIELD soft key | – |
| 4 | For protection without a password press LOCK / UNLOCK | L 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
- 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
- 5. Setting the Work Zero (Preset) on Heidenhain (this page)
- 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 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.
