Unit III Learning Material
Unit III Learning Material
UNIT –III
NUMERICAL CONTROL
Syllabus : NC, NC modes, NC elements, NC machine tools, structure of CNC machine
tools, features of Machining centre, turning centre.
CNC part programming: fundamentals, part programming methods.
Course objectives:
To present the role of computers and technology that drives the modern industry.
Learning outcomes:
Upon successful completion of the course, the students will be able to
appraise the role of computers in manufacturing
Numerical Control (NC):
Numerical control of machine tools may be defined as a method of automation in which various
functions of machine tools are controlled by letters, numbers and symbols.
In NC machine tools one or more of the following functions may be automatic:
a. Starting and stopping of machine tool spindle
b. Controlling the spindle speed
c. Positioning the tool tip at desired locations and guiding it along desired paths by
automatic control of the motion of slides
d. Controlling the rate of movement of the tool tip (i.e. feed rate)
e. Changing of tools in the spindle
Components of NC:
An operational numerical control system consists of the following three basic components:
1. Program of instructions
2. Controller unit, also called a Machine Control Unit (MCU)
3. Machine tool or other controlled process
Figure: Components of NC System
Program of Instructions:
The program of instructions is detailed step by step set of directions which tell the machine tool
what to do and in what sequence. The part program is written in coded form and contains all the
information needed for machining the component. The part program is fed to the machine
control unit through some input medium. Various types of input medium are:
a. Punched cards
b. Magnetic tape and floppy disks
c. Paper tape
a. Punched cards: These were once widely used as a medium for data input in all numeric
control systems. A typical punched card used in IBM systems has 80 columns and each
column numbers which identified the punching position. There are 12 punch positions or
rows in each card designated as 12, 11 and 0 to 9. For any numeric and alphabet to be
punched on the card, a code is used and rectangular blocks are punched on the card at one or
more places.
b. Magnetic Tape and Disk: These are widely used for data storage as well as data input to NC
systems. The data is stored in the coded form by means of magnetised spots on magnetic
medium in both cases. Magnetic tapes used in NC system are identical to the tape used in
common home tape recorder. The width of the tape is 6 mm or 25 mm.
c. Punched Tape: It is widely used for feeding the programme to NC systems. A standard tape
size is 25 mm wide. The punched tape has capacity for storing 10 characters per 25 mm
length. There are 8 tracks on the tape, which are used for punching the information in coded
form. The adjacent to track 1 is called reference edge. A row of small holes between track 3
and track 4 is used for feeding the tape into the tape reader. The information required to
machine the component is punched on the tape by a tape punching device.
Controller Unit:
This consists of the electronics and hardware that read and interpret the program of instructions
and convert it into mechanical actions of the machine tool. The typical elements of a
conventional NC controller unit include:
a. Tape reader
b. Data buffer
c. Signal output channels to the machine tool
d. Feedback channels from the machine tool.
e. Sequence controller
The tape reader is an electromechanical device for winding and reading the punched tape
containing the program of instructions. When a punched tape is passed through a punched – tape
reader, electric connections are either close or open depending on whether there is a hole
punched at a particular track or not. The coded instructions on the tape are transformed into their
electric analogues which are utilized for controlling the various machine tool functions. The
punched tape readers commonly used are mechanical (electro – mechanical), Photo electrical and
Pneumatic readers.
The data contained on the tape are read into the data buffer. The data buffer stores the input
instructions in logical blocks of information. The signal output channels are connected to the
servomotors and other controls in the machine tool. Through these channels, the instructions are
sent to the machine tool from the controller unit. To make certain that the instructions are sent to
the machine tool from the controller via the feedback channels. The most important function of
this return loop is to assure that the table and work parts have been properly located w.r.t . the
tool.
The sequence control coordinates the activities of the other elements of the controller unit. The
tape reader is actuated to read data into buffer from the tape, signals are sent to and from the
machine tool, and so on. These types of operations are to be synchronized and this is the function
of the sequence controls.
Machine Tool or other Controlled Process:
It is the part of NC which produces the useful work. In a numerically controlled machine all the
movements of the tool and the machine table are done automatically with the help of electric
motors. For example, in case of CNC lathe the longitudinal and transverse movements of the tool
are controlled by two motors fitted on the machine i.e. one for longitudinal movement and the
other for transverse movement of the tool. In addition, the speed of the spindle motor is
controlled by the part programme. The machine may have a tool magazine, so that tool changing
is done automatically. Also the other functions like machine ON/OFF, coolant ON/OFF, etc. are
controlled through the part programme. The motors used for controlling the speed, feed and
depth of cut are either servomotors or stepper motors which enable the user to select any desired
speeds and feeds.
The NC Procedure:
To utilize numerical control in manufacturing, the following steps must be accomplished:
1. Process Planning: The engineering drawing of the work part must be interpreted in
terms of the manufacturing processes to be used. This step is referred to as process
planning and it is concerned with the preparation of route sheet. The route sheet is a
listing of the sequence of operations which must be performed on the work part along
with the required machining data like speeds, feeds, depth of cut, tool used, etc. It is
called route sheet because it also lists the machines through which the part must be routed
in order to accomplish the sequence of operations.
2. Part Programming: Part programming plans the process for the portions of the job to be
accomplished by numerical control. There are two ways to develop programme for
numerical control machines:
a. Manual Part Programming: In manual part programming the machining
instructions are prepared on a form called a part programme manuscript. The
manuscript is a listing of the relative cutter/ work piece positions which must be
followed to machine the work piece.
b. Computer Assisted Part Programming: In computer assisted part programming
much of the tedious computational work required in manual part programming is
transferred to computer. This is especially appropriate for complex work piece
geometries and jobs with many machining steps. Use of the computer in these
situations results in significant saving in part programming time.
3. Tape Preparation: A punched tape is prepared from the part programmer’s process plan.
In manual part programming, the punched tape is prepared directly from the part
programme manuscript on a type writer like device equipped with tape punching
capability. In computer assisted part programming, the computer interprets the list of part
programming instructions, performs the necessary calculations to convert this into a
detailed set of machine tool motion commands, and then controls a tape punching device
to prepare the tape for the specific NC machine.
4. Tape Verification: After the punched tape has been prepared, some method is usually
provided for checking the accuracy of the tape. Sometimes the tape is checked by running
it through a computer programme which plots the various tool movements on paper. In
this way a major errors in the tape can be checked. The “acid test” of the tape involves
trying out on the machine tool to make the part. Foam or plastic material is sometimes
used for this tryout.
5. Production: The final step in numerical control procedure is to use the part programme
in the production. This involves ordering of raw work parts, specifying and preparing the
tooling and any special fixturing that may be required and setting up the numerically
controlled machine tool for the job. The machine tool operator’s function is to load the
raw work part in the machine and establish the starting position of the cutting tool
relative to the work piece. The numerical control system then takes over and machines
the part according to the instructions on tape.
NC Classification:
NC machines are classified based on two criterias:
a. Based on feedback control
b. Based on control system features
Classification based on feedback control: A NC machine can be controlled through two types
of control circuits, which are open loop and closed loop.
In the open loop system, the signals are given to the motor by the processor, but the movements
and final destinations of the worktable are not accurate. The open loop system cannot accurate,
but it still can produce the shape that is required.
In the Contouring System, also known as the continuous path system, positioning and cutting
operations are both along controlled paths but at different velocities. Because the tool cuts as it
travels along the path, accurate control and synchronization of velocities and movements are
important. The contouring system is used on lathes, milling machines, grinders, welding
machinery and machining centres.
Figure: Typical Step motor system. Precise step systems have feedback loop
Permanent Magnet Step Motors:
The permanent magnet step motor moves in steps when its windings are sequentially
energized. The following figure illustrates a permanent magnet rotor surrounded by a two phase
stator. Two rotor sections (N and S) are offset by one half-tooth pitch to each other. As energy is
switched from phase 2 to phase 1, a set of rotor magnets will align with phase 1 and rotor will
turn one step. If both phases are energized simultaneously, the rotor will establish its equilibrium
midway between steps. Thus, the motor is said to be half-stepping.
Feedback Devices:
As discussed in the closed loop control system, two two types of feedback required are:
i. Velocity feedback to measure and monitor the speed of the driver motor.
ii. Positional feedback to measure and monitor the position or displacement of the
machine slides.
Velocity Feedback:
Velocity feedback is normally provided by a device is called tachogenerator. A tachogenerator is
simply a voltage generator that gives voltage output which is proportional to its speed. The
tachogenerator is normally built in the servomotor case and is directly fitted on the servomotor
shaft. The output voltage from the tachogenerator is used as feedback to monitor the motor
speed. Rotary encoders are also used to provide feedback for velocity control.
Position Feedback
The ideal methods of measuring the displacement or position of the cutting tool will be to
continuously measure the position of the cutting tool edge relative to the datum point. This will
result in accurate displacements and it will take into account the tool wear, etc. The positional
feedback is provided by measuring the slide movements with measuring device. The position
measuring devices used are either rotary or linear measuring transducers.
Rotary or Angular Position Measuring Transducers:
Angular position measuring transducers operate by measuring the angular speed of a rotating
element, normally of a leadscrew. From the known value of lead of the leadscrew, movement of
worktable or machine slide is calculated by the control system. Most commonly used angular
position measuring transducers operate on the photo electric principle.
The transducer consists of a disc fitted on the axis of leadscrew. The disc is made up of uniform
alternate transparent and opaque areas. A light source is fitted on one side of the disc and
photocell on the other side. When the disc rotates with the rotation of the leadscrew, the
photocell will sense light and dark areas alternatively. As the dark area of disc is gradually
uncovered, the light intensity falling on the photocell goes on increasing until it reaches a
maximum when the transparent part of the disc comes in front of the light source. As the disc
continues to rotate the dark area starts to reduce the light intensity falling on the photocell which
will gradually reduces to zero when the dark area comes between the photocell and the light
source. The photocell gives output voltage based on the intensity of light falling on it and the out
from photocell resembles a sine-wave, which is converted into square shaped pulses to make it
useful for control purposes. The number of output pulses is then counted. As the out from the
photocell is related to the rate at which the transparent areas of the disc come in front of the light
source, the rotary speed of leadscrew is calculated from the known number of lines engraved on
the rotating disc. The displacement of the slide is then calculated from the lead of the leadscrew.
The directions of rotation of the leadscrew are sensed by putting a second photocell in the circuit.
The second photocell is positioned in such a way that the output from this photocell is identical
to that of first photocell but the output from the two photocells will be out of phase. This phase
difference is used to determine the direction of rotation of leadscrew. Position measurement by
angular position measuring transducer is indirect as the output of the transducer has to be
converted into table displacement.
NC Coordinate Systems:
In order for the part programmer to plan the sequence of positions and movements of the cutting
tool relative to the workpiece, it is necessary to establish standard axis system by which the
relative positions can be specified. However, to make things easier for the programmer, we adopt
the viewpoint that the workpiece is stationary while the tool is moved relative to it. Accordingly,
the coordinate system of axes is established with respect to the machine table.
Two axes, x and y, are defined in the plane of the table, as shown in the figure. The z axis is
perpendicular to this plane and movement in the z direction is controlled by the vertical motion
of the spindle. The positive and negative directions of motion of tool relative to table along these
axes. NC drill presses are classified as either two-axis or three-axis machines, depending on
whether or not they have the capability to control the z axis.
Figure: NC machine tool axis system for milling and drilling operations
A numerical control milling machines and similar machine tools (boring mill, for example) use
an axis system similar to that of the drill press. However, in addition to the three linear axes,
these machines may possess the capacity to control one or more rotational axes. Three rotational
axes are defined in NC: the a, b, c axes. These axes specify angles about the x, y, and z axes,
respectively. To distinguish positive from negative angular motions, the “right-hand rule” can be
used. Using the right hand with the thumb pointing in the positive linear axis direction (x, y, or
z), the fingers of the hand are curled to point in the positive rotational direction.
For turning operations, two axes are normally all that are required to command the
movement of the tool relative to the rotating workpiece. The z axis is the axis of rotation of the
workpart, and x axis defines the radial location of the cutting tool.
The purpose of the coordinate system is to provide a means of locating the tool in relation to
the workpiece. Depending on the NC machine, the part programmer may have several different
options available for specifying this location.
A symbol can be any combination of six or fewer alphabetical and numerical characters, at least
one of which must be alphabetical. Also the symbol cannot be an APT vocabulary word. Some
examples are presented below:
5. Spindle Speed Function (S –Word): The spindle speed is specified either in revolutions per
minute (r.p.m) or as meters per minute. If the speed is given in meters per minute, the control
unit calculates the rev/minute using the appropriate formulae. If the machine is required to
run at 800 rpm the speed will be specified as S 800.
6. Tool Selection ( T –Word): the T –word is needed only for machines with programmable
tool turret or automatic tool changer (ATC). Each tool pocket on the tool turret or ATC has a
distinct tool number. The T –word in the part programme specifies which tool is to be used in
the operation. The tool number for a particular operation is specified as T00 to T99. Also
with each tool code, the corresponding tool length offset is also specified with the help of
two additional digits i.e. T01.01 where second 01 denotes the tool length offset for tool No.
01.
7. Miscellaneous Function (M – Word): The Miscellaneous function word is used to specify
certain miscellaneous or auxiliary functions which do not relate to the dimensional
movements of the machine. The miscellaneous functions may be spindle stop, coolant
ON/OFF, etc. An example of M – word is M02 which indicates end of programme. The
miscellaneous functions are given below:
Miscellaneous Functions (M –Codes)
Code Function
M00 Program Stop
M01 Optional Programmable Stop
M02 End of Program
M03 Spindle on, CW
M04 Spindle on, CCW
M05 Spindle Stop
M06 Tool Change
M07 Turn Cutting Fluid on Flood
M08 Turn Cutting Fluid on Mist
M09 Turn Cutting Fluid Off
Automatic Calmping of Fixture, machine
M10
slides, etc.
M11 Automatic Unclamping
M13 Spindle On, CW + Coolant On
M14 Spindle On, CCW + Coolant On
M17 Spindle and Cutting Fluid off
M19 Turn Spindle off at oriented Position
M30 Program stop at end tape + tape rewind
N0010 G41 S1000 F5 M03 Begin compensation (left), set feed and speed, spindle on (CW)
N0020 G00 X6.000 Y6.000 Move to lower left corner
N0030 G01 Z-1.000 Plunge down the tool
N0040 G01 Y8.000 Cut to upper left corner
N0050 G01 X8.000 M96 Cut to upper right corner with external curve
N0060 G01 Y6.000 M96 Cut to lower right corner with external curve
N0070 G01 X6.000 M96 Cut to lower left corner with external curve
N0080 G01 Z1.000 Lift the tool
N0090 G40 M30 End the composition, stop the machine