Skip to content
Scott Lahteine edited this page Mar 15, 2015 · 7 revisions
  • G0/G1: Move
  • G90: Set to Absolute Positioning
  • G91: Set to Relative Positioning

Move the specified axes to new coordinates at an optional speed, limited to the max speed of the machine. Coordinates may be Absolute or Relative depending on the positioning mode (G90 / G91). Absolute positioning is the default for RepRap machines.

G0/G1: Move

Usage: G0 Xnnn Ynnn Znnn Ennn Fnnn Snnn
       G1 Xnnn Ynnn Znnn Ennn Fnnn Snnn

X = Destination X position
Y = Destination Y position
Z = Destination Z position
E = Destination E position
F = Feedrate in mm/min
S = Endstop check. 1=yes 0=no

G90: Set to Absolute Positioning

Set the machine positioning to use Absolute coordinates (the default). In this mode movement coordinates specify the absolute destination. This is the preferred mode because relative positioning is prone to cumulative errors due to imperfect floating point precision.

Usage: G90

G91: Set to Relative Positioning

Set the machine positioning to use Relative coordinates. In this mode movement coordinates specify the relative movement, starting from 0 in every axis. This mode is not often produced by slicers, but may be used in start/end g-code sequences, script-generated g-code, or in other special cases.

Usage: G91