Supported M-codes
M0 |
Program stop |
M1 |
Optional Program Stop |
M2 |
Program End |
M3 |
Turn spindle clockwise |
M301 |
Turning ON the spindle 1 with clockwise rotation |
M302 |
Turning ON the spindle 2 with clockwise rotation |
M303 |
Turning ON the spindle 3 with clockwise rotation |
M304 |
Turning ON the spindle 4 with clockwise rotation |
M4 |
Turn spindle counter clockwise |
M401 |
Turning ON the spindle 1 with counterclockwise rotation |
M402 |
Turning ON the spindle 2 with counterclockwise rotation |
M403 |
Turning ON the spindle 3 with counterclockwise rotation |
M404 |
Turning ON the spindle 4 with counterclockwise rotation |
M5 |
Spindle stop |
M501 |
Spindle 1 stop |
M502 |
Spindle 2 stop |
M503 |
Spindle 3 stop |
M504 |
Spindle 4 stop |
M6 |
Tool change for Spindle 1 or for active spindle |
M601 |
Tool change for Spindle 1 |
M602 |
Tool change for Spindle 2 |
M603 |
Tool change for Spindle 3 |
M604 |
Tool change for Spindle 4 |
M7 |
Turn mist coolant ON |
M8 |
Turn flood coolant ON |
M9 |
Mist and Flood coolant off |
M24 |
Switching ON the work light |
M25 |
Switching OFF the work light |
M30 |
Program end |
M64 |
Turn ON digital output immediately |
M65 |
Turn OFF digital output immediately |
M100...M999 |
User macros |
M131 |
Touch probe #1 - surface |
M132 |
Touch probe #2 - outside corner |
M133 |
Touch probe #3 - block |
M134 |
Touch probe #4 - bore |
M135 |
Touch probe #5 - inside corner |
M136 |
Touch probe #6 - pocket |
M138 |
Homing ALL axes |
M139 |
Homing X axis |
M140 |
Homing Y axis |
M141 |
Homing Z axis |
M142 |
Homing 4 axis |
M143 |
Homing 5 axis |
All M-codes are macros and are contained in a general table of Macros, each of which can be changed to suit your requirements.