Okuma OSP M-code list
85 M-codes. Pick a code for the format, the addresses, an example program and what to watch out for.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
| Code | Meaning | Machine |
|---|---|---|
| M00 | Program Stop (Lathes & Mills) | Mill and lathe |
| M01 | Optional Stop (Lathes & Mills) | Mill and lathe |
| M02 | End of program (Lathes & Mills) | Mill and lathe |
| M03 | Spindle clockwise (Lathes & Mills) | Mill and lathe |
| M04 | Spindle counter clockwise (Lathes & Mills) | Mill and lathe |
| M05 | Spindle stop (Lathes & Mills) | Mill and lathe |
| M06 | Tool Change | Mill and lathe |
| M08 | Coolant on (Lathes & Mills) | Mill and lathe |
| M09 | Coolant off (Lathes & Mills) | Mill and lathe |
| M12 | Machine m-tool spindle stop | Mill and lathe |
| M13 | Machine m-tool spindle clockwise | Mill and lathe |
| M14 | Machine m-tool spindle counter clockwise | Mill and lathe |
| M15 | C-axis positioning in positive direction | Mill and lathe |
| M16 | C-axis positioning in negative direction | Mill and lathe |
| M17 | CEJ MATIC : Request of Data transfer | Mill and lathe |
| M18 | Oriented spindle stop Cancel | Mill and lathe |
| M19 | Spindle orientation (Lathes & Mills) | Mill and lathe |
| M20 | Tailstock Barrier OFF | Mill and lathe |
| M21 | Tailstock Barrier ON | Mill and lathe |
| M22 | Chamfer off | Mill and lathe |
| M23 | Chamfer on | Mill and lathe |
| M24 | Chuck Barrier off | Mill and lathe |
| M25 | Chuck Barrier on | Mill and lathe |
| M26 | Thread lead along z-axis | Mill and lathe |
| M27 | Thread lead along x-axis | Mill and lathe |
| M28 | Tool interference check function off | Mill and lathe |
| M29 | Tool interference check function on | Mill and lathe |
| M30 | End Program (Lathes & Mills) | Mill and lathe |
| M32 | Straight in-feed along thread face mode (on left face) | Mill and lathe |
| M33 | Zigzag in feed in Thread Cutting | Mill and lathe |
| M34 | Straight in-feed along thread face mode (on right face) | Mill and lathe |
| M40 | Spindle gear range neutral | Mill and lathe |
| M41 | Spindle gear range 1 | Mill and lathe |
| M42 | Spindle gear range 2 | Mill and lathe |
| M48 | Spindle speed override ignore cancel | Mill and lathe |
| M49 | Spindle speed override ignore | Mill and lathe |
| M55 | Tailstock spindle retract | Mill and lathe |
| M56 | Tailstock spindle advance | Mill and lathe |
| M58 | Chucking pressure low | Mill and lathe |
| M59 | Chucking pressure high | Mill and lathe |
| M72 | ATC unit position at approach position | Mill and lathe |
| M73 | Thread cutting pattern 1 | Mill and lathe |
| M74 | Thread cutting pattern 2 | Mill and lathe |
| M75 | Thread cutting pattern 3 | Mill and lathe |
| M76 | Parts catcher retract | Mill and lathe |
| M77 | Parts catcher advance | Mill and lathe |
| M78 | Steady rest unclamp | Mill and lathe |
| M79 | Steady rest clamp | Mill and lathe |
| M80 | Over cut advance | Mill and lathe |
| M81 | Over cut retract | Mill and lathe |
| M83 | Chuck clamp | Mill and lathe |
| M84 | Chuck unclamp | Mill and lathe |
| M85 | No return to the start point in rough can cycle | Mill and lathe |
| M86 | Turret Indexing direction: CW (reverse) | Mill and lathe |
| M87 | Cancel of M86 | Mill and lathe |
| M98 | Subprogram call (Lathes & Mills) | Mill and lathe |
| M99 | Subprogram return (Lathes & Mills) | Mill and lathe |
| M109 | Cancel of M110 | Mill and lathe |
| M110 | C-Axis Joint | Mill and lathe |
| M134 | Z-Axis Thrust Monitoring OFF | Mill and lathe |
| M135 | Z-Axis Thrust Monitoring ON | Mill and lathe |
| M136 | Designation of Multiple fixed cycle configuration | Mill and lathe |
| M137 | Touch setter interlock release ON | Mill and lathe |
| M138 | Touch setter interlock release OFF | Mill and lathe |
| M139 | Lead Machining Function - Learning Operation | Mill and lathe |
| M140 | Tapping Cycle M-Tool Constant Rotation Answer Ignored | Mill and lathe |
| M141 | C-Axis Clamp or not Selection | Mill and lathe |
| M142 | Coolant Pressure Low | Mill and lathe |
| M143 | Coolant Pressure High | Mill and lathe |
| M146 | C-Axis Unclamp | Mill and lathe |
| M147 | C-Axis Clamp | Mill and lathe |
| M152 | M-Tools Spindle Interlock ON | Mill and lathe |
| M153 | M-Tools Spindle Interlock OFF | Mill and lathe |
| M161 | Feedrate Override Fix (100%) | Mill and lathe |
| M162 | Cancel of M163 | Mill and lathe |
| M163 | M-Tools Spindle Speed Override Fix (100%) | Mill and lathe |
| M168 | Ignoring M-Tool Spindle Constant Speed Answer | Mill and lathe |
| M169 | C-Axis NoClamp | Mill and lathe |
| M191 | M-Tool Spindle Orientation Direction Specified CW | Mill and lathe |
| M192 | M-Tool Spindle Orientation Direction Specified CCW | Mill and lathe |
| M197 | Thread Cutting Phasing Stroke Clear | Mill and lathe |
| M211 | Keyway Cutting Style: Minus Direction | Mill and lathe |
| M212 | Keyway Cutting Style: Zigzag | Mill and lathe |
| M213 | Keyway Cutting Style: Designated Depth Infeed | Mill and lathe |
| M214 | Keyway Cutting Style: Equal Depth Infeed | Mill and lathe |
Take the list to the machine. The app searches every code by number or shop word and decodes a whole program line by line.
Open the M-code list Okuma OSP G-codes