5238-E P-337
SECTION 15 APPENDIX
2. Table of Mnemonic Codes
✩ : Optional
Others : Standard
M Code Contents
M00 Program stop
M01 Optional stop
M02 End of program
M03
Work spindle start (CW) [Rotates the work spindle counterclockwise when viewed from the
workpiece.]
M04 Work spindle start (CCW) [Rotates the work spindle clockwise when viewed from the workpiece.]
M05 Spindle stop
M06 Tool change ✩
M07
M08 Coolant ON
M09 Coolant OFF
M10 Spindle inching OFF
M11 Spindle inching ON
M12 M-tool spindle stop ✩
M13 M-tool spindle start, CW ✩
M14 M-tool spindle start, CCW ✩
M15 C-axis positioning (positive direction) ✩
M16 C-axis positioning (negative direction) ✩
M17 Post-process gauging data transfer through RS232 ✩
M18 Spindle orientation release ✩
M19 Spindle orientation ✩
M20
Tailstock barrier OFF or spindle interference monitoring OFF
(opposed two-spindle models)
✩
M21
Tailstock barrier ON or spindle interference monitoring ON
(opposed two-spindle models)
✩
M22 Chamfering OFF
M23 Chamfering ON
M24 Chuck barrier OFF, tool interference OFF
M25 Chuck barrier ON, tool interference ON
M26 Thread lead along Z-axis
M27 Thread lead along X-axis
M28 Tool interference check function OFF
M29 Tool interference check function ON
M30 End of program
M31
M32 Straight infeed along thread face mode
M33 Zigzag infeed in thread cutting
M34 Straight infeed along thread face mode (on right face)
M35 Loader gripper Z slide retract ✩