G-codes & Post Processors

G01 - Linear Interpolation Motion

This command is used to move one or more axis at the specified feedrate to a specified location. If multiple axis are called they will all move together to the desired location in a straight line and arrive at the same time. The axis can be linear, angular or a combination of both.

Syntax & Parameters

G01 followed by the axis you wish to move and it’s coordinate. Multiple axis may be specified on the same line.

X, Y, Z, A, B Value – specifies the axis you wish to move following the distance to move. The distance value will be the current machine units in use.

F Value – The F value defines the federate at which the axis will move at. If the F value is not specified then the feedrate used from the last G01 command is used.

Example program

N10 G21
N20 G01 X10 Y20 Z30 F100
N30 G01 X0 Y0 Z0

In above program the first line command G21 will first set the controller units to millimetres, then it will move the axis to next position of X 10mm, Y 20mm, & Z 30mm in a straight line at 100mm/min feedrate. In the last line the axis will move to X 0mm, Y 0mm, & Z 0mm at 100mm/min feedrate.

INFORMATION: Units are defined as either inches or mm depending on your machines setup or G20 or G21 command in use.

INFORMATION: The motion can be either in G90 Absolute or G91 Incremental mode.