Supported M-codes
M Code | Meaning |
---|---|
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 |
M20 | Plasma Torch Height Control ON |
M21 | Plasma Torch Height Control OFF |
M22 | M23 Q… Set Plasma THC set point value |
M26 | Enable rotary axis clamping |
M27 | Disable rotary axis clamping |
M30 | Program end, spindle and coolants off, and rewind |
M48 | Enable speed and feed overrides |
M49 | Disable speed and feed overrides |
M50 | Set feed override |
M51 | Set speed override |
M52 | Enable feed override by analog input |
M53 | Enable feed hold input |
M54 | Set general-purpose output |
M55 | Clear general-purpose output |
M56 | Read general-purpose input |
M57 | Read general-purpose output |
M60 | Program stop, use this with nesting instead of M30 so that the spindle/coolants remain on during the transition from one to the next run |
M80 | Drive enable ON |
M81 | Drive enable OFF |
M90 | Standard Head/spindle |
M91 | Alternate Head/2nd spindle |
M92 | Alternate Head/3rd spindle |
M93 | Alternate Head/4th spindle |
M95 | Alternate Head/Probe |
M97 | Alternate Head/Camera |
Note that a head may as well be e.g. a tangential knife configuration.
M Code | Meaning |
---|---|
M104 | Set extruder temperature |
M106 | Workpiece cooling fan on |
M107 | Workpiece cooling fan off |
M109 | M109 S... Set extruder temperature and wait until reached |
M140 | M140 S... Bed temperature |
M143 | M143 S... Maximum Hot-end temperature to prevent overheating |
M190 | M190 Wait for bed temperature to reach the target value |