G CODE
|
DESCRIPTION
|
USE IN
|
G00
|
Rapid traverse
|
Lathe & Milling
|
G01
|
Linear Interpolation (machining in straight line)
|
Lathe & Milling
|
G01
|
Chamfer & corner rounding
|
Lathe
|
G02
|
Circular interpolation clockwise . (
Arc machining )
|
Lathe & Milling
|
G03
|
Circular interpolation
counter-clockwise (Arc machining)
|
Lathe & Milling
|
G04
|
Dwell time
|
Lathe & Milling
|
G05
|
Fine spindle control
|
Lathe
|
G09
|
Exact stop
|
Lathe & Milling
|
G10
|
Programmable offset setting
|
Lathe & Milling
|
G12
|
CW Circular Pocket (Yasnac)
[Clockwise]
|
Milling
|
G13
|
CCW Circular Pocket (Yasnac) [counter
clockwise]
|
Milling
|
G14
|
Main spindle shift to sub spindle
|
Lathe
|
G15
|
Cancel G14 Code
|
Lathe
|
G17
|
Selection of XY plane
|
Milling
|
G18
|
Selection of XZ plane
|
Lathe & Milling
|
G19
|
Selection of ZY plane
|
Milling
|
G20
|
All dimension of program in “Inches”.
|
Lathe & Milling
|
G21
|
All dimension of program in “mm”.
|
Lathe & Milling
|
G28
|
Return to home position (Reference
point )
|
Lathe & Milling
|
G29
|
Move to Location
Through G29 Reference
|
Lathe & Milling
|
G31
|
Feed skip function
|
Lathe & Milling
|
G32
|
Thread cutting
|
Lathe
|
G35
|
Automatic Tool
Diameter Measurement
|
Milling
|
G36
|
Automatic Work Offset
Measurement
|
Milling
|
G37
|
Automatic Tool Length
Measurement
|
Milling
|
G40
|
Tool nose compensation cancel (Use to cancel code G41 & G42)
|
Lathe & Milling
|
G41
|
Tool nose compensation left
|
Lathe & Milling
|
G42
|
Tool nose compensation right
|
Lathe & Milling
|
G43
|
Tool length compensation +
|
Milling
|
G44
|
Tool length compensation -
|
Milling
|
G47
|
Engrave line of text
|
Milling
|
G49
|
Cancel G43 & G44 code in milling
|
Milling
|
G50
|
Spindle speed maximum rpm limit
|
Lathe
|
G50
|
Cancel G51 code in milling
|
Milling
|
G51
|
Return to machine zero , cancel offset
|
Lathe
|
G51
|
Scaling
|
Milling
|
G52
|
Global Work Offset
Coordinate System Shift
|
Lathe
|
G52
|
Work offset
Positioning Coordinate
|
Lathe
|
G52
|
Set local coordinate system
|
Milling
|
G53
|
Machine zero position coordinate
|
Lathe
|
G53
|
Machine coordinate selection non modal
|
Milling
|
G54
|
Work offset coordinate position 1
|
Lathe & Milling
|
G55
|
Work offset coordinate position 2
|
Lathe & Milling
|
G56
|
Work offset coordinate position 3
|
Lathe & Milling
|
G57
|
Work offset coordinate position 4
|
Lathe & Milling
|
G58
|
Work offset coordinate position 5
|
Lathe & Milling
|
G59
|
Work offset coordinate position 6
|
Lathe & Milling
|
G60
|
Unidirectional positioning
|
Milling
|
G61
|
Exact stop modal
|
Lathe & Milling
|
G64
|
Cancel G61 code
|
Lathe & Milling
|
G65
|
Micro sub-routine call
|
Lathe & Milling
|
G68
|
Rotation
|
Milling
|
G69
|
Cancel G68 code
|
Milling
|
G70
|
Finishing cycle
|
Lathe
|
G70
|
Bolt Hole Circle (Yasnac)
|
Milling
|
G71
|
Bolt Hole Arc (Yasnac)
|
Milling
|
G71
|
O.D. / I.D. stock removal cycle
|
Lathe
|
G72
|
Cancel G71 code
|
Lathe
|
G72
|
Bolt holes along an angle (Yasnac)
|
Milling
|
G73
|
Irregular path stock removal cycle
|
Lathe
|
G73
|
High speed peck drill canned cycle
|
Milling
|
G74
|
High speed peck drill cycle OR Face grooving
|
Lathe
|
G74
|
Reverse tap canned cycle
|
Milling
|
G75
|
Peck grooving cycle I.D or O.D.
|
Lathe
|
G76
|
Threading cycle , multiple pass I.D. or O.D.
|
Lathe
|
G76
|
Fine boring canned cycle
|
Milling
|
G77
|
Flatting cycle (live tool)
|
Lathe
|
G77
|
Back bore canned cycle
|
Milling
|
G80
|
Cancel canned cycle
|
Lathe & Milling
|
G81
|
Drill canned cycle
|
Lathe & Milling
|
G82
|
Spot drill canned cycle
|
Lathe & Milling
|
G83
|
Peck drill canned cycle modal
|
Lathe & Milling
|
G84
|
Tapping canned cycle
|
Lathe & Milling
|
G85
|
Boring canned cycle (IN or OUT)
|
Lathe & Milling
|
G86
|
Bore in , stop , rapid out canned cycle
|
Lathe & Milling
|
G87
|
Bore in , stop , manual retract canned cycle
|
Lathe & Milling
|
G88
|
Bore in , dwell , manual retract canned cycle
|
Lathe & Milling
|
G89
|
Bore In ,Dwell, Bore out
Canned Cycle modal
|
Lathe
|
G89
|
Bore canned cycle
|
Milling
|
G90
|
I.D./O.D. turning cycle
|
Lathe
|
G90
|
Absolute
|
Milling
|
G91
|
Incremental
|
Milling
|
G92
|
Threading cycle modal
|
Lathe
|
G92
|
Set work coordinate
|
Milling
|
G93
|
Inverse time feed mode ON
|
Milling
|
G94
|
Inverse time feed mode OFF
|
Milling
|
G94
|
End facing cycle
|
Lathe
|
G95
|
Live tooling end face rigid tap modal
|
Lathe
|
G96
|
Constant surface speed
|
Lathe
|
G97
|
Constant non varying spindle speed
|
Lathe
|
G98
|
Feed per minute
|
Lathe
|
G98
|
Initial point return
|
Milling
|
G99
|
Feed per revolution
|
Lathe
|
G99
|
R (retraction) plane return
|
Milling
|
G100
|
Disable mirror image (cancel g101)
|
Lathe & Milling
|
G101
|
Enable mirror image
|
Lathe & Milling
|
G102
|
Programmable output to RS-232
|
Lathe & Milling
|
G103
|
Block look ahead limit
|
Lathe & Milling
|
G105
|
Servo bar command
|
Lathe
|
G107
|
Cylindrical mapping
|
Milling
|
G110
|
Selection coordinate system 7
|
Lathe & Milling
|
G111
|
Selection coordinate system8
|
Lathe & Milling
|
G112
|
Selection coordinate system9
|
Milling
|
G112
|
Cartesian to polar transformation
|
Lathe
|
G113
|
Cartesian to polar transformation cancel (cancel G112)
|
Lathe
|
G113
|
Selection coordinate system 10
|
Milling
|
G114
|
Selection coordinate system 9
|
Lathe
|
G114
|
Selection coordinate system 11
|
Milling
|
G115
|
Selection coordinate system 12
|
Milling
|
G116
|
Selection coordinate system 13
|
Milling
|
G117
|
Selection coordinate system 14
|
Milling
|
G118
|
Selection coordinate system 15
|
Milling
|
G119
|
Selection coordinate system 16
|
Milling
|
G120
|
Selection coordinate system 17
|
Milling
|
G121
|
Selection coordinate system 18
|
Milling
|
G122
|
Selection coordinate system 19
|
Milling
|
G123
|
Selection coordinate system 20
|
Milling
|
G124
|
Selection coordinate system 21
|
Milling
|
G125
|
Selection coordinate system 22
|
Milling
|
G126
|
Selection coordinate system 23
|
Milling
|
G127
|
Selection coordinate system 24
|
Milling
|
G128
|
Selection coordinate system 25
|
Milling
|
G129
|
Selection coordinate system 26
|
Milling
|
G129
|
Selection coordinate system 24
|
Lathe
|
G136
|
Automatic work offset center measurement
|
Milling
|
G141
|
3D + cutter compensation
|
Milling
|
G143
|
Tool length compensation for five axis
|
Milling
|
G150
|
General purpose pocket milling
|
Milling
|
G153
|
5 axis high speed peck drilling canned cycle
|
Milling
|
G154
|
Select Work Offset
Positioning Coordinate P1-99
|
Lathe
|
G154
|
P1-P99 Replaces
G110-G129 on newer machines
|
Milling
|
G155
|
5 Axis Reverse
Tapping Canned Cycle
|
Milling
|
G159
|
Background Pickup /
Part Return
|
Lathe
|
G160
|
APL Axis Command On
|
Lathe
|
G161
|
APL Axis Command OFF
|
Lathe
|
G161
|
Drill canned cycle for 5 axis
|
Milling
|
G162
|
5 Axis Spot Drill /
Counter bore Canned Cycle
|
Milling
|
G163
|
Peck drill canned cycle for 5 Axis (setting 22)
|
Milling
|
G164
|
Tapping canned cycle for 5 axis
|
Milling
|
G165
|
Bore in , bore out canned cycle for 5 axis
|
Milling
|
G166
|
Bore in , stop , rapid out canned cycle for 5 axis
|
Milling
|
G169
|
Bore , dwell , bore out canned cycle for 5 axis
|
Milling
|
G174
|
Special Purpose
Non-Vertical Rigid Tapping CCW
|
Milling
|
G184
|
Special Purpose
Non-Vertical Rigid Tapping CW
|
Milling
|
G184
|
Reverse tapping canned cycle
|
Lathe
|
G186
|
Live tooling reverse rigid tap
|
Lathe
|
G187
|
Accuracy control for high speed machining
|
lathe &Milling
|
G188
|
Get program from program schedule table
|
Milling
|
G194
|
Sub spindle , tapping canned cycle
|
Lathe
|
G195
|
Live tooling redial tapping
|
Lathe
|
G196
|
Live tooling redial tapping reverse
|
Lathe
|
G200
|
Index on the fly
|
Lathe
|
HAAS CNC G-CODE LIST FOR LATHE & MILLING
Reviewed by www.hdknowledge.om
on
May 03, 2020
Rating: