0% found this document useful (0 votes)
421 views

G Code M Code

The document lists G and M codes used in CNC programming for lathes. G codes are used for linear and circular interpolation, drilling cycles, coordinate systems, and more. M codes are used for functions like spindle control, coolant control, and program end/stop. The codes are organized into tables with descriptions to provide a quick reference for common G and M codes used in CNC lathe programming.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
421 views

G Code M Code

The document lists G and M codes used in CNC programming for lathes. G codes are used for linear and circular interpolation, drilling cycles, coordinate systems, and more. M codes are used for functions like spindle control, coolant control, and program end/stop. The codes are organized into tables with descriptions to provide a quick reference for common G and M codes used in CNC lathe programming.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

G G80 Canned cycle cancel

code Description
G81 Drilling cycle, spot boring cycle
G00 Rapid traverse
Drilling cycle or counter boring
G01 Linear interpolation G82 cycle
G02 Circular interpolation CW G83 Peck drilling cycle
G03 Circular interpolation CCW G84 Tapping cycle
G04 Dwell G85 Boring cycle
G17 X Y plane selection G86 Boring cycle
G18 Z X plane selection G87 Back boring cycle
G19 Y Z plane selection G88 Boring cycle
G28 Return to reference position G89 Boring cycle
2nd, 3rd and 4th reference position G90 Absolute command
G30 return
G91 Increment command
G40 Cutter compensation cancel
Setting for work coordinate system
G41 Cutter compensation left or clamp at
G92 maximum spindle speed
G42 Cutter compensation right
Return to initial point in canned
G43 Tool length compensation + direction G98 cycle
G44 Tool length compensation – direction G99 Return to R point in canned cycle
G49 Tool length compensation cancel M
G53 Machine coordinate system selection code Description

Workpiece coordinate system 1 M00 Program stop


G54 selection M01 Optional program stop
Workpiece coordinate system 2 M02 End of program
G55 selection
M03 Spindle start forward CW
Workpiece coordinate system 3
G56 selection M04 Spindle start reverse CCW
Workpiece coordinate system 4 M05 Spindle stop
G57 selection
M06 Tool change
Workpiece coordinate system 5
G58 selection Coolant ON – Mist coolant/Coolant
M07 thru spindle
Workpiece coordinate system 6
G59 selection M08 Coolant ON – Flood coolant

G68 Coordinate rotation M09 Coolant OFF

G69 Coordinate rotation cancel M19 Spindle orientation

G73 Peck drilling cycle M28 Return to origin

G74 Left-spiral cutting circle M29 Rigid tap

G76 Fine boring cycle M30 End of program (Reset)


M41 Low gear select G76 Threading cycle
M42 High gear select Coordinate system setting or max.
G92 spindle speed setting
M94 Cancel mirrorimage
G94 Feed Per Minute
M95 Mirrorimage of X axis
G95 Feed Per Revolution
M96 Mirrorimage of Y axis
G96 Constant surface speed control
M98 Subprogram call
Constant surface speed control
M99 End of subprogram G97 cancel
M
Fanuc G-Code List (Lathe) code Description
G
code Description M00 Program stop

G00 Rapid traverse M01 Optional program stop

G01 Linear interpolation M02 End of program

G02 Circular interpolation CW M03 Spindle start forward CW

G03 Circular interpolation CCW M04 Spindle start reverse CCW

G04 Dwell M05 Spindle stop

G09 Exact stop M08 Coolant on

G10 Programmable data input M09 Coolant off

G20 Input in inch M29 Rigid tap mode

G21 Input in mm M30 End of program reset

G22 Stored stroke check function on M40 Spindle gear at middle

G23 Stored stroke check function off M41 Low Gear Select

G27 Reference position return check M42 High Gear Select

G28 Return to reference position M68 Hydraulic chuck close

G32 Thread cutting M69 Hydraulic chuck open

Tool nose radius compensation M78 Tailstock advancing


G40 cancel M79 Tailstock reversing
G41 Tool nose radius compensation left M94 Mirrorimage cancel
G42 Tool nose radius compensation right M95 Mirrorimage of X axis
G70 Finish machining cycle M98 Subprogram call
G71 Turning cycle M99 End of subprogram
G72 Facing cycle
G73 Pattern repeating cycle
G74 Peck drilling cycle
G75 Grooving cycle

You might also like