-
Notifications
You must be signed in to change notification settings - Fork 121
G Code and MaslowCNC
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.
- 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
- 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.