Department of Mechanical Engineering: 1 ME 1356 CAD/CAM Lab Manual REC
Department of Mechanical Engineering: 1 ME 1356 CAD/CAM Lab Manual REC
Department of Mechanical Engineering: 1 ME 1356 CAD/CAM Lab Manual REC
REC
COMPLIED BY:
R.Dhanaraj, Asst.Professor/ Mech
N.Venkateshwaran, SL / Mech
CAD INTRODUCTION::
REC
This demonstration clearly showed that the CRT could potentially be used as a designers
electronic drawing board with common graphic operations such as scaling, translation, rotation,
animation and simulation automatically performed at the push of a button. At that time, these
systems were very expensive; therefore they were adopted only in such major industries as the
aircraft and automotive industries where their use in design justified the high capital costs.
Another crucial factor preventing computer graphics from being generally applied to engineering
industries was that there was a lock of appropriate graphics and application software to run on
these systems. However, a computer-based design system was clearly emerging. Since these
pioneering developments in computer graphics, which had captured the imagination of the
engineering industry all over the world, new and improved hardware, which is faster in
processing speed, larger in memory, cheaper in cost and smaller in size, have become widely
available.
Sophisticated software techniques and packages have also been gradually developed.
Consequently, the application of CAD in industry has been growing rapidly. Initially CAD
systems primarily were automated righting stations in which computer controlled plotters
produced engineering drawings. The system were later linked to graphic display terminals
where geometric model describing part dimensions were created, and the resulting database in
the computer was then used to produce drawings. Nowadays, CAD systems can do much more
3
ME 1356 CAD/CAM Lab Manual
REC
than mere righting. Some systems have analytical capabilities that allow parts to be evaluated
with techniques such as the finite element method. There are also kinematics analysis
programs that enable the motion of mechanism to be studied. In addition, CAD system includes
testing techniques to perform model analysis on structures, and to evaluate their response to
pinpoint any possible defects.
Computer Aided Design is the process of developing and using computer assisted design tools
in the design process. The advent of computers has contributed to significant advance in
calculation, data handling and utilization applications. The ability to use the computers in these
application areas enhances the capability of the design team significantly. Drafting and
geometric modeling play significant roles in CAD. The module therefore concentrates on the
general design process with specific consideration to drafting and geometric modeling. Three
different CAD systems are referred to in the module. The syllabus includes: historical
development, the design process, traditional drawing practice and the development of the CAD
industry, system hardware, computers micros to mainframes, output devices, storage,
workstations, networked systems, examples of CAD systems; simple entity descriptions: points,
lines, arcs, made-edge lists, free-form curves, free-form surfaces; transformations: pan, rotate
and scale, 3D transformations, observer angles, perspective, depth cueing; geometric modeling:
wire frame modelers, surface modelers, solid modelers (CSG and B- rep), hidden line removal
and mass properties; user interface: input devices, menus, graphics interface language,
parametric. LEARNING OBJECTIVES: To understand and handle design problems in a
systematic manner. To be able to use the capabilities provided by computers for calculations,
data handling and visualization applications. To gain practical experience in handling 2D
drafting and 3D modeling software systems. To be able to apply CAD in real life applications.
The
REC
below
Computers in Design .
Implementation of computer in the design stage becomes the subset of design process.
Once the conceptual design materializes in the designer mind the geometric model starts
by the appropriate CAD software. The choice of geometric model to CAD is analogous to
the choice. The various design related tasks which are performed by a modern
computer-aided design system can be grouped into four functional areas :
1. Geometric Modelling
2. Engineering Anlaysis
3. Design review and evaluation
4. Automated drafting.
Geometric Modelll ng ::
It is concerned with the computer compatible mathematical description of the geometry of
an object. The mathematical description allows the image of the object to be displayed &
Engineering Analysis ::
The analysis may involve stress-strain calculation, heat transfer computaion etc., of the
system being displayed. The computer can be used to aid in this analysis work. It is often
necessary that specific programs be developed internnaly vy the enginnering analysis group
to solve particular design problem. In other situtaion , commercially available general purpose
programs can be used to perform the engineering analysis. Analysis may be :
ti
ii
a. Mass property analysis.
b. Finite element analysis.
The analysis of mass properties is the anlysis feature of CADsystem which providesproperties
of solid objectbeing analysed, suchh as the surface area, weight, volume, centre of gravity and
momnet of inertia.
In FEA the object is divided into large number of finite elements which form an interconnecting
kinematicas
software
avaiolable
ADAMS(Autamatic
REC
Automated Drafft ng ::
It involves the creation of hard-copy engineering drawings directly from the CAD data
base. Most of the CAD systems are capable of generating as many as six views of the
parts. Engineering drawings can be made into company drafting standard by
programming the standards into the CAD system.
Implementation of computer in the design stage becomes the subset of design
i process.
i
l iiOnce the conceptual design materialize in the designer mind the geometric
model starts by the appropriate CAD software. The choice of geometric model to CAD is
analogous to the choice of a mathematical model to engineering analysis. A valid
geometric model is created by definition translator, which converts the designer input into
the proper database format. In order to apply engineering analysis in geometric model,
interface algorithms are provided by the system to extract the required data from the
model database to perform the analysis. In case of FEA, these algorithms from the finite
element modeling package of the system. Design testing & evaluation may require
changing the geometric model before finalizing it.
When the final design is achieved the drafting & detailing of the model
is starts, followed
by documentation & production of final drawings
The components of a typical CAD system are illustrated in the following figure. The
central processing unit (CPU) is the brain of the entire system. It contains of integrated
circuits of (IC) of three parts ALU, controller and main memory unit. The arithmetic logic
unit (ALU) consists of electronic circuits, which perform logic and mathematical
operations. Controller circuits are used to regulate various operations carried out in the
t t
computer. Main memory circuits store processed data, such as results of calculations
tii
and program instructions inside the computer. Hundreds of electronic circuits are
reduced and etched on chip as small as a pinhead. The CPU is, therefore, one of the
miracles of modern electronic technology.
REC
Output
Devices
WORK STATION
WORK STATION
C.P.U.
WORK STATION
SECONDARY
STORAGE
WORK STATION
INPUT DEVICES
WORK STATION
GRAPHIC DISPLAY
TERMINAL
REC
plotters.
ii)
The secondary storage unit consists of magnetic tapes and disks. Magnetic tape is similar to the
iii)
tape used in a tape recorder. It consists of Mylar tape coated with magnetic material. The data
are stored in the form pf magnetized spots. The data can be erased and reused. The data are
stored sequentially, i.e. to find a certain piece of data on the tape; one must wind the tape till the
data are reached. This is called the sequential access method. Magnetic tapes are cheap but
the access time for data retrieval is more due to sequential access. They are mainly used for
archiving drawings.
There are two types of magnetic disks flexible and hard. The appearance of flexible disk is
similar to that of a phonographic record. It is, however, thin and flexible compared with records,
hence name floppy disk. The flexible disk is made of plastic like material Mylar with a thin
coating of magnetic material such as ferric oxide. The data can be stored on the one side of the
disk (single) or on both surfaces (dual). The standard diameters of floppy disks are 131mm and
200mm the disk is always kept in a square vinyl jacket for protection against dust particles and
scratching. There is a small cut section in the jacket, called window. Reading and writing is
accomplished through this window by means of a drive-head. The speed of rotation of the disk
is usually 300r.p.m. The construction of the hard disk is similar to that of a flexible disk. It is,
however, made from thin aluminium plate coated with ferric oxide. The disk is usually sealed in
an airtight container and rotates at a much faster speed of 3600rpm. This increases speed of
storage and retrieval of information. A hard disk is more durable than a floppy disk. Cost is the
main limitation of this disk. There are two methods to store data on flexible as well as hard disks
9
ME 1356 CAD/CAM Lab Manual
REC
sequential and random access methods. In the sequential search method, data are stored in a
sequence and the drive head has to search for a piece of information, starting from the
beginning of the track. This increases the search depending upon the location of the
information. The random access method is also called the direct access method. In this method,
data stored on the disk are divided into two or more sections. When the section number is
specified, the drive head directly moves to the relevant section and starts searching the data.
Random access method is a faster method of data retrieval.
The computer systems used for CAD are of three types mainframe, mini and micro. The
mainframe system consists of a large capacity computer kept in a remote air-conditioned room.
Strict environmental controls are needed for this system. The workstations are located at some
distance from this central system. The mainframe system executes a number of functions, CAD
being one of them. This system is more powerful than mini or micro systems, with fast
computing speeds. Due to large memory capacity it can process the most difficult programs.
Compared with the mainframe system, the microcomputer is small and inexpensive. It,
however, operates at a slightly lower speed and is not able to process some of the difficult
programs, which can be run on the mainframe system. Minicomputers are usually housed in an
air-conditioned room. The microcomputer is the smallest type of CAD system. It does not
require strict environmental controls. A graphic display station and keyboard is normally
combined in to a micro unit. These units are called desktop computers. A microcomputer
system is called a dedicated system, because it operates for the sole purpose of one user at a
time. This system is cheap and easily available, but has limited capacity and speed.
The workstation is a visible part of the CAD system, which provides interaction between the
operator and the system. There are two elements of a basic workstation a CRT display and an
alphanumeric keyboard. Other input devices, such as cursor control devices, digitizers and
graphic tablets, are provided on elaborate workstations. Graphic display terminals and input
devices are discussed in the forthcoming sections. The output devices used with the CAD
systems are pen plotters, hardcopy units and electrostatic plotters.
10
REC
GEOMETRIC MODELING
A geometric modeling is defined as the complete representation of an object that
includes in both graphical and non-graphical information.
In computer-aided design, geometric modeling is concerned with the computer
compatible mathematical description of the geometry of an object. The mathematical
description of the geometry of an object to be displayed and manipulated on a graphics
terminal through signal from CPU of the CAD system. The software that provides
geometric modeling capabilities must be designed for efficient use of both by the
computer and the human designer.
To use geometric modeling, the designer construct the graphical image of the
object on the CRT screen of the IGS system by inputting three types of commands to the
computer. The first type of command generates basic geometric elements such as
points, lines, and circles. The second command types is used to accomplish scaling,
rotation or other transformations of these elements. The third type of command causes
the various elements to be joined into desired shape of the object being created on the
ICG system.
During this geometric modeling process the computer converts the commands into
mathematical model, stores it in the computer data files and displays it as an image on
the screen. The model can be subsequently being called from the data files for review,
analysis or alteration. The most advanced method of geometric modeling is solid
modeling in three dimensions. This method uses solid geometry shapes called primitives
to construct the object.
b. Surface Modeling
c. Solid Modeling
11
REC
b. Analytic Entities----------
Applications:
1. Two-dimensional drafting.
2. Numerical control tool path generation.
Advantages:
1.It is simple to construct model.
2. Less computer memory to store the object.
f
12
Disadvantages:
REC
13
REC
Surface Entities:
Similar to wire frame entities, existing CAD / CAM systems provide designers with
both analytic and synthetic surface entities. Analytic entities include plane surface, ruled
surface, surface of revolution, and tabulated cylinder. Synthetic entities include the
bicubic Hermite spline surface, B spline surface, rectangular and triangular bezier
patches, rectangular and triangular Coons patches, and Gordon surface. The
mathematical properties of some of these entities are covered in this chapter for two
purposes. First, it enables users to correctly choose the proper surface entity for the
proper application. For example, a ruled surface is a linear surface and does not permit
any twist while a B spline surface is a general surface. Second users will be in a
position to better understand CAD/CAM documentation and the related modifiers to each
surface entity command available on a system. The following are descriptions of major
surface entities provided by CAD/CAM systems
Application:
1. Calculating mass properties.
2. Checking for interference between mating parts.
3. Generating cross-sectioned views.
4. Generating finite element mesh.
Advantages:.
1. Surface models are generally more complex and thus require more terminal and CPU
time and computer storage to create than wireframe models.
2. Surface models are sometimes awkward to create and may require unnecessary
manipulations of wireframe entities.
3. It requires more training to create.
4. It does not provide any topological information.
14
REC
models are attributed to the information that is related database of these models stores
(Topology--
To model an object completely we need both geometry & topological information. Geometry is
visible, whereas topological information are stored in solid model database are not visible to
ii
ii
user. Two or more primitives can be combined to form the desire solid. Primitives are combined
by Boolean Operations.
15
REC
the first time after installing it, the Welcome to Solid Works dialog box will also be displayed,
as shown in Figure 1.. This dialog box welcomes you to Solid Works and helps you customize
Solid Works installation. The options available in this dialog box are discussed next.
16
REC
17
REC
Part
The Part button is chosen by default in the New Solid Works Document dialog box. Choose
the OK button to start a new part document to create solid models or sheet metal components.
When you start a new part document, you will enter the Part mode
Assembly
Choose the Assembly button and then the OK button from the New Solid Works Document
dialog box to start a new assembly document. In an assembly document, you can assemble the
components created in the part documents. You can also create components in the assembly
document.
Drawing
Choose the Drawing button and then the OK button from the New Solid Works Document
dialog box to start a new drawing document. In a drawing document, you can generate or create
the drawing views of the parts created in the part documents or the assemblies created in the
assembly documents.
18
REC
19
I
Fig: 4 Sketching Environment in Solid works
REC
When you choose the Sketch button from the Standard toolbar or
Choose any tool from the Sketch Command Manager; the Edit Sketch Property Manager is
displayed and you are prompted to select the plane on which the sketch will be created. Also,
the three default planes available in Solid Works 2006 (Front Plane, Right Plane, and Top
Plane) are temporarily displayed on the screen, as shown in Figure 5.
Exercise on Extrusion
REC
AIM:
To model the given object using the Extrusion feature as per the dimensions given.
Description of Extrusion Feature:
Base Feature:
The first feature that is created.
The foundation of the part.
The base feature geometry for the box is an extrusion.
The extrusion is named Extrude1.
To Create an Extruded Base Feature:
1. Select a sketch plane.
21
REC
22
REC
Fillet Feature:
Rounds the edges or faces of a part to a specified radius.
Fillet feature
Procedure:
1. Select a sketch plane.(Front, top or Side)
2. Sketch a 2D profile of the model.
3. Dimension the model using Smart Dimension icon.
4. Check the sketch is fully defined.
5. Extrude the sketch perpendicular to sketch plane.
6. Use extruded cut feature to cut the solid as given in the drawing.
Result:
Thus the given model is extruded.
23
Ex: 2
REC
Exercise on Revolve
AIM:
To model the given object using the Revolve feature as per the dimensions given.
Description of Revolve Feature:
Command Manager: Features > Revolved Boss/Base
Menu: Insert > Boss/Base > Revolve
After drawing the sketch, as you choose this tool, you will notice that the sketching environment
is closed and the part modeling environment is invoked. Similar to extruding the sketches, the
resulting feature can be a solid feature or a thin feature, depending on the sketch and the
options selected to be revolved. If the sketch is closed, it can be converted into a solid feature
or a thin feature. However, if the sketch is open, it can be converted only into a thin feature.
24
ME 1356 CAD/CAM Lab Manual
REC
will notice that the view is automatically changed to a 3D view, and the Revolve Property
Manager is displayed,
Result:
Thus the given model is drawn using revolve feature.
25
Ex: 3
REC
Exercise on RIB
AIM:
To model the given object and construct rib portion in it.
Description of RIB Feature:
Command Manager: Features > Rib
Menu: Insert > Features > Rib
REC
Procedure:
1. Select a sketch plane.(Front, top or Side)
2. Sketch a 2D profile of the model.
3. Dimension the model using Smart Dimension icon.
4. Check the sketch is fully defined.
5. Extrude the sketch.
6. Using Rib Feature complete the model.
Result:
Thus the given model is drawn and completed using rib feature.
27
Ex: 4
Exercise on Shell
AIM:
To model the given object and remove the material using shell option.
Description of SHELL Feature:
Removes material from the selected face.
Creates a hollow block from a solid block.
Very useful for thin-walled, plastic parts.
You are required to specify a wall thickness when using the shell feature.
REC
28
REC
An assembly design consists of two or more components assembled together at their respective
work positions using the parametric relations. In SolidWorks, these relations are called mates.
These mates allow you to constrain the degrees of freedom of the components at their
respective work positions.
29
REC
When you start a new SolidWorks document in the Assembly mode, the Insert Component
Property Manager will be displayed as below which enable us to insert the component into
assembly file.
30
Place the component one by one in the proper fashion in the new assembly file.
REC
ASSEMBLING COMPONENTS:
After placing the components in the assembly document, you need to assemble them. By
assembling the components, you will constrain their degrees of freedom. As mentioned earlier,
the components are assembled using mates. Mates help you precisely place and position the
component with respect to the other components and the surroundings in the assembly. You
can also define the linear and rotatory movement of the component with respect to the other
components. In addition, you can create a dynamic mechanism and check the stability of the
mechanism by precisely defining the combination of mates. There are two methods of adding
mates to the assembly. The first method is using the Mate Property Manager and the second
and the most widely used method of adding mates to the assembly is using the Smart Mates.
31
Ex: 5
REC
AIM:
To model and assemble the flange coupling as per the dimensions given and also
convert the 3D model into different vies with Bill of materials.
Procedure:
1. Model different parts of a flange coupling using Extrude, Revolve etc., features.
2. Select the assembly in solid works main menu.
3. Using Insert component icon of property manager, insert base component & next
components to be assemble.
4. Assemble using MATE Feature.
5. Continue the inserting the component & mating until the entire component are
assembled.
6. Save the assembly.
7. From the main menu of solid works select the drawing option.
32
REC
33
REC
10. Click the view orientation from the model view manager & place the drawing view in the
proper place in the sheet as shown above.
11. Using the placed view as parent view project the other or needed views
12. Move cursor to any one view and right click the mouse button.
13. Select the Table BOM.
14. Place the BOM in the proper place in the drawing sheet.
15. Save the drawing sheet.
Result:
Thus the given flange coupling is modeled, assembled & different views are taken.
34
Ex:6
REC
AIM:
To model and assemble the Screw jack as per the dimensions given and also convert the
3D model into different vies with Bill of materials.
Description about Screw jack:
A Screw Jack, manually operated is a contrivance to lift heavy object over a small height with a
distinct Mechanical Advantages. It also serves as a supporting aid in the raised position. A
screw Jack is actuated by a square threaded screw worked by applying a moderate effort at the
end of a Tommy bar inserted into the hole of the head of the screw.
The body of the screw jack has an enlarged circular base which provides a large bearing
area. A gun metal nut is tight fitted into the body at the top. A screw spindle is screwed through
the nut. A load bearing cup is mounted at the top of the screw spindle and secured to it by a
washer and a CSK screw. When the screw spindle is rotated, the load bearing cup moves only
up or down along with the screw spindle but will not rotate with it. The Tommy bar is inserted
into the hole in the head of the screw spindle only during working and will be detached when not
in use.
Procedure:
1. Model different parts of a Screw Jack using Extrude, Revolve etc., features.
2. Select the assembly in solid works main menu.
3. Using Insert component icon of property manager, insert base component & next
components to be assemble.
4. Assemble using MATE Feature.
5. Continue the inserting the component & mating until the entire component are
assembled.
6. Save the assembly.
7. From the main menu of solid works select the drawing option.
8. Drawing icon in main menu of Solid works
9. Select the drawing sheet format size as A4 Landscape.
35
REC
10. Using the model view manager browse the document to be open.
11. Click the view orientation from the model view manager & place the drawing view in the
proper place in the sheet.
12. Using the placed view as parent view project the other or needed views
13. Move cursor to any one view and right click the mouse button.
14. Select the Table BOM.
15. Place the BOM in the proper place in the drawing sheet.
16. Save the drawing sheet.
Result:
Thus the given Screw Jack is modeled, assembled & different views are taken
36
REC
Procedure:
1. Model different parts of a gib & cotter joint using Extrude, Revolve etc., features.
2. Select the assembly in solid works main menu.
3. Using Insert component icon of property manager, insert base component & next
components to be assemble.
4. Assemble using MATE Feature.
5. Continue the inserting the component & mating until the entire component are
assembled.
6. Save the assembly.
7. From the main menu of solid works select the drawing option.
8. Drawing icon in main menu of Solid works
9. Select the drawing sheet format size as A4 Landscape.
10. Using the model view manager browse the document to be open.
11. Click the view orientation from the model view manager & place the drawing view in the
proper place in the sheet.
Ex: 6
37
REC
12. Using the placed view as parent view project the other or needed views
13. Move cursor to any one view and right click the mouse button.
14. Select the Table BOM.
15. Place the BOM in the proper place in the drawing sheet.
16. Save the drawing sheet.
Result:
Thus the given strap joint of Gib & cotter is modeled, assembled & different views are
taken.
38
REC
REC
CNC Lathe
List of G codes
G00 Rapid Traverse
G01 Linear interpolation
G02 Circular interpolation clockwise
G03 Circular interpolation counter clockwise
G21 Dimensions are in mm
G28 Home position
G40 Compensation Cancel
G50 Spindle speed clamp
G70 Finishing cycle
G71 Multiple turning cycle
G75 Multiple grooving cycle
G76 Multiple threading cycle
G90 Box turning cycle
G98 Feed in mm/min
List of M-codes
M03 Spindle ON in clockwise direction
M05 Spindle stop
M06 Tool change
M10 Chuck open
M11 Chuck close
M30 Program stop and rewind
M38 Door open
M39 Door close
40
REC
:1
:
Aim:
To write the manual part program to the given dimensions and execute in CNC Lathe. (
G90 ).
Material required:
Material
Size
: Aluminium
: Diameter 25mm and Length 50mm
Program:
[BILLET X25 Z50;
G21 G98 G40;
G28 U0 W0;
G50 S2000;
M06 T01;
M03 S1200;
G00 X26 Z1;
G90 X24 Z-30 F45;
X23;
X22;
X21;
X20;
G00 X21 Z1;
G90 X19 Z-10 F45;
X18;
X17;
X16;
X15;
X14;
X13;
X12;
X11;
X10;
M05;
G28 U0 W0;
M30;
Result:
Thus the manual part program was written to the given dimensions and executed in CNC
Lathe.
41
REC
Aim:
:2
:
To write the manual part program to the given dimensions and execute in CNC Lathe. (
G71 ).
Material required:
Material
Size
: Aluminium
: Diameter 25mm and Length 50mm
Program:
[BILLET X25 Z50;
G21 G98 G40;
G28 U0 W0;
G50 S2000;
M06 T01;
M03 S1200;
G00 X26 Z1;
Note:
G71 U0.5 R1
Where,
U0.5 depth of cut in mm
R1 - relief in mm
G71 P100 Q200 U0.1 W0.1 F45;
Where,
P100 first line number
Q200 last line number
U0.1 finishing allowance in x-axis
W0.1 finishing allowance in z-axis
G70 Finishing cycle between first and last line
number.
Conditions:
In the first line number only G01 and X
codes must only be written.
Z code for the first coordinate must be
written in the next line.
G71 will not work for left downward taper.
Between G71 cycle only G01, G02 and
G03 must be written.
Result:
Thus the manual part program was written to the given dimensions and executed in CNC
Lathe.
42
REC
:3
:
Aim:
To write the manual part program to the given dimensions and execute in CNC Lathe. (
G90 ).
Material required:
Material
Size
Program:
[BILLET X25 Z50;
G21 G98 G40;
G28 U0 W0;
G50 S2000;
M06 T01;
M03 S1200;
G00 X26 Z1;
G90 X24 Z-39 F45;
X23;
G00 X24 Z1;
: Aluminium
: Diameter 25mm and Length 50mm
Note:
X11;
X10;
G00 X11 Z1;
G90 X10 Z-10 R-0.5 F40;
X10 R-1;
X10 R-1.5;
X10 R-2;
X10 R-2.5;
X10 R-3;
X10 R-3.5;
X10 R-4;
X10 R-4.5;
X10 R-5;
G00 X21 Z-10;
43
G00 X20 Z-15;
G90 X19 Z-22 R0.5 F40;
X18 R1;
X17 R1.5;
X16 R2;
X15 R2.5;
G00 X21 Z-21;
G90 X20 Z-29 R-0.5 F40;
X20 R-1;
X20 R-1.5;
X20 R-2;
X20 R-2.5;
G00 X25 Z1;
M05;
G28 U0 W0;
M30;
REC
Result:
Thus the manual part program was written to the given dimensions and executed in CNC
Lathe.
44
REC
:4
:
Aim:
To write the manual part program to the given dimensions and execute in CNC Lathe. (
G75 ).
Material required:
Material
Size
: Aluminium
: Diameter 40mm and Length 55mm
Program:
[BILLET X40 Z55;
G21 G98 G40;
G28 U0 W0;
G50 S2000;
M06 T01;
M03 S1200;
G00 X41 Z1;
G71 U0.5 R1;
G71 P100 Q200 U0.1 W0.1 F45;
N100 G01 X16;
Z0;
G01 X30 Z-2;
G01 X30 Z-35;
N200 G01 X40 Z-45;
G28 U0 W0;
M06 T02;
M03 S700;
G00 X31 Z-17;
G75 R1;
G75 X24 Z-30 P1000 Q1750 F10;
G01 X33;
M05;
G28 U0 W0;
M30;
Note:
G75 R1
Where,
R1 relief in mm
G75 X24 Z-30 P1000 Q1750 F10;
Where,
X24 minor dia. of groove
Z-30 final point in length
P1000 increment in X- axis in
microns
Q1750 increment in Z- axis in
microns
Result:
Thus the manual part program was written to the given dimensions and executed in CNC
Lathe.
45
Exercise
Date
REC
Aim:
To write the manual part program to the given dimensions and execute in CNC Lathe. (
G76 ).
Material required:
Material
Size
: Aluminium
: Diameter 40mm and Length 55mm
Program:
[BILLET X40 Z55;
G21 G98 G40;
G28 U0 W0;
G50 S2000;
M06 T01;
M03 S1200;
G00 X41 Z1;
G71 U0.5 R1;
G71 P100 Q200 U0.1 W0.1 F45;
N100 G01 X16;
Z0;
Note:
G01 X30 Z-2;
G76 P031560 Q50 R0.1
G01 X30 Z-35;
Where,
N200 G01 X40 Z-45;
P031560 G28 U0 W0;
03 no. of finishing passes
M06 T02;
15 pull out angle
M03 S700;
60 angle of thread
G00 X31 Z-17;
Q50 depth of cut in microns
G75 R1;
R0.1 finishing allowance
G75 X24 Z-30 P1000 Q1750 F10;
G01 X33;
G76 X27.546 Z-16 P1227 Q60 F2;
G00 Z1;
Where,
G28 U0 W0;
X27.546 core diameter for M30x2
M06 T03;
fine series
M03 S350;
Z-16 length of thread
G00 X31 Z1;
P1227 depth of thread in microns
G76 P031560 Q50 R0.1;
Q60 first depth of cut
G76 X27.546 Z-16 P1227 Q60 F2;
F2 pitch of the thread
M05;
G28 U0 W0;
M30;
Result:
Thus the manual part program was written to the given dimensions and executed in CNC
Lathe.
46
REC
CNC Milling
List of G codes
G00 Rapid Traverse
G01 Linear interpolation
G02 Circular interpolation clockwise
G03 Circular interpolation counter clockwise
G21 Dimensions are in mm
G28 Home position
G40 Compensation Cancel
G50 Spindle speed clamp
G83 Peck drilling cycle
G90 Absolute coordinate system
G91 Incremental coordinate system
G94 Feed in mm/min
G170, G171 Circular Pocketing
G172, G173 Rectangular Pocketing
List of M-codes
M03 Spindle ON in clockwise direction
M05 Spindle stop
M06 Tool change
M10 Chuck open
M11 Chuck close
M30 Program stop and rewind
M38 Door open
M39 Door close
M70 Mirroring ON in X-axis
M71 - Mirroring ON in Y-axis
M80 Mirroring OFF in X-axis
M81 Mirroring OFF in Y-axis
M98 Sub program call statement
M99 Sub program terminate
47
REC
:6
:
Aim:
To write the manual part program to the given dimensions and execute in CNC Milling.
Material required:
Material
: Acrylic sheet
: Length 100mm, Width 100mm and Thickness 5mm
Program:
[BILLET X100 Y100 Z5;
[EDGEMOVE X0 Y0;
[TOOLDEF T1 D5;
G21 G94 G40;
G91 G28 Z0;
G28 X0 Y0;
G28
M06 T01;
M03 S1500;
G90 G00 X0 Y0 Z5;
G00 X25 Y10;
G01 Z-2 F40;
G03 X10 Y25 R15;
G01 X10 Y75;
G02 X25 Y90 R15;
G01 X75 Y90;
G03 X90 Y75 R15;
G01 X90 Y25;
Size
G02 X75 Y10 R15;
G01 X25 Y10;
G01 Z5;
M05;
G91 G28 X0 Y0 Z0;
M30;
Result:
Thus the manual part program was written to the given dimensions and executed in CNC
Milling.
48
Exercise
Date
REC
CIRCULAR POCKETTING
:7
:
Aim:
To write the manual part program to the given dimensions and execute in CNC Milling.
Material required:
Material
: Acrylic sheet
: Length 100mm, Width 100mm and Thickness 5mm
Program:
[BILLET X100 Y100 Z5;
[EDGEMOVE X-50 Y-50;
[TOOLDEF T1 D5;
G21 G94 G40;
G91 G28 Z0;
G28 X0 Y0;
M06 T01;
M03 S1500;
G90 G00 X0 Y0 Z5;
G01 Z0 F300;
G170 R0 P0 Q1 X0 Y0 Z-3 I0.5 J0.1 K-25;
G171 P75 S2500 R75 F250 B3500 J200;
G00 Z5;
M05;
G91 G28 X0 Y0 Z0;
M30;
Note:
G170 R0 P0 Q1 X0 Y0 Z-3 I0.5 J0.1 K25;
Where,
R0 reference point
P0 roughing; P1 finishing
Q1 depth of each cut
Size
Result:
Thus the manual part program was written to the given dimensions and executed in CNC
Milling.
49
REC
RECTANGULAR POCKETTING
Exercise
Date
:8
:
Aim:
To write the manual part program to the given dimensions and execute in CNC Milling.
Material required:
Material
Program:
: Acrylic sheet
: Length 100mm, Width 100mm and Thickness 5mm
Note:
G172 I-60 J-50 K0 P0 Q1 R0 X-30 Y-25 Z3;
Where,
I length of the rectangle in X-axis
J - width of the rectangle in Y-axis
K corner radius
P0 roughing: P1 finishing
Q depth of each cut
R reference point
X,Y left downward coordinate
Z total depth of cut
Note:
G173 I0.5 K0.1 P75 T1 S2500 R75 F250 B3000
J200
Z5;
Where,
I&K finishing allowance at side & base
P percentage of cut
T tool
S- speed
R feed in Z-axis
F feed in X and Y axis
B&J finishing speed&feed
Z safe height
Result:
Thus the manual part program was written to the given dimensions and executed in CNC
Milling.
Size
50
REC
PECK DRILLING
Exercise
Date
:9
:
Aim:
To write the manual part program to the given dimensions and execute in CNC Milling.
Material required:
Material
: Acrylic sheet
: Length 100mm, Width 100mm and Thickness 5mm
Program:
[BILLET X100 Y100 Z5;
[EDGEMOVE X0 Y0;
[TOOLDEF T1 D5;
G21 G94 G40;
G91 G28 Z0;
G28 X0 Y0;
M06 T01;
M03 S1500;
G90 G00 X25 Y25 Z5;
G83 G99 X25 Y25 Z-3 Q1 R2 F200;
X75 Y25;
X50 Y50;
X25 Y75;
G98 X75 Y75;
G80;
G00 Z25;
M05;
G91 G28 X0 Y0 Z0;
M30;
Note:
G83 G99 X25 Y25 Z-3 Q1 R2 F200;
Where,
G83 peck drilling cycle
G99 return to R in canned cycle
X&Y first drill coordinate
Z-3 total depth of cut
Q1 depth of each cut
R2 starting point of drilling cycle in Zaxis
F feed in Z-axis
G98 return to initial point in canned
cycle
G80 canned cycle cancel
Result:
Thus the manual part program was written to the given dimensions and executed in CNC
Milling.
51
REC
MIRRORING
Exercise
Date
Aim:
: 10
:
Size
To write the manual part program to the given dimensions and execute in CNC Milling.
Material required:
Material
: Acrylic sheet
: Length 100mm, Width 100mm and Thickness 5mm
Program:
[BILLET X100 Y100 Z5;
[EDGEMOVE X-50 Y-50;
[TOOLDEF T1 D5;
G21 G94 G40;
G91 G28 Z0;
G28 X0 Y0;
G50 S3000;
M06 T1;
M03 S2000;
G01 Z0 F300;
G90 G00 X10 Y10 Z5;
M98 P0011000;
M70;
M98 P0011000;
M80;
M71;
M98 P0011000;
M70;
M98 P0011000;
M80;
M05;
G90 G28 X0 Y0 Z0;
M30;
Note:
M98 P0011000;
Where,
M98 sub program call
P0011000
P001 means Number of times to
repeat
1000 means Sub program file
name
M70 Mirroring ON in X-axis
M71 - Mirroring ON in Y-axis
M80 Mirroring OFF in X-axis
M81 Mirroring OFF in Y-axis
M99 Sub program terminate
Sub program ( file name : 1000 )
G90 X10 Y10 Z5;
G01 Z-3;
X40 Y10;
X25 Y40;
X10 Y10;
G00 X0 Y0 Z5;
M99;
Result:
Thus the manual part program was written to the given dimensions and executed in CNC
Milling.
Size