Digital Readout Kit for Mills, Lathes, & Grinding
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

SolidCAM
Pat Mooney Saws
MWI
Innovative Manufacturing for the Medical Industry
To any Measurement Question there is an Answer
World Machine Tool Survey
Techspex
QualiChem Metalworking Fluids
Hurco
KraussMaffei
715 Series - 5-axis complete machining
Starrett W9400 Touch Screen Indicator

Related Content

CNC Tech Talks

A Spiral Milling Custom Macro Using Constant Contouring Feedrate

Helical milling or “spiral” milling are helpful when machining a circular pocket that is much larger than the milling cutter diameter.

Read More
CNC Tech Talks

A Higbee Thread Milling Custom Macro

Higbee threads provide a full thread form at the very start of the thread. The sharp edge is removed during the machining process.

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
Basics

6 Variations That Kill Productivity

The act of qualifying CNC programs is largely related to eliminating variations, which can be a daunting task when you consider how many things can change from one time a job is run to the next.

Read More

Read Next

Workforce Development

Building Out a Foundation for Student Machinists

Autodesk and Haas have teamed up to produce an introductory course for students that covers the basics of CAD, CAM and CNC while providing them with a portfolio part.

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

5 Rules of Thumb for Buying CNC Machine Tools

Use these tips to carefully plan your machine tool purchases and to avoid regretting your decision later.

Read More
CNC Turnkey Package for Knee Mills and Lathes