INTUWIZ                    Intuitive Wizard
   Bookmark and Share    CNC G-codes.G28 command - Return to the primary CNC machine zero reference position 

G28 command returns the current tool to the CNC machine zero position via an intermediate point.

G28 command (G-code) moves the current tool at a fast traverse rate (G00).

G28 is not a modal code.

The return to the CNC machine zero position is intended primarily for the possibility of checking the size and quality of the workpiece in some part of the CNC program.

G28 X... Y... Z... Z... A... B... C...

 
 X X coordinate of the intermediate point.
  Y Y coordinate of the intermediate point.
  Z Z coordinate of the intermediate point.
  R A coordinate of the intermediate point.
  P B coordinate of the intermediate point.
  F C coordinate of the intermediate point.

 

Example of using G28 in an CNC program.

%
O0001 (G28 example)    (Program number (O0001) and Program name (G28 example)
G00 Z0.5                             (Safe Z)
G00 X-63 Y71                     
G01 X25 Y16
G28 Z0              (send the Z axis to the machine zero reference position via point Z0)
M30                                    (End)
%

 

Generate a G-Code toolpath for a various  details

Back to list of CNC G Codes and CNC M-codes

 

Copyright © Intuwiz  Software 2023 All Righs Reserved.
Home | Articles | G28 command.Zero Return.