CNC Machine G Codes and M Codes – CNC Milling and Lathe

Table of contents:

[1] What is CNC?
[2] How to Make CNC Program?
[3] Make Your First CNC Program
[4] G Code Introduction
[5] Modal G-Code- Learn G Code Programming
[6] One Shot G-Codes- Learn G Code Programming
[7] Mill/Lathe G/M-Codes- Learn G Code Programming
[8] Popular CNC G-Code Lists- Learn G Code Programming
[9] Din 66025 Programming- Learn G Code Programming
[10] M Code Introduction
[11] CNC Program Block
[12] Why to use Canned Cycles?
[13] Subprograms Basics
[14] CNC Machine Modes
[15] Speed and Feed Override
[16] Block Delete
[17] Dry Run
[18] Reference Point Return
[19] CNC Operating Modes
[20] CNC Reference Point Return
Complete list of cnc machine G codes and M codes.
This G code and M code list can be used as reference while programming or learning cnc machine programming.
Complete list of G and M codes which are common in almost all the cnc controls which are used in cnc machine workshops around the world.

CNC Milling G Code List

G codeDescription
G00Rapid traverse
G01Linear interpolation
G02Circular interpolation CW
G03Circular interpolation CCW
G04Dwell
G17X Y plane selection
G18Z X plane selection
G19Y Z plane selection
G28Return to reference position
G302nd, 3rd and 4th reference position return
G40Cutter compensation cancel
G41Cutter compensation left
G42Cutter compensation right
G43Tool length compensation + direction
G44Tool length compensation – direction
G49Tool length compensation cancel
G53Machine coordinate system selection
G54Workpiece coordinate system 1 selection
G55Workpiece coordinate system 2 selection
G56Workpiece coordinate system 3 selection
G57Workpiece coordinate system 4 selection
G58Workpiece coordinate system 5 selection
G59Workpiece coordinate system 6 selection
G68Coordinate rotation
G69Coordinate rotation cancel
G73Peck drilling cycle
G74Left-spiral cutting circle
G76Fine boring cycle
G80Canned cycle cancel
G81Drilling cycle, spot boring cycle
G82Drilling cycle or counter boring cycle
G83Peck drilling cycle
G84Tapping cycle
G85Boring cycle
G86Boring cycle
G87Back boring cycle
G88Boring cycle
G89Boring cycle
G90Absolute command
G91Increment command
G92Setting for work coordinate system or clamp at maximum spindle speed
G98Return to initial point in canned cycle
G99Return to R point in canned cycle

CNC Lathe G Code List

G codeDescription
G00Rapid traverse
G01Linear interpolation
G02Circular interpolation CW
G03Circular interpolation CCW
G04Dwell
G09Exact stop
G10Programmable data input
G20Input in inch
G21Input in mm
G22Stored stroke check function on
G23Stored stroke check function off
G27Reference position return check
G28Return to reference position
G32Thread cutting
G40Tool nose radius compensation cancel
G41Tool nose radius compensation left
G42Tool nose radius compensation right
G70Finish machining cycle
G71Turning cycle
G72Facing cycle
G73Pattern repeating cycle
G74Peck drilling cycle
G75Grooving cycle
G76Threading cycle
G92Coordinate system setting or max. spindle speed setting
G94Feed Per Minute
G95Feed Per Revolution
G96Constant surface speed control
G97Constant surface speed control cancel

CNC Milling M Code List

M codeDescription
M00Program stop
M01Optional program stop
M02End of program
M03Spindle start forward CW
M04Spindle start reverse CCW
M05Spindle stop
M06Too change
M07Coolant ON – Mist coolant/Coolant thru spindle
M08Coolant ON – Flood coolant
M09Coolant OFF
M19Spindle orientation
M28Return to origin
M29Rigid tap
M30End of program (Reset)
M41Low gear select
M42High gear select
M94Cancel mirrorimage
M95Mirrorimage of X axis
M96Mirrorimage of Y axis
M98Subprogram call
M99End of subprogram

CNC Lathe M Code List

M codeDescription
M00Program stop
M01Optional program stop
M02End of program
M03Spindle start forward CW
M04Spindle start reverse CCW
M05Spindle stop
M08Coolant on
M09Coolant off
M29Rigid tap mode
M30End of program reset
M40Spindle gear at middle
M41Low Gear Select
M42High Gear Select
M68Hydraulic chuck close
M69Hydraulic chuck open
M78Tailstock advancing
M79Tailstock reversing
M94Mirrorimage cancel
M95Mirrorimage of X axis
M98Subprogram call
M99End of subprogram

logoblog

No comments:

Post a Comment