Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

G AND M CODES

Click To See:

How to Use Online Documents

SURFCAM Online Documents


G AND M CODES

G Codes Milling
The following is a list of commonly used G Codes for CNC machines and their functionality.
CODE

G00
G01
G02
G03
G04
G07
G09
G10
G17
G18
G19
G20
G21
G22
G23
G27
G28
G29
G30
G31
G33
G40
G41
G42
G43
G44
G45
G46
G47
G48
G49
G50
G51
G52
G54
G55

DESCRIPTION

Rapid Linear Positioning


Linear Feed Interpolation
CW Circular Interpolation
CCW Circular Interpolation
Dwell
Imaginary Axis Designation
Exact Stop
Offset Value Setting
XY Plane Selection
ZX Plane Selection
YZ plane Selection
Input In Inches
Input In Millimeters
Stored Stroke Limit On
Stored Stroke Limit Off
Reference Point Return Check
Return To Reference Point
Return From Reference Point
Return To 2nd, 3rd and 4th Ref. Point
Skip Cutting
Thread Cutting
Cutter Compensation Cancel
Cutter Compensation Left
Cutter Compensation Right
Tool Length Compensation + Direction
Tool Length Compensation - Direction
Tool Offset Increase
Tool Offset Double
Tool Offset Double Increase
Tool Offset Double Decrease
Tool Length Compensation Cancel
Scaling Off
Scaling On
Local Coordinate System Setting
Work Coordinate System 1 Selection
Work Coordinate System 2 Selection
G and M Codes
Copyright 2000 by Surfware, Inc. All Rights Reserved

G and M Codes
CODE

G56
G57
G58
G59
G60
G61
G64
G65
G66
G67
G68
G69
G73
G74
G76
G80
G81
G82
G83
G84
G85
G86
G87
G88
G89
G90
G91
G92
G94
G95
G96
G97
G98
G99

DESCRIPTION

Work Coordinate System 3 Selection


Work Coordinate System 4 Selection
Work Coordinate System 5 Selection
Work Coordinate System 6 Selection
Single Direction Positioning
Exact Stop Mode
Cutting Mode
Custom Macro Simple Call
Custom Macro Modal Call
Custom Macro Modal Call Cancel
Coordinate System Rotation On
Coordinate System Rotation Off
Peck Drilling Cycle
Counter Tapping Cycle
Fine Boring
Canned Cycle Cancel
Drilling Cycle, Spot Boring
Drilling Cycle, Counter Boring
Peck Drilling Cycle
Tapping Cycle
Boring Cycle
Boring Cycle
Back Boring Cycle
Boring Cycle
Boring Cycle
Absolute Programming
Incremental Programming
Programming Of Absolute Zero
Feed Per Minute
Feed Per Revolution
Constant Surface Speed Control
Constant Surface Speed Control Cancel
Return To Initial Point In Canned Cycles
Return To R Point In Canned Cycles

M Codes Milling - Fanuc


CODE

M00
M01
M02
M03
M04

DESCRIPTION

Program Stop
Optional Stop
End of Program
Spindle On CW
Spindle On CCW

Copyright 2000 by Surfware, Inc. All Rights Reserved

G and M Codes
CODE

M05
M06
M07
M08
M09
M19
M20
M21
M22
M23
M24
M25
M26
M27
M28
M30
M98
M99

DESCRIPTION

Spindle Stop
Tool Change
Mist Coolant On
Flood Coolant On
Coolant Off
Spindle Orientation On
Spindle Orientation Off
Tool Magazine Right
Tool Magazine Left
Tool Magazine Up
Tool Magazine Down
Tool Clamp
Tool Unclamp
Clutch Neutral On
Clutch Neutral Off
End Program, Stop and Rewind
Call Sub Program
End Sub Program

G Codes Turning
STD

G00
G01
G02
G03
G04
G07
G09
G10
G20
G21
G22
G23
G27
G28
G29
G30
G31
G32
G34
G36
G37

SP.

G00
G01
G02
G03
G04
G07
G09
G10
G20
G21
G22
G23
G27
G28
G29
G30
G31
G33
G34
G36
G37

SP.C

G00
G01
G02
G03
G04
G07
G09
G10
G70
G71
G22
G23
G27
G28
G29
G30
G31
G33
G34
G36
G37

DESCRIPTION

Rapid Linear Positioning


Linear Feed Interpolation
CW Circular Interpolation
CCW Circular Interpolation
Dwell
Hypothetical Axis Interpolation, Sine Curve
Exact Stop
Offset Value Setting
Input In Inches
Input In Millimeters
Stored Stroke Limit On
Stored Stroke Limit Off
Reference Point Return Check
Return To Reference Point
Return From Reference Point
Return To 2nd, 3rd, and 4th Reference Point
Skip Cutting
Thread Cutting
Variable Lead Thread Cutting
Automatic Tool Comp. X
Automatic Tool Comp. Z

Copyright 2000 by Surfware, Inc. All Rights Reserved

G and M Codes
STD

G40
G41
G42
G50
G65
G66
G67
G68
G69
G70
G71
G72
G73
G74
G75
G76
G90
G92
G94
G96
G97
G98
G99

SP.

G40
G41
G42
G92
G65
G66
G67
G68
G69
G70
G71
G72
G73
G74
G75
G76
G77
G78
G79
G96
G97
G94
G95
G90
G91

SP.C

G40
G41
G42
G92
G65
G66
G67
G68
G69
G72
G73
G74
G75
G76
G77
G78
G20
G21
G24
G96
G97
G94
G95
G90
G91

DESCRIPTION

Tool Nose Rad. Comp. Cancel


Tool Nose Radius Comp. Left
Tool Nose Radius Comp. Right
Programming Of Absolute Zero
User Macro Simple Call
User Macro Modal Call
User Macro Modal Call Cancel
Mirror Image For Double Turrets On
Mirror Image For Double Turrets Off
Finishing Cycle
Stock Removal, Turning
Stock Removal, Facing
Repeat Pattern
Peck Drilling, Z Axis
Grooving, X Axis
Thread Cutting Cycle
Cutting Cycle A
Thread Cutting Cycle
Cutting Cycle B
Constant Surface Speed Control
Constant Surface Speed Cancel
Feed Per Minute
Feed Per Revolution
Absolute Programming
Incremental Programming

Copyright 2000 by Surfware, Inc. All Rights Reserved

You might also like