Professional Documents
Culture Documents
Prepared by Reza
Advantages of CNC
11/11/2015
Disadvantages of CNC
11/11/2015
Additional Axes
Basic CNC Principles
11/11/2015
Feed drive
Measuring
System
Manual NC programming
11/11/2015
G - Code Programming
G Code Programming
N50
Preparatory
Function
G90 G01
Dimensio
n Words
X1.40Y2.25
Feed
Rate
Spindle
Functio
n
Tool
Functio
n
Misc.
Function
F10
S1500
T01
M03
Individual Words
11/11/2015
Exercise 1
G90
Absolute
P0
P0-P1
P0-P2
P0-P3
P0-P4
P0-P5
P0-P6
G91
Exercise 2
X
Increment
X0
X-20
X12
X20
X20
X12
X-20
Y0
Y-20
Y-20
Y-12
Y14
Y20
Y20
P0
P0-P1
P1-P2
P2-P3
P3-P4
P4-P5
P5-P6
X0
X-20
X32
X8
X0
X-8
X-32
Y0
Y-20
Y0
Y8
Y26
Y6
Y0
11/11/2015
Exercise 3
Exercise 4
Word Address 1
N Sequence or line number
Dimension Words
X Distance or position in X direction
Y Distance or position in Y direction
Z Distance or position in Z direction
G Preparatory function
Word Address 2
M Miscellaneous functions
11/11/2015
Word Address 3
F Feed rate (inches per minute or millimeters per
minute)
Word Address 4
I Circular cutting reference for x axis
J Circular cutting reference for y axis
K Circular cutting reference for z axis
T Tool number
G Word
G words or codes tell the machine to perform
certain functions. Most G words are modal
which means they remain in effect until
replaced by another modal G code.
Common G Codes
G00 Rapid positioning mode
11/11/2015
G17 XY plane
G18 XZ plane
G19 YZ plane
G20 Inch Mode
G21 Metric Mode
G28 Return to axis machine Zero (Home)
11/11/2015
M Word
M words tell the machine to perform certain
machine related functions, such as: turn
spindle on/off, coolant on/off, or stop/end
program.
10
11/11/2015
Common M words
M00 Programmed pause
Common M words
M03 Turn spindle on
In clockwise direction
Common M words
M08 Turns Accessory 1 on.
M09 Turns Accessory 1 off.
M10 Turns Accessory 2 on.
M11 Turns Accessory 2 off.
M30 End of program
11
11/11/2015
Programming Example
Cylindrical Part
5
2.5
p3
p2
p4
p5
F 25
Raw Material
Finished Part
(4, 4)
p1
Motion of tool:
p0 p1 p2 p3 p4 p5 p1 p0
F 22.5
45
70
F 17.5
20
p0 (2, 2)
30
12
11/11/2015
Programming Example
O0013
N0005
N0010
N0020
N0030
N0040
N0050
N0060
N0070
N0080
N0090
N0100
N0110
N0120
N0130
G53
T0303
G57 G00 X26.00 Z0.0 S500 M04
G01 X-0.20 F100
G00 Z2.0
X50.0 Z50.0
T0404
G57 G00 X22.50 Z2.0 S500
G01 Z-30.0 F100
G00 X23.0 Z2.0 S500
G84 X17.5 Z-20.0 D0=200 D2=200 D3=650
G00 Z2.0
X50.0 Z50.0
M30
Raw Material
Finished Part
Define Tool
CNC data
Make 3D model
Simulate
cutting
13
11/11/2015
Example 1: NC Block
.125
GRID
SPACES
Origin
(0,0)
Download Worksheet
Worksheet Problem 1
D( , )
I( , )
J( , )
B( , )
.125
GRID
SPACES
K( , )
L( , )
H( , )
G( , )
14
11/11/2015
SPACE
Origin
Summary
15