CNC Machinist Calculator Ultra

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

AddressWhat it does
X Y ZEnd position, absolute or incremental per G90 or G91
A B CRotary 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
…

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

Watch out for

Related codes

G1 · G90 · G91 · G54

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
Heidenhain TNC (ISO)Rapid straight line, Cartesian
Fagor 8055 8065Rapid traverse
LinuxCNC TormachRapid move
Mach3 Mach4Rapid move
Centroid CNC12 AcornRapid positioning
Hurco WinMax (NC)Rapid positioning
FadalRapid 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

App Store Google Play