Skip to content

G Code and MaslowCNC

Jack in TN edited this page Jul 18, 2018 · 9 revisions

MaslowCNC Wiki: Electronics | Firmware | Mechanics | Software | Community Garden

G Code is the 'language of CNC' machines, providing the instructions for machine movement. MaslowCNC is considered a '3 Axis' CNC machine, being able to mill in 3 dimensions, but G Code can be used to control much more complicated machines, and has an instruction set much wider than that which MaslowCNC requires or understands. This page attempts to set out some guidelines and instruction for understanding G Code in relation to MaslowCNC, and G Code in general for the better operation of MaslowCNC.


MaslowCNC recognized G Code instructions.

  • GCode | Description
  • G00 | Rapid Move
  • G01 | Linear Move
  • G02 | Arc Move - Clockwise
  • G03 | Arc Move - Counterclockwise
  • G10 | Set Tool Table, Coordinate System
  • G20 | Set Units - in
  • G21 | Set Units - mm
  • G90 | Distance Mode - Absolute
  • G91 | Distance Mode - Relative

MaslowCNC recognized M Code instructions

  • MCode | Description
  • M00 | program pause
  • M01 | optional pause/halt/stop
  • M02 | program end
  • M03 | spindle on - clockwise
  • M04 | spindle on - counterclockwise*
  • M05 | spindle off
  • M06 | tool change, pause for response
  • M30 | program end with return to top

*Note: The Maslow has no way of determining direction of rotation, so M04 will have the same result as M03. Normally supported on 'spindles' rather than routers used as spindles.


G Code Links