NC and CNC Machines
NC and CNC Machines
NC and CNC Machines
History: US Air Force commissioned MIT to develop the first "numerically controlled"
machine in 1949. It was demonstrated in 1952.
Most modern machine tool companies manufacture only NC or CNC machine tools.
The dominant advantages of NC machines are:
Schematic of a vertical milling machine [source: Mfg Engg & Tech, Kalpakjian]
Schematic of a horizontal milling machine [source: Mfg Engg & Tech, Kalpakjian]
In manual milling, the operator rotates the X- Y- and Z- axis lead-screws to move the
machine table. In NC machines, the three lead-screws are driven by motors.
Control of NC Machines
The most common motor types for larger machines are servo-controlled motors.
A schematic of the servo control hardware
Depending upon the hardware the smallest distance unit that the machine tool can
be moved by is referred to as a BLU (Basic Length Unit). In practice, the BLU is
equivalent to the accuracy of the machine tool.
- The conventional machine tool, with servo motors to drive the lead-screws
The MCU is made up of a Data Processing Unit (DPU) and a Control-Loops Unit (CLU).
Point-to-Point
Continuous path
Open loop
Closed loop
Electric
Hydraulic
Pneumatic
Incremental
Absolute
circuits in a PTP controller for a drilling machine, using stepper motors for
moved by the stepper motor. When the table reaches its required
position, it turns the line voltage to 0 (logical OFF). This switches off the
AND gate, and stops any further pulses to the drive unit.
and the OR gate output is ON. When the OR gate turns OFF, the machine can
start drilling.
and the control system is a closed loop feedback system, with an encoder (see
figure below) to provide feedback on the actual position of the table. This
since each pulse to the stepper motor makes it rotate through a fixed, finite
angle.
of the table by the leadscrew. The pitch of the leadscrew is the horizontal
distance between successive threads of the screw. Most screws have single
threads (called single start screw) -- in this case, the pitch equals the
(BLU).
Example:
A Stepping motor of 20 steps per revolution moves a machine table through a leadscrew of 0.2 mm
pitch.
Example:
of a machine table. A digital encoder, which emits 500 pulses per revolution,
is mounted on the leadscrew. If the motor rotates at 600 rpm, find
Manual NC Programming
called the part programmer) writes the instructions for the machine tool
- What are the cutting conditions (speed, feed, coolant ON/OFF etc)
depends on the machine and the controller capabilities. Many drilling machines
use PTP control. Most milling machines can perform contouring -- that is, they
can move the tool along specified geometric paths. These paths are typically
The VALUE, when needed, is usually a number. Appendix I gives the use of each
useful G-codes.
M2: Miscellaneous function; two digits are specified. Appendix III explains
the same sequence as shown (only those words that are needed will appear in
the block; you may not need all of them in any one block).
it reads the number following the character, to get the exact meaning of the
Thus, the last changed value of any field is carried over to subsequent blocks
the TAB Sequential Format is used. Here, the sequence in which the words must
appear in each block is fixed. There is a "TAB" character between each word.
Hence, there is no need for the alphabetical identifier that begins each word.
Example of NC Programming
Example of NC part programming (2D contouring)
along the outer boundary of a simple part, whose nominal geometry is as shown.
The tool size is 0.25 inch, and the feed rate of 6 inch per minute is used.
ignore the Z-axis motions, and that the home position of the tool is at the
correct height, centered on the point located in the machine tool coordinates
as (2, 2).
compute the location of 5 points p1-p5 (later, we shall see that additional
spindle speed in rpm, feed in ipm, select tool no 1001, turn coolant ON, use
figure below:
N030 G01 X3.875 Y3.698 [EB]
// block 4: move to p2 in straight line. coordinates of point p2: x = same as p1; y = 4 + 5 + 0.125.
Most NC controllers cannot cut along a full circle directly -- they need to be
programmed once FOR EACH QUADRANT of the arc. In our case, the circular path
of the tool goes through tree quadrants, so we need to find two additional
words specify the distance to the end of the arc from current position. Two
circular dimension words specify the distance to the arc center. Usually,
// blocks 10, 11, 12: all linear interpolation. Computations for the
be kept constant !
N110 G01 X3.875 Y3.698
programs are often "dry-tested" before actual use. They are either executed on
the machine tool without the workpiece, or they are simulated on a computer,
using software to simulate the motions, and generating the tool path for
shapes (for example, dies for casting or plastic injection moulding of common
As we have seen, we can only program our machine tool to move along straight
lines or circular arcs. How can we machine a part with geometry that is more
complex ?
(a) Hardware solution: Pantograph machines (very common in HK and China area)
the SAR. The method usually involves first making a plastic/wood model of the
required mold in 2:1 (double size) or 1.5: 1 ratio. This model is used as a
flat end mill, a ball-end mill, or sometimes a grinding tool) across the die
block till the die is machined. By using the pantograph, the scaled model can
be directly converted to the correct sized die. The models are usually larger
than the actual part (die) since more details can be carved into the
Aided Design) data of a part into the required NC part program. since most
parts have very complex geometry, the mathematical functions used to describe
the shape of the part are not simple -- they usually partition the entire
the profile of the part along many subsequent layers at different values of
the z-coordinate. The part is machined by cutting the profile at each layer,
proceeding to the next deeper layer, and so on. Of course, the geometry of each
straight lines or arcs) -- hence we must first convert this data into a format
that the NC controller can understand -- namely straight lines and arcs. This
files. Therefore, several machine tool companies allow the user to drip-feed
the part program into the NC machine (that is, the part program is transferred
fixed percentage (e.g. 90%) of the previous segment, the next segment is
several machine tools, the central computer can decide, depending on the
status of each machine tool, which part must be machined on which machine tool.
In such cases, the central computer is linked to each CNC machine, and uploads
the required part program to the selected machine at the correct time. Such