Home › G-codes › Siemens 840D 828D › G0
G0 Rapid traverse positioning
Siemens 840D 828D G-code · Mill and lathe
Moves the axes at rapid traverse to the programmed position. Used for moves in air, never for cutting. By default the axes move on a straight line.
Format
G0 X Y Z [A B C]
Addresses
| Address | What it does |
|---|---|
X Y Z | End position, absolute or incremental per G90 or G91 |
A B C | Rotary axis end position, if fitted |
How it works
Modal, G group 1 (motion). Stays active until G1, G2, G3, CIP or another motion command.
Example program
G17 G54 G71 G90 ; MM, ABSOLUTE, XY PLANE
T1 D1 ; SELECT FACE MILL AND OFFSET
M6 ; TOOL CHANGE
S1200 M3 ; SPINDLE ON CW
…
T1 D1 ; SELECT FACE MILL AND OFFSET
M6 ; TOOL CHANGE
S1200 M3 ; SPINDLE ON CW
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- G0 runs a straight line path by default. With RTLIOF each axis moves at its own rapid rate and the path can dogleg, so check clearance.
- G0 ignores F. The last F stays stored and comes back with the next G1.
- Bring Z down to a safe clearance in a separate block before moving into the part area.
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 |
| Heidenhain TNC (ISO) | Rapid straight line, Cartesian |
| Fagor 8055 8065 | Rapid traverse |
| LinuxCNC Tormach | Rapid move |
| 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 Siemens 840D 828D 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 Siemens 840D 828D G-codes