|
Instructor Note:
Explaining tool length compensation
As you know,
tool length compensation is a very important CNC
function that is used for every tool in a machining
center program. It’s mandatory that CNC students
understand it. What they must understand, of course,
depends upon the students eventual job responsibilities
(programmer, setup person, or operator). In this
article, I’ll be describing one way to explain tool
length compensation – a way that has worked well for me
over the years.
I begin by
describing compensation in general – and these concepts
can be applied to any kind of compensation. I relate
CNC-related compensation to compensation in everyday
life – that with any kind of compensation we’re allowing
for some unpredictable or changing variable. I present a
marksman analogy (the subject of a previous Instructor
Note), explaining that before firing a shot, the
marksman must adjust the sight on the rifle to
compensate for the distance to the target. So the
unpredictable or changing variable is the distance to
the target.
They make the
sight adjustment by first estimating the distance to the
target. But this initial adjustment may not be perfect.
Once a shot is fired, they may determine that the sight
adjustment is not perfect (the bullet did not strike the
target center). Possibly they misjudged the distance to
the target. Or possibly some other variable (like wind)
has affected the quality of their adjustment. In any
case, another sight adjustment is required – and the
second shot will be much closer to the target center
than the first shot.
Point out that
with tool length compensation, the unpredictable or
changing variable is the length of each cutting tool.
Explain that tool length compensation allows the
programmer to ignore the exact length of each tool as a
program is written. A command in the program (G43) tells
the machine to find the length of the cutting tool in a
tool offset, and that an H word specifies the offset
number. The tool length compensation instating command
is included in each tool’s first Z axis approach to the
workpiece.
During setup,
someone (setup person or tool setter) will measure the
length of each tool. With my recommended method, the
tool length value is the distance from the tool tip to
the spindle nose, and will be specified in the offset as
a positive value. The tool length value can be measured
at the machine or off line using some kind of tool
length measuring device.
But point out
that while the person will do their best to perfectly
measure each tool’s length, the actual tool length could
be (slightly) different that the actual tool length.
That is, mistakes could be made during this measurement.
This means that when the cutting tool machine’s Z
surfaces, the location of these surfaces may not be
perfect. As with the marksman analogy, a second
adjustment may be necessary.
How much to adjust?
These questions
tend to be the most difficult for newcomers to answer.
Be ready to spend some time here. When it comes to the
amount of adjustment (how much), students must know the
target value for the Z surface being machined. That is,
they must know what they’re shooting for. In many
companies, the target value is the mean value of the
tolerance band. So for a 0.500 +/- 0.002 dimension, the
target value will be 0.500.
The adjustment
amount will be the difference between the measured value
(what they’ve machined on the part) and the target
value. For the 0.500 target dimension, if they measure
the value to be 0.497, the adjustment amount will be
0.003.
This is a
pretty important point. All setup people and operators
must be able to make sizing adjustments – during setups
and during production runs. One misconception I commonly
find is that some students don’t understand what they’re
shooting for. In the scenario above (a dimension and
tolerance of 0.500 +/- 0.002 and a measured value of
0.497), they will make an adjustment of only 0.001 or
so. This may bring the dimension back to size (barely),
but it will still be dangerously close to an
out-of-tolerance condition. Be sure your students know
that whenever an adjustment is made, it must bring the
dimension back to its target value.
Be sure
students understand that the target value may not be the
mean value of the tolerance band (some companies have
their people shoot for a value that will allow a longer
period of unattended operation between adjustments –
allowing tools to wear for a longer period of time. For
an external surface, for example, they may shoot for a
value closer to the low limit. As the tool wears, the
surface will grow. If shooting for the mean value, more
adjustments will be require than if shooting for a value
that is closer to the low limit.
Admittedly,
this may be a tough concept for entry-level CNC people
to understand – and at first, you may want to stick with
using the mean value as the target value. But as your
class goes on, and as you review this topic, you may
want to provide a more complete explanation of target
values.
Which way to adjust
Explain that
all sizing adjustments have a polarity – plus or minus.
You can give a pretty simple rule-of-thumb for
adjustment polarity on machining centers. It will apply
not only to tool length compensation sizing adjustments
but also to cutter radius compensation adjustments as
well.
When more material needs to be
machined, the adjustment polarity will be negative.
This means that
when a tool must go deeper (in Z) – say into a pocket –
the adjustment will be negative. If a tool is already
going too deep, the adjustment will be positive. This is
a pretty easy rule-of-thumb to remember.
While the
rule-of-thumb is nice, you may want to give your
students a better understanding. Point out that the
value that is in the tool length compensation offset is
the tool’s length – again, the distance from the tool
tip to the spindle nose. This, of course, is the value
that is going to be modified when a sizing adjustment is
made. Ask students what they think would happen if they
forget to enter a tool length compensation value for a
given tool (and the value in the offset is zero). What
would the machine think? And what would happen?
The machine
would think the tool had a length of zero. It would
think the nose of the spindle is the tool’s cutting
edge.
If the program
were allowed to run, the machine would bring the spindle
nose down to each Z work surface (causing a crash, if
left unchecked). This should make it abundantly clear
that when the value in the offset is zero, the tool
would cut much deeper that desired – and should help
students remember the polarity for making sizing
adjustments.
What about tight
tolerances?
Explain that
during setup, setup people will strive to adjust all
cutting tools in such a way that every surface being
machined is at its target value when the production run
begins. This means that even when a cutting tool
machines a surface within its tolerance band, an
adjustment will still be made to bring the dimension to
its target. Again, this will allow for a long period of
unattended operation for the tool during the production
run.
But make sure
that students understand that some dimensions have very
tight (small) tolerances. And when tolerances are tight,
there will be no way to know whether the initial tool
length compensation offset entry will cause the surface
to be machined within its tolerance band. So tolerances
have a lot to do with what CNC setup people must do when
running a cutting tool for the first time.
Consider a drill that machines a through-hole. There’s
nothing critical at all. All that matters is that the
hole will break through. In this case, the setup person
will likely allow the tool to run without concern for
whether or not the tool will machine Z surfaces
properly.
On the other
hand consider a 0.500 inch deep pocket having a +/-
0.0005 tolerance. The setup person cannot be sure in
this case that the initial entry for the tool length
compensation offset value is accurate enough to machine
the pocket within its tolerance band on its first
attempt. The pocket could be machined too shallow or too
deep.
I like to quiz
students at this point about whether the workpiece is
salvageable in each case. This gives me a way to
introduce trial machining. I ask students if there would
be any way to easily salvage the workpiece if the pocket
is too shallow. Most students will quickly answer that,
yes – reducing the offset value will easily allow the
pocket to be machined deeper. But what if the pocket
were machined too deep? Most students understand that
the workpiece would be scrap in this case. (Admittedly,
there are exceptions, but this works nicely to get the
point across).
I quiz them
further. Knowing this, would there be any way when
machining tight tolerances to ensure that the workpiece
won’t be scrapped the first time a tool cuts? Most
students get it right away – answering that yes, if the
offset is increased before the tool machines for the
first time, additional stock will be left on Z surfaces
machined by the tool. Now they get the concept of trial
machining.
Point out that
whenever a setup person is worried about whether or not
the cutting tool will machine a surface within its
tolerance band on its first try, they will have the tool
trial machine. They will increase the offset slightly
(0.010 is usually a good value to use), let the tool
machine, and then measure what the tool has done. The Z
surface, of course will have some excess stock.
Measuring the surface will tell the setup person exactly
how much more stock must be machined. They’ll adjust the
offset accordingly and rerun the tool. This time the
surface will surely be within its tolerance band – if
not precisely at the target value.
Though setup
people vary, most would agree that a tolerance under
about 0.002 (overall) for Z surfaces would be worrisome
– and they would likely use trial machining techniques.
There are quite
a few important concepts students must understand about
tool length compensation. And it’s unlikely that
newcomers will understand them the very first time you
present them. This is a very important topic that must
be reviewed often – until students thoroughly understand
the concepts.

Top of page
|