On CNC mills, it is used to go to a new area without cutting, it is also called a “rapid” move.
On laser cutters, it is used the same way, and the laser is automatically turned off during the move.
On 3D printers, it is also called a “travel” move.
While traditionally on CNC mills
The command is used as such:
G0 X10 Y20 F30
Which means: move (without cutting) to X position 10, Y position 20, at a speed of 30 millimeters/minute.
| Parameter | Usage | Example |
|---|---|---|
X |
Move to this position in the X axis | |
Y |
Move to this position in the Y axis | |
Z |
Move to this position in the Z axis | |
A |
Move to this position in the A axis | |
B |
Move to this position in the B axis | |
C |
Move to this position in the C axis | |
F |
Move at this speed in millimeters/minute |
The F parameter behavior differs between V1 and V2:
In V1, the F parameter is modal and affects both
This means if you do:
G0 X10 F100
G0 X20
G0 X30 F200
G0 X40
The first two moves will happen at 100 mm/minute, and the last two moves will happen at 200mm/minute.
In V2, the F parameter behavior can be configured using the compliant_seek_rate setting:
Default behavior (compliant_seek_rate = false):
The F parameter affects both
GRBL-compliant behavior (compliant_seek_rate = true):
When enabled, default_seek_rate and ignore the F parameter. This provides strict GRBL compliance where
G0 X10 F100
G1 X20 F200
G0 X30If you have just started your Smoothieboard and have never sent an F parameter, your
This is set in the configuration file by setting the
Default value: In V1, the default seek rate is 100 mm/minute.
Default value: In V2, the default seek rate is 4000 mm/minute (a much more practical default). This allows rapid moves to be significantly faster by default.
The
This means if you do:
G0 X10
X20
Y10
It is the same as doing:
G0 X10
G0 X20
G0 Y10
Note the space character before each modal line, without that space, Smoothie will not know this is a modal command.
There are two ways to specify positions: absolutely or relatively.
Smoothie is in absolute mode by default.
You enter absolute mode by sending the
In absolute mode, all positions passed to
In relative mode, all positions passed to
This means if you do:
G90
G0 X10
G0 X20
Smoothie will move to the X position 10, then move to the X position 20, relative to the origin.
But if you do:
G91
G0 X10
G0 X20
Smoothie will move 10 millimeters relative to the current position, then move 20 millimeters further away from that new position (moving 30 millimeters total).
These resources are used as references for Gcode: