-
Notifications
You must be signed in to change notification settings - Fork 295
Mcodes
Rob Giseburt edited this page Apr 15, 2017
·
3 revisions
See also Gcodes
Mcode | Parameter | Command | Description |
---|---|---|---|
M0 | Program stop | ||
M1 | Program stop | Optional program stop switch is not implemented so M1 is equivalent to M0 | |
M2 | Program end | ||
M30 | Program end | ||
M60 | Program stop | ||
M3 | S | Spindle on - CW | S is speed in RPM |
M4 | S | Spindle on - CCW | S is speed in RPM |
M5 | Spindle off | ||
M6 | Change tool | No operation at this time | |
M7 | Mist coolant on | Note that mist and flood share the same Coolant ON/OFF pin | |
M8 | Flood coolant on | Note that mist and flood share the same Coolant ON/OFF pin | |
M9 | All coolant off | Note that mist and flood share the same Coolant ON/OFF pin | |
M100 | active comment | Run active comment in sync with motion |
M100 ({out1:1}) will turn out1 on in between the moves surrounding this line |
M100.1 | active comment | Run active comment as soon as it's parsed |
M100.1 ({g55z:0.1}) will set the G55 Z-offset to 0.1 as soon as it's parsed |
M101 | active comment | Delay motion in this point in the program until the active comment evaluates true |
M101 ({he1at:t}) will make the program wait until heater 1 is at temp (The value must be true or false , not numeric.) |
program END (M2, M30) performs the following actions:
- Axis offsets are set to G92.1 CANCEL offsets
- Set default coordinate system (uses $gco)
- Selected plane is set to default plane ($gpl)
- Distance mode is set to MODE_ABSOLUTE (like G90)
- Feed rate mode is set to UNITS_PER_MINUTE (like G94)
- The spindle is stopped (like M5)
- Motion mode is canceled like G80 (not set to G1)
- Coolant is turned off (like M9)
- Default INCHES or MM units mode is restored ($gun)
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