Professional Documents
Culture Documents
CH 3
CH 3
COMPUTER AIDED
MANUFACTURING
Introduction to NC and CNC
• CNC or Computer Numerical Control is a term
derived from NC or Numerical Control.
• NC refers to Control of a process or automatic
operation of a machine by using symbolic codes
consisting of characters and numbers.
Computer Numerical Control
John T Parsons introduced NC
machine tools for which he was
awarded a patent titled motor
Controlled apparatus for
positioning machine tool control
(patent No: 2820187)
NUMERICAL
MANUFACTURING CONTROLLER
OPERATOR
Drive Control
PROCESSED
PART
MACHINE UNIT
Computer Numerical Control
• CNC controlled Lathes and Milling Machines constitute a
large percentage of CN machines.
• CNC are part of automation as it replaces manual effort
with computer controlled devices.
• CNC Control is used in other metal cutting machine tools
such as CNC grinding, CNC gear hobbing etc. and also in
EDM (Electric Discharge Machine) and Wire-cut EDM.
• CNC controls are used in many other manufacturing
processes such as punching, arc-welding etc. and also in
part inspection, electronic chip manufacturing, garment
manufacturing.
Direct Numerical Control
• The main tasks performed by the
computer are to program and edit
part programs as well as download
part programs to NC machines.
• Machine tool controllers have
limited memory and a part program
may contain few thousands of
blocks
• So the program is stored in a
separate computer and sent
directly to the machine, one block
at a time.
Hardware Configuration of NC Machine
Machine Control Unit (MCU)
the brain of the NC machine.
The Data Processing Unit (DPU)
reads the part program.
The Control Loop Unit (CLU)
controls the machine tool operation.
CLASSIFICATION OF CNC MACHINE TOOLS
1. Based on Motion Type:
Point-to-Point or Continuous path
2. Based on Control Loops:
Open loop or Closed loop
3. Based on axis :
2, 3, 4 & 5 axes CNC machines.
4. Based on Power Supply:
Electric or Hydraulic or Pneumatic
5. Based on Positioning System
Incremental or Absolute
Point-to-point systems
• It require that the cutter and the work piece be
placed at a certain fixed relative positions at
which they must remain while the cutter does
its work.
• Feed rates need not be programmed
• In theses machines tools, each axis is driven
separately
• Drilling, reaming, punching, boring and tapping
are examples of point-to-point operations.
Con…
Contouring systems (Continuous path systems)
• Other type of machine tools involve motion of work
piece with respective to the cutter while cutting
operation is taking place.
• These machine tools include milling, routing
machines etc
• Feed rates should be programmed
• These machines require simultaneous control of
axes.
• In contouring machines, relative positions of the
work piece and the tool should be continuously
controlled.
Con…
Open loop systems
• Programmed instructions are fed into the controller
through an input device
• These instructions are then converted to electrical
pulses (signals) by the controller and sent to the servo
amplifier to energize the servo motors
• Drawback of the open-loop system is that there is no
feedback system to check whether the program
position and velocity has been achieved
• If the system performance is affected by load,
temperature, humidity, or lubrication then the actual
output could deviate from the desired output
Open Loop System
Servo Motors
Controller
Controller
A numerical control
system in which the data
handling, control
sequences, and response
to input is determined by
an on-board computer
system at the machine
tool.
Elements of CNC Machine
• A CNC machine consist of following 6 major
elements:
i. Input Device
ii. Machine Control Unit
iii. Machine Tool
iv. Driving System
v. Feedback Devices
vi. Display Unit
❑ Program Input Device
• The program input device is the means for part
program to be entered into the CNC control
• Three commonly used program input devices are
punch tape reader, magnetic tape reader, and
computer via RS-232-C communication
❑ Machine Control Unit
• The machine control unit (MCU) is the heart of a
CNC system. It is used to perform the following
functions:
Con…
• Reads the coded instructions
• Decodes the coded instructions
• Implement interpolations (linear, circular, and
helical) to generate axis motion commands
• Feeds the axis motion commands to the
amplifier circuits for driving the axis mechanisms
• Receives the feedback signals of position and
speed for each drive axis
• Implement auxiliary control functions such as
coolant or spindle on/off and tool change
❑ Drive System
• A drive system consists of amplifier circuits, drive motors,
and ball lead-screws
• The MCU feeds the control signals (position and speed) of
each axis to the amplifier circuits
• The control signals are augmented to actuate drive motors
which in turn rotate the ball lead-screws to position the
machine table
❑ Machine Tool
• CNC controls are used to control various types of machine
tools
• Regardless of which type of machine tool is controlled, it
always has a slide table and a spindle to control of position
and speed
• The machine table is controlled in the X and Y axes, while
the spindle runs along the Z axis.
❑ Feed Back System
• The feedback system is also referred to as the
measuring system.
• It uses position and speed transducers to
continuously monitor the position at which the
cutting tool is located at any particular instant.
• The MCU uses the difference between
reference signals and feedback signals to
generate the control signals for correcting
position and speed errors.
❑ Part Program
• A part program is a series of coded
instructions required to produce a part.
• It controls the movement of the machine
tool and on/off control of auxiliary
functions such as spindle rotation and
coolant.
• The coded instructions are composed of
letters, numbers and symbols
Basic Concept of Part Programming
➢ Part programming contains geometric data about the part and motion
information to move the cutting tool with respect to the work piece
➢ Basically, the machine receives instructions as a sequence of blocks
containing commands to set machine parameters; speed, feed and other
relevant information
➢ A block is equivalent to a line of codes in a part program.
Individual Words
Basic Concept of Part Programming
Preparatory command (G code)
The G codes prepare the MCU for a given operation, typically
involving a cutter motion.
G00 rapid motion, point-to-point positioning
G01 linear interpolation (generating a sloped or straight cut)
G02 Circular movement (CW)
G03 Circular movement (CCW)
G06 parabolic interpolation (produces a segment of a parabola)
G17 X-Y plane selection milling
G18 selection of x-z plane in milling
G19 selection of y-z plane in milling
G20 circular interpolation
Con…
❑ Advantage
• CNC machines can be used continuously and only
need to be switched off for occasional maintenance.
• These machines require less skilled people to
operate unlike manual lathes / milling machines etc
• CNC machines can be updated by improving the
software used to drive the machines Training for the
use of CNC machines can be done through the use of
‘virtual software’.
• The manufacturing process can be simulated virtually
and no need to make a prototype or a model. This
saves time and money.
Con…
❑ Tool Function
• The selection of tool is commanded under a T
address. T04 represents tool number 4.
❑ Feed Function
• The feed is programmed under an F address except for
rapid traverse
• The unit may be in mm per minute or in mm per
revolution
• The unit of the federate has to be defined at the
beginning of the program
• The feed rate can be calculated by the following formula
Circular Interpolation
Incremental
positioning
CNC machine tools & programming
25
x
15
CNC machine tools & programming
30
25
x
15
CNC machine tools & programming
Absolute Mode
6 N1 G90
30
25
x
15
CNC machine tools & programming
Absolute Mode
6 N1 G90
Incremental Mode
30 N1 G91
25
N2 G01 X30 Y6
x
15
CNC Programming
G02 Circular Movement (Clockwise)
Y
Absolute Mode
G02 X34 Y0 R 24
Incremental Mode
G02 X24 Y-24 R 24
10
24
(0, 0) X
CNC Programming
G03 Circular Movement (Counter Clockwise)
Y
Absolute Mode
G03 X10 Y24 R24
Incremental Mode
10 G03 X-24 Y24 R24
24
(0, 0) X
Spindle
On/Off
Vice Open/Close
E-stop
60
1- Machine Home
2- Reference Point
62
3. Set position
63
4- Run
64
Sample Example
Manual Part Programming Example
5”
2.5”
p4
p2 p3 p5
1”
(4, 4)
p1 Motion of tool:
p0 → p1 → p2 → p3 → p4 → p5 → p1 → p0
p0 (2, 2)
1. Set up the programming parameters
5”
2.5”
p4
p2 p3 p5
1”
Programming in inches
5”
Use absolute coordinates
Feed in ipm
45°
N010 G70 G90 G94 G97 M04
(4, 4)
p1
Spindle speed in rpm
p0 (2, 2)
Spindle CCW
2. Set up the machining conditions
5”
2.5”
p4
p2 p3 p5
1”
Machine moves in XY-plane
Spindle speed
45°
N020 G17 G75 F6.0 S300 T1001 M08
(4, 4)
p1
Tool no.
p0 (2, 2)
Flood coolant ON
3. Move tool from p0 to p1 in straight line
5”
2.5”
p4
p2 p3 p5
Linear interpolation
1”
target coordinates
45°
(4, 4)
p1
p0 (2, 2)
4. Cut profile from p1 to p2
5”
2.5”
p4
p2 p3 p5
1”
Linear interpolation
5” target coordinates
p0 (2, 2)
5”
2.5”
p2 p3
p4
p5 Linear interpolation
target coordinates
1”
5”
y = 9 + 0.125 = 9.125
(6.5 - x)2 + 0.1252 = (1 - 0.125)2
x = 5.634
45° p3
(x, y)
(4, 4)
p1 (6.5, 9)
.125
p0 (2, 2)
1”
6. Cut along circle from p3 to p4
5”
2.5”
p4
p2 p3 p5
1”
5”
target coordinates
p0 (2, 2)
7. Cut from p4 to p5
5”
2.5”
p4
p2 p3 p5
1”
5”
Linear interpolation
p0 (2, 2)
8. Cut from p5 to p1
5”
2.5”
p4
p2 p3 p5
1”
5”
Linear interpolation
p0 (2, 2)
9. Return to home position, stop program
5”
2.5”
p4
p2 p3 p5
1”
Linear interpolation
45°
end of data
(4, 4)
N100 M00
p1