370 ISO Programming
4.34 M Commands
Machine commands
The effect of machine commands depends on the configuration of
your machine. The following table lists the M commands used on
most machines.
M commands as machine commands
M03 Main spindle on (cw)
M04 Main spindle on (ccw)
M05 Main spindle stop
M12 Lock main spindle brake
M13 Release main spindle brake
M14 C axis on
M15 C axis off
M19.. Spindle stop at position C
M40 Shift gear to range 0 (neutral)
M41 Shift gear to range 1
M42 Shift gear to range 2
M43 Shift gear to range 3
M44 Shift gear to range 4
Mx03 Spindle x on (cw)
Mx04 Spindle x on (ccw)
Mx05 Spindle x stop
For more information on the M commands, refer to your
machine manual.