You are on page 1of 10

G code Description 2nd, 3rd and 4th reference

G30
position return
G00 Rapid traverse

G40 Cutter compensation cancel


G01 Linear interpolation

G41 Cutter compensation left


G02 Circular interpolation CW

G42 Cutter compensation right


G03 Circular interpolation CCW

Tool length compensation


G04 Dwell
G43
+ direction
G17 X Y plane selection
G44 Tool length compensation – direction
G18 Z X plane selection
G49 Tool length compensation cancel
G19 Y Z plane selection
G53 Machine coordinate system selection
G28 Return to reference position
G54 Workpiece coordinate system 1 selection G76 Fine boring cycle

G55 Workpiece coordinate system 2 selection G80 Canned cycle cancel

G56 Workpiece coordinate system 3 selection G81 Drilling cycle, spot boring cycle

G57 Workpiece coordinate system 4 selection G82 Drilling cycle or counter boring cycle

G58 Workpiece coordinate system 5 selection G83 Peck drilling cycle

G59 Workpiece coordinate system 6 selection G84 Tapping cycle

G68 Coordinate rotation G85 Boring cycle

G69 Coordinate rotation cancel G86 Boring cycle

G73 Peck drilling cycle G87 Back boring cycle

G74 Left-spiral cutting circle G88 Boring cycle


G89 Boring cycle

G90 Absolute command

G91 Increment command

Setting for work coordinate

G92 system or clamp at

maximum spindle speed

Return to initial point in


G98
canned cycle

Return to R point in
G99
canned cycle
CNC Lathe G Code List
G code Description

G21 Input in mm
G00 Rapid traverse

G22 Stored stroke check function on


G01 Linear interpolation

G23 Stored stroke check function off


G02 Circular interpolation CW

G27 Reference position return check


G03 Circular interpolation CCW

G28 Return to reference position


G04 Dwell

G32 Thread cutting


G09 Exact stop

Tool nose radius


G10 Programmable data input
G40
compensation cancel
G20 Input in inch
Tool nose radius G76 Threading cycle
G41
compensation left
Coordinate system setting

Tool nose radius G92 or max. spindle speed


G42
compensation right setting

G70 Finish machining cycle G94 Feed Per Minute

G71 Turning cycle G95 Feed Per Revolution

G72 Facing cycle Constant surface speed


G96
control
G73 Pattern repeating cycle

Constant surface speed control


G74 Peck drilling cycle
G97
cancel
G75 Grooving cycle
CNC Milling M Code List M07 Coolant ON – Mist coolant/Coolant

M code Description thru spindle

M00 Program stop M08 Coolant ON – Flood coolant

M01 Optional program stop M09 Coolant OFF

M02 End of program M19 Spindle orientation

M03 Spindle start forward CW M28 Return to origin

M04 Spindle start reverse CCW M29 Rigid tap

M05 Spindle stop M30 End of program (Reset)

M06 Too change M41 Low gear select

M42 High gear select


M94 Cancel mirrorimage M03 Spindle start forward CW

M95 Mirrorimage of X axis M04 Spindle start reverse CCW

M96 Mirrorimage of Y axis M05 Spindle stop

M98 Subprogram call M08 Coolant on

M99 End of subprogram M09 Coolant off

CNC Lathe M Code List M29 Rigid tap mode

M code Description
M30 End of program reset

M00 Program stop


M40 Spindle gear at middle

M01 Optional program stop


M41 Low Gear Select

M02 End of program


M42 High Gear Select
M68 Hydraulic chuck close

M69 Hydraulic chuck open

M78 Tailstock advancing

M79 Tailstock reversing

M94 Mirrorimage cancel

M95 Mirrorimage of X axis

M98 Subprogram call

M99 End of subprogram


OTHER CODES TABLE

Letter Meaning

A A-axis of machine

B B-axis of machine

C C-axis of machine

D Tool radius compensation number

F Feed rate

G General function (See Table 5)

H Tool length offset index

I X-axis offset for arcs


X offset in G87 canned cycle

J Y-axis offset for arcs


Y offset in G87 canned cycle

K Z-axis offset for arcs


Z offset in G87 canned cycle

L Number of repetitions in canned


Cycles/subroutines
Key used with G10

M Miscellaneous function (See Table 7)

N Line number

O Subroutine label number


Letter Meaning

P Dwell time in canned cycles


Dwell time with G4
Key used with G10
Tapping depth in M871-M874

Q Feed increment in G83 canned cycle


Repetitions of subroutine call

R Arc radius
Canned cycle retract level

S Spindle speed

T Tool selection

U Synonymous with A

V Synonymous with B

W Synonymous with C

X X-axis of machine

Y Y-axis of machine

Z Z-axis of machine

You might also like