Professional Documents
Culture Documents
Codes For NUM CNC
Codes For NUM CNC
Codes For NUM CNC
5 ISO Programming
5.1 G Functions, M Functions and other Functions - Main summary tables 1
5.1.1 G Functions - Main summary table
3
G00 Linear interpolation at high speed
Syntax:
N.. [G90/G91] G00 [R±] X.. Y.. Z..
4
Cancellation:
G01/G02/G03
Z X
Y
X Z
G01
5
*Linear interpolation at programmed feed rate
Syntax:
N.. [G90/G91] G01 [R±] X.. Y.. Z.. [F..]
Cancellation:
G00/G02/G03
6
Z X
Y
X Z
7
Syntax (XY plane):
N.. [G17] [G90/G91] G02 X.. Y.. I..J.. or R.. [F..] R
R
Cancellation: J
G00/G01/G03 Z I X
Y
X Z
9
Cancellation: J R I-K
G00/G01/G02 Z X
Y
X Z
30
Syntax:
N.. G16 P±/Q±/R± P- Z
Y P+
Cancellation: X X
G16 P±/Q±/R±. R+
Q- Z
R-
X G 17 Y
X Y
2
X Y
3
N.. [G40] G20 [G00/G01] [X.. Z.. C..] [F..]
Cancellation:
G21 and G22
6
C
Cancellation:
G20 and G21
8
I
Z P Z o J
Syntax: n Q
R
K
N.. [D..] [G01] G29 X.. Y.. Z.. P.. Q.. R.. n
P
[I.. J.. K..] [A.. /B.. /C..] Q
R
Cancellation:
G40/G41/G42 Z Z
9
Y X Y X
OP
Cancellation:
G80 to G89 P
P
XZ
Cancellation:
End of block Q
X R
Syntax:
N.. G38 X.. Z.. K..
Pitch
Cancellation:
G00/G01/G02/G03
X
Cancellation:
X
End of block
to be Tool path
Cancellation: LEFT direction of machined
(correction)
G29/G40/G42 R
the correction)
(direction of
Y X
LEFT
X Z
Tool path
RIGHT
G29/G40/G41 direction of
( correction )
Tool path
R
Y R
X
X Z Profile to be machined
G43
1
Tridimensional tool correction with cylindrical tool
Syntax:
N.. [D..] [G01] G43 X.. Y.. Z.. P.. Q.. R..[I.. J.. K..] [A.. / B.. / C..]
Cancellation:
G40
3
EB
End of block Y
EY
EB
EY
X
7
G51 Y –
8
G52 . . .
Syntax:
52
N.. [G40] [G90] [G00/G01] G52 X.. Y.. Z.. A.. B.. G
C.. [F..] Z Y
Cancellation: X
OM
End of block Programmed point
I
G80 X
Finished profile
Cancellation:
End of block XZ
X R
Pouces 1 2
mm
10 0,2 m 20 30 40
mm
1
G73 *Scaling factor cancel
Syntax:
N.. [G40] G73
Cancellation:
G74
3
Y
4
%30
N.. G75 N.. N10 G75 N300
N..
Cancellation: N.. Emergency
N.. retract
Cancelled by G75 N0 or different G75 N.. N . . M02 activation area
N300
N.. Emergency
N.. retract
subroutine
G76 Transfer of the current values of L and E parameters into the part program 5
Syntax:
N.. G76 [H..] [N.. N..]
Cancellation :
6
End of block
8
...
%345 ...
G79 +/- Temporary suspension of next block preparation in a sequence with movements
Syntax (XY plane)
N.. [G00/G01/G02/G03] X.. Y.. Z.. G79 +/- X.. /F..
Cancellation :
End of block
G31/G80-G83, G85-G89 OP Z
2
G84 Rigid tapping cycle
Syntax (XY Plane):
3
N.. [G17] [M03/M04] [M04-M05] G84 [X.. Y..]
Z
Z.. [ER..] [EH..] K.. [EK..]
Cancellation OP
X
G31/G80-G83, G85-G89 X/Z
OP
5
G31/G80/G81-G84, G86-G89 Z
OP
Cancellation:
Y
G31/G80-G85, G87-G89
7
Syntax (XY plane):
N.. [G17] G87 [X.. Y..] Z.. [ER..] [EH..] Z
9
G88 Boring and facing cycle
Syntax (XY plane):
N.. [G17] G88 [X.. Y..] Z.. [ER..] [EH..] [F..]
Cancellation: Z
G31/G80-G87/G89
OP
OP
OP
N constant
Vcst
Vc variable
F..
Rm
Tangential
feed rate
is
C ax
Z
Y X
1
G94 *Feed rate expressed in millimetres, inches or
degrees per minute
in
Syntax: mm/m
N.. G94 F.. G01/G02/G03 X.. Y.. Z.. A.. B.. C..
F (mm/min)
Cancellation: X
G93/G95
2
Z
Y Z
X
3
Syntax: F
mm/rev
6
Syntax: S
N.. G97 S.. [M03/M04]
Cancellation:
G96 (combined machine)
7
S
8
N.. G98 X.. X
Cancellation:
End of block C+
9
G104 Tridimensional curve smoothing
Xf Yf Zf
General syntax:
N.. X. . Y.. Z.. (first point on the curve) Xe Ye Ze
Remark
This function is parameterised by the machine builder. Refer to the machine user's documentation.
G998 Enabling of execution of the blocks and part of the functions processed in state G999
Syntax:
N.. G998
Cancellation:
G997/G999
4
N..
N . . M55 Subroutine
N.. %255
N.. N..
N..
N..
5
M00 Program stop
Program
Syntax:
N.. [G40] M00 [$0 ...] %25
N..
Cancellation: N..
N . .M00
Action on the machine panel CYCLE key N..
N..
6
M01 Optional stop
M01
Program
Syntax:
N.. [G40] M01 [$0 ...]
7
%12
N..
Cancellation: N..
N..
Action on the machine panel CYCLE key N . . M01
N..
M03
Cancellation:
M03/M05/M00/M19
M04
M07 Coolant 2 on
Syntax:
N.. M07
Cancellation: M08
M09.
M07 M08 M07
M10 Clamp
Syntax:
N.. [G00/G01/ G02/ G03] M10 X.. Y.. Z.. A.. B..C..
Cancellation:
M11
M11 Unclamp
Syntax:
N.. M11
Cancellation:
M10
1
M12 Programmed feed stop M12
Syntax:
FEED STOP
N.. M12 [$0...]
Cancellation:
Press CYCLE on the machine panel
2
M19 Indexed Spindle Stop
Fixed indexing point
Syntax:
3
N.. [S..] [M03/M04] EC±.. M19
Cancellation:
M03/M04/M05. dle
Spin
axis
Indexing
M40/
M41/
Spindle speed ranges
Syntax:
4
M42/ N.. [S..] [ M03/M04] M40 to M45
M43/ Cancellation:
Cancel one another
5
M44/
M45
6
N.. M48
Cancellation:
M49
8
M48
M64/
M62-M65
M998 *Reactivation of MDI mode and subroutine calls by the automatic control function
Syntax:
N.. M998
Cancellation:
M997/M999
M999 Programmed cancellation of MDI mode and subroutine calls by the automatic control function
Syntax:
N.. M999
Cancellation:
M997/M998/M02
2
X
N.. [G17] [G16 R+] D.. [G40/G41/G42] X.. Y.. Z.. Spindle
datum Z
Dimension X + . .
Cancellation:
Length L . .
D0 , M02 or new tool offset
Tool tip
radius @...
Dimension
Radius R . . Radius R . . Z+..
xis
(A
X OP0
,
B, C
Y
Z
)
4
DAT3 X
Y
Z
DAT3
Op
Part zero point
EA-
X or Y X or Z
EA+
5
EA+
EA-
Y X
X or Z
X X or Y Z
6
EB+ Fillet between two interpolations
Syntax: EB
EB
N.. G01/G02/G03 X.. Y.. I.. J.. / R.. [F..] EB+.. [EF..]
Cancellation:
End of block EB
EB
7
Y
X (Z)
Syntax:
=
Cancellation: EB
=
9
End of block Y X
=
EB
X Z
Cancellation:
Programming of a new value, M02, reset. OP X
00
F0
F1
EF80
.1
EF0.08
Syntax: EF100
F150
N.. Interpolation EB+.. / EB-.. EF.. EB +
EB +
F0.2 EF0.1
EB – EB –
Cancellation:
F200
F0.3
Programming of a new value, M02, reset. Y X
X Z
EG . .
ES Secant element
ET Tangent element
Y X
ET ET
Circle/circle Circle / Circle
X Z
E+/E- Discriminant
∞ ∞ E+
E+ EA
(D)
E- (D) E-
Y X
EA
X Z
Y X
I-J IK
X Z
R..
1
Radius of a circle
R
R
Y X
2
X Z
3
X.. Y.., XY
X or Y
XZ
X or Z
Z..
Y X
X Z
%56
4
N..
N.. EG.. $0 Message
N..
Cancellation:
Programming end program, M02, reset. Message
5
/ Block skip
Program
6
Syntax:
%50
/ N.. (Contents unimportant) N..
N..
/N . .
/N . .
/N . .
N..
For instance, for linear axes: if the system is set to 0.1µ (internal unit), the formats are expressed
with 4 decimal digits; for the X axis, the format is X+044.
For instance, for rotary axes: if the system is set to 0.001 degree (internal unit), the formats are
expressed with 3 decimal digits; for the B axis, the format is B+033.
For the words related to the machining feed rate with no assigned formats (F.., EF..), refer to the
machine manufacturer’s manual for the maximum and minimum feed rates (maximum 8 digits and
decimal point).
Format Description
%051 Program number (1 to 99999.9)
N05 Sequence number (1 to 2147483647)
G02 Preparatory functions (0 to 99)
G03 Preparatory functions (100 to 250 and 997 to 999)
H05 Subroutine number (with G77, G76 and G48)
X+053 Movement on the X axis. In a cycle, end point on the machining axis (.. plane)
Y+053 Movement on the Y axis. In a cycle, end point on the machining axis (.. plane)
Z+053 Movement on the Z axis. In a cycle, end point on the machining axis (.. plane)
I+053 For circular/helical interpolation (G02, G03), centre of the circle and pitch of the helix
J+053 With programmed origin offset (G59), centre of rotation and angular offset (ED)
K+053 For thread chasing cycle (G31), thread pitch = I, J or K depending on the interpolation plane
EB+053 For contour definition and PGP, radius or fillet between two interpolations
EB-053 For contour definition and PGP, chamfer between two linear interpolations
EB053 For profile Geometry Programming (PGP), chamfer between 2 lines
1
EG03 For interpolation, acceleration modulation
EH+053 In (G8x) cycles, dimension of the impact plane on the machining axis
EI+053 In polar programming, length of the line (start/circle center)
EI.. In a pocket cycle (G45), axial finishing feed rate
2
EJ.. In a pocket cycle (G45), lateral finishing feed rate
EK01 For rigid tapping cycle (G84), retraction/penetration speed ratio
ES+/ES- For profile geometry programming (PGP), secant element
ET+/ET- For profile geometry programming (PGP), tangent element
EP053
3
In a boring cycle with indexed spindle stop (G86), lateral backoff in hole bottom
EP053 In a peck drilling cycle (G83), backoff clearance after each peck
EP053 In a drilling cycle with chip breaking (G87), backoff between two infeeds
EP.. In a pocket cycle (G45), axial roughing feed rate
EY053
EZ053
For pocket cycle (G45), dimension along Y (or V)
For pocket cycle (G45), dimension along Z (or W)
5
P+053 For thread chasing cycles (G31), withdrawal of tool
P+043 For 3D correction (G29), X component of the normal vector
P053 For cycle (G83 or G87), value of the first penetration
6
P043 For pocket cycles (G45), axial roughing path
P041 With axis channel synchronisation (G78), wait for a marker
P+ / P- Tool axis orientation (G16), along X (or U)
7
Q043 For pocket cycle (G45), lateral roughing pass
Q04 With channel synchronisation (G78), declaration of a marker
Q+ / Q- Tool axis orientation (G16), along Y or V
8
R+043 For space correction (G29), Z component of the normal vector
R+ / R- For linear interpolation (G00, G01), positioning at programmed distance
R+ / R- Tool axis orientation (G16), along Z or W
NC04 For spline curve interpolation (with G06, G48, G49), curve number (1 to 9999)
S05 or Spindle rotation speed in rpm (G97)
S032
S02 In a subroutine branch (G77), number of subroutine iterations (1 to 99)
Xa
In both cases, certain functions are always expressed
Xa
with respect to diameter and others with respect to
OP
radius.
Tool dimensions:
• Entry of values with respect to radius.