Chapter 5 P1
Chapter 5 P1
NC PART
PROGRAMMING
Chapter Five
Numerical Control (NC) refers to the method of The numerical data required to produce a part is
controlling the manufacturing operation by means called a part program.
of directly inserted coded numerical instructions Cutting speed, feed rate, and auxiliary functions such
into the machine tool. as coolant on / off and spindle direction are also
It can also defined as the use of coded numerical specified in the part program to meet the required
information in the automatic control of equipment's surface finishes and tolerance.
positioning.
P2 N… …
Chapter Five
ii. Absolute positioning program
Consists of any programmed points linked together The development of MCU capable of circular
by straight lines, whether the points are close interpolation has greatly simplified the process of
together or far apart. programming arcs and circles.
Curves can be produced with linear interpolation by To program an arc the MCU require the coordinate
breaking them in to short, straight line segment. position of the circle center, the radius of the
circle, the start point and end point of the arc
being cut and the direction in which the arc is to be
cut.
Chapter Five
G01, Linear Interpolation G90:
N030 G00 X39 Z2
N040 G01 X39 Z0
N050 G90
N060 G01 X48 Z-37
G91:
N030 G00 X39 Z2
N040 G01 X39 Z0
N050 G91
N060 G01 X4.5 Z-37
Chapter Five
G02 and G03 Circular Interpolation
The first thing that needs to be defined in order to On a machine where a work piece is rotating, as a
describe both geometry and motion is a coordinate lathe machine, the Z axis is parallel to the spindle
system on which point locations can be specified. and a motion along its positive direction moves the
On a work piece rotating machine, the X axis is in The Y axis is determined from the X and Z axis such
the direction of tool movement. that, the XYZ coordinate system forms a right hand
coordinate system.
The motion along its positive direction moves the
tool away from the workpiece.
Chapter Five
Part Program i. Sequence number (N code: 1 to 9999) used to
A block is equivalent to a line of words in a part identify each block in a part program and provides
a way to locate commands rapidly.
program, and each block is composed of several
commands that are equivalent to the words in each ii. Preparatory command (G code) prepare the MCU
line. for a given operation, typically involving cutter
vii. Miscellaneous commands (M code) used to Each word in a block is preceded by a letter that
designate a particular mode of operation, typically identifies the word type, and the letter is followed by
coolant supply and spindle on or off. a number that specifies its content.
Thank You