-
Notifications
You must be signed in to change notification settings - Fork 296
g2dialect Consensus Mcodes
Alden Hart edited this page Mar 18, 2017
·
7 revisions
This page lists common Mcodes used across NIST, Fanuc, Haas, Tormach, LinuxCNC and are typically documented in the CNC Cookbook and other sources. It does not list the numerous Mcodes used in the 3D printing arena, as these are not used or may be in conflict with standard CNC machines.
See also Consensus Gcode
This table lists rough consensus usage from the above sources.
Gcode | Command | Usage / Notes |
---|---|---|
M0 | Program Stop | Stop motion |
M1 | Optional Program Stop | |
M2 | Program End | |
M3 | Spindle On, Clockwise | |
M4 | Spindle On, Counterclockwise | |
M5 | Spindle Stop | |
M6 | Tool Change | |
M7 | Mist Coolant On | |
M8 | Flood Coolant On | |
M9 | Mist And Flood Coolant Off | |
M19 | Orient Spindle | (Fanuc, Haas) |
M30 | Program End | |
M48 | Enable Feed & Spindle Overrides | |
M49 | Disable Feed & Spindle Overrides | |
M50 | Feed Override Control | |
M51 | Spindle Override Control | |
M60 | Pallet Change Pause | (LinuxCNC) |
M62 | Digital Output - Turn on sync w/motion | (LinuxCNC) |
M63 | Digital Output - Turn off sync w/motion | (LinuxCNC) |
M64 | Digital Output - Turn on immediately | (LinuxCNC) |
M65 | Digital Output - Turn off immediately | (LinuxCNC) |
M66 | Wait on Input | (LinuxCNC) |
M67 | Analog Output Control | (LinuxCNC) |
M68 | Analog Output Control | (LinuxCNC) |
M98 | Call Macro/Subprogram | |
M99 | Return from Macro/Subprogram |
Mcodes 100 and above are user defined
Getting Started Pages
- Home
- What is g2core?
- Who uses g2core?
- Jerk-Controlled Motion
- Getting Started with g2core
- Connecting to g2core
- Configuring g2core
- Flashing g2core
- Troubleshooting
Reference Pages
- Gcodes
- Mcodes
- Text Mode
- JSON Communications
- GPIO Digital IO
- Alarms & Exceptions
- Power Management
- Coordinate Systems
- Status Reports
- Status Codes
- G2 Communications
- Tool Offsets and Selection
- Probing
- Feedhold, Resume, Job Kill
- Marlin Compatibility
- 9 Axis UVW Operation
- gQuintic Specs
Discussion Topics
- Roadmap
- GPIO for 1.X Releases
- Toolheads
- Raster Streaming Prototol
- g2core REST Interface
- Gcode Parsing
- G2 3DP Dialect
- Consensus Gcode
- Digital DRO
- Overview of Motion Processing
Developer Pages
- Development & Contribution
- Branching and Release - DRAFT
- Getting Started with g2core Development
- Project Structure & Motate
- Compiling G2
- OSX w/Xcode
- OSX/Linux Command Line
- Windows10 w/AtmelStudio7
- Debugging G2 on OSX
- Board and Machine Profiles
- Arduino Due Pinout
- Arduino DUE External Interfaces
- Diagnostics
- Debugging w/Motate Pins
- Development Troubleshooting
- g2core Communications
- Git Procedures
- Windows 10 / VMware 8 Issues
- Dual Endpoint USB Internals
- G2core License
- VSCode Setup
- Compatibility Axioms
- Wiki History