Professional Documents
Culture Documents
CNC Part
Programming
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
Topics Covered
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
Introduction
• It is very useful to prepare a program sheet with the help of a drawing sheet.
• Standardized format is used to feed all the data into the numerical control system.
• Programming is where all the machining data is compiled and where the data is
translated into a language which can be understood by the control system of the
machine tool.
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
• In order to prepare part programming, the programmer decides the order of the
machining operations required to produce a component.
• The total steps involved in the development of a part program are listed below:
Choose tools
Determine machining
parameters
Make job and tool set-
up plans
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
The total steps involved in the development of a part program are shown in the below
flow chart:
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
The total steps involved in the development of a part program are shown in the below
flow diagram: Process Planning
Part Programming
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
Process Planning
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
Process Planning
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
• The machine tool may be selected according to the type of work and the
operations to be performed.
• The machine tools are broadly grouped into:
1. Positional(point-to-point)
2. Paraxial(Straight line)
3. Continuous path
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
All the CNC machine tools rely on the axes system for defining the axes
motion.
The number of axes in the machine tool are specified under the heading 'P', 'C'
or 'L'.
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
2C, Continuous path control in two axes and line control for velocity and
L position in the third axis.
Continuous path control in four axes and line control along one axis.
Example: A milling machine having continuous path control in x- and y-
3C
axes and in two rotatory displacements of the table and linear control of
the spindle in the z-axis.
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
• Selecting a cutting tool is a very important function, because many cuttings are
possible for a given operation.
• It is very important to select the right tool for the job based on the economy of
manufacturing.
• If accurate components are to be produced, then the machine control unit must be
able to compensate for the variations in cutter size.
• Compensation for the variation of the cutter diameter is manually registered on the
machine console dials by the operator.
• If it is necessary to modify the cutter path by the amount registered on the console,
then the provision is made at the program stage for the machine control unit. This is
called tool diameter compensation.
• When a cutter is either too long or short, the cutter path can be modified by dialing
the error and its direction(+ or -) on the console.
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
• The appropriate process parameters have to be selected for a given cutting tool
and the operation selected to ensure that each cutting tool achieves the
maximum metal removal rate in roughing operations and the maximum
machined surface coverage in finishing operations.
• This can be done by increasing:
1.Cutting speed
2.Feed rate
3.Depth of cut
• The machine tool must be designed with sufficient power for driving the spindle
and feed mechanisms.
• The spindle speeds are suitable for the use of cutting tools employing cemented
carbide, or other hard tool materials.
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
Two or more components can be set up side-by-side on the surface of the table
as shown in the figure, when the component and its locating fixture are small in
relation to the size of the machine table.
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
• If the machine table can accommodate only one component, the machine
tools are designed with twin tables.
• One table is used for the component being machined, while the other table is
clear of the spindle and the machining area and on this table the operator sets
the unmachined component.
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
Part Programming
The part programmer is responsible for planning the sequence of machining steps
to be performed by CNC and to document in a special format.
There are two ways to program for CNC: These are:
1. Manual part programming
2. Computer-aided part programming
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
• In this step, the part program is tested before it is loaded on the machine control
• A trial run can be carried out with or without the tool or work piece to enable
visualization of movements taking place and of any collision possible between the
• Graphical simulation is also possible on the computer. It can be carried out at a fast
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
• It is necessary for each NC block to be of the same length and to contain the
same number of characters.
• This restriction enables the block to be divided into sub-strings corresponding to
each of the data types.
• Since the block length is invariant, all values must appear.
Example: Even if feed and speed are the same for ten blocks of NC data, ‘f’ and
‘s’ must be coded in each block.
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
• The change code follows the blocks and the block and sequence number
indicates which values are to be changed relative to the preceding blocks.
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
• This uses a special symbol called the tab, to separate data values within a
brock.
• Two or more tabs following one another indicate that the data, which would
normally occupy null locations, is redundant and has been omitted.
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
Today several part programming languages are used. Few of them are:
4. UNIAPT
5. PROMPT
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
• APT is not only an NC language but also a computer program that performs the
calculations to generate cutter positions based on APT statements.
• There are four types of statements in the APT language, they are:
1. Geometry statements
2. Motion statements
3. Post-processor statements
4. Auxiliary statements
The APT language consists of different types of statements composed by:
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
Geometry Statements
These are used to define the geometric elements that comprises of work part.
Geometry Statements
Point:
It has three coordinates, the x, y and, z-axes. The point is specified in the
following ways:
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
Geometry Statements
Point:
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
Geometry Statements
Line:
• Lines are considered to be of infinite length and do not have a direction. The
following are the methods of definition:
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
Geometry Statements
Line:
3. By a point, tangent to a circle:
L1= LINE/P1, LEFT TANTO, C1
L2= LINE/P1, RIGHT TANTO, C1
The words LEFT and RIGHT are used by looking from the point toward the circle.
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
Geometry Statements
Line:
4. By a point and the angle of the line to the x-axis or another line:
L3= LINE/P1, LEFT, ATANGL, 20
L4= LINE/P1, LEFT, ATANGL, 30, L3
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
Geometry Statements
Line:
5. By a point and being parallel to or perpendicular to another line:
L5= LINE/P2, PARLEL, L3
L6= LINE/P2, PERPTOL, L3
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
Geometry Statements
Line:
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
Motion Statements
These are used to describe the path taken by the cutting tool.
Example: GOTO/P4
GODLTA/1.0, 3.0, 0.0
Set-up commands
Motion Commands
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
Post-Processor Commands
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
Post-Processor Commands
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
Auxiliary Commands
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.
CNC Part Programming
Quiz
Test your Knowledge
©©Globarena
GlobarenaTechnologies
TechnologiesPvt.
Pvt.Ltd.
Ltd.All
Allrights
rightsreserved.
reserved.