CNC Machinist Calculator Ultra

Home › G-codes › Mach3 Mach4 › G0

G0 Rapid move

Mach3 Mach4 G-code · Mill

Moves the named axes at rapid rate to the end point in a coordinated straight line. Use it only for moves in air.

Format

G0 [X] [Y] [Z] [A] [B] [C]

Addresses

AddressWhat it does
X Y ZEnd point of the move
A B COptional rotary axes

How it works

Modal, motion group. Stays on until G1, G2, G3 or a canned cycle.

Example program

G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
T1 M6 (TOOL CHANGE)
G43 H1 Z1.0 (LENGTH OFFSET, Z TO CLEARANCE)
S12000 M3 (SPINDLE ON)
…

The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G1 · G53 · G90

G0 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucRapid positioning
Haas NGCRapid motion positioning
Mazak (EIA)Rapid positioning
Okuma OSPRapid positioning
Mitsubishi M70 M80Rapid positioning
Brother SpeedioRapid positioning
Siemens 840D 828DRapid traverse positioning
Heidenhain TNC (ISO)Rapid straight line, Cartesian
Fagor 8055 8065Rapid traverse
LinuxCNC TormachRapid move
Centroid CNC12 AcornRapid positioning
Hurco WinMax (NC)Rapid positioning
FadalRapid travel
Swiss (Citizen Star)Rapid positioning

Every G-code for Mach3 Mach4 in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.

Open G0 in the app All Mach3 Mach4 G-codes

App Store Google Play