Vous êtes sur la page 1sur 6

PREPARATORY (G-CODES) & MISCELLANEOUS (M-CODES)

G-CODES REFERENCE
A complete listing of G-Codes with definitions for both turning and milling

G00
G01
G02
G03
G04
G07
G09
G10
G11
G12
G13
G17
G18
G19
G20
G21
G22
G23
.

Milling
Positioning in Rapid
Linear Interpolation
Circular Interpolation (CW)
Circular Interpolation (CCW)
Dwell
Imaginary axis designation
Exact stop check
Program parameter input
Program parameter input cancel
Circle Cutting CW
Circle Cutting CCW
XY Plane
XZ Plane
YZ Plane
Inch Units
Metric Units
Stored stroke limit ON
Stored stroke limit OFF
.

G00
G01
G02
G03
G04
G07
.
G10
G11
.
.
G17
G18
G19
G20
G21
G22
G23
G25

G26

G27
G28
G29

G27
G28
G29
G30

2nd reference point return

G31
.
G33
G34
G35
G36
G40

Reference point return check


Automatic return to reference point
Automatic return from reference
point
Return to 2nd, 3rd, 4th reference
point
Skip function
.
Thread cutting
Bolt hole circle (Canned Cycle)
Line at angle (Canned Cycle)
Arc (Canned Cycle)
Cutter compensation Cancel

Turning
Positioning in Rapid
Linear Interpolation
Circular Interpolation (CW)
Circular Interpolation (CCW)
Dwell
Feedrate sine curve control
.
Data setting
Data setting cancel
.
.
XY Plane
XZ Plane
YZ Plane
Inch Units
Metric Units
Stored stroke check function ON
Stored stroke check function OFF
Spindle speed fluctuation detection
OFF
Spindle speed fluctuation detection
ON
Reference point return check
Automatic Zero Return
Return from Zero Return Position

G31
G32
.
G34
.
G36
G40

G41
G42

Cutter compensation Left


Cutter compensation Right

G41
G42

G43

Tool Length Compensation (Plus)

Skip function
Thread cutting
.
Variable lead thread cutting
.
Automatic tool compensation
Tool Nose Radius Compensation
Cancel
Tool Nose Radius Compensation Left
Tool Nose Radius Compensation
Right
.

G30

G44
G45
G46

Tool Length Compensation (Minus) .


Tool offset increase
.
Tool offset decrease
G46

G47
G48
G49
G50

Tool offset double increase


Tool offset double decrease
Tool Length Compensation Cancel
Scaling OFF

.
.
.
G50

G51
G52
G53

Scaling ON
Local coordinate system setting
Machine coordinate system
selection
Work piece Coordinate System
Work piece Coordinate System 2
Work piece Coordinate System 3
Work piece Coordinate System 4
Work piece Coordinate System 5
Work piece Coordinate System 6
Single direction positioning
Exact stop check mode
Automatic corner override
Tapping mode
Cutting mode
Custom macro simple call
Custom macro modal call
Custom macro modal call cancel
Coordinate system rotation ON
Coordinate system rotation OFF
Inch Units
Metric Units
User canned cycle
High-Speed Peck Drilling Cycle
Counter tapping cycle
User canned cycle
Fine boring cycle
User canned cycle
User canned cycle
User canned cycle
Cancel Canned Cycles
Drilling Cycle
Counter Boring Cycle
Deep Hole Drilling Cycle
Tapping cycle
Boring Cycle

.
G52
G53

.
.
Automatic Tool Nose Radius
Compensation
.
.
.
Coordinate system setting and
maximum rpm
.
Local coordinate system setting
Machine coordinate system setting

G54
G55
G56
G57
G58
G59
.
G61
G62
G63
G64
G65
G66
G67
G68
G69
G70
G71
G72
G73
G74
G75
G76
.
.
.
G80
.
.
G83
G84
.

Work piece Coordinate System


Work piece Coordinate System 2
Work piece Coordinate System 3
Work piece Coordinate System 4
Work piece Coordinate System 5
Work piece Coordinate System 6
.
Exact stop check mode
Automatic corner override
Tapping mode
Cutting mode
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
Turning Cycle
Facing Cycle
Pattern repeating
Peck Drilling Cycle
Grooving Cycle
Threading Cycle
.
.
.
Canned cycle for drilling cancel
.
.
Face Drilling Cycle
Face Tapping Cycle
.

G54
G55
G56
G57
G58
G59
G60
G61
G62
G63
G64
G65
G66
G67
G68
G69
G70
G71
G72
G73
G74
G75
G76
G77
G78
G79
G80
G81
G82
G83
G84
G85

G86
G87
G88
G89
G90
G91
G92
G93
G94
G95
G96
G97

G86
G87
G88
G89
G90
G91
G92
.
G94
.
G96
G97

Face Boring Cycle


Side Drilling Cycle
Side Tapping Cycle
Side Boring Cycle
Absolute Programming
Incremental Programming
Thread Cutting Cycle
.
End face Turning Cycle
.
Constant surface speed control
Constant surface speed control cancel

G98
G99
.
.
.

Boring Cycle
Back Boring Cycle
Boring Cycle
Boring Cycle
Absolute Positioning
Incremental Positioning
Reposition Origin Point
Inverse time feed
Per minute feed
Per revolution feed
Constant surface speed control
Constant surface speed control
cancel
Set Initial Plane default
Return to Retract (Rapid) Plane
.
.
.

G98
G99
G107
G112
G113

.
.

.
.

G250
G251

Linear Feedrate Per Time


Feedrate Per Revolution
Cylindrical Interpolation
Polar coordinate interpolation mode
Polar coordinate interpolation mode
cancel
Polygonal turning mode cancel
Polygonal turning mode

M-CODES REFERENCE
A complete listing of M-Codes with definitions for both turning and milling

M00
M01
M02
M03
M04
M05
M06
.
M08
M09
M10
M11
M30
M98
M99

Milling
Program Stop
Optional Program Stop
Program End
Spindle On Clockwise
Spindle On Counter clockwise
Spindle Stop
Tool Change
.
Coolant On
Coolant Off
Clamps On
Clamps Off
End of Program, Reset to Start
Call subroutine command
Return from subroutine command

M00
M01
M02
M03
M04
M05
.
M07
M08
M09
.
.
M30
M98
M99

Turning
Program Stop
Optional Program Stop
Program End
Spindle On Clockwise
Spindle On Counter clockwise
Spindle Stop
.
Coolant 1 On
Coolant 2 On
Coolant Off
.
.
End of Program, Reset to Start
Subprogram call
Return from subprogram

LETTER ADDRESSES
Some letter addresses are used only in milling or only in turning; most are used in both.

Variable
A

Description
Absolute or incremental position of A
axis (rotational axis around X axis)

Absolute or incremental position of B


axis (rotational axis around Y axis)

Absolute or incremental position of C


axis (rotational axis around Z axis)

E
F

Defines diameter or radial offset used for


cutter compensation. D is used for depth
of cut on lathes. It is used for aperture
selection and commands on photo
plotters.
Precision feedrate for threading on lathes
Defines feed rate

Address for preparatory commands


Defines tool length offset;

Incremental axis corresponding to C axis


(e.g., on a turn-mill)
Defines arc center in X axis
for G02 or G03arc commands.

I
Also used as a parameter within some
fixed cycles.
Defines arc center in Y axis
for G02 or G03arc commands.
J

Also used as a parameter within some


fixed cycles.
Defines arc center in Z axis
for G02 or G03arc commands.

Also used as a parameter within some


fixed cycles, equal to L address.
Fixed cycle loop count;

Specification of what register to edit


usingG10
M

N
O
P

Miscellaneous function
Line (block) number in program;
System parameter number to be changed
using G10
Program name
Serves as parameter address for various
G and M codes

Peck increment in canned cycles


Defines size of arc radius, or defines
retract height in milling canned cycles

Defines speed, either spindle speed or


surface speed depending on mode

T
U
V
W

Y
Z

Tool selection
Incremental axis corresponding to X axis
(typically only lathe group A controls)
Also defines dwell time on some
machines (instead of "P" or "X").
Incremental axis corresponding to Y axis
Incremental axis corresponding to Z axis
(typically only lathe group A controls)
Absolute or incremental position of X
axis.
Also defines dwell time on some
machines (instead of "P" or "U").
Absolute or incremental position of Y
axis
Absolute or incremental position of Z
axis

Vous aimerez peut-être aussi