Professional Documents
Culture Documents
Phases of A CNC Program1
Phases of A CNC Program1
(OR)
Block Format
N135 G01 X1.0 Y1.0 Z0.125 F5
Preparatory Function (G Codes)
A 2-digit number following address G determines the meaning of the command of the
block concerned. The G codes are divided into the following two types:
TYPES
One shot G codes
Model G codes
MEANING
The G codes is effective only at the block in which it was specified
The G codes is effective until another g code in the same group is
commanded
NOTE ON G CODES
Maximum spindle speed setting (G50) is valid when the constant surface speed control
(option) is provided
The G codes are marked * are set when the power is turned ON
The G codes in group 00 are not modal. They are effective only in the block in which they
are specified.
A number of G codes can be specified in a block even if they do not belong to the same
group. When a number of G codes of the same group are specified, G code specified last
is effective
All the G codes may not apply to each machine
G codes
G Code
G00
Group
1
Function
Positioning (Rapid Transverse)
G01
G02
G03
G04
G20
1
0
6
G21
G28
G32
G40
6
9
1
7
G41
G42
G50
G70
7
0
4
G71
G72
4
0
G73
Pattern repeating
G74
G75
Grooving in X axis
G76
G90
0
1
G92
G94
G96
1
2
Cutting cycle B
Constant surface speed control
G97
G98
2
11
G99
11
M Codes are instructions describing miscellaneous functions like calling the Tool,
Spindle rotation, Coolant ON etc
.
M-CODES
FUNCTIONS
MOO
Program Stop
MO1
Optional Stop
MO2
Program end
MO3
Spindale Forward(CW)
MO4
MO5
Spindle stop
MO6
Tool change
MO8
Coolant ON
M09
Coolant OFF
M10
Chuck Open
M11
Chuck close
M62
Output1 ON
M63
Output 2 ON
M64
Output 1OFF
M65
Output 2OFF
M66
Wait input 1 ON
M67
Wait input 2 ON
M76
M77
M98
M99
G50 S1800
G28 U0 W0
M06
T0101
M03/M04 S1000
G00 X21 Z1
End of program
G28 U0 W0
M05
M30
EXPLANATION
G28 U0 W0
M05
M02/M30
Speed
rpm
1000 - 2500 (up to
max. of machine
spec.)
600 - 800(up to max.
of machine spec.)
300 - 3530(up to max.
of machine spec.)
Feed
mm/min.
Depth of cut
Mm
45 55(up to max. of
machine spec.)