Documente Academic
Documente Profesional
Documente Cultură
CNC/CAM
#3 G Codes Part 1
Universitas
Muhammadiyah
Yogyakarta
www.umy.ac.id
1995
1
Word Characters
Address
Definition
Address
Definition
Arithmetic parameter
Preparatory function
Main block
X, Y, Z
Positional data
AX
I, J, K
Interpolation parameters
ACC
Axial acceleration
Feed
FA
Axial feed
Spindle speed
FL
Tool number
IP
Interpolation parameter
OVRA
Axial override
Miscellaneous function
PO
Polynomial coefficient
Auxiliary function
POS
Positioning axis
SPOS/A
Spindle position
POSA
Subprogram call
1995
2
Operators
Operator
Definition
Address
Definition
Addition
ROUND()
Round to integer
Subtraction
LN()
Natural logarithm
Multiplication
EXP()
Exponential function
==
Equal to
Chain operator
<>
Not equal to
Sin()
Sine
>
Greater than
COS()
Cosine
<
Less than
TAN()
Tangent
>=
ASIN()
Arcsine
<=
SQRT()
Square root
AND
AND
ABS()
Absolute number
OR
OR
POT()
NOT
Negation
XOR
Exclusive OR
1995
1995
4
1995
5
1995
6
1995
7
Plane Designation
It is advisable to define the working plane at the beginning of the program. The working
plane must be specified when the tool path compensation G41/G42 is called so that the
control can correct the tool length and radius. In the initial setting, G17 (X/Y plane) is defined
for milling and G18 (Z/X plane) is defined for turning.
1995
8
0. Positional Data
Seq.
Code
(0,0) :
G90 (absolute)
G91 (incremental)
or
Dimension:
G20/G70 (imperial) or
G21/G71 (metric)
Explanation
N01
N02
N03
1995
Code
Explanation
Absolute dimensioning,
metric, spindle on CW
Tool infeed
N04 X80 Y 65
N05 G00 Z2
Retract tool
1995
11
Code
Explanation
Absolute dimensioning,
metric, spindle on CW
Tool infeed
N06 Z-50
N07 G00 X62
N08 G00 X80 Z20
Retract tool
N09 M30
End of program
1995
12
13
Code
Explanation
Absolute dimensioning,
metric
Tool infeed
1995
Retract to tool change
location, end of program
Code
Explanation
Absolute dimensioning,
metric, spindle on CW
Tool infeed
N06 Z-50
N07 G00 X62
N08 G00 X80 Z20
Retract tool
N09 M30
End of program
1995
1995
15
G02
G03
XYZ
IJK
G02/G03 X Y Z I J K
Incremental mode:
Seq
Code
Explanation
Absolute mode:
Seq
Code
Explanation
1995
Incremental mode:
Seq
Code
Explanation
Tool infeed
N04 G1 Z-95
Straight turning
Absolute mode:
Seq
Code
Explanation
Positioning @start
point
Tool infeed
1995
Straight turning
Seq
Code
Explanation
1995
Seq
Code
Explanation
Tool infeed
Straight turning
1995
20
Seq
Code
Explanation
Seq
Code
Explanation
21
Seq
Explanation
Tool infeed
Seq
Code
Explanation
Tool infeed
Seq
22
Code
Code
Explanation
Positioning @start
Tool infeed
1995 IK
Tool infeed CCW,
@center point
1995
23