Supported G-Codes
Summary of G-Codes
| Code | Description |
|---|---|
GO |
Rapid linear motion |
G1 |
Linear motion at programmed feed rate |
G2,G3 |
Arc motion at programmed feed rate |
G4 |
Dwell |
G17, G18, G19 |
Plane select |
G20,G21 |
Units select |
G28 |
Rapid move to machine home [X0,Y0,Z0] |
G53 |
Move in machine coordinate system |
G54, G55, G56, G57, G58, G59, G59.1, G59.2, G59.3 |
Select Coordinate System |
G90, G91 |
Distance mode |
Summary of M-Codes
| Code | Description |
|---|---|
M0 |
Program Pause |
M2, M30 |
Program End |
M3, M4, M5 |
Spindle Control |
M6 |
Tool Change |
M7, M9 |
Mist Control (Output 0) |
M8, M9 |
Coolant Control (Output 1) |
M64, M65 |
Output Control |
G-Code Commands
G0 Rapid Move
Description
The G0 command moves the machine's axes to specified coordinates at the maximum possible speed. It is typically used for non-cutting, point-to-point positioning such as moving the tool to a starting location, clearing a workpiece, or retracting between cuts.
G0 is a modal command. Once issued, any subsequent coordinate lines will execute as rapid moves until another motion mode (i.e. G1, G2 or G3) is called.
The final destination depends on whether the machine is in Absolute Mode (G90) or Incremental Mode (G91).
Syntax
Up to four target coordinates can be specified for the X, Y, Z, and A axes. If no coordinate is specified for an axis, the axis remains at its current position.
G0 [X<coordinate>] [Y<coordinate>] [Z<coordinate>] [A<coordinate>]
Example:
G0 X100 Y150
Move to (X,Y) = (100, 150)
G1 Linear Move
Description
The G1 command moves the machine's axes in a straight line to the specified coordinates at a controlled rate of speed, known as the feed rate.
G1 is a modal command. Once issued, any subsequent coordinate lines will execute as rapid moves until another motion mode (i.e. G0, G2 or G3) is called.
The feed rate specified by the F value is also modal. Once set, it remains active for all subsequent, G1, G2 and G3 commands until a new F value is specified.
The final destination depends on whether the machine is in Absolute Mode (G90) or Incremental Mode (G91).
Syntax
Up to four target coordinates can be specified for the X, Y, Z, and A axes. If no coordinate is specified for an axis, the axis remains at its current position.
G1 [X<coordinate>] [Y<coordinate>] [Z<coordinate>] [A<coordinate>] [F<feedrate>]
Example:
G1 X100 Y150 F1000
Move to (X,Y) = (100, 150) at a feed rate of 1000 units/min