G & M Codes
G & M Codes
G & M Codes
2nd, 3rd and 4th reference position Setting for work coordinate system or
G30 return G92 clamp at maximum spindle speed
G40 Cutter compensation cancel G98 Return to initial point in canned cycle
G code Description
G00 Rapid traverse
G01 Linear interpolation CNC Lathe M Code List
G02 Circular interpolation CW
M code Description
G03 Circular interpolation CCW
M00 Program stop
G04 Dwell
M01 Optional program stop
G09 Exact stop
M02 End of program
G10 Programmable data input
M03 Spindle start forward CW
G20 Input in inch
M04 Spindle start reverse CCW
G21 Input in mm
M05 Spindle stop
G22 Stored stroke check function on
M08 Coolant on
G23 Stored stroke check function off
M09 Coolant off
G27 Reference position return check
M29 Rigid tap mode
G28 Return to reference position
M30 End of program reset
G32 Thread cutting
M40 Spindle gear at middle
Tool nose radius compensation
G40 cancel M41 Low Gear Select
G41 Tool nose radius compensation left M42 High Gear Select
G42 Tool nose radius compensation right M68 Hydraulic chuck close
G70 Finish machining cycle M69 Hydraulic chuck open
G71 Turning cycle M78 Tailstock advancing
G72 Facing cycle M79 Tailstock reversing
G73 Pattern repeating cycle M94 Mirrorimage cancel
G74 Peck drilling cycle M95 Mirrorimage of X axis
G75 Grooving cycle M98 Subprogram call
G76 Threading cycle M99 End of subprogram
Coordinate system setting or max.
G92 spindle speed setting