G28 Versus G53 | Modern Machine Shop
- Workforce Development 4 Feb 2026 How Manufacturing CEOs Are Rebuilding Strategy Amid Tariffs and Talent Gaps
- Inspection and Measurement 2 Feb 2026 How Confocal Technology Revolutionizes Optical Metrology
- Turning Tools 30 Jan 2026 Durable Tooling Cuts Cycle Times for Tough Turn-Peeling Job
- Automation 28 Jan 2026 High-End Machines Deserve High-End Support: Inside DMG MORI’s Cleveland Facility
- 26 Jan 2026 Production Machining Turns 25!
- Top Shops 26 Jan 2026 Modern Machine Shop’s 2026 Top Shops Benchmarking Survey Goes Live Feb. 1
- Inspection and Measurement 23 Jan 2026 Putting the "Plate" Gage to Use
- 21 Jan 2026 Troubleshooting Processes Experiencing Drift or Shift
- Basics 19 Jan 2026 Understanding the Tribology of the Tool-Workpiece Interface
- Economics 16 Jan 2026 Metalworking Index Closes 2025 With a Slight Uptick
Which command is better to get your machine axes to the reference position?
- CNC & Machine Controls
- Software
- CNC Tech Talks
- Basics
Mike Lynch Founder and President, CNC Concepts Inc.
Mike Lynch
Share
VISIT SITE VISIT SHOWROOM Komo Machine, Inc.
Komo Machine, Inc. is a leading U.S. manufacturer of advanced, precision CNC machining systems engineered for demanding manufacturing applications. Wi...READ MORE
Featured Content
View MoreFeatured Videos
View More
VISIT SITE VISIT SHOWROOM GROB Systems, Inc.
For almost 100 years, GROB has been known worldwide for the development and manufacturing of machines and production lines. GROB is a family-owned com...READ MORE
Featured Content
View MoreFeatured Videos
View More
VISIT SITE VISIT SHOWROOM Phillips Corporation
Featured Content
View More
VISIT SITE VISIT SHOWROOM Mayfran International
Mayfran International is the world’s leading provider of quality material handling, filtration, and chip removal solutions. With an unrivaled...READ MORE
Featured Content
View MoreFeatured Videos
View More
VISIT SITE VISIT SHOWROOM PrecisionX Group
PrecisionX Group is a leading custom contract manufacturer specializing in precision metal fabrication for critical-use applications across growth-ori...READ MORE
Featured Content
View More
VISIT SITE VISIT SHOWROOM Phillips Corporation - Education
Featured Content
View More
VISIT SITE VISIT SHOWROOM Jergens, Inc.
Manufacturing Efficiency for 75 Years In 1942, Jergens Inc. opened its doors and began its journey to grow into one of the world’s largest m...READ MORE
Featured Content
View MoreFeatured Videos
View More
VISIT SITE VISIT SHOWROOM Haitian Precision USA
Haitian Precision USA has been selling industrial machine tools since 2000 under the Absolute Group of Companies. Absolute started by selling and s...READ MORE
Featured Content
View MoreFeatured Videos
View MoreMost FANUC-controlled machines, especially machining centers, use the machine’s zero return position (also called the reference return position and home position) as a point of reference for certain machine functions. For example, the zero return position is the origin point for fixture offset (machining centers) and geometry offset (turning centers) entries.
Most machine tool builders place the zero return position close to the plus over-travel limit in each axis. Some machines require that one or more axes be sent to this position prior to activating a function. The Z-axis zero return position is often the tool change position for vertical machining centers, while the Y- and Z-axis zero return positions often serve that function for horizontal machining centers. And almost any machining center equipped with a pallet changer will require one or more axes to be at its zero return position prior to activating a pallet change.
Featured Content
Since certain machine accessories require axes to be located at the zero return position prior to activation, CNC programmers must often command axes to go to this position. FANUC has two G code commands that can be used for this purpose, G28 and G53.
G28 is a bit difficult to explain and understand. It is a two-step command, meaning two things will happen when a G28 command is executed. First, the axes included in the G28 command will go to an intermediate position, then those axes will go to their respective zero return positions. Both motions will be done at rapid. By the way, if you have the single block switch on, you must press the cycle start button twice to complete a G28 command—once to make the axes to move to the intermediate position and once to make them move to the zero return position.
Since we normally want the machine to go straight to the zero return position (not needing the intermediate position), I like to use the following technique. If sending only the Z axis to the zero return position, I recommend:
G91 G28 Z0
Note first that only a Z word is included in this command, so only the Z axis will be involved. The G91 (with Z0) specifies that the intermediate position is incrementally nothing in Z from the current position, so in the first step of G28, the machine will not move. In the second step, the Z axis will rapid to the zero return position.
Here are a few more examples:
G91 G28 X0 Y0 (Move nothing in X and Y, then rapid to zero return position in X and Y.)
G91 G28 X0 Y0 Z3.0 (Move nothing in X and Y, and up 3 inches in Z, then rapid all three axes to the zero return position.)
One concern about G28 is that it enables you to work in incremental and absolute mode. If you leave out the G91 by mistake, it is likely that the machine is currently in the absolute mode. Consider this command that would probably cause a crash (or near crash):
G28 Z0
If the current positioning mode is absolute, this command tells the machine to rapid to program zero in Z, possibly causing a crash, then to rapid to the zero return position.
G53 is much easier to understand and use. It is a simple motion command, like G00 or G01, but with G53, the origin for the motion is the machine’s zero return position and the motion will occur at rapid. Here is the command to rapid the Z axis to the zero return position:
G53 Z0
As you might expect, most programmers that understand both methods prefer G53 over G28. However, G53 hasn’t been around as long as G28. Additionally, some machine tool builders never made G53 part of their standard package of G codes when they bought controls from FANUC. This means you may have machines that do not allow G53 (without purchasing G53 from FANUC). Even though G53 may be better, G28 is more universal. If you want to use one method that will work on all machines, you may be stuck with G28.
One more advantage of G53 is that the zero return position does not have to be the destination point. Consider, for example, how you position a turning center’s turret to a safe index position prior to a turret index. You may determine, for example, that the safe index position is at the zero return position in X but 8 inches from the zero return position in Z (closer to the chuck/workpiece). This command will send the X and Z axes directly to the safe index position:
G53 X0 Z-8.0
Remember that the origin for G53 is the zero return position, and since the zero return position is usually at the extreme plus end of each axis, commanded positions will almost always be negative.
This technique can also be helpful with machining centers that have pallet changers and when the pallet change position is a precise distance from the zero return position in one or more axes. For a machine with which the pallet change position is at the zero return position in X but 4 inches away from the zero return position in Y, this command sends the machine to its pallet change position:
G53 X0 Y-4.0
The G53 command has its advantages over G28, but both can be used to get machine axes on FANUC-controlled machines back to the zero return position when required.
Related Content
Orthopedic Event Discusses Manufacturing Strategies
At the seminar, representatives from multiple companies discussed strategies for making orthopedic devices accurately and efficiently.
Read MoreThe Smarter Way to Take Full Control of Your CNC Machine Shop
Designed to bridge the gap between CAM programmers and shop floor operators, SolidShop provides a seamless, real-time solution for managing G-code, tracking production and eliminating costly mistakes.
Read MoreSolidCAM iMachining and Technology Wizard: Faster Machining and Longer Tool Life
Smarter toolpaths to tackle modern machining challenges.
Read MoreThe 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
Loading Why am I seeing this?
The page you’re on features premium MMS editorial content.
To continue enjoying the articles, videos and podcasts from the MMS editorial team, please key in your name and email address, as well as your company and title info. Doing so unlocks MMS’ premium web content on this device.
Why does the gate appear repeatedly for me? If the gate continues to show up on premium content after you’ve already provided your information, it could be for one of these reasons:
- Your cookie settings: Please allow cookies for www.mmsonline.com
- You’re browsing in incognito mode. Switching out of private browsing mode may help.
- You are viewing on a different device or browser. Your login is connected to the browser and device on which you originally unlocked MMS’ premium web content.
Welcome! You’ve unlocked premium content.
If you have time, please tell us a little more about yourself.
Country
Select a country United States of America Canada Mexico OtherIndustries Served
Aerospace/Aviation Appliance Automotive/Transportation Die/Mold Computers / Electrical / Electronics Industrial Machinery & Equipment Medical/Dental Military/Defense Offroad/Construction/Agricultural Oil & Gas Pumps & Valves Renewable EnergyOperations Performed
3DP/Additive Manufacturing CAD/CAM CNC Operations Drilling EDM Five-Axis Machining Gear Cutting & Rolling Grinding High Speed Machining Inspection Laser Cutting Micro Machining Milling Multitasking Machines Robotics & Automation Titanium Machining Turning Waterjet Machining SubmitWelcome to Modern Machine Shop!
Unlimited access to our free premium content requires a little more information from you.
First Name Last Name Job Title Company Email Also, please subscribe me to the MMS Extra and MMS The Shop e-newsletters! Registering RegisterYour email address will be used to communicate with you about Modern Machine Shop subscription offers, related products and services. Refer to our Privacy Policy for more information. Wondering why you’re seeing this? Read more here.
Từ khóa » G0 G91 G28 Z0
-
G28 G-Code
-
Learn G28 X0. Y0. Z0. G-code - With Examples - Cnc Philosophy
-
G28 G-Code: CNC Return To Reference [ Easy Tutorial & Guide ]
-
G28 Return To Machine Zero Point (Group 00) - Haas Automation Inc.
-
G28 G91 Z0.
-
G91 G28 Z0 - Narkive
-
G28 G-code: All You Need To Know About Homing - All3DP
-
G28 G-Code - Reference Return - YouTube
-
How The Heck Does G28 Work? - CNC Concepts, Inc.
-
What's The Difference Between G28 G54 Z0; And G91 G28 Z0
-
G91 G28 Z0. M5 - CNC Machining - Practical Machinist
-
Transform Is Puting In G0 G91 G28 Z0.
-
G28 G53 Zero Return - CNC Training Centre
-
G Codes G28 & G30: CNC Home And Reference Points