CHAPTER 8manual Part Programming
CHAPTER 8manual Part Programming
• Principles of an NC Program
• Part Program is a set of instruction which
instruct the machine tool about the
processing step to be performed for the
manufacture of a part.
• Types of control Information.
1)Information on desired work-tool relationship:
This is also called dimensional information. This
includes input such as position (a series of
coordinates for all the axes X,Y,Z, direction of
movement (positive /negative) and amount of
movement (magnitude).
• Information on rate of change of work-tool
relationship:
This information is also referred as non-
dimensional information which includes
cutting parameters such as speed and feed.
• Information on auxiliary or miscellanies
functions:
• This is also called management information
which is also non-dimensional information. In
eludes information such as mode of operation,
selection of units (metric/inch), work-tool
loading unloading, use of coolant on/off, tool
selection, spindle rotation CW/CCW etc
Word Address Format (WAF)
• Word address format is the method generally
used today for the numerical control
• The machine control unit (MCU) recognize a
word by its address rather than by its position
in a particular sequence, therefore words
need not be programmed in a particular order,
• X indicates x coordinate,S indicatets spindle
Speed etc.
• The various advantages of this format are
a. The sequence is not necessary since all
information is labelled by an alphabet.
b. Repetition is not necessary; controller takes the
information from the previous blocks.
c. Eliminates the chances of any error and also
shorten the program length to a large extent.
d. Thus it saves a lot of valuable time in preparing,
editing and debugging the program.
Types of part programming
• Manual Part programming.
• Computer Assisted part programming.
Word Address 1
N – Sequence or line number
A tag that identifies the beginning of a block of code. It
is used by operators to locate specific lines of a
program when entering data or verifying the program
operation.
G – Preparatory function
G words specify the mode in which the milling
machine is to move along its programmed axes.
Reserved Code Words Worksheet
N – Sequence or line number
G – Preparatory function
Dimension Words:
X–
Y–
Z–
Word Address 2
Dimension Words
X – Distance or position in X direction
Y – Distance or position in Y direction
Z – Distance or position in Z direction
M – Miscellaneous functions
M words specify CNC machine functions not related to
dimensions or axial movements.
Word Address 3
F – Feed rate (inches per minute or millimeters per
minute)
Rate at which cutting tool moves along an axis.
T – Tool number
Specifies tool to be selected.
Word Address 4
I – Circular cutting reference for x axis
G17 – XY plane
G18 – XZ plane
G19 – YZ plane
G20 – Inch Mode
G21 – Metric Mode
G28 – Return to axis machine Zero (Home)
G Codes: G90, G91
G90 – Absolute Coordinate Reference
References the next position from an absolute zero
point which is set once for the entire program.
G91 – Incremental Coordinate Reference
References the next position from the previous
position.
G 95 Per Revolution Feed rate
G 94 Feed Rate mm/min
G 93 RPM Range
G Codes: Canned Cycles
G80 – Cancel canned cycle
G81 – Drilling cycle
G83 – Peck drilling cycle
G84 – Tapping cycle
G85 – Boring cycle
Two methods:
• Linear interpolation – cut a path along a specified
angle at a specified feed rate.
• Circular interpolation – cut a path along an arc or
circle at a specified feed rate.
Write a manual part programming for the above
component.Assume the speed and feed as 400r.p.m and 0.35
mm/rev resp.Assume 1 mm material is to be removed radially from
external diameter
• V = πDN/1000 m/min.
• where D is diameter of tool in mm, N- RPM of
spindle (tool), v- Cutting speed in m/min.
• Assume V=30 / min,
• Feed is given by,
• Fr = ft.T.N
• Where, fr = feed in mm/ min, ft = feed in mm/tooth,
T = number of teeth, N =RPM of cutter.
Canned Cycle
• Canned Cycles for Lathe, Milling and Drilling:
• Canned cycles are also called as fixed cycles. They are
predefined sequence of movements stored in memory of
machine control unit. These sequences are usually repetitive
until cancelled. In actual practice, there are various
situations in which we find that the series of motions are
repeated. For example while drilling a hole following
sequence of operations are involved.
• a. The tool has to position a little above the work-piece in
rapid position
• b. Move to the required depth with a given feed rate.
• c. After drilling retract the tool rapidly at the top of the hole.
• Thus for drilling a hole we require three NC blocks
to perform above three steps , this overhead can
be reduced by using canned cycle by using only
single NC block. Therefore if we are intended to
drill 10 holes, then instead of 30 NC blocks (3 x 10),
we need only 10 NC blocks using canned cycles,
which save lot of time, as well as programming
efforts. Canned cycles are initiated by the using
various G codes which are listed below.
• G80: Cancel Canned Cycles- N_ G80 ( Modal)
• This command cancels all previous canned cycles
and are modal. Canned cycles includes tapping,
boring, drilling, spot facing. When creating
programming canned cycles, it is good idea to
include a G80 command in the program setup at
the beginning as well as after the canned cycle is
completed, lamps, coolant hose etc.
• 2. G81 Drilling Cycle
• This command calls a drill cycle at specified locations. This
cycle provides a feed in, rapid out sequence suitable for
drilling a series of holes of the same diameter and depth.
F 25
Raw Material
70
F 22.5
F 17.5
Finished Part
20
30
APT Programming Example (Cylindrical Part)
O0013
N0005 G53
N0010 T0303
N0020 G57 G00 X26.00 Z0.0 S500 M04
N0030 G01 X-0.20 F100
N0040 G00 Z2.0
N0050 X50.0 Z50.0
N0060 T0404
N0070 G57 G00 X22.50 Z2.0 S500
N0080 G01 Z-30.0 F100
N0090 G00 X23.0 Z2.0 S500
N0100 G84 X17.5 Z-20.0 D0=200 D2=200 D3=650
N0110 G00 Z2.0
N0120 X50.0 Z50.0
N0130 M30
APT Program Interpretation
O0013
Program identification number
APT Program Interpretation
O0013
N0005 G53
To cancel any previous working zero point
APT Program Interpretation
O0013
N0005 G53
N0010 T0303
x
+ve
z
(0,0) +ve
APT Program Interpretation
O0013
N0005 G53
N0010 T0404
N0020 G57 G00 X26.00 Z0.0 S500 M04
N0030 G01 X-0.20 F100
Origin (0,0)
Download Worksheet
D( , ) I( , ) J( , )
B( , ) K( , )
L( , )
E( , )
A( , )
F( , )
C( , )
H( , ) G( , )
Origin (0,0)
Pause Lesson
Example 1: Program NC
N01 G90 G80 T00
N02 G00 X0 Y3.000 Z1.000
N03 M03 S1000