M Codes
1 6 7
96-8000 rev R June 2007
M CODES (MISCELLANEOUS FUNCTIONS)
M Code Introduction
M-Codes are non axes moving commands for the machine. The format for an M code is the letter “M” followed by
two numbers, for example M03.
Only one M code may be programmed per line of code. All M codes take effect at the end of the block.
M00 Stop Program
The M00 code is used to stop a program. It stops the axes, spindle, turns off the coolant (including Through Spindle
Coolant). The next block (block after the M00) will be highlighted when viewed in the program editor. Pressing Cycle
Start will continue program operation from the highlighted block.
M01 Optional Program Stop
M01 works the same as M00, except the Optional Stop feature must be on.
M02 Program End
The M02 code is used to end a program. Note that the most common way of ending a program is with an M30.
M03 / M04 / M05 Spindle Commands
M03 turns spindle on in the forward direction
M04 turns spindle on in the reverse direction
M05 Stops the spindle
Spindle speed is controlled with an S address code, for example, S5000 will command a spindle speed of
5000RPM.
Note: It is not recommended to run an M04 command with Through-Spindle Coolant (TSC).
M06 Tool Change
The M06 code is used to change tools, for example M06 T12 this will put tool 12 into the spindle. If the spindle is
running, the spindle and coolant (including TSC) will be stopped by the M06 command.
M08 Coolant On / M09 Coolant Off
The M08 code will turn on the optional coolant supply and an M09 code will turn it off.
Also see M34/M35 for optional P-Cool and M88/89 for optional Through-the-spindle coolant.
Note: Coolant status is checked only at the start of a program, so a low coolant condition will not stop a program
that is already running.
M10 Engage 4th Axis Brake/ M11 Release 4th Axis Brake
These codes will apply and release the brake to the optional 4th axis. The brake is normally engaged, so the M10
command is only required when an M11 has been used to release the brake.
M12 Engage 5
th
Axis Brake / M13 Release 5th Axis Brake
These codes will apply and release the brake to the optional 5th axis. The brake is normally engaged, so the M12
command is only required when an M13 has been used to release the brake.
M16 Tool Change
This M code behaves the same as M06. However M06 is the preferred method for commanding tool changes.
M17 Unclamp APC Pallet and Open APC Door/ M18 Clamp Pallet and Close Door
This M-code is used on vertical machining centers with pallet changers. It is used as a maintenance/test function
only. Pallet changes should be commanded with an M50 command only.
Содержание Mill
Страница 12: ...96 8000 rev R June 2007 Safety 5 ...
Страница 14: ...96 8000 rev R June 2007 Safety 7 LATHE WARNING DECALS ...
Страница 15: ...8 Safety 96 8000 rev R June 2007 ...
Страница 17: ...10 Introduction 96 8000 rev R June 2007 ...
Страница 117: ...110 4 5 Axis Programming 96 8000 rev R June 2007 ...
Страница 199: ...Settings 192 96 8000 rev R June 2007 ...
Страница 213: ...206 Maintenance 96 8000 rev R June 2007 ...