Professional Documents
Culture Documents
1
Fundamentals of NC Technology
Theory
❑ Numerical control (NC) is a form of programmable automation in which the mechanical
actions of a machine tool or other equipment are controlled by a program containing coded
alphanumeric data.
❑ The alphanumeric data represent relative positions between a work head and a work part as
well as other instructions needed to operate the machine.
❑ The work head is a cutting tool or other processing apparatus, and the work part is the object
being processed.
❑ It is much easier to write new programs than to make major alterations in the processing
equipment.
❑ Numerical control can be applied to a wide variety of processes. The applications divide into
two categories: (1) machine tool applications, such as drilling, milling, turning, and other
metal working; and (2) other applications, such as assembly, rapid prototyping, and
inspection. The common operating feature of NC in all of these applications is control of the
work head movement relative to the work part
25 Nov 2023 2
The Evolution of NC
1. Numerical Control Origin (1947):
1. Challenge: John C. Parsons faced difficulties making helicopter rotor blade templates quickly.
2. Innovation: He combined computer equipment with a jig borer, creating the first Numerical
Control (NC) system.
3. Implementation: Punched cards were used to control the digit Ron system.
2. U.S. Air Material Command (1949):
1. Need for Speed: The U.S. Air Material Command urgently required faster production of
complex plane and missile parts.
2. Parsons Corporation's Role: Parsons Corporation received a contract to address design
changes and improve production speed.
3. MIT Involvement: MIT's Servo-Mechanisms Laboratory served as a subcontractor.
3. Transition to MIT (1951-1952):
1. MIT Takeover: MIT assumed full control of the project in 1951.
2. Prototype Demonstration (1952): MIT successfully demonstrated the prototype using a
modified Cincinnati Hydrogel Milling Machine.
4. Origin of "Numerical Control" Term:
1. Coined at MIT: MIT introduced the term "Numerical Control."
2. Significance: MIT played a crucial role in formalizing and advancing the concept.
25 Nov 2023 3
Basic Components of an NC System
An NC system consists of three basic components:
25 Nov 2023 4
NC Coordinate Systems
Basic CNC Principles: All computer controlled machines are able to accurately and repeatedly
control motion in various directions. Each of these directions of motion is called an axis. Depending
on the machine type there are commonly two to five axes. Additionally, a CNC axis may be either a
linear axis in which movement is in a straight line, or a rotary axis with motion following a circular
path.
25 Nov 2023 5
Motion Control Systems
Point-to-Point Versus Continuous Path Control
• Point-to-point systems, also called positioning systems, move the worktable to a programmed location
without regard for the path taken to get to that location.
• Continuous path systems are capable of continuous simultaneous control of two or more axes.
25 Nov 2023 6
Motion Control Systems
CNC Interpolation
CNC Interpolation: CNC interpolation is how a computer-controlled machine calculates and moves
a cutting tool smoothly between points to create precise shapes during machining. It involves linear
movement for straight lines and circular movement for curves.
➢ Linear interpolation: Linear interpolation involves moving the tool in a straight line between
two specified points. Linear interpolation is commonly used for straight cuts and contouring.
➢ Circular interpolation: Circular interpolation involves moving the tool in an arc or circular
path. This is particularly useful for machining curves, circles, and other rounded shapes
25 Nov 2023 7
Motion Control Systems
CNC Interpolation
25 Nov 2023 8
Computers and Numerical Control (CNC)
➔ CNC is a technology that utilizes computerized systems to control machine tools and manufacturing
processes. Instead of manually operating machines, CNC systems use programmed instructions to
dictate the movement and operation of the machinery. These instructions are encoded in numerical
form, and the CNC machine interprets and executes them.
➔ In CNC machining, a computer program is created with the specific instructions for the tool or
machine. This program includes details about toolpaths, speeds, feeds, and other parameters
necessary for the manufacturing process. The CNC machine then reads and executes these
instructions, resulting in the automated and precise production of parts and components.
➔ CNC is widely used in various industries, including manufacturing, aerospace, automotive, and
more. CNC machines can be applied to a range of tools and equipment, such as milling machines,
lathes, routers, plasma cutters, and 3D printers. The advantages of CNC include precision,
repeatability, and the ability to produce complex parts with high efficiency.
25 Nov 2023 9
NC to CNC
➔ Since the introduction of NC in 1952, there have been dramatic advances in digital
computer technology.
➔ The physical size and cost of a digital computer have been significantly reduced at the
same time that its computational capabilities have been substantially increased. The
makers of NC equipment incorporated these advances in computer technology into
their products, starting with large mainframe computers in the 1960s and followed by
minicomputers in the 1970s and microcomputers in the 1980s.
➔ Today, NC means computer numerical control (CNC), which is defined as an NC
system whose MCU consists of a dedicated microcomputer rather than a hardwired
controller.
➔ The latest computer controllers for CNC feature high-speed processors, large
memories, solid-state memory, improved servos, and bus architectures.
25 Nov 2023 10
OPERATIONAL FEATURES of CNC MACHINES
25 Nov 2023 11
Motion Control Systems
25 Nov 2023 12
Motion Control Systems
CNC Coordinates System
25 Nov 2023 15
CNC Lathe
➔ Automated version of a manual lathe.
➔ Programmed to change tools automatically.
➔ Used for turning and boring wood, metal and plastic.
25 Nov 2023 16
CNC Lathe
25 Nov 2023 17
Features of CNC Lathe
25 Nov 2023 18
Tools
25 Nov 2023 19
Tool Paths, Cutting and Plotting Motions
➔ Tool paths describes the route that the cutting tool takes.
➔ Motion can be described as point to point, straight cutting or contouring.
➔ Speeds are the rate at which the tool operates e.g. rpm.
➔ Feeds are the rate at which the cutting tool and workpiece move in relation to each other.
➔ Feeds and speeds are determined by cutting depth, material and quality of finish needed,
e.g. harder materials need slower feeds and speeds.
➔ Rouging cuts remove larger amounts of material than finishing cuts.
➔ Rapid traversing allows the tool or workpiece to move rapidly when no machining is taking
place.
25 Nov 2023 20
NC Application Characteristics
➔ Batch Production.
➔ Repeat Orders.
➔ Complex part Geometry.
➔ Much metal needs to be removed from the work part.
➔ Many separate machining operations on the part.
➔ The part is Expensive.
25 Nov 2023 21
Advantages of NC
➔ Nonproductive time is reduced.
➔ Greater accuracy and repeatability.
➔ Lower scrap rates.
➔ Operator skill requirements are reduced.
➔ Less floor space.
➔ Reduced parts inventory.
➔ Shorter manufacturing lead times.
➔ Simpler Fixtures.
➔ Inspection requirements are reduced.
➔ More complex part geometries are possible.
➔ Engineering changes can be accommodated more gracefully.
25 Nov 2023 22
Disadvantages of NC
25 Nov 2023 23
CNC programming
25 Nov 2023 24
Types of CNC programming
25 Nov 2023 25
CNC programming
● Coordinate System
● Units, incremental or absolute positioning
● Coordinates: X,Y,Z
● Feed rate and spindle speed
● Coolant Control: On/Off, Flood, Mist
● Tool Control: Tool and tool parameters
25 Nov 2023 26
Coding For Manual Part Programming
Common Word Prefixes Used in Word Address Format
G G21 Preparatory word; prepares controller for instructions given in the block.
F F40 Feed rate per minute or per revolution in either inches or millimeters
25 Nov 2023 27
Table of Important G codes
G-word Function
G01 Linear interpolation movement. Block must include x–y–z coordinates of end position.
G92 Specify location of coordinate axis system origin relative to starting location of cutting tool
25 Nov 2023 28
Table of Important M codes
M-word Function
M00 Program stop
M08 Coolant on
25 Nov 2023 29
Programming example - 1
Programming example - 2
25 Nov 2023 30
Programming example - 3
25 Nov 2023 31
Programming example - 4
25 Nov 2023 32
Programming example - 5
25 Nov 2023 33
Programming example - 5
25 Nov 2023 34
Solution:
25 Nov 2023 35
Analysis of Positioning System
An NC positioning system helps move the tool and work part during machining based on the coordinates given
in the program.
Gear Mechanism-
Gear Reduction
Servo/
36
Classification
Two types of control systems are used in positioning systems:
1. Open loop system:
operates without verifying that the actual position (worktable) achieved in the move is the same
as the desired position.
❖ Advantage: cheaper and suitable, little resistance to motion
❖ Disadvantage: Metal waste, Higher Energy Consumption
37
Basic Stepper Motor System Configuration
Programs in the PLC are converted into pulse signals in the controller, then converted into motor controlling
electrical current in the driver.
4 Phase Stator
C
B D
e
ngl
pA
D1 B1
Ste
C1
38
Open Loop Positioning System
❖ Uses Stepper Motor
❖ Driven by series of Electrical Pulses (Generated in MCU)
The number of pulses required to achieve a specified x-position increment in a point-to-point system can be
found using combinations of Equations 1, 3 and 5…
Control pulses are transmitted from the pulse generator at a certain frequency, which drives the worktable at a
corresponding velocity or feed rate in the direction of the screw axis. The rotational speed of the screw depends
on the frequency of the pulse train as Ns = screw rotational speed, rev/min;
fp = pulse train frequency, Hz;
ns = steps per revolution or pulses per revolution
The table travel speed in the direction of screw axis is determined by the rotational speed as
vt = table travel speed, mm/min (in/min);
fr = table feed rate, mm/min (in/min);
Ns = screw rotational speed, rev/min; and
p = screw pitch, mm/rev (in/rev)
40
Open Loop Positioning System
The required pulse train frequency to drive the table at a specified linear travel rate
41
Servo Motor System Configuration
Optical Encoder
42
Closed-Loop Positioning Systems
❖ Uses servo motor
❖ Feedback measurement sensor – optical encoder
❖ a gear reduction between the servomotor and the screw driving the worktable
In the basic optical encoder, the angle between slots in the disk must satisfy the following requirement
a = angle between slots, °/slot; and
ns = number of slots in the disk, slots/rev.
For a certain angular rotation of the encoder shaft, the number of pulses sensed by the encoder is given by
np = pulse count emitted by the encoder
As = angle of rotation of the encoder shaft, °
a = angle between slots, which converts to °/pulse.
The pulse count can be used to determine the distance moved by the worktable along the x-axis (or y-
axis
∆x = distance moved along the axis, mm (in)
p = screw pitch, mm/rev (in/rev).
43
Closed-Loop Positioning Systems
The velocity of the worktable, which is normally the feed rate in a machining operation, is determined by
the rotational speed of the screw, which in turn is driven by the servomotor
vt = worktable velocity, mm/min (in/min);
fr = feed rate, mm/min (in/min);
Ns = screw rotational speed, rev/min;
Nm = motor rotational speed, rev/min;
rg = gear reduction ratio.
At the worktable velocity or feed rate given by Equation (7.15), the pulse frequency emitted by the encoder
is the following:
fp = frequency of the pulse train, Hz
the constant 60 converts worktable velocity or feed rate from
mm/sec (in/sec) to mm/min (in/min).
44
Closed-Loop Positioning Systems
Example 7.2 NC Closed-Loop Positioning
An NC worktable operates by closed-loop positioning. The system consists of a servomotor, ball screw, and optical
encoder. The screw has a pitch of 6.0 mm and is coupled to the motor shaft with a gear ratio of 5:1 (five turns of the
drive motor for each turn of the screw). The optical encoder generates 48 pulses/ rev of its output shaft. The table
has been programmed to move a distance of 250 mm at a feed rate = 500 mm/min. Determine (a) how many pulses
should be received by the control system to verify that the table has moved exactly 250 mm, (b) the pulse rate of
the encoder, and (c) the drive motor speed that corresponds to the specified feed rate
45
Precision in Positioning Systems
❖ an NC positioning system - a high degree of precision
❖ Three measures of precision can be defined for an NC positioning
system:
(1) Control resolution,
(2) Accuracy,
(3) Repeatability.
46
Precision in Positioning Systems
1. Control Resolution:
Defined as the distance separating two adjacent addressable points in the axis movement
❖ Addressable points are locations along the axis to which the worktable can be specifically directed to go.
47
Precision in Positioning Systems
❖ Number of bits: If B = the number of bits in the storage register for the axis, then the number of control points
into which the axis range can be divided = .
❖ Nearly all of the mechanical errors (99.73%) are contained within of the control point.
2. Accuracy:
The maximum possible error that can occur between the desired target point and the actual position taken by
the system
Ac = accuracy, mm (in);
CR = control resolution, mm (in); and
σ = standard deviation of the error distribution.
48
3. Repeatability:
The ability of the positioning system to return to a given addressable point that has been previously programmed.
❖ The repeatability of any given axis of a positioning system is standard deviations of the mechanical error distribution
associated with the axis. This can be written as,
Re = repeatability, mm (in).
49
Example 7.3 Control Resolution, Accuracy, and Repeatability in NC
Suppose the mechanical inaccuracies in the open-loop positioning system of Example 7.1 are described by a
normal distribution with standard deviation = 0.005 mm. The range of the worktable axis is 1,000 mm, and there
are 16 bits in the binary register used by the digital controller to store the programmed position. Other relevant
parameters from Example 7.1 are the following: pitch = 6.0 mm, gear ratio between motor shaft and screw = 5.0,
and number of step angles in the stepper motor = 48. Determine the (a) control resolution, (b) accuracy, and (c)
repeatability of the positioning system
50
Thank You
51