On CNC mills, this is used to move while cutting, it is also called a “linear” move.
On laser cutters, it is used the same way, and the laser is automatically turned on during the move.
On 3D printers, it is also called an “extrusion” move.
The command is used as such:
G1 X10 Y20 F30
Which means: move 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 | |
E |
Move to this position in the E (extruder) axis | |
F |
Move at this speed in millimeters/minute | |
S |
Laser power, S1 is 100%, S0 is 0% |
G1 X100E100
G1 : move...
X10: ... by 10mm in the X direction...
E10: ... while also feeding the extruder 10mm of extrusion
G1 : move...
X10E10: ... in the X direction by 10E10, which is also 10 to the power of 10, or 10000000000.
The F parameter is modal. The speed is remembered and each subsequent command uses it.
This means if you do:
G1 X10 F100
G1 X20
G1 X30 F200
G1 X40
The first two moves will happen at 100 mm/minute, and the last two moves will happen at 200mm/minute.
G0 X10 F100
G1 X20 F200
G0 X30
If you have just started your Smoothieboard and have never sent an F parameter, your
This is set in the configuration file by setting the
The
This means if you do:
G1 X10
X20
Y10
It is the same as doing:
G1 X10
G1 X20
G1 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
G1 X10
G1 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
G1 X10
G1 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: