[12]
List
of
G-eodes and
Their
Group
G-eode
GOO
G01
G02
G03
G04
G10
G20
G21
G27
G28
G32
G40
G41
G42
GSO
G70
G71
G72
G73
G74
G7S
G76
G90
G92
G94
G96
G97
G98
G99
Positioning
Linear
Interpolation
Circular
Circular
Function
Interpolation,
Interpolation,
and
Cornering
Clockwise
Counterclockwise
Group
01
01
01
01
Dwell 00
Program
Inch
Metric
Reference
Automatic
Thread
Tool Nose
Tool Nose
Tool Nose
Maximum
Finish
Stock
Stock
Pattern
Input
Input
Input
point
return
Cutting
Radius
Radius
Radius
Spindle
Cutting
Removal
Removal
Repeated
Longitudinal
Cross
Thread
Turning
Thread
Facing
Constant
Constant
Feed
Feed
Pecking
Cutting
Cycle
Cutting
Cycle
Surface
Surface
Rate
Per
Rate
of
Cutting
Cutting
Pecking
Cyc
Minute
Per
Revolution
Offset
Return
to
Value
Check
reference
Compensation
Compensation
Compensation
Speed
Setting
Cycle
Cycle
Cycle
Cutting
Cycle
l e
Cycle
Speed
Speed
Control
Control
Cycle
(Optional)
point
Cancel
Left
Right
(RPM)
in
Turning
Facin
in
Cancel
g
00
06
06
00
00
01
07
07
07
00
00
00
00
00
00
00
00
01
01
01
02
02
OS
OS
~~
.,..
*
~~
-.;:t
co
-
co
0
~
0-;
I
E:-<
I
u
z
I=Q
(NOTE
The make
the
(NOTE
The G
only
(NOTE
An
specified
(NOTE
A number
not
same
1)
power
2)
codes
in
3)
alarm
4)
belong
group
'*'
in
is
turned
in
the
block
occurs
(No.
010).
of G codes
to
the
are
specified,
the
list
on.
the
group
in
which
when a G
can
same
group.
of
G-eodes
00
are
they
cod~
be
not
spe
cified
the G code
not
are
listed
When
shows
modal.
specified.
in
a number
specified
in
a b
the
lock
initial
They
are
the
above
even
of G codes
last
is
state
effective
table
if
they
of
effective.
when
is
do
the
M
code
Function
Explanation
MOl
r--------+-------
M02
~~~---+~~~~----~~
M03
Optional
Stop
End
Pr
ogram I work
Spindle
Forward
(Cou
clockwise)
of
nter-
This
check
I
operations.
I
OPTIONAL
I
ON : MOl
1
O
I
I
Specifies
is
usually us
wor
kpieces
STOP
is
block.
FF
MOl
is
ontinuously.
ode
is
part
prog
code
occurs during the
the
machi
ne,
after
the
the
counterclockwise
specified
If
the
performing
con
trol
machi
-
M03
code
sequence
ne
to
in
ed
at
Switch
effective.
net
effective.
used in
ram t o
the
program
the
is
reset, the
stops.
-~---
--~
start
the
is
error
the
direction.
same
specified
will
to
stop
the
end
is
used
The
machine
The mach
the last
end
the
automa
retur
othe
r command
automatic
--~----~~~-
main
block
when
occur.
the
machine
of
each
to
select this
block
program.
tic
operation
ns
to
spindle
S
code
or
previously.
the
·
and
tool
co
stops
ine
in
mode ends
------~--~
chuck
on
runs
of
chucking
When
the
head
the
rotation
should
is
the
this
of
block,
and
in
be
open
···@y
de .
------
,
1
M04
MOS
.
M08
Spi
ndl
e
Reverse
(Clockwise)
Spindle
Stop
Coolan
ON
~Specifies
Specifies
clockwise
in
the
If
M04
the
sequence
Specifies
Even
speed
M04
is
I by
the
pump will
operating
position.
MOS
to
direction.
same
code
to
is
remains
specified
same
to
start
panel
start
block
is
error
stop
specified,
effective.
speed
start the
the
or
specified
will
the
again,
as
when
is
set
COOLANT
main
spindle
S
code
previously.
occur.
main
the
the
the
coola
the
to
should
when
spindle
commanded
Therefore,
spindle
previous
nt
COOLANT
on
rotation
be
the
chuck
rotation.
spindle
if
will
~
pump. The
switch
in
specified
is
open,
M03
or
rotate
coolant
on t he
"'"
co
-
co
0
~
P-;
I
E-;
I
u
z
p::)
M08
+
[!]]
~
1
/ill I
I~
1
I I \
\\
I I
-
M
code
Function
Explanation
M09
~---
----4-··------
M10
Coolant
OFF
Splash guard The s p
I Open
_
i"'ll
- ·
M12
~p
~O
ptional)
lash
Close
(Optional)
----
I B
ar
1
Feeding
I I
--
-~-
15
f
j \
! ,
I
-
Turret
Indexing,
Counter
clockw
Specifies
----
---1----------
gu ---ar
-dt-_
T_h_e __
-----
---
-+------------
\Vhen
I
MEM
to 3 are auto
-·
This
J
turret
,
-
i.se
automatic
No.D312,
1
As
used
\
I
to
stop
)1
------------------------
lash guard
s_p
_l_a_s_h __ g_u_a_r_d __ l_.
M12 i s commanded
mode
), a series
mat
Chuck
1.
Bar feed
2.
Chuck
3.
used
to
is a non-modal
same
~0
code
this
in
St ep
Step
Step
is
indexing
selection
bit 7 is
code
the
the
I
I
I
is
opened
__
s_c_l_o_s
-
--
of
ically
to
switch
CCW
mode
"0").
block
coolant
_e_d __
------------~
in
operations
performed.
open
close
when
as
0 0
pump.
------------------~
with
this
w_i_t_h
__
t_h_i_s
automatic
out
the
direction
it
is
(the
parameter
code,
the T code.
mode
from
set
it
command.
__
c_o_mm
__
(MDI
step
in
should
a_n_d
__ .
of
the
be
-------j
or
1
Ml6
Turret
Indexing,
Clockwise
I
The
M16
This
turret
in the same
M16
indexes
is a non-model
~
~
~0~
~[75
~
ccw
in
block
clockwise
of
T-code.
code.
by
specifying