top of page

Watch out for that G28 command!

As you know, the G28 command is used to send the machine to its zero return position. At the completion of a G28, the machine will be at its zero return position in any axis included in the G28 command.


However, how the machine gets to its zero return position can be a bit confusing. You may know that G28 is actually a two-step command. First the machine will move to something called an intermediate position in any axes included in the G28 command. Second the machine will go to the zero return position in these axes.


Most programmers are taught to make the intermediate position the machine’s current position. The simplest way to do so is to include a G91 incremental mode G code in the G28 command (machining centers). So the command

  • G91 G28 Z0

tells the machine to first, move incrementally nothing in Z (staying where it is) and second, to move to the Z axis zero return position.

The safety-related warning has to do with forgetting the G91. This command

  • G28 Z0

will first, send the Z axis to the program zero surface in Z (crash) and second, send the machine to its Z axis zero return position. This assumes, of course that the machine is in the absolute mode when the G28 command is executed.


For turning centers, most programmers use the command

  • G28 U0 W0

to accomplish the same thing. The machine will move incrementally nothing in X and Z, then it will go to the zero return position in each axis. But if you give the command

  • G28 X0 Z0

you are telling the machine to go to program zero in X and Z (again, crash), and then go to the zero return position in each axis.



40 views0 comments

Recent Posts

See All

Watch Out For That Tailstock Center!

Many turning centers, commonly called universal style turning centers, have the ability to do chucking work, bar work, and shaft work. These machines have horizontal spindles, meaning the workpiece is

The safe approach procedure

As you know, CNC machines have extremely fast motion rates. When you're verifying a program (new or proven programs), you also know that each tool will rapid to within a very small distance (usually 0

The right way to activate a program in production

Setup people who get a machine ready to run production know that just about anything can happen the first time they execute a program. If certain control panel functions are not properly set, the mach

bottom of page