Works on this device
CNC Tool Length Offset Calculator
Touch each tool on the same tool setter or on the part, type the machine Z of every touch, and get the length offset of each tool. Choose what the offsets are measured from (the spindle gauge line, a master tool or the part zero) and the direction of +Z on your machine.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use this calculator
- Choose Tool length offsets from touch-off readings, or Work offset Z from a touch with a measured tool.
- Choose what your offsets are measured from, and the direction of +Z on your machine.
- Type the reference: the machine Z of the gauge line at the touch surface, the reading of the master tool, or the height of the block on the part.
- Type one row for each tool with the machine Z read when it touched. Choose Calculate, then copy the table or download it as a CSV file.
The formulas
- Let s = +1 when +Z moves the spindle up (away from the table) and s = −1 when +Z moves it down.
- Gauge line: tool length = s × (Z at the touch − Z of the gauge line at the same surface). The lengths are positive.
- Master tool: offset = s × (Z at the touch − Z of the master at its touch), plus the length of the master if you know it.
- Part zero: offset = Z at the touch − s × height of the block. It is the machine Z of the spindle with the tip of the tool at the part zero, and the work offset Z is then 0.
- Work offset Z with gauge-line lengths: Z at the touch − s × (tool length + block height).
Worked example
+Z is up and the gauge line would touch the setter at Z = −500 mm. T1 touches at −380.25 mm, so its length is −380.25 − (−500) = 119.75 mm. T2 at −342 mm is 158 mm long and T3 at −401.125 mm is 98.875 mm long. The spread is 59.125 mm.
With T1 (119.75 mm) touching the top of the part at Z = −650.375 mm, the work offset Z is −650.375 − 119.75 = −770.125 mm.
Limits you should know
- The tool works out what you type. It does not know your control: check how your control stores offsets (as lengths or as machine positions) and which direction is +Z.
- Touch every tool on the same surface. A setter that is moved, a chip under it, or a worn surface changes every offset.
- Wear offsets, radius offsets and the thermal growth of the spindle are not part of this calculation.
- Check each offset with a careful first cut or a test touch before you run a program. A wrong offset can crash the machine.
- For the work offsets in X and Y of a setup, use the CNC Work Coordinate Planner.