Home › G-codes › LinuxCNC Tormach › G0
G0 Rapid move
LinuxCNC Tormach G-code · Mill and lathe
Moves all 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] [U] [V] [W]
Addresses
| Address | What it does |
|---|---|
X Y Z | End point of the move |
A B C U V W | Optional extra axes |
How it works
Modal, motion group. Stays on until G1, G2, G3, G33, G38.x or a canned cycle.
Example program
G20 G17 G40 G49 G54 G80 G90 G94 (INCH, SAFE START)
T1 M6 G43 (.500 END MILL)
S3000 M3 (SPINDLE ON)
G0 X-0.6 Y0 (RAPID TO START)
…
T1 M6 G43 (.500 END MILL)
S3000 M3 (SPINDLE ON)
G0 X-0.6 Y0 (RAPID TO START)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- LinuxCNC moves rapids in a straight coordinated line, but rapid rate still varies by machine. Lift Z first near clamps.
- G0 stays active. The next block with only axis words is also a rapid.
- A rapid with cutter compensation on is still compensated. Turn on G41 or G42 on a lead-in move longer than the tool radius.
Related codes
G0 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Rapid positioning |
| Haas NGC | Rapid motion positioning |
| Mazak (EIA) | Rapid positioning |
| Okuma OSP | Rapid positioning |
| Mitsubishi M70 M80 | Rapid positioning |
| Brother Speedio | Rapid positioning |
| Siemens 840D 828D | Rapid traverse positioning |
| Heidenhain TNC (ISO) | Rapid straight line, Cartesian |
| Fagor 8055 8065 | Rapid traverse |
| Mach3 Mach4 | Rapid move |
| Centroid CNC12 Acorn | Rapid positioning |
| Hurco WinMax (NC) | Rapid positioning |
| Fadal | Rapid travel |
| Swiss (Citizen Star) | Rapid positioning |
Every G-code for LinuxCNC Tormach 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 LinuxCNC Tormach G-codes