Digital Readout Kit for Mills, Lathes, & Grinding
Published

Checking Cutting Tool Offset Values

A setup program can be used to test for overtravel issues before a workpiece is run, eliminating program verification delays.

Share

Cutting tools used in CNC machining applications must possess certain attributes in order to work properly. For instance, every cutting tool used in a vertical machining center (VMC) has a minimum and maximum length that is limited by the Z-axis stroke (among other things). As shown in the figure, the spindle nose will be at its maximum distance above the table top when it is at the positive end of the Z-axis stroke. At the minimum Z-axis position, the spindle nose will still be well above the table top.

The tool tip must be able to reach the smallest and largest Z coordinates in the program, otherwise, a Z-axis overtravel will occur. Each cutting tool’s length, which is specified in an offset register, determines whether these extremes can be reached without a Z-axis overtravel. Consider, for example, a very short cutting tool that is machining a thin workpiece held close to the table top. If the tool is too short, the Z axis will not be able to reach the program’s smallest Z-axis coordinate.

A horizontal machining center (HMC) has the same concern. With a horizontal, however, the minimum spindle Z position is usually specified from the table centerline instead of the table top. A similar issue is especially problematic with the maximum spindle Z position on an HMC. A cutting tool may have to clear a large flange that is flush with the table edge, and then reach far into the workpiece. The Z axis may not be able to back up far enough to allow the needed clearance.

Without explicit setup instructions, cutting tool lengths will vary from one time a job is run to the next. Machine operators may unwittingly assemble tools that are too long or short. An easy-to-use setup program can be used to test for overtravel issues before a workpiece is run, eliminating time-consuming delays during the program’s verification.

To use this program, determine these constant values:

  • The distance from the table top (or table center) to the spindle nose at the Z-axis reference position.
  • The Z-axis stroke.

The setup program will reference these values from offsets:

  • The current Z-axis fixture offset register value.
  • Current values in tool-length compensation registers.

And operators will specify in the testing program:

  • The largest and smallest Z coordinates in the program.

While this may seem like a lot of work, only the largest and smallest Z coordinates must regularly be determined and entered. Everything else is either a constant or specified in offsets as part of the setup process.

For our example VMC, we determine that the maximum Z-spindle position is 28.327 inches. We will say this machine’s Z-axis stroke is 19.4769 inches. This makes the minimum Z-spindle position 8.8501 inches. We will place the maximum Z-spindle position and Z-axis stroke values in permanent common variables #500 and #501, respectively. They will remain there as system constants.

The Z register of fixture offset number one is referenced by system variable #5203 with most FANUC CNCs and contains the negative distance from the Z-axis reference position (also the maximum Z-spindle position) to the program-zero point.

System variables in the 2000 series contain tool-length compensation register values. #2001, for instance, contains the length of tool number one.

We will specify the smallest and largest programmed Z coordinates in the setup program with common variables #100 and #101, respectively.

With meanings of the related variables understood, consider these expressions:

  • #110=#500+#5203+#100+#2001 (smallest Z-axis machine position for tool one)
  • #111=#500+#5203+#101+#2001 (largest Z-axis machine position for tool one)

Results can be compared with the minimum and maximum Z-spindle positions:

  • IF [#110 LT [#500-#501] THEN #3000=101 (tool is too short)
  • IF [#111 GT #500] THEN #3000=102 (tool is too long)

Here is a setup program that tests tools one though 10. The setup person will modify and run this program once the setup is made:

  • O1000 (TEST ALL OFFSETS)
  • (OPERATOR ADJUSTS FIRST FOUR VALUES)
  • #100=-[2.5] (SMALLEST Z IN PROGRAM)
  • #101=3.0 (LARGEST Z IN PROGRAM)
  • #102=1 (FIRST TOOL TO TEST)
  • #103=10 (LAST TOOL TO TEST)]
  •  
  • WHILE [#102 LE #103] DO 1
  • IF [[#500+#5203+#100+#[2000+#102]] LT [#500-#501]] THEN #3000=101(TOOL IS TOO SHORT)
  • IF [[#500+#5203+#101+#[2000+#102]] GT #500] THEN #3000=102(TOOL IS TOO LONG)
  • #102=#102+1 (Step counter)
  • END 1
  • #3000=103(LENGTHS ACCEPTABLE)
  • M30

The Z axis will not overtravel if this program completely executes and the message “lengths acceptable” appears. If the “tool is too short” or “tool is too long message appears instead, check the current value of common variable #102 (on the variable display screen page) to determine which tool is causing the problem and correct it. Rerun the program until you see the “lengths acceptable” message.

Gardner Business Intelligence
IMTS 2024
Kennametal
High Accuracy Linear Encoders
MMS Made in the USA
DN Solutions
World Machine Tool Survey
Paperless Parts
The view from my shop.
Koma Precision
CHIRON Group, one stop solution for manufacturing.
MMS Top Shops

Related Content

When Handing Down the Family Machine Shop is as Complex as a Swiss-Turned Part

The transition into Swiss-type machining at Deking Screw Products required more than just a shift in production operations. It required a new mindset and a new way of running the family-owned business. Hardest of all, it required that one generation let go, and allow a new one to step in.

Read More

When to Use Custom Macros With a CAM System

Custom macros can offer benefits even when using a CAM system to prepare programs – but must be implemented with the right considerations.

Read More
Basics

6 Machine Shop Essentials to Stay Competitive

If you want to streamline production and be competitive in the industry, you will need far more than a standard three-axis CNC mill or two-axis CNC lathe and a few measuring tools.

Read More

Understanding CNC Machine Accuracy and Repeatability

Properly evaluating machine tool capability requires understanding how the both user and the builder can influence precision.

Read More

Read Next

3 Mistakes That Cause CNC Programs to Fail

Despite enhancements to manufacturing technology, there are still issues today that can cause programs to fail. These failures can cause lost time, scrapped parts, damaged machines and even injured operators.

Read More
Shop Management Software

5 Tips for Running a Profitable Aerospace Shop

Aerospace machining is a demanding and competitive sector of manufacturing, but this shop demonstrates five ways to find aerospace success.

Read More
CNC Turnkey Package for Knee Mills and Lathes