Cad Cam Module
Cad Cam Module
Cad Cam Module
PREPARED BY C KEMBO
7/2/2015
Lines do speak. See value in them. Develop your career around them.
Acknowledgements
i
Abstract
ii
Contents
Acknowledgements ..................................................................................................................... i
Abstract ..................................................................................................................................... ii
Nomenclature ............................................................................................................................ xi
iii
2.1.5 Use of Function keys..............................................................................................9
iv
3.10 Hatching .................................................................................................................. 31
v
5.4.3 Surface Modeling ................................................................................................. 49
vi
7.5 Tape Formats .............................................................................................................. 81
vii
List of figures
Figure 1: Auto-Cad System .........................................................................................................2
Figure 2: Auto-Cad Window .......................................................................................................7
Figure 3 : Absolute Coordinates System .................................................................................... 15
Figure 4 : Relative Coordinates System ..................................................................................... 16
Figure 5 : Polar Coordinates System 1 ...................................................................................... 17
Figure 6 : Polar Coordinates 2 ................................................................................................... 18
Figure 7 : Task 1 the Bracket .................................................................................................... 23
Figure 8 : Solution 1 bracket by Absolute Coordinates .............................................................. 24
Figure 9 : Solution 2 bracket by Relative Coordinates ............................................................... 25
Figure 10 : Solution 3 bracket by Polar Coordinates .................................................................. 26
Figure 12: General Configuration of NC System ....................................................................... 61
Figure 13 : General Configuration of CNC System.................................................................... 64
Figure 14 : Hybrid CNC ............................................................................................................ 65
Figure 15 : Straight CNC System .............................................................................................. 66
Figure 16 : General Configuration of DNC ................................................................................ 68
Figure 17: DNC with Satellite mini Computers ......................................................................... 69
Figure 18 : Open Loop System .................................................................................................. 71
Figure 19 : Closed loop System ................................................................................................. 72
Figure 20 : Point-To -Point System ........................................................................................... 73
Figure 21 : Linear Interpolation ................................................................................................. 73
Figure 22: Contouring System ................................................................................................... 74
Figure 23 : Absolute System ..................................................................................................... 75
Figure 24 : Incremental system.................................................................................................. 75
Figure 25 : Lathe Machine Tool Axes ....................................................................................... 79
Figure 26 : Milling Machine Tool Axes ..................................................................................... 80
Figure 27 : MS Flat Plate .......................................................................................................... 83
Figure 28 : Tool Motions ........................................................................................................... 86
Figure 29 : Tool Length Compensation ..................................................................................... 87
Figure 30 : Tool Radius Offset .................................................................................................. 88
Figure 31 : Milling example Profile to be milled ....................................................................... 89
viii
Figure 32 : Turning example A Component for Turning Operations .......................................... 90
ix
List of tables
Table 1 : Preparatory Functions (G-Codes)................................................................................ 77
Table 2 : Miscellaneous Functions (M- Codes).......................................................................... 81
Table 3 : Absolute Hole coordinates .......................................................................................... 83
Table 4 : Fixed Block Format .................................................................................................... 83
Table 5 : TAB Sequential Format .............................................................................................. 83
Table 6: Solution to milling example ......................................................................................... 89
Table 7: Part programming Operational schedule ...................................................................... 90
Table 8: Part program listing ..................................................................................................... 91
Table 9: Example solution Operation sheet................................................................................ 91
Table 10: Example part program ............................................................................................... 92
x
Nomenclature
xi
INTRODUCTION TO AUTO- CAD
INTRODUCTION
Auto-CAD is a powerful drafting and designing package used in many industries and
educational institutions all over the world. It is flexible user friendly software that enables the
user to create 2 dimensional drawings and 3 dimensional models for a wide variety of
applications.
The work station is connected locally or remotely to the Central Processing Unit of the
computer. It consists of the input and output devices, display devices and the supporting
software. The included software consists of programs, which are lists of instructions written in
computer language needed for producing drawing, images etc. Basic activities of any CAD
system are:
Inputting,
Storing,
Processing,
Displaying and
Outputting of information.
1
Figure 1: Auto-Cad System
The ALU consists of electronic circuits which perform logic and mathematical operations
like addition, subtraction, divide and multiply.
Controller Circuits are used to regulate and interpret various operations carried out in
the computer.
Main Memory circuit store processed data such as results of calculations and programme
instructions inside the computer.
Hundreds of electronic circuits are reduced and etched on to a silicon chip as small as a pin head.
MENU: - A layout of a variety of commands and functions required to operate the system.
Sending these commands into the computer produces complete engineering drawings. The
choice of optional commands on the screen menu is made by indicating the required position
2
with the cursor cross hairs or by typing a required code. Movement of the cursor on the screen
may be controlled by the following devices.
(a) A Keyboard: where the located keys control the required movement.
(b) Thumb Wheel: where one wheel controls horizontal movement and another wheel
controls vertical movement.
(c) A Light Pen: where the required position is selected by pointing the pen directly at the
screen.
(d) A Joy Stick: a vertical lever mounted in a box controls movements in any direction.
(e) A mouse: a small box which when pushed across a surface controls movements in the
same direction.
(f) A Tracker Ball: - it’s rolling in mounting controls movements in any direction.
The Printers
The Printer may be impact, where images are formed by striking action or non-impact.
Impact printers
Used for reproduction of drawings. They are the dot matrix type and form shapes by the
appropriate selection of small dots from the print head.
Non-Impact Printers
Creates shapes by burning a thin metallic coating on the special printing paper.
3
Use a print head which directs a jet of ink at the paper to create the required shapes.
Plotters
There are 2 basic types of plotters namely flat bed and drum.
Have a flat area on which the paper of any type and thickness is placed and the pens of various
thickness and ink color are free to move in any direction with plot head providing all the motion.
Have rotating drum over which the paper can move in two directions and pens are limited to
move only across the drum and with a combination of pen movement and rotation, required
motion is provided. They produce drawings of longer length compared with flatbed plotter.
A phosphor surface on the inside of the tube is bombarded by electrons to produce the drawing
image. When the picture is produced it remains stored on the screen without flicker. The
disadvantage includes a slow update procedure (replacing old image by new) and its color
capacity is limited.
It is similar to the television screen. - Uses a grid of dots known as pixels to display the image.
The resolution or clarity of the image depends on the number of pixels per screen area. This
system achieves a fast update and a good quality of color and resolution.
4
The Refresh Tube System
It is maintained by regular redrawing, 50 times per second of the picture, lines, arcs and curves.
First, the points are located, and then the required connecting lines or curves are drawn directly
with an electron beam. The updating is very rapid but color capacity is limited and there is
tendency to flicker as the picture becomes more complex.
(a) Primary Storage: is the main memory, which is connected directly to the CPU.
(b) Secondary Storage: is the auxiliary memory stored externally on magnetic disc,
USB/memory card and loaded into the main memory when required.
5
2. Shorter Lead Time: Interactive CAD is faster than traditional manual design process. It
speeds up the task of preparing the bill off material using CAD system as finished set of drawing
and documentation can be prepared in a relatively short time.
3. Flexibility in Design: With improved accuracy, CAD offers the advantage of easy
modification of design to accommodate customer specific requirements
5. Fewer Design Errors: Errors occur naturally during operation will be avoided.
6
STARTING A NEW DRAWING FROM SCRATCH
Dialog box appears. Select appropriate type, precision and press the OK button.
7
2.1.2 Setting Limits
Select drawing limits command using one of the following:
NB You can specify one of the following paper sizes the coordinates of the upper right corner:
Paper Sizes
A4 210 * 297 mm
A3 297 * 420 mm
A2 420 * 594 mm
A1 594 * 841 mm
A0 841 * 1189 mm
Command: Grid
Command: SNAP
8
You can select drafting setting by using one of the following:
View→ Zoom All- to make the screen display the new drawing limits and other settings.
F2- edit
F5 -
F12-
9
Format Linetype. Linetype Manager Dialogue box appears. Pick the LOAD tab to open
the load or reload linetypes dialogue box. Select the required types of lines from the available
list. E.g. centre line, hidden line, etc. A continuous line for outlines is loaded by default.
After loading the required linetypes, press the OK button and close the linetype manager box.
2.2 Layers
A layer is an electronic drawing sheet which consists of a name, color, line type, line weight and
whether or not it should plot.
Using layers is an important part of managing and controlling your drawing. It is better to have
too many layers than too few. Draw like objects on the same layer.
For example, place all hidden lines on the layer “hidden line” or centerlines on the layer
“centerline”.
The Layer command is a very important tool of AutoCAD. It lets you create layers to separate
your drawing objects. Layers are used to group, change the visibility and to control objects.
Each layer you create has its own associated properties that are unique to that layer.
A list of things you can do using layers:
Control objects by locking and unlocking layers so they are not accidentally modified.
Allow layers to be plotted or not.
Create as many layers as you want.
Group layers by colours, line types, names, etc... Also, you can create a group filter inside
the layer manager that can be saved within the drawings so other sharing users can use it
later.
Isolate layers and objects with the same properties in the drawing space. For example,
you want to show only walls and hide all doors.
Change the visibility of drawing layouts.
Turn on or off, freeze or thaw layers in model space or in the viewport layouts in paper
space.
Globally changes object properties.
It is necessary to create and use different types of layers and lines because:
10
i. Layers: control the drawing by means of visible drawing entities in color, linetype
and line weight.
ii. To facilitate drawing management through layer options:
1. Type LAYER in the command line or select from the layer toolbar.
11
2. By default AutoCAD will name the layer “layer1”.
3. Double click and rename it
4. In the right column you can assign colour, line type to the layer, freeze or thaw it.
5. Select the object in the drawing to which the layer will be assigned.
6. Click on the layer icon bar and select the appropriate layer.
12
a) Keyboard
b) Screen menu
c) Pull down menu
d) Icon menu
Keyboard
Enter any Auto-Cad command at the keyboard by typing the command name at prompt. After
entering command, press enter key.
Screen Menu
This menu is shown at the right or left hand side margin of the drawing screen. Select an item
from the screen menu by picking an icon using the cursor.
The status line and menu bar presents a lot of titles for pull down menus. These pull down menu
are almost a repetitions of the standard screen menu.
Icon menus
An icon menu displays different graphic images (icon) available for selection. Examples are
hatch patterns, text fonts etc.
Ortho Command
Grid command
Snap command
13
Saving a File
To save a file, choose “SAVE AS” from the pull down menu.
Type the required file name in the file name box. Then click on OPEN box.
To tell AutoCAD which entity to draw, type the required command (e.g. line) on the key board
or select the command from the menu by a pointing device e.g. Mouse.
Then respond to the prompts on the screen, by supplying the parameters of the chosen entity.
When the entity parameters are complete, the drawing of entity appears on the screen.
14
3.2 The coordinate system in AutoCAD
A straight line can be drawn using the following methods of line command.
a) Absolute Co-ordinates
b) Relative Co-ordinates
c) Polar Co-ordinates
d) Trim/ Offset Commands
e) Direct Distance Entry Method
Command: LINE
Rectangular Absolute
15
A point can be specified using X and Y coordinates with respect to the origin (0,0)
Eg. 200,300
Rectangular Absolute
Example: Draw a line from point (30,100) to point 300 units in x- axis and 75 units in y -axis
relative to first co-ordinates.
Command: LINE
16
To point: (Press Enter) or click left mouse button.
Rectangular Relative
A point is specified using X and Y coordinates with respect to the previous point.
E.g @45,68
Rectangular Relative
17
Figure 6 : Polar Coordinates 2
Command: LINE
Polar Absolute
A point is specified using a distance and an angle with respect to the origin.
Eg. 200<45
Polar Absolute
Polar Relative
18
A point is specified using a distance and an angle with respect to the last or previous point.
Eg. @68<90
Polar Relative
Using DDE is simple. Just move the cursor and type the distance. Negative and positive is
understood automatically by moving the cursor up (Positive), down (negative), right (positive) or
left (negative) from the last point entered. No minus sign necessary.
Moving the cursor to the right and typing 5 and < enter> tells AutoCAD that the 5 is positive and
horizontal.
Moving the cursor to the left and typing 5 and < enter> tells AutoCAD that the 5 is negative and
horizontal.
Moving the cursor up and typing 5 and < enter> tells AutoCAD that the 5 is positive and vertical.
Method 1:
19
2. Select a starting point for the line segment.
3. Select an end point for the line segment.
4. Hit Enter.
Method 2:
Method 3:
1. Select the line symbol from the draw menu or type Line or L in the command line.
2. Select a starting point for the line segment.
3. Move the cursor in the line direction.
4. Enter the length of the line segment, for example: type 3’ or 3”.
5. Hit Enter.
6. Hit Enter again to get out of the command.
Method 1:
20
4. Select the line you want to trim.
Method 2:
Method 1:
Method 2:
1. Select the line you want to extend. (The grip will be automatically highlighted in blue).
2. Pick a grip from the line.
3. Drag the line from the end grip or side that you want to extend. (This is also a stretch method).
21
Creating a fillet - Method 1:
Method 1:
Method 2:
22
2. Specify on the screen the first corner for the rectangle you want to draw.
3. Type D to specify the dimension for the rectangle.
4. Input the length.
5. Input the width.
6. Click anywhere inside the rectangle area to get out of the command.
QUESTION
Draw bracket shown in figure 6 using (a) Absolute Coordinates, (b) Relative Coordinates and
(c) Polar Coordinates. Assume coordinates of the starting point to be 30,100.
80
SOLUTION
23
Figure 8 : Solution 1 bracket by Absolute Coordinates
24
(b) Relative Coordinates
25
Figure 10 : Solution 3 bracket by Polar Coordinates
Command: Ortho
26
3.8 How to draw a circle step by step instruction
You can create circles in many different ways. In this tutorial we will only use the circle symbol
from the modify tool and the command line.
Method 1:
Method 2:
Method 3:
1. Select the circle symbol from the draw menu, or type Circle or C in the command line.
2. Click on the screen where you want to specify the centre point for the circle.
3. Specify the radius or diameter of the circle by typing R or D.
4. Hit Enter.
5. Input the numeric value.
6. Hit Enter.
27
3.9 Creating and array of objects
The array command in AutoCAD is used to make multiple copies of objects. Although you can
use the copy command to duplicate objects, the array command is more flexible and precise. One
advantage of using the array command is that it allows you to copy objects in a defined angle and
exact number of copies. Therefore, you can create array in various pattern. For example, you can
show multiple objects in a row, column, or irregular pattern such as a spiral. Let’s look at a few
examples below:
1. Type Array in the command line or select from the modify toolbar.
2. Select the object you would like to array.
3. Input the number of rows. (negative number for downward array)
4. Input the number of columns. (negative number will point array to the left)
5. Pick or input the distance for the Row offset.
6. Pick or input the distance for the Column offset.
7. Enter the Angle for the array. (Use the default 0 degree).
8. Select the Preview button to see the sample array before you hit the Ok button. You can
accept the array or modify it. (Optional step).
28
3.9.2 Polar array
1. Type Array in the command line or select from the modify toolbar.
2. Select the object you would like to array.
3. Enter or select the centre point of rotation for the object.
4. Select a method of array. (3 methods to choose from see terms definitions below).
5. Enter the number of items to array. (Methods 1 and 2).
6. Enter the array angle. (Methods 1 and 3).
7. Enter the angle between the objects. (Methods 2 and 3).
8. Make sure to check “Rotate items as copied” if you would like to copy the objects as
selected.
9. For Object base point use the default selected. (Optional step).
10. Select the Preview button to see the sample array before you hit the Ok button. You can
accept the array or modify it. (Optional step).
29
See the figure below for visual step by step instructions.
Terms definitions:
Rows and columns: where you enter the number of rows and columns of objects. There are a
maximum number of rows and columns that can be entered. If you want to override that number
you can always do that by typing (setenv “MaxArray “####”) in the command prompt. Where
### is the new maximum number you would like.
30
Method of array:
Base point: is the reference point where AutoCAD will rotate the object. By default, depending
on the shape, the base point is already set. For example, a circle, an ellipse, or an arc, they all
have a default base point at the centre, but you can manually specify a different point.
3.10 Hatching
When drawing objects you can use the hatch command to fill areas. It creates block patterns that
can represent materials such as earth, insulations, or grass. You can also create solid fill the same
way you create hatch patterns. Although AutoCAD comes with custom standard patterns, you
can also create your own hatch patterns or use the external pattern library displayed in the hatch
Pattern Palette dialogue box.
You can define a simple hatch pattern based on the current linetype. You define the pattern by
changing the angle and spacing of the hatch lines.
1. From the Draw Menu, choose Hatch or type Hatch in the command prompt.
2. At the right of the Boundary Hatch and Gradient fill dialog box, choose Pick Points or Select
Objects.
31
1. Specify an internal point for the hatch area or select the object.
2. Hit the Tab bar or press Enter to go back to the Hatch dialogue box.
3. Select Predefined in the Type box.
4. Select a Pattern From the Pattern box. If you select an ISO pattern, you can specify a
pen width, which determines the lineweight in the pattern.
5. Choose OK.
32
3.10.2 To create User-Defined Hatch Patterns:
1. From the Draw Menu, choose Hatch or type Hatch in the command prompt.
2. At the right of the Boundary Hatch and Gradient fill dialog box, choose Pick Points or Select
Objects.
3. Specify an internal point for the hatch area or select the object.
4. Hit the Tab bar or press Enter to go back to the Hatch dialogue box.
5. Select User-defined in the Type box.
6. Specify the angle and spacing of the hatch pattern.
7. Select Double to use intersecting lines in the pattern.
33
8. Choose OK.
Method 1:
In AutoCAD, go to Format. Select Text Style. When the Text style dialogue box appears:
1. You can either select Standard style or create a new style.
2. Enter the name for your new style.
3. Select a Font Name and Style from the drop down menu.
4. Check the Annotative box if you want annotation text.
5. Enter the Text Height for your style. This is the size of the text that will be displayed each
time you apply your style.
34
6. Enter a Width Factor.
7. Click Apply.
You can edit the style at any time by repeating the steps above.
Method 2:
Select the text style symbol from the format menu or type Style in the command line.
1. You can either select Standard style or create a new style.
2. Enter the name for your new style.
3. Select a Font Name and Style from the drop down menu.
4. Check the Annotative box if you want annotation text.
5. Enter the Text Height for your style. This is the size of the text that will be displayed each
time you apply your style.
6. Enter a Width Factor.
7. Click Apply.
3.11.1 Dtext
SINGLE LINE TEXT allows you to draw one or more lines of text. The text is visible as you
type. To place the text in the drawing, you may use the default START POINT (the lower left
corner of the text), or use one of the many styles of justification described on the next page
3.11.2 Mtex
MULTILINE TEXT command allows you to easily add a sentence, paragraph or tables. The
Mtext editor has most of the txt editing features of a word processing program. You can
underline, bold, italic, add tabs for indenting, change the font line spacing and width of the
paragraph
When using MText you must define a text boundary box. The text boundary box is defined by
entering where you wish to start the text (first corner) and approximately where you want to end
the text (opposite corner). It is very similar to draw2ing a rectangle. The paragraph text is
considered one object rather than several individual sentences.
35
3.12 How to pan and zoom drawings
When you work in a drawing, you can control the display and move quickly to different areas of
the drawing while you track the overall effect of your changes. You can zoom to change
magnification or pan to reposition the view in the drawing area.
Here are several ways you can pan and zoom a drawing:
36
You can zoom in on a rectangular area of your drawing by specifying two diagonal corners of
the area you want to view larger.
Using the REALTIME option, you can zoom dynamically by moving your mouse up or down.
By right-clicking, you can display a shortcut menu with additional viewing commands.
To zoom by dragging
The ZOOM Extents command is used to display the largest possible magnification of the
drawing that includes all of the objects in the drawing. For example objects on layers that are
turned off but it will not include objects on frozen layers.
NB: When you use ZOOM All, it displays either your defined drawing limits or the drawing
extents, whichever view is larger.
You can quickly zoom to the centre of a specified point or object in your drawing by using
ZOOM Centre. It is very useful for resizing an object and bringing it to the centre of the
37
viewport. To specify the size of the zooming area you enter either the number of vertical drawing
units or a magnification relative to the current view.
The limits of the drawing grid fill the current viewport or the drawing area. If there are any
objects outside the grid limits, they are also included.
NB: Zoom Previous will restore only the view magnification and position, not the previous
content of an edited drawing.
38
PRODUCTIVITY TOOLS IN AUTOCAD
4.1 Templates
It is tedious to set dimension styles, layers, and text styles each time you wish to start a
new drawing
You can create a blank drawing file with all your requirements set and then save it as a
template. In this case a template can be made for the various paper sizes A0, A1, A2, ….
These can be accessed whenever you wish to start a drawing
A drawing template can be saved in the dwt file format
A drawing office can establish its own templates that are can be used by everyone in the
organization for the sake of maintaining standards.
After you define standards, you save them as a standards file. Cad standards are saved
using the dws file format.
Cad standards file created is then used to automatically audit all other drawings created in
the drawing office.
You can then associate the standards file with one or more drawing files.
To audit for standards Open a drawing that has one or more associated standards files
39
Click tools- CAD Standards - Check
Use the CHECKSTANDARDS command
An object with a nonstandard name is present in the drawing being checked. For
example, a layer named WALL is present in the drawing but not in any associated
standards files.
A named object in a drawing matches the name of one in a standards file, but their
properties are different. For example, in the drawing the WALL layer
4.3 Blocks
Internal and external blocks
Common objects like bolts or switches do not need to be drawn each time they are
required. A bolt can be drawn once and stored away as an external block. It can be called
when ever it is required.
A title block is an example of a block
Use command: block to create a block
Fill in the dialog block
To insert a block use command: -insert
When you insert a block, you create a block reference and specify its location, scale, and
rotation
To remove unused block definitions and decrease the drawing size, use PURGE at any
time in your drawing session.
To make the block external use command: wblock.. writeblock
Block references that contain other blocks are known as nested blocks. Using blocks
within blocks can simplify the organization of a complex block definition.
A block library is a collection of block definitions stored in a single drawing file. You
can use block libraries supplied by Autodesk or other vendors or create your own.
40
You can use tool palettes to organize blocks that are stored in one drawing file or separate
drawing files
Objects in the block inherit color, linetype, and lineweight properties from the color,
linetype, and lineweight assigned to the current layer only. For this choice, before you
create objects to be included in the block definition, set the current layer to 0, and set the
current color, linetype, and lineweight to BYLAYER.
Objects inherit color, linetype, and lineweight properties from the current color, linetype,
and lineweight that you have set explicitly, that is, that you have set to override the color,
linetype, or lineweight assigned to the current layer. If you have not explicitly set them,
then these properties are inherited from the color, linetype, and lineweight assigned to the
current layer. For this choice, before you create objects to be included in the block
definition, set the current color or linetype to BYBLOCK.
4.5 Attributes
Attributes are normally associated with blocks.
Quite often a block has some text attached to it. Attributes are used to edit the text
associated with the blocks, at the time of inserting the block.
To create an attribute use command:attdef
41
4.6 Xrefs step by step instruction
Xref is acronym for external references.
It allows many people to work on separate areas of the same project.
There is a master drawing onto to which other sub-drawings are attached.
Use command xattach, xref in order to attach a sub drawing to another drawing.
Xref is the most useful command from AutoCAD. If you are going to use the software for work
or you are looking to advance further, you will need to know how to use the xref command. It is
absolutely necessary.
Xref is used to cross reference plans and objects because you want to minimize repetitions,
maximize consistency, save time and increase productivity.
Now, let us become more practical here. Let us assume you have three drawings. I will call them
sheet 1, sheet 2 and sheet 3 (see images below).
Sheet 1 shows a rectangle. But it could be anything else. The two other sheets have circles, etc.,
but they both have one thing in common: a rectangle. So instead of drawing that rectangle twice,
it would be wise to draw it once and xref it to both drawings. Some of you might think: What if I
draw it once and then copy it to each drawing?
42
If you copy the drawing you will have to copy it again if you want to make changes to that
rectangle. Let us say you want to make it larger or want to chamfer the edges. Do you want to
copy again? Or do you want to just change the xref and that is it.
The idea here is to reduce steps and time by drawing anything in common once. And that is
when the xref comes in handy.
There are two types of xrefs: Overlay and Attachment.
Overlay: only brings what you draw inside that xref sheet. No other dependent. In other words:
if you were to look at a tree diagram, it only goes one level deep (see image above on the left).
Attachment xrefs bring unlimited dependent xrefs and levels (see image above on the right).
Steps:
43
7. For insertion point, scale and rotation: leave them unchecked for this tutorial.
8. Click OK and close the dialogue box.
Your xref drawing should be inserted inside the current drawing like the above image.
5.1 Advantages of 3 D
You can:
– Model space is set using the command: limits. The space is derived from the paper size
and scale factor.
– The Model tab accesses a limitless drawing area called model space. In model space, you
draw, view, and edit your model.
– In model space, you draw your model at 1:1 scale
– you decide whether one unit represents one millimeter, one centimeter, one inch, one foot
– Layout tabs access an area called paper space
– Paper space area is set by simply choosing the standard paper sizes. You access the paper
sizes through page setup/ print manager. Modify to change the paper size if necessary.
45
5.3.2 Page Setup
– Is found in the application menu under Print.
– Your page set up determines the size of the layouts which represents paper space
– Use paper space for composing your drawing sheet and defining views.
– When you create a layout, you can choose to apply the information from an existing
template
– All the geometry of your drawing is contained in layouts.
– Model space geometry is contained on a single layout named Model
– You cannot rename the model space layout
– Paper space geometry is also contained on layouts
– You can have many different paper space layouts in your drawing, each representing a
different configuration to print.
– You can change the name of the paper space layouts.
– Layout settings control the final plotted output.
– These settings affect the paper size, plot scale, plot area, plot origin, and the plot device
name
– Understanding how to use layout settings ensures that the layout is plotted as expected
5.4 Modeling in 3D
Command:Soldraw
• Generates profiles and sections in layout viewports created with SOLVIEW.
46
– Select objects: Select the viewports to be drawn
– From soldraw, you can go on to plot the layout
Command:vports
– Allows to create viewports and assign them names eg front, isometric
– These views can be placed in the layout view when they need to be plotted
Command: mview
– Creates and controls layout viewports.
– Specify the first corner and the second corner of a rectangular viewport.
– It works in layout view
Practical 1
The flange
Practical 2
47
The bolt
• Draw a 3 dimensional bolt. Pitch for threads is 5mm, Number of turns is ten,
• Thread height is 50
Use absolute or relative coordinates to draw curves and lines. Use coordinates x, y, r, ∅
and z are used.
You can create wireframe models by positioning any 2D planar object anywhere in 3D
space, using the following methods:
Use the XEDGES command to create wireframe geometry from regions, 3D solids,
surfaces, and meshes. XEDGES extracts all the edges on the selected objects or
48
subobjects. The extracted edges form a duplicate wireframe composed of 2D objects such
as lines, circles, and 3D polylines.
Set the default workplane (the XY plane of the UCS) on which to draw the object.
Move or copy the object to its proper 3D location after you create it.
Practical 3
Roofed Structure
49
– Convert objects into procedural surfaces. Convert existing solids (including
composite objects), surfaces, and meshes into procedural surfaces
(CONVTOSURFACE).
– Create surfaces from profiles. Create surfaces from profile shapes composed of
lines and curves with EXTRUDE, LOFT, PLANESURF, REVOLVE,
SURFNETWORK, and SWEEP.
– Use SURFBLEND to create a new surface between existing surfaces and solids.
When you blend surfaces together, specify the surface continuity and bulge
magnitude for the start and end edges
Click Surface tab Create panel Loft.At the Command prompt, enter loft.
Select the cross section profiles and press Enter. Select them in the order in which you
want the new 3D object to pass through them.
50
After the loft operation, the original objects are deleted or retained, depending on the
setting of the DELOBJ system variable.
Associative Surface
Associativity allows you to:
Reshape the generating profiles to automatically reshape the surface.
Work with a group of surfaces as if they were one object. Just as reshaping one face of a
solid box adjusts the entire primitive, reshaping one surface or edge in a group of
associated surfaces adjusts the entire group.
You can also create surfaces by blending, patching, offsetting, filleting, and extending
other surfaces.
Use the SURFSCULPT command to convert a group of surfaces that enclose a water
tight region to a 3D solid.
In this illustration below, the same profile creates a solid (left), a procedural surface (middle),
and a NURBS surface (right).
51
Surface Editing
Surface trimming
Select a surface.
Fillet surface
Select the first and second surfaces. The fillet surface is created and the originating are
surfaces automatically trimmed if necessary.
Exercise
52
Analysis of Surfaces
Zebra Analysis - Analyzes surface continuity by projecting parallel lines onto the model.
Click Surface tab Analysis panel Zebra. At the Command prompt, enter analysiszebra.
Curvature Analysis - Evaluates areas of high and low surface curvature by displaying a color
gradient
Click Surface tab Analysis panel Curvature.At the Command prompt, enter
analysiscurvature.
Draft Analysis - Evaluates whether a model has adequate draft between a part and its mold.
Click Surface tab Analysis panel Draft.At the Command prompt, enter analysisdraft.
53
Select a model and press Enter.
Create mesh primitives. Create standard shapes, such as boxes, cones, cylinders,
pyramids, spheres, wedges, and tori (MESH).
Create mesh from other objects. Create ruled, tabulated, revolved, or edge-defined mesh
objects, whose boundaries are interpolated from other objects or points (RULESURF,
TABSURF, REVSURF, EDGESURF).
Edge surface
54
Convert from other object types. Convert existing solid or surface models, including
composite models, to mesh objects (MESHSMOOTH). You can also convert the
legacy style of mesh to the new mesh object type
You can use the MESHSMOOTH command to convert certain objects to mesh.
Convert 3D solids, surfaces, and legacy mesh object
create mesh using the 3DMESH, PFACE, and 3DFACE commands
Mesh objects do not have the mass and volume properties of 3D solids. However,
they do offer unique capabilities that enable you to design less angular, more rounded
models. Mesh objects are easier to mold and reshape than their solid and surface
counterparts.
A mesh model consists of vertices, edges, and faces that use polygonal representation
(including triangles and quads) to define a 3D shape.
Unlike solid models, mesh has no mass properties
For example you can apply creases, splits, and increasing levels of smoothness. You can
drag mesh sub-objects (faces, edges, and vertices) to deform the object.
Split or merge faces. Divide an existing face into separate components along a specified
path. Merge two or more faces to create a single face (MESHSPLIT, MESHMERGE).
Collapse vertices. Alter the mesh model by collapsing the vertices of adjacent faces to a
single point (MESHCOLLAPSE.
Spin edges. Spin the shared edge of adjacent triangular faces to alter the shapes and
orientation of the faces (MESHSPIN).
55
Extrude a face. Extend a specified face by extruding it into 3D space. Unlike 3D solid
extrusion, a mesh extrusion does not create a separate object (MESHEXTRUDE).
Repair holes. Close a gap between faces by selecting the surrounding edges. Holes in
mesh objects can prevent you from converting a mesh object to a solid object
(MESHCAP).
56
5.6 3D Solid Practical questions
A B
57
E
F
G
H
I J
58
L
In order to develop a numeric control part program to drive the CNC machine tool for the
manufacture of a component, a sequence of operations is drawn up and the locations for
particular machining operations are indicated by the cursor on the drawing displayed on the
screen.
59
In general, the CAM software translates all relevant information from the database to produce
the part program, which is then issued to the machine tool in order to manufacture the
component. Very complex component contours can only be successfully machined by Numeric
Control machines.
Control is defined as the exercise of directing, guiding or restraining power over something. By
combining the two definitions we find that Numerical Control consists of directing ,guiding or
restraining power over something by the use of numbers and hence the name Numerical
Controlled Machine tools. In NC, the numbers form a program of instructions designed for a
particular job. When the job changes, the program of instructions changes.
Numerical Control (NC) refers to the automation of machine tools that are operated by
abstractly programmed commands encoded on a storage medium as opposed to controlled via
hand-wheels or levers and mechanically automated via cams.
The first NC machines were built in the 1940s and 1950s based on existing machines that were
modified with motors that moved the controls to follow points fed into the system on punched
tapes. These early servo-mechanisms were rapidly augmented with analogy and digital
computers, creating the modern Computer Numeric Control (CNC) machine tools that have
revolutionalised the machining processes.
In modern CNC system, end-to-end component design is highly automated using computer aided
design CAD, and computer aided manufacturing CAM programs. The programs produce the
computer file that is interpreted to extract the commands needed to operate a particular machine
via a post-processor, and then loaded into CNC machines for production. Since any particular
component might require the use of a number of different tools, drills, saws etc, Modern
machines often combine multiple tools into a single cell. In other cases, a number of different
machines are used with an external controller and human or robotic operators that move the
component from machine to machine. In either case the complex series of steps needed to
60
produce any part is highly automated and produces a part that closely matches that original CAD
design.
It is a detailed set of directions which tell the machine tool what to do and in what sequence. The
part program is written in coded form and contains all the information needed for machining the
component. The part program is fed to the machine control unit through some input medium.
Various types of input media are:
61
Machine Control Unit (MCU)
It consists of the electronics and hardware that read and interpret the program of instructions and
convert it into mechanical actions of the machine tool. The elements of this unit are program
reader, signal output channel to the machine tool, feedback channels from the machine tool and
sequence controls to co-ordinate overall operation.
It is the third basic component of an NC system. It performs the useful work. It consists of the
work table and spindle as well as the motors and controls needed to drive them. Examples of
machine tools are: lathe, drilling press, milling machine, etc.
(a) For parts, which are complex and it will not be possible to manufacture them very
accurately on conventional machines due to human error involved
(b) For parts which are frequently subjected to design changes.
(c) Repetitive and precision quality parts which are to be produced in low to medium batch
quantity.
(d) In situations where the investment on tooling and fixture inventory will be high if the
parts are made on conventional machine tools.
(b) Less Scrap - Since the operator errors are limited, a proven part programme results in an
accurate component. Certain errors like incorrect hole locations are almost eliminated. In general
NC cuts the costs of scrap often by more than 10%.
62
(c) Machining Accuracy - A consistent and high degree of accuracy in machining is achieved.
The consistent products lead to better assembly and reduced fitting costs.
(d) Cost of Modification - Production is not stopped, while a modification is introduced, a new
tape is quickly prepared, few, (if any) jigs need to be modified.
(e) Reduction in Tooling Cost - Tooling costs are reduced because of optimum selection of
speeds and feeds for cutting tools.
(f) Transport Costs -The machining centre reduces the number of components of a batch to be
moved from machine to machine, thus reducing transport costs.
(g) Reduction of Lead Time - Lead time is reduced due to short set up time and quick change
over from one job to another.
(h) Flexibility of Component Design - The modifications or changes in component design can
be readily accommodated by reprogramming and altering the concerned instructions.
(b) Maintenance costs increase owing to the sophistication of the control system.
63
With conventional numerical control, the punched tape is cycled through the reader for every
work in the batch.
With CNC, the programme is entered only once and then stored in the computer memory. Thus
the tape reader is used only for loading the part programme.
This involves conversion of the part programme instructions into machine tool motions through
the computer interface and servo system.
In Process Compensation
64
This involves the dynamic correction of the machine tool motions for changes or errors which
occur during processing. For example:
Diagnostics
CNC machines are complex and expensive systems. NC machines are often equipped with a
diagnostics capability to assist in maintaining and repairing the system.
Hybrid CNC
65
In hybrid CNC system, the controller consists of soft-ware computer plus hard- ware logic
circuits. The hard-ware components perform functions such as feed rate generation and circular
interpolation. The computer performs the remaining control functions.
Straight CNC
The straight CNC system uses a computer to perform all the NC functions. The only hard –ware
elements are those required to interface the computer with the machine tool and operator’s
console. Interpolation, the tool position feedback, and all other functions are performed by
computer software. Accordingly, the computer required in a straight CNC system is more
powerful as compared to the one needed for the Hybrid system.
66
The part programme tape and tape readers are used only once to enter the programme
into the computer memory resulting in improved reliability.
CNC system enables the correcting and optimising (such as speeds, feeds) the tape,
during tape try-out at the site of machine tool.
Tapes prepared in one unit can be converted into other units.
Greater flexibility. The control functions can be modified..
User written programs can be used (MACRO SUB ROUTINES)
CNC provides at total manufacturing system.
67
Figure 15 : General Configuration of DNC
The system consists of four basic components:
68
Figure 16: DNC with Satellite mini Computers
These satellites are mini computers and they serve to take some of the burden off the central
computer. Each satellite controls several machines. Groups of part programme instructions are
received from the central computer and stored in buffers. They are then dispensed to the
individual machines as required.
69
4. Because of management function software, the shop floor running of machines,
inventories of tooling etc. can be handled much better. The management software also
makes it possible to prepare regular manufacturing reports quickly for higher level
decision making.
5. DNC also provides same of the hands on first step essential experience for future
expansions leading to fully automated systems or factories of future.
Questions
In this system the actual displacement of the slide may vary with the change in external
conditions due to the wear of the components of the drive to compensate on mechanism. Since,
there is no provision of feedback in the control system, periodic adjustments are required to
compensate for the changes due to various factors. Open-loop control system is simple and less
costly, but it is not as accurate as closed –loop control system.
70
Maintenance of this system is not complicated. On the other hand some systems do not require
the additional closed loop features.
71
Figure 18 : Closed loop System
Feedback Devices
Is used to measure and monitor the speed of the drive motor. It is normally provided by a device
called techo-generator. It is simply a voltage generator that gives voltage output which is
proportional to its speed. The output voltage from the techo-generator is used as feedback to
monitor the motor speed.
It is used to measure and monitor the position or displacement of the machine slide. The position
measuring devices used are either rotary or linear measuring transducers.
Position Control
72
In this system, the machine tool performs machining operations at specific points and there is no
machining while the machine table/slide moves from point to the next point. Drilling operations
and spot welding are the examples of this control.
Linear interpolation is also called a Straight Line Control System. It is an extension of point to
point control system with position of machining along the straight line as in case of milling and
turning operations.
73
(iii) Circular Interpolation
The contouring system is a high technology and most versatile control system. The contouring
system generates a continuously controlled motion of the tool and work piece along different
coordinate axis. This control system enables the machining of profiles, contours and curved
surfaces. In contouring system, the movement of several machine slides has to be controlled
simultaneously so that their relative positions and velocities are established at every point and
continuously throughout the operation.
In the absolute system, the coordinates of a point are always referred with reference to the same
datum. The datum positions in the X-axis, Y-axis and Z-axis are defined by the
user/programmer before starting the operation on the machine.
74
Figure 22 : Absolute System
A major advantage of using this system is that it is very easy to check and correct a programme
written by this method. If a mistake is made in the value of any dimension in a particular block,
it will affect that dimension only and once the error is corrected, there will be no further
problems.
Incremental System
In this system, the coordinates of any point are calculated with reference to the previous point.
It is difficult to check a part programme written in incremental dimension mode.
75
Questions
1. What is Numerical control? List the basic components of numerical control system.
NC PART PROGRAMMING
NC Part Programming is the procedure by which the sequence of processing steps to be
performed on the NC machine is planned and documented. It involves the preparation of a
punched tape or other input media used to transmit the processing instructions to the machine
tool. The part programming methods include: manual part programming, computer assisted part
programming, manual data input, NC programming using CAD/CAM and computer automated
part programming.
The most common input media are manual input using the keyboard, punched tape, magnetic
tape and diskettes.
76
7.2 NC Words
An NC- word is a collection of characters used to form an instruction. Typical NC-words
include: X-position, Y-Position, Feed rate etc. A collection of NC words is called a block and a
bock of words is a complete NC instruction. The following are the NC words used in the
formation of blocks.
The first word in every block is the sequence number. This is used to identify the block. It is
preceded by the word N and is written as N0001, N0002, and N0010 etc. The programme is
executed from the lowest block number to high block number.
The preparatory function word prepares the control unit to execute the instructions accordingly.
It is represented by two digits preceded by G e.g. G00, G71, G03 etc. The preparatory function
enables the controller to interpret the data which follows and it precedes the coordinate words.
For example, G01 is used to prepare the controller for linear interpolation. Some of the
preparatory functions are given below.
CODE FUNCTION
G004 Dwell
77
G70 Dimensioning in inch units
These words give final coordinate positions for X, Y and Z motions. In two axis CNC system
only two coordinate words are used.
78
Figure 24 : Lathe Machine Tool Axes
The tool movement towards head stock is taken as (-Z) and movement away from head stock is
taken as (+Z).
The tool movement towards the centre is taken as (-X) and tool movement away from the centre
is taken as (+X).
79
+z
-z
+x
+y
-y
-x
It is used to specify the feed rate in the machining operation. The feed rate is expressed in
millimetres per minute (mm/min) or (mm/rev)
The spindle speed is specified either in revolutions per minute (rpm) or as meters per minute.
The T- word is needed only for machines with programmable tool turret or automatic tool
changer. The T-word in the part programme specifies which tool is to be used in the operation.
80
It is used to specify certain miscellaneous or auxiliary functions which do not relate to the
dimensional movements of the machine. The miscellaneous functions may be spindle start,
spindle stop, coolant On / Off etc. The miscellaneous functions are given in the table below:
CODE FUNCTION
M08 Coolant On
81
For example, if some coordinate values (i.e X, Y or Z coordinates) remain constant from one
block to the next block. These values must be specified in the next block also. In this system,
only data is provided in the programme and the identifying address letters are not given, but the
data must be input in a specified sequence and characters within each word must be of the same
length.
Examples
Two holes are to be drilled in a MS flat plate as shown below using a CNC drilling machine,
with 10 mm diameter drill at 500 rpms and feed rate 200 mm/min. Write three tape formats.
82
Y
HOLE 1 HOLE 2
N-Word 001 002
X-Word 25 75
Y-Word 30 30
F-Word 200 200
S-Word 500 500
N X Y F S
001 25 30 200 500
002 75 30 200 500
N X Y F S
83
001 TAB 25 TAB 30 TAB 200 TAB 500 TAB
002 TAB 75 TAB
Manuscripts come in various forms, depending on the machine tool and tape format to be used.
The manuscript is a list of relative tools and workplace locations. It also includes other data, such
as preparatory commands, miscellaneous instructions, speed and feed etc. Manual programming
can be divided into two categories: point to point and contouring. Mostly word address format is
used in part programming.
84
Feed function (G94 or G95)
The first blocks of programme will look as follows:
N010 G71 G90 G94 : Metric mode, Absolute system, feed mm/min
N020 G00 X 50 Z30 : Move in rapid to point P(50,30) - tool post home
position)
N030 M06 T0202 : Tool number
N040 M03 F200 S800 : Spindle start Clockwise, at 800 rpms and feed 200
mm/min)
N050 M08 : Coolant on
G00 X2 Z2 : ( rapid traverse to the starting position / stand-off position)
The last blocks will look like as follows:
Move the cutting tool to a point near the job in the rapid mode (G00)
Set linear interpolation (G01) and move to the required depth of cut in X-direction.
Move along The Z-axis to the required length of the job as per drawing
Set rapid mode (G00) and retract the tool along X-axis.
Move to start point in (G00) mode.
85
Figure 27 : Tool Motions
It is a dimensional value defining the position of the cutting edges of a tool in relation to a given
datum. It can either be on the radius or length. For radius offset the cutter is entered as a diameter
whilst for length compensation the tool length is varied in different directions of the tool
movement.
If the tool is replaced by another tool, say 30mm shorter in length, then the tool movement will
be 30 mm less along the X-axis if the same programmed values are used. So the alternative is to
modify the program every time if the tool is changed. In NC practise, all the tools are measured
in the assembled state and this information is kept up to date. For the tools used, the differences
in length with respect to the pre-setting tool are recorded and is entered and stored with the
associated tool number. Whenever these tools are called into action by programmed instruction
the respective compensation values are activated and automatically taken into account in the tool
motion.
86
Figure 28 : Tool Length Compensation
In the profile operations, the tool path is to be calculated for preparing the program, whenever
the cutter size changes, the program would need editing. However, if compensation equal to the
radius of the cutter is entered and stored in the control system, then there will be no need to
change in program. The preparatory functions G40, G41 and G42 are used for the radius
compensation. Figure below shows tool radius offset:
87
Figure 29 : Tool Radius Offset
G41- This is when the cutter is on the left of the programmed path when looking in the direction
of the tool movement, i.e. the radius compensation is considered to the left of the programmed
profile.
G42 – It is used when the cutter is right of the profile path when looking in the direction of tool
movement.
Question1: Milling
Figure below shows a profile to be milled on milling machine. Assuming that a tool T 2 is to be
loaded and engaged for the machining operation, write a G Code (part program) to mill around
the profile shown. Assume milling depth to be 1mm and point A has coordinates (0, 0)
88
Figure 30 : Milling example Profile to be milled
89
End Program 140 02
Figure below shows a component of Ǿ50 x 65 mm in length. Billet material is aluminium and is
already faced off.
90
2
3
4
5
Solutions
Operations sheet
91
3 Cutting an Anti – Cemented Carbide Ǿ50 Collet 300 70 3200
clockwise arc R13 No.1 Chuck
4 Cutting a clockwise Cemented Carbide Ǿ50 Collet 300 70 3200
arc, R10 No.1 Chuck
5 Parting Off Parting Off Tool Ǿ50 Collet 80 50 2500
No.11 Chuck
End of program Repeat
Part Program
92
Spindle
Tool Change , Parting Off 130 06 11
Tool
Rapid To Stand Off 140 00 03 51 -57 2500
Position For Parting Off
Parting Off 150 01 -1 70
Rapid Clear of Work 160 00 51 -57
Tool Park Position, 170 00 05 60 10
Spindle Stop
End Of Program ,Repeat 180 30 10000
93