Ch_8 Part Programming
Ch_8 Part Programming
CHAPTER 8
1. TYPES OF PART PROGRAMMING
• The part program is a sequence of instructions, which
describe the work, which has to be done on a part, in the
form required by a computer under the control of a
numerical control computer program.
• All data is fed into the numerical control system using a
standardized format
• Programming is where all the machining data are compiled
and where the data are translated into a language which can
be understood by the control system of the machine tool .
• The machining data is as follows :
(a) Machining sequence classification of process, tool start up
point, cutting depth, tool path, etc.
(b) Cutting conditions, spindle speed, feed rate, coolant, etc.
(c) Selection of cutting tools.
• While preparing a part program, need to perform the
following steps :
(a) Determine the startup procedure, which includes the
extraction of dimensional data from part drawings and
data regarding surface quality requirements on the
machined component.
(b) Select the tool and determine the tool offset.
(c) Set up the zero position for the work piece.
(d) Select the speed and rotation of the spindle.
(e) Set up the tool motions according to the profile
required.
(f) Return the cutting tool to the reference point after
completion of work.
(g) End the program by stopping the spindle and coolant
1. Manual Part Programming
This type of programming is carried out for simple
machining parts produced on point-to-point machine
tool.
To be able to create a part program manually, need the
following information :
(a) Knowledge about various manufacturing processes
and machines.
(b) Sequence of operations to be performed for a given
component.
(c) Knowledge of the selection of cutting parameters.
(d) Editing the part program according to the design
changes.
(e) Knowledge about the codes and functions used in
part programs.
2. Computer Aided Part Programming
• If the complex-shaped component requires calculations
to produce the component are done by the programming
software contained in the computer.
• The programmer communicates with this system
through the system language, which is based on words
• There are various programming languages developed in
the recent past, such as APT (Automatically
Programmed Tools), ADAPT, AUTOSPOT, COMPAT-
II, 2CL, ROMANCE, SPLIT is used for writing a
computer programme, which has English like
statements.
• A translator known as compiler program is used to
translate it in a form acceptable to MCU.
The programmer has to do only following things :
(a) Define the work part geometry.
(b) Defining the repetition work.
(c) Specifying the operation sequence
• The part programmer can create the geometrical
model in the CAM package or directly extract
the geometrical model from the CAD/CAM
database. Built in tool motion commands can
assist the part programmer to calculate the tool
paths automatically.
• The programmer can verify the tool paths through
the graphic display using the animation function
of the CAM system. It greatly enhances the speed
and accuracy in tool path generation
2. FUNDAMENTAL ELEMENTS FOR
DEVELOPING MANUAL PART PROGRAMME
• Tool compensation
The compensation vector determines the
position of the tool nose
Sequence of Words within an NC Block
• Each NC program
comprises a number
of so-called blocks,
which contain the
commands to be
executed.
• These blocks are
consecutively
numbered; each block
number consisting of
the letter "N" plus a
(e.g. three-digit)
numeral. Block
numbers appear at
the beginning of each
program line.
Modal Commands and Non-modal Commands
• Modal commands are self-retentive, i.e. they will take effect in
consecutive NC blocks, until they are deleted or overwritten
by a command at the same address. Non-modal commands
instead are "block-oriented", they will be active only in the
block in which they are programmed.
Clockwise Circular Interpolation G02
• G02 [X...] [Z...] [I...] [K...] [F...] [S...] [T...] [M...]
• When absolute dimensions are programmed
(G91), X relates to the workpiece diameter. When
incremental dimensions are programmed (G91),
X relates to the workpiece radius.
• Z Z-Coordinate of the target point
• I Circle Centre Incremental (distance between
the starting position and the circle centre in the
direction X, relative to the radius).
• K Circle Centre Incremental (distance between
the starting position and the circle centre in the
direction Z)
Circular Interpolation Counter-
Clockwise G03
• The CNC lathe operation such as simple facing,
turning, taper turning, thread, boring, parting off etc.
The X-axis and Z-axis are taken as the direction of
transverse motion of the tool post and the axis of the
spindle respectively. To prepare part programs using
G-codes and M-codes.
• % 1000; (Main program)
• N01 G54 G90 G71 G94 M03 S800; (Parameters Setting)
• N05 G01 X-12.5 Z0 F2; (Facing the job)
• N10 G00 Z1; (Retrieval of tool)
• N15 G00 X00; (Tool clearance)
• N20 G01 Z-100; (Starting cut)
• N25 G00 X1 Z1; (Clearance position)
• N30 G00 X-2; (Position of cut)
• N35 G01 Z-60; (Cutting length)
• N40 G00 X-1 Z1; (Retrieval of tool)
• N45 G00 X-3; (Position of cut)
• N50 G01 Z-60; (Cutting length)
• N55 G00 X-2 Z1; (Retrieval of tool)
• N60 G00 X-4; (Position of cut)
• N65 G01 Z-60; (Cutting length)
• N70 G00 X-3 Z1; (Retrieval of tool)
• N75 G00 X-4.5; (Position of cut)
• N80 G01 Z-60; (Cutting length)
• N85 G00 X5 Z5; (Final position of tool)
• N90 M02; (End of program)
• % 2000; (Main programm)
• N01 G54 G91 G71 G94 M03 S800; (Parameters Setting)
• N05 G01 X-15 Z0 F2; (Facing the job)
• N10 G00 Z1; (Tool clearance)
• N15 G00 X10; (Tool clearance from the centre)
• N20 G01 Z-36; (Turning operation)
• N25 G01 X5 –Z30; (Taper turning operation)
• N30 G00 X1 Z66; (Final position of tool)
• N35 M02; (End of programm
• % 2000; (Main program)
• N01 G91 G71 G94 M03 S800; (Parameters Setting)
• N05 G01 X-5 Z0 F1; (Facing the job)
• N10 G02 X5 Z-5 I0 K5; (Circular Interpolation)
• N15 G00 X6 Z6; (Final position of tool)
• N20 M02; (End of program).
PART PROGRAM FOR MACHINING
CENTRES