Documente Academic
Documente Profesional
Documente Cultură
Program of Instructions:
The program of instructions is the detailed step by step set of instructions which tell the
machine what to do. It is coded in numerical or symbolic form on some type of input medium
that can be interpreted by the controller unit. The most common one is the 1-inch-wide punched
tape. Over the years, other forms of input media have been used, Including punched cards,
magnetic tape, and even 35mm motion picture film. There are two other methods of input to the
NC system which should be mentioned. The first is by manual entry of instructional data to the
controller unit. This is time consuming and is rarely used except as an auxiliary means of
control or when one or a very limited no. of parts to be made. The second method of input is by
means of a direct link with the computer. This is called direct numerical control, or DNC.
Controller Unit:
The second basic component of NC system is the controller unit. This consists of
electronics and hardware that read and interpret the program of instructions and convert it to
mechanical actions of the machine tool. The typical elements of the controller unit include the
tape reader, a data buffer, signal output channels to the machine tool, and the sequence controls
to coordinate the overall operation of the foregoing elements. The tape reader is an electrical-
mechanical device for the winding and reading the punched tape containing the program of
instructions. The signal output channels are connected to the servo motors and other controls in
machine tools. Most N.C. tools today are provided with positive feedback controls for this
purpose and are referred as closed loop systems. However there has been growth in the open
loop systems which do not make use of feedback signals to the controller unit.
Machine Tool:
The third basic component of an NC system is the machine tool or other controlled
process. It is part of the NC system which performs useful work. In the most common example
of an NC system, one designed to perform machining operations, the machine tool consists of the
worktable and spindle as well as the motors and controls necessary to drive them. It also
includes the cutting tools, work fixtures and other auxiliary equipment needed in machining
operation.
The NC Procedure
To utilize numerical control in manufacturing, the following steps must be accomplished.
l. 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 a route sheet. The route sheet is a listing of the sequence of
operations which must be performed on the work part. It is called a route sheet because it also
lists the machines through which the part must be routed in order to accomplish the
sequence of operations. We assume that some of the operations will be performed on one or
more NC machines.
2. Part programming. A part programmer plans the process for the portions of the job to be
accomplished by NC. Part programmers are knowledgeable about the machining process and
they have been trained to program for numerical control. They are responsible for planning the
sequence of machining steps to be performed by NC and to document these in a special format.
3. Tape preparation. A punched tape is prepared from the part programmers NC
process plan. In manual part programming, the punched tape is prepared directly from the part
program 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 punch device to prepare the tape for the specific
NC machine.
4. Tape verification. After the punched tape has been prepared, a method is usually provided for
checking the accuracy of the tape. Sometimes the tape is checked by running it through a
computer program which plots the various tool movements (or table movements) on paper. In
this way, major errors in the tape can be discovered. The "acid test" of the tape involves trying it
out on the machine tool to make the part. A foam or plastic material is sometimes used for
this tryout. Programming errors are not uncommon, and it may require about three
attempts before the tape is correct and ready to use.
5. Production. The final step in the NC procedure to use the NC tape in production. This
involves ordering the raw work parts specifying and preparing the tooling and any special
fixturing that may be required, and setting up The NC machine tool for the job.
The machine tool operator's function during production is to load the raw work part in the
machine and establish the starting position of the cutting tool relative to the workpiece. The NC
system then takes over and machines the part according to the instructions on tape. When the
part is completed, the operator removes it from the machine and loads the next part.
Types of NC Systems:
When classified according to the machine tool control system, there are three basic
types of NC systems:
1. Point to Point.
2. Straight cut.
3. Contouring.
The classification is concerned with the amount of control over the relative motion between the
work piece and cutting tool. The least control is exerted over the tool motion with the point to
point systems. Contouring represents the highest level of control.
Point-to-Point NC:
Point to point is also sometimes called a positioning system. In PTP the objective of the
machine tool control system is to move the cutting tool to predefined location. The speeder path
by which this movement is accomplished is not important in point to point NC. Once the tool
reaches the desired location, the machining operation is performed at that position. NC drill
presses are a good example of PTP systems. Positioning systems are the simplest machine tool
control systems and therefore the least expensive of the three types. However for certain
processes such as drilling operations and spot welding. PTP is perfectly suited to task and any
higher level of control is unnecessary.
Advantages of NC:
N/C proponents find numerically controlled equipment advantageous because of basic
economic reasons. The following illustration identifies a number of these reasons. They provide
sound justifications for the purchase of NC facilities for (1) instruction purposes, and, primarily,
(2) production purposes.
1. Greater operator safety:
The numerical control system is operated from a remote station which in itself is a built-
in safety factor. The operator's attention to the various functions of the machine tool are
drastically reduced or eliminated. The operator is exposed less frequently to moving machine
elements or to the cutting tools.
2. Greater operator efficiency:
Since a numerically controlled machine requires less attention, the operator can perform
other tasks while the machine is operating. In some cases, the operator may be in charge of two
or more machines.
3. Reduction of scrap:
It has been shown that through the consistent high accuracy of numerically controlled
machines and the elimination of most of the human errors, scrap can be reduced to a minimum.
Some companies have reduced the number of scrap parts produced on numerically controlled
machines, as compared to conventional machines, by as much as 50 to 60 percent.
4. Reduced lead time for production:
The set up and tape preparation time for numerically controlled machines is usually short.
Frequently very few jigs or fixtures are required. The jigs and fixtures which may be needed are
usually standard and are readily available from the tool room. The tape may be filed for future
production runs and requires very little storage space in the tool room.
5. Fewer chances for human error:
The numerical control machine operator is not asked to take trial cuts, make trial
measurements, or make positioning movements. All of these are included in the programmed
tape which controls the machine. The N/C system also relieves the operator of tool indexing,
selecting the sequence of operations and other routine functions.
6. Maximal accuracy and interchangeability of parts:
The improvement of the accuracy of the parts produced by numerical control is almost
automatic. More uniform quality is achieved because all parts are produced from the same tape,
under the same conditions, and accuracy is maintained within the limits of the tooling and the
machine tool. Consequently, interchanging of parts is possible.
7. Lower tooling costs:
Only simplified holding fixtures are usually required with numerically controlled
machines. Tool fixture design may be reduced by as much as 70 percent, thereby reducing the
work load on the drafting and tool departments, which would design and build any needed jigs
and fixtures.
8. Increased productivity:
Precise tape control of all machine functions enables parts to be produced faster, with less
setup and lead time than is possible with a hand operated machine.
9. Minimal spare parts inventory:
A large spare parts inventory is unnecessary. Additional quantities of spare parts may be
produced by withdrawing from storage. tapes used for the original quantity produced.
10. Greater machine tool safety:
The possibility of an operator error which could result in damage to the machine is
reduced in proportion to the greatly lowered need for human intervention.
11. Fewer man hours for inspection functions:
The production of uniform quality parts leads to reduced inspection time. Field
experience has shown that once the programmed numerical control tape has been tested, little
other checking is necessary within the expected tool life. Fewer parts in each job lot will need to
be inspected. Many parts will require inspection of critical hole size and dowel hole positions
only. In general, inspection time may be reduced by about one-half.
12. Greater machine utilization:
Numerical control requires less setup time for tooling, and production time may go as
high as 75 to 80 percent up time. Some companies have found it possible to use fewer machines
to complete the same amount of production.
Disadvantages of NC:
Along with the advantages of NC, there are several features about NC which must be considered
disadvantages:
1. Higher investment cost: Numerical control machine tools represent a more sophisticated
and complex technology. This technology costs more to buy than its non-NC counterpart. The
higher cost requires manufacturing managements to use these machines more aggressively than
ordinary equipment. High machine utilization is essential on order to get reasonable returns on
investment. Machine shops must operate their NC machines two or three sifts per day to achieve
this high machine utilization.
2. Higher maintenance cost: Because NC is a more complex technology and because NC
machines are used harder, the maintenance problem becomes more acute. Although the
reliability of NC systems has been improved over the years, maintenance costs for NC machines
will generally be higher than for conventional machine tools.
3. Finding and/or training NC personnel: Certain aspects of numerical control shop operations
require a higher skill level than conventional operations. Part programmers and NC
maintenance personnel are two skill areas where available personnel are in short supply. The
problems of finding, hiring, and training these people must be considered a disadvantage to the
NC shop.
Punched Tape in NC:
The part program is converted into a sequence of machine tool actions by means of the
input medium, which contains the program, and the controller unit, which interprets the input
medium. The controller unit and the input medium must be compatible. That is, the input
medium uses coded symbols which represent the art program, and the controller unit must be
capable of reading those symbols be most common input medium is punched tape. The tape has
been standardized, on that type punchers are manufactured to prepare the NC tapes, and tape
readers part of the controller unit) can be manufactured to read the tapes. The punched tape used
for NC is l inch wide. It is standardized as shown in Figure by the Electronics Industries
Association (EIA), which has been responsible for many of the important standards in the NC
industry.
There are two basic methods of preparing the punched tape. The first method associated
with manual part programming and involves the use of a typewriter like device. Figure
illustrates a modern version of this kind of equipment. The operator types directly from the part
programmer’s handwritten list of coded instructions. This produces a typed copy of the program
as well as the punched type. The second method is used with computer-assisted part
programming. By this approach, the tape is prepared directly by the computer using a device
called a tape punch.
By either method of preparation, the punched tape is ready for use. During production on
a conventional NC machine, the tape is fed through the tape reader once for each workpiece. It is
advanced through the tape reader one instruction at a time. While the machine tool is performing
one instruction, the next instruction is being read into the controller unit's data buffer. This
makes the operation of the NC system more efficient. After the last instruction has been read into
the controller, the tape is rewound back to the start of the program to be ready for the next work
part.
The first step in preparing the part program is to define the axis coordinates in relation to the
work part. We assume that the outline of the part has already been machined before the drilling
operation. Therefore, the operator can use one of the comers of the part as the target point. Let
us define the lower left-hand comer as the target point and the origin of our axis system. The
coordinates are shown in figure for the example part. The x and y locations of each hole can be
seen in the figure. The completed manuscript would appear as in Figure. The first line shows the
x and y coordinates at the zero point. The machine operator would insert the tape and read this
first block into the system. (A block of instruction corresponds generally to one line on the
manuscript form.) The tool would then be positioned over the target point on the machine table.
The operator would then press the zero buttons to set the machine.
Fig. 3.7: Coordinate system defined for PART IN example
The next line on the manuscript is RWS, which stands for rewind-stop. This signal is
coded into the tape as holes in columns l, 2, and 4. The symbol stops the tape after it has been
rewound. The last line on the tape contains the M30-word, causing the tape to be rewound at the
end of the machining cycle. Other M-words used in the program are M06, which stops the
machine for an operator tool change, and Ml3, which turns on the spindle and coolant. Note in
the last line that the tool has been repositioned away from the work area to allow for changing
the workpiece.
Fig. 3.8: Part program manuscript for Example.
Computer Assisted Part Programming:
In computer-assisted part programming, much of the tedious computational work is
transferred to the computer. For complex work part geometries or jobs with many machining
steps, use of computer results in significant savings in part programming time. The part
programmers work consists of typically two tasks. First he must define the configuration of the
work part in terms of basic geometric elements, like lines, points, planes, circles, and so on.
Second he must direct the cutting tool to perform the machining steps along these geometric
elements: drill the holes, mill the surfaces flat. The part programmer accomplishes these tasks by
using special programming language. The computer then interprets the program and performs the
various calculations necessary to prepare the punched tape for the punched tape for NC machine
tool.
After the punched tape has been prepared a method is usually provided for checking the
accuracy of the tape. Sometimes the tape is checked by running through a computer program
which plots the various tool movements (or table movements) on paper. In this way major errors
in the tape may be discovered. The acid test of the tape involves trying it out on the machine
tool to make the part programming errors are not uncommon, and it may require about three
attempts before the tape is correct and ready to use.
The final step in the NC procedure is to use the NC tape in the production. This involves
ordering the raw work parts, specifying and preparing the tooling and any special fixturing that
may be required and setting up the NC machine tool for the job. The machine tool operator
function during production is to load the raw work part in the machine and establish the starting
position of the cutting tool with respect to the work piece. The NC machine then takes over and
controls the rest of the operation. When the operation is complete the operator removes that part
from the machine and loads new part.
It is customary when manufacturing a batch of parts for the quality control inspector to
thoroughly check the first part for conformance to the engineering drawing. After the accuracy of
this initial part has been verified, production of the remaining parts is been completed with
relative assurance that the first part will be duplicated in the subsequent cycles.
Most parts machined on NC systems are considerably more complex. In the more
complicated point-to-point jobs and in contouring applications, manual part programming
becomes an extremely tedious task and subject to error. In these instances it is much more
appropriate to employ the high-speed digital computer to assist in the part programming process.
Many part programming language systems have been developed to automatically perform most
of the calculations which the programmer would otherwise be forced to do. This saves time and
results in a more accurate and more efficient part program. The part programmer’s job the
difference in the part programmer’s job between manual programming and computer-assisted
programming is this. With manual programming, a manuscript is used which is formatted so that
the NC tape can be typed directly from it. With computer-assisted part programming, the
machining instructions are written in English-like statements of the NC programming language,
which are then processed by the computer to prepare the tape. The computer automatically
punches the tape in the proper tape format for the particular NC machine.
When utilizing one of the NC programming languages, part programming can be
summarized as consisting basically of two tasks:
1. Defining the geometry of the work part.
2. Specifying the tool path and/or operation sequence.
Let us now consider these two tasks in computer-assisted part programming. Our frame of
reference will be for a contouring application, but the concepts apply for a positioning
application as well.
Work Part Geometry Definition: No matter how complicated the work part may appear, it is
composed of basic geometric elements. Using a relatively simple work part to illustrate, consider
the component as shown in figure. Although somewhat irregular in overall appearance, the
outline of the part consists of intersecting straight lines and a partial circle. The holes in the part
can be expressed in terms of the center location and radius of the hole. Nearly any component
that can be conceived by a designer can be described by points, straight lines, planes, circles,
cylinders, and other mathematically defined surfaces. It is the part programmer’s task to
enumerate the component elements out of which the work part is formed. Each geometric
element must be identified and the dimensions and location of the element explicitly defined.
Fig.3.9: Sample part to illustrate how it is composed of basic geometric elements such as points,
lines and circles
Using the APT programming language as an example, the following statement might be used to
define a point:
P1 – POINT/6.0, 1.125,0.
The point is identified by the symbol P1 and is located at x = 6.0, y = 1.125, and z = 0.
Similarly, a circle in the x–y plane might be defined by the APT statement:
C1 = CIRCLE/CENTER, P1, RADIUS, 1.12
The center of circle C1 is Pi (previously defined) and the radius is 1.125.
The various geometric elements in the drawing of shown figure would be identified in a similar
fashion by the part programmer.
Tool Path Construction: After defining the work part geometry, the programmer must next
construct the path that the cutter will follow to machine the part. This tool path specification
involves a detailed step-by-step sequence of cutter moves. The moves are made along the
geometry elements which have previously been defined.
To illustrate, using figure and the APT language, the following statement could be used
to command the tool to make a left turn from line L2 onto line L3:
GOLFT/L3, PAST, L1
This assumes the tool was previously located at the intersection of lines L2 and L3 and had
just finished a cut along L2. The statement directs the tool to cut along L3 until it just passes line
L1. By using statements similar to the above, the tool can be directed to machine along the work
part surfaces, to go to point locations, to drill holes at those point locations, and so on. In
addition to geometry definition and tool path specification, the part programmer also provides
other commands to the NC system.
The computer’s job in computer-assisted part programming consists of the following steps:
1. Input translation
2. Arithmetic calculations
3. Cutter offset computation
4. Post processor
The sequence of these steps and their relationships to the part programmer and the machine
tool are illustrated in following figure:
1. Input Translation:
The part programmer enters the program using the APT or other language. The input
translation component converts the coded instructions contained in the program into computer-
usable form, preparatory to further processing.
2. Arithmetic Calculations:
The arithmetic calculations unit of the system consists of a comprehensive set of
subroutines for solving the mathematics required to generate the part surface. These subroutines
are called by the various part programming language statements. The arithmetic unit is really the
fundamental element in the part programming package. This unit frees the programmer from the
time-consuming geometry and trigonometry calculations to concentrate on the work part
processing.
3. Cutter Offset Computation:
When we described the second task of the part programmer as that of constructing the
tool path, we ignored one basic factor the size of the cutting tool. The actual tool path is
different from the part outline. I is because the tool path is the path taken by the center of
the cutter. It is at the periphery of the cutter that machining takes place.
The purpose of the cutter offset computation is to offset the tool path from the desired
part surface by the radius of the cutter. This means that the part programmer can define the exact
part outline in his geometry statements. Thanks to the cutter offset calculation provided by the
programming system, he need not concern himself with this task.
Geometry statements:
The points, lines, and surfaces must be defined in the program prior to specifying the
motion statements.
The general form of an APT geometry statement is the following:
Symbol = Geometry Type/descriptive data as an example;
Points:
Specification of a point can be accomplished by the following:
1) Designating its x-, y-, and z-coordinates;
P1 = POINT/15.0, 10.0, 25.0
2) As the intersection of two intersecting lines;
P2 = POINT/INTOF, L1, L2
L1 and L2 are two previously defined lines.
Lines:
A line in APT is considered to be of infinite length in both directions. Specification of a
line can be accomplished by the following:
1) Two points through which it passes;
L1 = LINE/P3, P4
P3 and P4 are two previously defined points.
2) Passes through point (P5) and parallel to another line (L3) that has been previously
defined;
L2 = LINE/P5, PARLEL, L3
Planes:
In APT, a plane extends indefinitely. A plane can be defined by the following:
1) Three points through which it passes;
PL1 = PLANE/P1, P2, P3
P1, P2 and P3 must be non-collinear.
2) Passes through point (P2) and parallel to another plane (PL1) that has been previously
defined;
PL2 = PLANE/P2, PARLEL, PL1
Circles:
In APT, a circle is considered to be a cylindrical surface that is perpendicular to the x-y plane
and extends to infinity in the z-direction. A circle can be defined by the following:
1) Its center and radius;
C1 = CIRCLE/CENTER, P1, RADIUS, 25.0
2) Three points through which it passes;
C2 = CIRCLE/P4, P5, P6
The three points must not be collinear.
Motion Commands:
All APT motion statements follow a common format, just as geometry statements have
their own format. The general form of an APT motion command is:
MOTION COMMAND/descriptive data
As an example;
GOTO/P1
- At the beginning of the sequence of motion statements, the tool must be given a starting
point. This is likely to be the target point, the location where the operator has positioned the tool
at the start of the job. The part programmer keys into this starting position with the following
statement:
FROM/PTARG
Where, FROM is an APT vocabulary word indicating that this is the initial point from
which all others will be referenced; and PTARG is the symbol assigned to the starting point.
Another way to make this statement is the following:
FROM/-20.0, -20.0, 0
- The FROM statement occurs only at the start of the motion sequence.
Point-to-point motions:
There are two commands; GOTO and GODLTA.
* The GOTO statement instructs the tool to go to a particular point location specified in the
descriptive data. Two examples are:
GOTO/P2
GOTO/25.0, 40.0, 0
* The GODLTA command specifies an incremental move for the tool. To illustrate, the
following statement instruct the tool to move from its present position by a distance of 50 mm in
x-direction, 120 mm in y-direction, and 40 mm in z-direction;
GODLTA/50.0, 120.0, 40.0
* The GODLTA statement is useful in drilling and related machining operations. The tool can be
directed to go to a given hole location; then the GODLTA command can be used to drill the hole,
as in the following sequence;
GOTO/P2
GODLTA/0, 0, -50.0
GODLTA/0, 0, 50.0
Contouring Motions:
These are more complicated than PTP commands are because the tool’s position
must be continuously controlled throughout the move.
• The tool is directed along two intersecting surfaces until it reaches a third surface, as
shown in the following Figure.
1. Drive surface: this is the surface that guides the side of the cutter. It is pictured as a
plane in our Figure.
2. Part surface: this is the surface, again pictured as a plane, on which the bottom or nose
of the tool is guided.
3. Check surface: this is the surface that stops the forward motion of the tool in the
execution of the current command. One might say that this surface “checks” the advance
of the tool.
CNC Systems
CNC Machining is a process used in the manufacturing sector that involves the use of
computers to control machine tools. Tools that can be controlled in this manner include lathes,
mills, routers and grinders. The CNC in CNC Machining stands for Computer Numerical
Control.
Computer Numerical Control (CNC) is one in which the functions and motions of a machine
tool are controlled by means of a prepared program containing coded alphanumeric data.
Major components of CNC:
DNC Systems
DNC is a manufacturing system in which a number of machines are controlled by a computer
through direct- connection and in real time.
Also, defined by EIA as: DNC is a system connecting a set of NC machines to a common
memory for part program or machine program storage with provision for on- demand
distribution of data to machines.
The tape reader is omitted.
Involves data connection and processing from the machine tool back to the computer.
Components of DNC:
1. Central computer
2. Bulk memory which stores the NC part programs.
3. Telecommunication lines
4. Machine Tools
Fig.3.15: Components of DNC System
Functions of DNC:
The functions which a DNC system is designed to perform:
1. NC without punched tape.
2. NC part program storage.
3. Data collection, processing, and reporting.
4. Communication.
NC without punched tape:
Objective in DNC is to eliminate the use of punched tape. All the costs and
inconveniences involved with the tape preparation are eliminated by DND approach.
NC Part Program Storage:
The program storage subsystem must be structured to satisfy several purposes:
1. The program must be made available for downloading to the NC machine tools.
2. The subsystem must allow for new programs to be entered, old programs to be
deleted and existing programs to be edited.
3. The storage subsystem must be structures to perform certain data processing and
management functions, such as file security, displays of programs, and manipulation
of data.
Data collection, processing, and reporting:
1. The purpose of this function is to “monitor” production of the factory.
2. The data concerned are: Tool usage, machine utilization, production piece counts.
3. These data must be processed by the DNC computer, and reports are prepared to provide
management with information necessary for running the plant.
Communication:
1. A “Communication Network” is required to accomplish the previous functions of DNC.
2. The essential communication links in DNC re between the following components of the
system.
Central computer and machine tools
Central computer and NC part programmer terminal
Central computer and bulk memory
Advantages of DNC System:
• Elimination of punched tapes and tape readers
• Convenient storage of NC part programs in computer files
• Greater computational capability and flexibility
• Reporting of shop performance.
• Convenient editing and diagnostic features.
S.No. NC Machine Tool System CNC Machine Tool System DNC Machine Tool System
The part program is fed to the In CNC machine tool system, the The part program is fed to the
machine through the tapes or program is fed to the machine machine through the Main
1. other such media. through the computer. computer.
In order to modify the In order to modify the
program, the tapes have to be The programs can be easily program, single computer is
2. changed. modified with the help of computer. used.
The microprocessor or
In NC machine tool system, minicomputer forms the machine Large memory of DNC allows
tape reader is a part of machine control unit. The CNC machine does it to store a large amount of
3. control unit. not need tape reader. part program.
System has no memory storage Same part program can be run
and each time it is run using It has memory storage ability, in on different machines at the
4. the tape. which part program can be stored. same time.
System can import CAD files and
The data can be processed
5. It cannot import CAD files. convert it to part program.
using the MIS software so as
The system can use feedback
to effectively carry out the
6. It cannot use feedback system. system.
Production planning and
7. They are not software driven. The system is software driven. scheduling.
Table3.2: Comparison between NC, CNC and DNC Machine Tools.
1. Identification of Function:
2. Decision Function
3. Modification Function:
Classification of AC systems:
1. ACO System:
2. ACC system: