1.1 Computer-Aided Manufacturing: Department of Mechanical Engineering, R.V.R. & J.C.College of Engineering, Guntur-19
1.1 Computer-Aided Manufacturing: Department of Mechanical Engineering, R.V.R. & J.C.College of Engineering, Guntur-19
1.1 Computer-Aided Manufacturing: Department of Mechanical Engineering, R.V.R. & J.C.College of Engineering, Guntur-19
INTRODUCTION
CNC Technology
Numerical Control (NC) is a software-based machine tool control technique
developed at Massachusetts Institute of Technology (MIT) in early 1960s. It has now
evolved into a mature technology known as Computer Numerical Control (CNC).
Although major applications of CNC even today continue to be in machining, it finds
applications in other processes such as sheet metal working, non-traditional machining
and inspection. Robots and Rapid Prototyping machines are also CNC controlled. In
fact, any process that can be visualized as a sequence of motions and switching
functions can be controlled by CNC. These motions and switching functions are input in
the form of alphanumeric instructions. CNC is the basis of flexible automation which
helps industries cut down time-to-market and enables launch of even low volume
products. Unlimited muscle power, unmanned operation, independent axes coordinated
through software, simplified generic tooling even for the most complex jobs and
accurate construction are some of the salient features of CNC.
CNC Machining
Automats and Special Purpose Machines (SPMs) require special cams/ templates
and clutch settings for each part. Manufacture of these cams/ templates is costly and
slow. Furthermore, changing over from one part to the other on these machines also
consumes considerable time. The high cost and long time of these hard automated
machines to produce parts can be justified only in mass production. With the advent of
Advantages of CNC
Flexibility
Accuracy
Speed
Complicated shapes can be produced
Simplified fixturing and generic cutting tools
Low lead time for production
Storage of machining skill in CNC programs
Less skilled operators will do
Less fatigue to the operators
Limitations of CNC
Initial cost is high
Maintenance of CNC machines requires a high order of skill and trained
personnel
Higher initial maintenance cost and support cost
Part program: The part program is a detailed set of commands to be followed by the
machine tool. Each command specifies a position in the cartesian coordinate system
(x,y,z) or motion (workpiece travel or cutting tool travel), machining parameters and
on/off function. Part programmers should be well versed with machine tools, machining
processes, effects of process variables and limitations of CNC controls. The part
program is written manually or by using computer assisted language such as APT
(Automated Programming Tool).
Controller Unit: The second major component of the CNC system is the Machine
controller unit(MCU). The MCU has to read and decode the part program, to provide the
decoded instructions to the control loops of the machine axes of motion and to control
the machine tool operation.
The MCU consists of two main units:
Data processing unit(DPU)
Control logic unit (CLU)
For the CNC lathe this means that the axes are (Fig.3):
X axis (motion perpendicular to the spindle, +X towards the operator)
Z axis (along the axis of the spindle, +Z away from the quill)
(Note that there are only two axis on a lathe so there is no Y)
M codes are instructions describing functions like calling the tool, spindle
rotation, coolant on etc. The following M-codes which are commonly used for FANUC
machines
CNC program can be divided into 3 parts: Start up, Body and end of the program
Explanation
O1000 While writing a program on FANUC controller first line has to be
started with letter O followed by four digit number specifies the
program name.
[BILLET X20 Z60 This directive is used only for simulation purpose. It defines the
work piece dimensions as 60 mm length and 20 mm diameter
G21/G20 G98/G99 G21- this code specifies that program is done in metric units
G40 Or
G20 this code specifies that program is done in imperial units
G98 gives the unit of feed in mm/minute
Or
G99 gives the unit of feed in mm/revolution
G40- compensation cancel
G28 U0 W0 Makes the tool to go home position. U & W are secondary
movements about x and z axis
M06 Tool change
DEPARTMENT OF MECHANICAL ENGINEERING, R.V.R. & J.C.COLLEGE OF ENGINEERING, GUNTUR-19 8
T0101 The first two digits specify the tool position in the turret and last
two digits denotes the tool offset number
M03/M04 S1000 M03- makes the spindle rotate in clockwise direction
M04- makes the spindle to rotate in counter clockwise direction
S1000- spindle rotates at 1000 rpm
G00 X21 Z1 G00 gives rapid position of the tool to a point X21 Z1 which is
just above the billet. This point is called as the tool entry point.
Body of the Program: This part contains number of instructions which are required for
performing various operations.
End of Program
G28 U0 W0
M05
M02/M30
Explanation
G28 U0 W0 Makes the tool to go home position. U & W are secondary
movements about X and Z axis.
M05 Stop the spindle rotation
M02/M30 M02 Program end
M30 Program stop and rewind
Viva-Voce Questions
1. What are the difference between CAD and CAM?
2. Mention the major components of the CNC machine?
3. What is the expansion of FANUC?
4. What type of co-ordinate system used for CNC Lathe?
5. Explain about co-ordinate system for milling.
6. What is meant by G-Code?
7. What is the purpose of M-code?
8. Distinguish between absolute and incremental system?
9. What is the difference between workpiece zero point and machine zero point?
10. Distinguish between manual part programming and computer assisted part
programming.
2. CNC TURNING
Requirement:
i) Pentium IV System
ii) FANUC programming software
Part program:
[BILLET X25 Z60
G21 G40 G98 Note:
G28- Go to reference point
N005 G28 U0 W0; M06- Tool change
N010 M06 T01; M03-Spindle rotation clock wise
G01-Linear interpolation
N015 M03 S1200;
G03-Circular interpolation (CCW)
N020 G00 X25 Z1; M05-Spindle stop
N025 G01 Z-0.5 F40; M02-Program end
N030 X0;
N035 X25;
N040 Z-1;
DEPARTMENT OF MECHANICAL ENGINEERING, R.V.R. & J.C.COLLEGE OF ENGINEERING, GUNTUR-19 10
N045 X0;
N050 X25;
N055 Z-1.5;
N060 X0;
N065 X25;
N070 Z-2;
N075 G28 U0 W0;
N080 M05;
N085 M02;
Result: Thus the part program was written for the given job and simulation is
performed.
Requirement:
i) Pentium IV System
ii) FANUC programming software
Part program:
[BILLET X25 Z70
G21 G40 G99
N005 G28 U0 W0;
N010 M06 T01;
N015 M03 S1000;
N020 G00 X25 Z1;
N025 X23 ;
N030 G01 Z-20 F40;
N035 X25;
N040 G00 Z1;
N045 X21;
N050 G01 Z-20;
N055 X25;
N060 G00 Z1;
N065 X19;
Result: Thus the part program was written for the given job and simulation is
performed.
Aim: To write a CNC manual part program for the job shown in Fig. 2.3 and simulate
the program using FANUC software.
Requirement:
i) Pentium IV System
ii) FANUC programming software
Result: Thus the part program was written for the given job and simulation is
performed.
Aim: To write a CNC manual part program for the job shown in Fig. 2.4 and simulate
the program using FANUC software.
Requirement:
i) Pentium IV System
ii) FANUC programming software
Part program:
Result: Thus the part program was written for the given job and simulation is
performed.
Aim: To write a CNC manual part program for the job shown in Fig. 2.5 and simulate
the program using FANUC software.
Requirement:
i) Pentium IV System
ii) FANUC programming software
Part program:
[BILLET X50 Z100 G74-PECK DRILLING OPERATION
G74 R (*r1)
G21 G40 G98 G74 Z(W) Q(*q) R(*r2) F(*f)
N005 G28 U0 W0; Where
*r1 = relief amount
Z =total depth (absolute)
DEPARTMENT OF MECHANICAL ENGINEERING, R.V.R. & J.C.COLLEGE OF ENGINEERING,
W =total GUNTUR-19 18
depth (incremental)
*q =depth of cut
*r2 =relief amount of tool at the
bottom of work piece for drilling
this value is zero
*f =feed rate
N010 M06 T01;
N015 M03 S1000;
N020 G00 X0 Z0;
N025 G74 R1;
N030 G74 X0 Z-79 P0 Q500 R0 F25;
N035 G28 U0 W0;
N040 M06 T02;
N045 M03 S1200
N050 G00 X12 Z1
N055 G71 U0.5 R1;
N060 G71 P65 Q100 U0.1 W0.1 F40;
N065 G01 X50;
N070 G02 X40 Z-8 R8;
N075 G01 Z-20;
N080 G03 X30 Z-25 R5;
N085 G01 X22 Z-45;
N090 G01 X20;
N095 Z-70;
N100 X12 Z-79;
N105 G28 U0 W0;
N110 M05 ;
N115 M02;
Result: Thus the part program was written for the given job and simulation is
performed.
Aim:To write a CNC manual part program for the job shown in Fig. 2.6 and simulate
the program using FANUC software.
20
Requirement:
i) Pentium IV System
ii) FANUC programming software
Part program:
Result: Thus the part program was written for the given job and simulation is
performed.
Viva-Voce Questions
Fig. 1
Fig. 2
Aim : To write a CNC manual part program for the job shown in Fig. 3.1 and simulate
the program using FANUC mill software.
Requirement:
i) Pentium IV System
ii) FANUC programming software
Part program:
Result: Thus manual part program was written for the given job and simulation is
performed.
Aim : To write a CNC manual part program for the job shown in Fig.3.2 and simulate
the program using FANUC mill software.
Requirement:
i) Pentium IV System
ii) FANUC programming software
Part program:
[BILLET X120 Y60 Z20
[TOOLDEF T01 D5
[EDGEMOVE X-62.5 Y-30
N005 G28 U0 W0;
N010 M06 T01;
N015 M03 S2000;
N020 G00 X-22.5, Y-12.5 Z2;
N025 G01 x-5 F20;
N030 G03 X-35 Y0 R12.5;
N035 G02 X-22.5 Y12.5 R12.5;
Result: Thus manual part program was written for the given job and simulation is
performed.
Aim : To write a CNC manual part program for the job shown in Fig. 3.3 and simulate
the program using FANUC mill software.
Requirement:
i) Pentium IV System
ii) FANUC programming software
Part program:
[BILLET X90 Y90 Z30
[TOOLDEF T01 D20
[TOOLDEF T01 D5
Result: Thus manual part program was written for the given job and simulation is
performed.
Aim : To write a CNC manual part program for the job shown in Fig. 3.4 and simulate
the program using FANUC mill software.
Requirement:
i) Pentium IV System
ii) FANUC programming software
Part program:
DEPARTMENT OF MECHANICAL ENGINEERING, R.V.R. & J.C.COLLEGE OF ENGINEERING, GUNTUR-19 32
[BILLET X90 Y90 Z30
[TOOLDEF T01 D20
[EDGEMOVE X0 Y0
N005 G28 U0 W0 ;
N010 M06 T01;
N015 M03 S2000;
N020 G42;
N025 G00 X37.5 Y35;
N030 G01 Z-10;
N035 G01 X52.5 Y35;
N040 Y55;
N045 X37.5 Y55;
N050 Y35;
N055 X30 Y20;
N060 X62.5 Y20;
N065 Y65;
N070 X30 Y65;
N075 X30 Y20;
N080 X20 Y10;
N085 X70 Y10;
N090 X70 Y70;
N095 X20 Y70;
N100 X20 Y10;
N105 X10 Y10;
N110 X75 Y10;
N115 X75 Y80;
N120 X125 Y80;
N125 X10 Y10;
N130 Z5;
N135 G28 U0 W0;
N140 M05;
N145 M02;
Aim : To write a CNC manual part program for the job shown in Fig. 3.5and simulate
the program using FANUC mill software.
Aim : To write a CNC manual part program for the job shown in Fig. 3.6 and simulate
the program using FANUC mill software.
Requirement:
i) Pentium IV System
ii) FANUC programming software
Part program:
RECTANGULAR POCKETING CYCLE
[BILLET X90 Y90 Z20 G172 I(*i1) J(*j1) K(*k1) P(*p1) Q(*q1) R(*r1) X(*x1)
Y(*y1) Z(*z1)
[TOOLDEF T01 D12 G173 I(*i2) K(*k2) P(*p2) S(*s2) R(*r2) F(*f2) B(*b2) J(*j2)
Z(*z2)
[EDGEMOVE X-45 Y-45 Where
N005 G28 U0 W0; *i1=length of pocket in X direction
*j1= length of pocket in Z direction
N010 M06 T01; *k1=corner radius zero always
*p1=0(roughing), 1(finishing)
N015 M03 S1200; *q1=depth of cut for each pass
*r1=absolute depth from surface (Z, R point)
N020 G172 I50 J50 K0
*x1=pocket corner X
P0 Q3 R0 X25 Y25 Z5; *y1= pocket corner Y
*z1=absolute Z base or pocket
N025 G01 Z2; *i2=pocket side finish allowance
*k2= pocket base finish allowance
N030 G28 U0 W0; *p2=cutter width % (50, 75 etc.,)
N035 M05; *s2=spindle speed in r.p.m
*r2=roughing feed in z, mm/min
N040 M02; *f2= roughing feed in x,y, mm/min
*b2=finishing spindle speed in r.p.m
*j2=finish speed in mm/min
*z2=safety z position
Result: Thus manual part program was written for the given job and simulation is
performed.
Viva-Voce Questions
Fig. 1
Fig. 3