Professional Documents
Culture Documents
CNC
CNC
M CODE-MISCELLANEOUS CODE
EXAMPLE- M08 - COOLENT ON M09 - COOLENT OFF
• List of G-codes
• G00 - Positioning rapid traverse
• G01 - Linear interpolation (feed)
• G02 - Circular interpolation CW
• G03 - Circular interpolation CCW
• G04 - Dwell
• G20 - Inch unit
• G21 - Metric unit
• G28 - Automatic zero return
• G40 - Tool nose radius compensation cancel
• G41 - Tool nose radius compensation left
• G42 - Tool nose radius compensation right
• G43 - Tool length compensation
• G54 - Work co-ordinate system 1 selection
• G55 - Work co-ordinate system 2 selection
• G56 - Work co-ordinate system 3 selection
• G57 - Work co-ordinate system 4 selection
• G58 - Work co-ordinate system 5 selection
• G59 - Work co-ordinate system 6 selection
• G80 - Canned cycle cancel
• G81 - Drilling cycle
• G82 - Drilling cycle with dwell
• G83 - Peck drilling cycle / deep drill
• G84 - Tapping cycle
• G90 - Absolute command
• G91 - Incremental command
• G94 - Feed per minute
• G95 - Feed per revolution
• G98 - Return to initial point in canned cycle
• G99 - Return to R point in canned cycle
• List of M codes
M codes vary from machine to machine depending on the functions
available on it. They are decided by the manufacturer of the machine. The M
codes listed below are the common ones.
M00 - Optional program stop automatic
M01 - Optional program stop request
M02 - Program end
M03 - Spindle ON clock wise (CW)
M04 - Spindle ON counter clock wise (CCW)
M05 - Spindle stop
M06 - Tool change
M07 - Mist coolant ON (coolant 1 ON)
M08 - Flood coolant ON (coolant 2 ON)
M09 - Coolant OFF
M30 - End of program, Reset to start
M98 - Sub program call
M99 - Sub program end
• REFERENCE POINT AND RETURN
G28 - Return To Reference Point, set optional intermediate
point.
The G28 code is used to return to the machine zero
position on all axes. If an X, Y, Z axis is on the same block
and specifies a location, only those axes will move and
return to the machines zero reference point and the
movement to the machines zero reference point will be
through that specified location.
Format: -G91 G28 X0 Y0 Z0;
• HOME POSITION
The point from which the tool starts the program execution
and to which the tool return is known tool home position.
This is the position, where a change in the tool usually
takes place. So this position is known as tool change
position.
• TOOL OFFSET
Tool offset is the distance of tool from job zero through X,
Z axis in case of CNC lathe when the tool is at home
position. Tool offset is taken to assign zero on job.