DeskCNC RS274/NGC MACH2
G00 rapid positioning Rapid positioning Rapid positioning
G01 linear interpolation linear interpolation Linear interpolation
G02 circular (clockwise XY Plane Only) circular/helical interpolation (clockwise) Clockwise circular/helical interpolation
G03 circular (counterclockwise XY Plane Only) circular/helical interpolation (counterclockwise) G3 Counterclockwise circular/Helical interpolation
G04 Dwell dwell Dwell
G10 coordinate system origin setting coordinate system origin setting Coordinate system origin setting
G12

Clockwise circular pocket
G13

Counterclockwise circular pocket
G15

Polar Coordinate moves in G0 and G1
G16 xy plane selection xy plane selection XY Plane select
G17
xz plane selection XZ plane select
G18
yz plane selection YZ plane select
G19 inch system selection inch system selection Inch unit
G20 millimeter system selection millimeter system selection Millimetre unit
G21

Return home
G28

Reference axes
G28.1 Home
Return home
G30

Straight probe
G31 Lathe Thread Cycle etc. ?
G33 cancel cutter diameter compensation cancel cutter radius compensation Cancel cutter radius compensation
G40 start cutter diameter compensation left start cutter radius compensation left Start cutter radius compensation left
G41 start cutter diameter compensation right start cutter radius compensation right Start cutter radius compensation right
G42 tool length offset (plus) tool length offset (plus) Apply tool length offset (plus)
G43 cancel tool length offset cancel tool length offset Cancel tool length offset
G49

Reset all scale factors to 1.0
G50

Set axis data input scale factors
G51

Temporary coordinate system offsets
G52 motion in machine coordinate system motion in machine coordinate system Move in absolute machine coordinate system
G53 use preset work coordinate system 1 use preset work coordinate system 1 Use fixture offset 1
G54 use preset work coordinate system 2 use preset work coordinate system 2 Use fixture offset 2
G55 use preset work coordinate system 3 use preset work coordinate system 3 Use fixture offset 3
G56 use preset work coordinate system 4 use preset work coordinate system 4 Use fixture offset 4
G57

Use fixture offset 5
G58

Use fixture offset 6 / use general fixture number
G59

Exact stop
G61

Constant Velocity mode
G64

Canned cycle - peck drilling
G73 cancel motion mode (including any canned cycle) cancel motion mode (including any canned cycle) Cancel motion mode (including canned cycles)
G80 drilling canned cycle canned cycle: drilling Canned cycle - drilling
G81

Canned cycle - drilling with dwell
G82 chip-breaking drilling canned cycle canned cycle: peck drilling Canned cycle - peck drilling
G83

Canned cycle - right hand rigid tapping
G84 boring, no dwell, feed out canned cycle canned cycle: boring, no dwell, feed out Canned cycle - boring, no dwell, feed out
G85 boring, spindle stop, rapid out canned cycle canned cycle: boring, spindle stop, rapid out Canned cycle - boring, spindle stop, rapid out
G86 back boring canned cycle canned cycle: back boring
G87 boring, spindle stop, manual out canned cycle canned cycle: boring, spindle stop, manual out Canned cycle - boring, spindle stop, manual out
G88

Canned cycle - boring, dwell, feed out
G89 absolute distance mode absolute distance mode Absolute distance mode
G90 incremental distance mode incremental distance mode Incremental distance mode
G91 offset coordinate systems offset coordinate systems and set parameters Offset coordinates and set parameters
G92 cancel offset coordinate systems cancel offset coordinate systems but do not reset parameters
G92.2

Cancel G92 etc.
G92.x inverse time feed mode inverse time feed rate mode Inverse time feed mode
G93 feed per minute mode Units per minute feed rate mode Feed per minute mode
G94

Feed per rev mode
G95 initial level return in canned cycles initial level return in canned cycles Initial level return after canned cycles
G98 R-point level return in canned cycles R-point level return in canned cycles R-point level return after canned cycles
G99 program stop program stop Program stop
M00 optional program stop optional program stop Optional program stop
M01 program end program end Program end
M02 Spindle on Clockwise turn spindle clockwise Rotate spindle clockwise
M03 Spindle on Counter Clockwise turn spindle counterclockwise Rotate spindle counter clockwise
M04 Spindle Off stop spindle turning Stop spindle rotation
M05 tool change tool change Tool change (by two macros)
M06 Mist Coolant On mist coolant on Mist coolant on
M07 Flood Coolant On flood coolant on Flood coolant on
M08 Coolant Off mist and flood coolant off All coolant off
M09

Program end and Rewind
M30

Repeat program from first line
M47

Enable speed and feed override
M48

Disable speed and feed override
M49 M3 Off

M83 M4 Off

M84 M8 Off

M87 M8 Off

M88 Aux1 0N

M90 Aux1 OFF

M91 Aux2 0N

M92 Aux2 OFF

M93 Aux3 0N

M94 Aux3 OFF

M95

Call subroutine
M98

Return from subroutine/repeat
M99












G0 rapid positioning


G1 linear interpolation


G2 circular/helical interpolation (clockwise)


G3 circular/helical interpolation (c-clockwise)


G4 dwell


G10 coordinate system origin setting


G17 xy plane selection


G18 xz plane selection


G19 yz plane selection


G20 inch system selection


G21 millimeter system selection


G40 cancel cutter diameter compensation


G41 start cutter diameter compensation left


G42 start cutter diameter compensation right


G43 tool length offset (plus)


G49 cancel tool length offset


G53 motion in machine coordinate system


G54 use preset work coordinate system 1


G55 use preset work coordinate system 2


G56 use preset work coordinate system 3


G57 use preset work coordinate system 4


G58 use preset work coordinate system 5


G59 use preset work coordinate system 6


G59.1 use preset work coordinate system 7


G59.2 use preset work coordinate system 8


G59.3 use preset work coordinate system 9


G80 cancel motion mode (includes canned)


G81 drilling canned cycle


G82 drilling with dwell canned cycle


G83 chip-breaking drilling canned cycle


G84 right hand tapping canned cycle


G85 boring, no dwell, feed out canned cycle


G86 boring, spindle stop, rapid out canned


G87 back boring canned cycle


G88 boring, spindle stop, manual out canned


G89 boring, dwell, feed out canned cycle


G90 absolute distance mode


G91 incremental distance mode


G92 offset coordinate systems


G92.2 cancel offset coordinate systems


G93 inverse time feed mode


G94 feed per minute mode


G98 initial level return in canned cycles



M0 program stop


M1 optional program stop


M2 program end


M3 turn spindle clockwise


M4 turn spindle counterclockwise


M5 stop spindle turning


M6 tool change


M7 mist coolant on


M8 flood coolant on


M9 mist and flood coolant off


M26 enable automatic b-axis clamping


M27 disable automatic b-axis clamping


M30 program end, pallet shuttle, and reset


M48 enable speed and feed overrides


M49 disable speed and feed overrides


M60 pallet shuttle and program stop