91ÊÓƵÍøÕ¾ÎÛ

Published

2 Secondary Coordinate Systems You Should Know

Coordinate systems tell a CNC machine where to position the cutting tool during the program’s execution for any purpose that requires the cutting tool to move.

Share

Leaders-In background

Coordinates specified within a CNC program tell a CNC machine where to position the cutting tool during the program’s execution. This could be for the purpose of making the cutting tool approach the workpiece, to make the cutting tool machine surfaces, to retract the axes to the tool changing position or for any other purpose that requires the cutting tool to move.

Coordinate systems, in part, specify the point of origin for each coordinate. The most common coordinate system is the workpiece coordinate system. Its origin is usually along an important workpiece surface in each axis, often called a datum surface. This means coordinates specified in the workpiece coordinate system can be specified from a common and logical point often called the program zero point.

Machining center applications sometimes require the use of more than one workpiece coordinate system. Consider running two or more workpieces on a vertical machining center. Each workpiece will likely have its own workpiece coordinate system. FANUC uses workpiece coordinate system offsets, using G54-G59 to specify which workpiece coordinate system is being used.

There are two other coordinate systems that programmers should know. More importantly, programmers should recognize applications for their use.

Machine coordinate system (specified with G53 on a FANUC CNC)

The origin for the machine coordinate system is the reference position in each axis. The reference position is often very close to where each axis will overtravel in the positive direction. This means that the polarity for coordinates specified in the machine coordinate system will be negative. Consider, for example, this command (for a FANUC CNC):

  • G53 X0 Y0 Z0 (Move all axes to their reference positions)

This sends the X-, Y- and Z-axes to their reference position. Rapid mode is automatically selected and used for G53 commands.

Understanding the machine coordinate system is important with certain accessory devices, like pallet changers used on machining centers and programmable tailstocks on turning centers. It is often necessary to move one or more axes to a precise location before the device can be activated, especially when the position is not at the axis’s reference position, but a known distance from it.

Determining this position relative to the workpiece coordinate system origin would require calculations, and would be different with each new job. Say you have a pallet changer being used on a horizontal machining center that requires the X-axis to be at its reference position and the Z-axis to be positioned 5.0 inches from its reference position. This simple (FANUC CNC) command will work every time a pallet change is required:

  • G53 X0 X-7.0 (Move axes to pallet change position)

Local coordinate system (specified with G52 on a FANUC CNC)

This coordinate system lets you temporarily shift the origin in the workpiece coordinate system. This (FANUC CNC) command, for instance, shifts the origin by 2.0 inches in the X-axis and 3.0 inches in the Y-axis in the positive direction:

  • G52 X2.0 Y3.0

This command by itself does not cause axis motion, but subsequent motion commands will be affected until you reset/cancel the local coordinate system with this command:

  • G52 X0 Y0

The local coordinate system is especially helpful when multiple identical features, like pockets on machining centers or grooves on turning centers, must be machined. Combined with a simple subprogram that machines one of the features, this technique simplifies programming, shortens programs and streamlines the program verification process (if one feature is machined properly, they all will be).

Figure 1 shows an example. While the drawing is not dimensioned, you should be able to follow along. In line N040 of the main program, the local coordinate system command temporarily shifts the origin from the lower-left corner of the workpiece in the X- and Y-axes to the lower-left corner of the left-most pocket. Line N050 commands the subprogram to be executed, which machines one pocket. Line N060 then shifts the coordinate system to the lower-left corner of the second pocket. Line N070 commands the subprogram again, and the second pocket is machined. This is repeated two more times. Note that Line N120 resets/cancels the local coordinate system.

Figure 1: Local coordinate system subprogram example. Source: Mike Lynch

Related Content

Aerospace

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
Sponsored

Automated CAM Programming – Is Your Software Really Delivering?

A look at the latest automation tools in Autodesk Fusion 360 software and how forward-thinking machine shops and manufacturing departments are using them to slash delivery times and win more business. 

Read More
Five-Axis

The Power of Practical Demonstrations and Projects

Practical work has served Bridgerland Technical College both in preparing its current students for manufacturing jobs and in appealing to new generations of potential machinists.

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

Automation

Why We Ask Machine Shop Leaders to Speak at TASC – The Automated Shop Conference

TASC is our industry’s premier peer-to-peer automation stage where America’s shop leaders refine the art of metalworking and CNC machining. For conference speakers, it's also an opportunity to showcase your skills and gain exposure for your business. Here are five why stepping into the spotlight at TASC could be your smartest move toward elevating your shop.

Read More
View From My Shop

Shop Tour Video: You've Never Seen a Manufacturing Facility Like This

In the latest installment of our “View From My Shop” series, explore Marathon Precision’s multi-process approach to manufacturing, where blacksmiths and hand-forged dies meet state-of-the-art CNC machining. Discover how restoring classic muscle cars and building custom art projects creates a dynamic shop culture — and draws top talent to this unique and innovative metalworking facility. 

Read More

Registration Now Open for the Precision Machining Technology Show (PMTS) 2025

The precision machining industry’s premier event returns to Cleveland, OH, April 1-3.   

Read More