Digital Readout Kit for Mills, Lathes, & Grinding
Published

Combining Absolute And Incremental Motions

While we agree that the absolute mode should be your positioning mode of choice for most applications, there are times when incremental mode can be quite helpful. Repeating motions within a subprogram, for example, is one excellent example.

Share

While we agree that the absolute mode should be your positioning mode of choice for most applications, there are times when incremental mode can be quite helpful. Repeating motions within a subprogram, for example, is one excellent example. If you have six identical pockets to mill on a machining center or six identical grooves to neck on a turning center, you can save a lot of programming effort if you specify the motions to machine one pocket or groove incrementally. Repeating the commands renders another pocket or groove.

There are even times when it is helpful to command one axis move in the absolute mode while another moves in incremental mode. Any turning center using U and W to specify incremental motions in X and Z easily allows this. Say you're experiencing some unwanted taper on a diameter and you want to program a tapering movement to counteract the problem. In the command that turns the diameter that is experiencing unwanted taper, you can specify the Z endpoint in absolute mode from program zero and the X endpoint as an incremental departure. Here is an example:

N040 G01 U-0.002 Z-2.5 F0.005 

In this command, the tool will move 0.001 inch in the X minus direction (a 0.002-inch diameter change) while the Z axis moves to an endpoint of minus 2.5-inch relative to program zero.

Though it's not common knowledge, many current model machining center controls actually allow you to specify one axis in the absolute mode in the same command as an incremental departure in another axis. This is one time when the word order within a CNC command is important. Consider this machining center command:

N060 G00 G90 X4.5 G91 Y1.0 

It will rapid the control to an X position of 4.5 inch (relative to program zero) at the same time it moves the Y axis in the positive direction by one inch. If you are in doubt as to whether your control allows this, it's easy enough to set up a test program to find out. Simply repeat the command just given a few times in a program. After the initial XY motion, each subsequent command should cause no motion in the X axis, while the Y axis moves plus one inch per command in Y.

At first glance, you may question when this method could ever be helpful. Consider a horizontal machining center that has a rotary axis. It's often helpful during approach movements to rotate the rotary axis to its first position during the X and Y approach. Since you almost always program X and Y approach movements in the absolute mode, you're likely having to specify rotary axis motion in the absolute mode as well. Or worse, you're breaking the motion into two commands, one to approach in XY and another to approach in the rotary axis. Consider this horizontal machining center approach command:

N075 G00 G90 X2.5 Y3.0 G91 B-90.0

It tells the control to move in X and Y relative to program zero (absolute mode) while the rotary axis moves in the minus direction by 90 degrees. This can really simplify the programming of the rotary axis when it's being used as an indexer. Note that at the completion of this command, most controls will be in the incremental mode, meaning the next command must include a G90 if you expect to work from program zero.

Mitsubishi Electric
The Automated Shop Conference
Universal Homepage Package W4900 Indicator
Techspex
DN Solutions
Formnext Chicago on April 8-10, 2025.
Koma Precision
Hurco
SolidCAM
Gravotech
BIMU 2024
MMS Made in the USA

Related Content

Five-Axis

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

7 CNC Parameters You Should Know

Parameters tell the CNC every little detail about the specific machine tool being used, and how all CNC features and functions are to be utilized.

Read More

Generating a Digital Twin in the CNC

New control technology captures critical data about a machining process and uses it to create a 3D graphical representation of the finished workpiece. This new type of digital twin helps relate machining results to machine performance, leading to better decisions on the shop floor.

Read More

Tips for Designing CNC Programs That Help Operators

The way a G-code program is formatted directly affects the productivity of the CNC people who use them. Design CNC programs that make CNC setup people and operators’ jobs easier.

Read More

Read Next

Encountering Surface Finishes in the Everyday World

Surface measurement is becoming increasingly important to ensure proper performance of a manufactured product. Advanced surface measurement tools are not only beneficial in the manufacturing industry but also have unconventional applications.

Read More
Turning Machines

A History of Precision: The Invention and Evolution of Swiss-Style Machining

In the late 1800s, a new technology — Swiss-type machines — emerged to serve Switzerland’s growing watchmaking industry. Today, Swiss-machined parts are ubiquitous, and there’s a good reason for that: No other machining technology can produce tiny, complex components more efficiently or at higher quality.

Read More
Basics

Obscure CNC Features That Can Help (or Hurt) You

You cannot begin to take advantage of an available feature if you do not know it exists. Conversely, you will not know how to avoid CNC features that may be detrimental to your process.

Read More
CNC Turnkey Package for Knee Mills and Lathes