Programming 1
Programming 1
1949
US Air Force asks MIT to develop a "numerically
controlled" machine.
1952
Prototype NC machine demonstrated (punched tape input)
1980-
CNC machines (computer used to link directly to controller)
1990-
DNC: external computer “drip feeds” control
programmer to machine tool controller
Motivation and uses
- Easier to program;
- Easy storage of existing programs;
- Easy to change a program
- Avoids human errors
- NC machines are safer to operate
- Complex geometry is produced as cheaply as simple
ones
- Usually generates closer tolerances than manual
machines
Conventional milling machines
Introduction
• Coordinate Systems
• NC Words
6.1.1 Coordinate System
Z AXIS Z // rotating spindle
workpiece-rotating machine:
Z is parallel to the spindle Z
tool-rotating machine:
Z is parallel to the tool axis
Z
Z
6.1.1 Coordinate System
X AXIS X // table
workpiece-rotating machine:
X
X is the direction of tool movement Z
• Coordinate System
Preparatory Codes:
G codes- Initial machining setup and establishing operating
conditions
T: tool number
6.1.5 NC Words
N, G, X, Y , Z, A, B, C, I, J, K, F, S, T, R, M
F 25
Raw Material
70
F 22.5
F 17.5
Finished Part
20
30
APT Programming Example (Cylindrical Part)
O0013
N0005 G53
N0010 T0303
N0020 G57 G00 X26.00 Z0.0 S500 M04
N0030 G01 X-0.20 F100
N0040 G00 Z2.0
N0050 X50.0 Z50.0
N0060 T0404
N0070 G57 G00 X22.50 Z2.0 S500
N0080 G01 Z-30.0 F100
N0090 G00 X23.0 Z2.0 S500
N0100 G84 X17.5 Z-20.0 D0=200 D2=200 D3=650
N0110 G00 Z2.0
N0120 X50.0 Z50.0
N0130 M30
APT Program Interpretation
O0013
Program identification number
APT Program Interpretation
O0013
N0005 G53
To cancel any previous working zero point
APT Program Interpretation
O0013
N0005 G53
N0010 T0303
z
(0,0) +ve
APT Program Interpretation
O0013
N0005 G53
N0010 T0404
N0020 G57 G00 X26.00 Z0.0 S500 M04
N0030 G01 X-0.20 F100