Cadcam Module 2
Cadcam Module 2
Cadcam Module 2
Class Rules
No drinks or eatables in the class
No discussion/debate on politics/religion
No mobile texting during class
Please keep your mobile phone silent; if you
have to attend a call take it outside the class
Good is of discipline of utmost importance
No collective bunking, or else.
Bibliography
The lecture material has been compiled from the following
sources;
Inspection
Interface
algorithms
Assembly
Process planning
Packaging
NC programs
To shipping and marketing
Process planning
Part programming
Inspection
Assembly
CAM
tools
Mfg tools
CAD
Networking
= CAM tools
Why CAM
Greater design freedom changed incorporated
during design stage
Increased productivity totally organized by
computer
Greater operating activity flexible manufacturing
method
Shorter lead time
Reduced maintenance
Reduce scrap and reworks
Better management control
Continuousflow
production
Production
quantity
Mass
production
Batch
production
Job shop
production
Product variety
Category
Automation achievements
Continuous-flow process
Batch production
Q BQ
T1
Rapid Prototyping
RAPID PROTOTYPING
1. Fundamentals of Rapid Prototyping
2. Rapid Prototyping Technologies
3. Applications and Benefits of Rapid
Prototyping
Additional Methods
In addition to starting material, the various
material addition RP technologies use
different methods of building and adding
layers to create the solid part
There is a correlation between starting material and
part building techniques
Classification of RP Technologies
There are various ways to classify the RP
techniques that have currently been
developed
The RP classification used here is based on
the form of the starting material:
1. Liquid-based
2. Solid-based
3. Powder-based
Stereolithography (STL)
RP process for fabricating a solid plastic part out
of a photosensitive liquid polymer using a
directed laser beam to solidify the polymer
Part fabrication is accomplished as a series of
layers - each layer is added onto the previous
layer to gradually build the 3-D geometry
The first addition RP technology - introduced
1988 by 3D Systems Inc. based on the work of
Charles Hull
More installations than any other RP method
Stereolithography
Figure 34.2 Stereolithography: (1) at the start of the process, in which the
initial layer is added to the platform; and (2) after several layers have been
added so that the part geometry gradually takes form.
LOM Example
Powder-Based RP Systems
Starting material is a powder
Powder-based RP systems include the
following:
Selective laser sintering
Three dimensional printing
SLS Process
Mirror
Powder
Bed
Optics
Piston
Laser
Powder
Bed
Leveling
Roller
Powder Feeding
System
Binder
Printhead
"Fast"
Axis
Piston
"Slow" Axis
Powder
Bed
BPM Process
Ejector Head
Build
Platform
Liquid
Powder
Bulk
1 Component
Gluing Sheets
Selective Laser
Sintering
Laminated
Object
Manufacturing
Component
& Binder
3D Printing &
Gluing
Polymerization
Foil
Polymerization
Liquid
Polymerization
Melting &
Solidification
Shape Melting
Light
Two
frequencies
Beam Interference
solid
One
frequency
Heat
Thermal
Polymerization
Fused Deposition
Modeling
Ballistic Particle
Manufacturing
RP Applications
Applications of rapid prototyping can be
classified into three categories:
1. Design
2. Engineering analysis and planning
3. Tooling and manufacturing
Design Applications
Designers are able to confirm their design by
building a real physical model in minimum
time using RP
Design benefits of RP:
Reduced lead times to produce prototypes
Improved ability to visualize part geometry
Early detection of design errors
Increased capability to compute mass properties
Tooling Applications
Called rapid tool making (RTM) when RP is
used to fabricate production tooling
Two approaches for tool-making:
1. Indirect RTM method
2. Direct RTM method
Manufacturing Applications
Small batches of plastic parts that could not
be economically molded by injection molding
because of the high mold cost
Parts with intricate internal geometries that
could not be made using conventional
technologies without assembly
One-of-a-kind parts such as bone
replacements that must be made to correct
size for each user
Rapid Prototyping
Control unit
Program of
instruction
Miscellaneous control
-e.g. limit switches,
Magnetic tape
or disk or
paper tape
reader
NC controller
with keypad
and display
Machine tool
Paper
tape punch
CNC
controller
CNC
controller
CNC
controller
CNC
controller
CNC
controller
Advantages of CNC
1. Increased productivity.
2. High accuracy and repeatability.
3. Reduced production costs.
4. Reduced indirect operating costs.
5. Facilitation of complex machining operations.
6. Grater flexibility.
7. Improved production planning and control.
8. Lower operator skill requirement.
9. Facilitation of flexible automation.
Limitations of CNC:
Applications of NC
Machine tool applications:
1. Milling machines.
2. Drilling machines.
3. Boring machines.
4. Turning machines.
5. Grinding machines.
6. Sawing machines.
Non- machine tool applications:
1. Welding machines- flame cutting machines.
2. Press-working machines- assembly machines.
3. Inspection machines- automatic drafting machines
Motion statements
Define the motion of cutting tool
Post-processor statements
Machine instructions passed unchanged into
CLDATA file
Auxiliary statements
Additional information of part name, tolerances
etc.
Geometry Statements
Format:
symbol = geometry_word / descriptive data
symbol : name of geometric element
geometry_word : major word name of geometry type
descriptive data : numeric data for the geometry entity,
reference to other entities, or qualifying minor words
Examples:
CIR = CIRCLE/CENTER, PT, TANTO,LN
P1 = POINT/X, Y, Z
L1 = LINE/P1, P2
P1 = POINT/X, Y, Z
P2 = POINT/L1, L2
P3 = POINT/CENTER, C1
P4 = POINT/YLARGE, INTOF, L1, C1
P5 = POINT/XLARGE, INTOF, L1, C1
P6 = POINT/YLARGE, INTOF, C1, C2
P7 = POINT/XLARGE, INTOF, C1, C2
C1 = CIRCLE/X, Y, Z, R
C2 = CIRCLE/CENTER, P1, RADIUS, R
C3 = CIRCLE/CENTER, P1, TANTO, L0
C4 = CIRCLE/P1, P2, P3
C5 = CIRCLE/XSMALL, L1, XSMALL, L2, RADIUS, R
Motion Statements
Point-to-point operation
FROM/point_location
GOTO/point_location
GODLTA/x, y, z
Examples
Motion Statements
Contouring operation
Control surface
Part surface
Drive surface
Check surface
Motion Statements
Contouring operation
GO command
GO/ {TO}, Drive surface, { TO }, part surface, { TO }, Check
surface
Constraint modifiers
TO
PAST
ON
TANTO used only with check surface
Motion Statements
Motion Statements
Contouring operation
Tool moving command
GOLFT/
GORGT/
GOUP/
GODOWN/
GOFWD/
GOBACK/
Example
FROM/SP
GO/TO, L1, TO, PS, ON, L4
GORGT/L1, PAST, L2
GOLFT/L2, PAST, L3
GOLFT/L3, PAST, C1
GOLFT/C1, PAST, L3
GOLFT/L3, PAST, L4
GOLFT/L4, PAST, L1
GOTO/SP
Example
FROM/SP
GO/TO, L1, TO, PS, TO, L6
GORGT/L1, TO, L2
GORGT/L2, TANTO, C1
GOFWD/C1, TANTO, L3
GOFWD/L3, PAST, L4
GOLFT/L4, PAST, L5
GOLFT/L5, PAST, L6
GOLFT/L6, PAST, L1
GOTO/SP
Post-Processor Statements
MACHIN/
MACHINE/DRILL, 2
COOLNT/
COOLNT/MIST
COOLNT/FLOOD
COOLNT/OFF
COOLNT/ON
FEDRAT/
FEDRAT/4.5
SPINDL/
SPINDL/ON
SPINDL/1250, CCLW
TOOLNO/
TOOLNO/3572, 6
TURRET
END
CUTTTER/
CUTTER/0.6
Post-Processing
Post-Processing
Compile APT program to Cutter Location Data
file (CLDATA)
Processing CLDATA file to MCD (G- and Mcode)
Generalized
Post-Processors (G-Post)
Post-processor output
CNC Fundamentals
On this gantry mill the spindle travels along the X Axis. The
travel direction of the table designates the Y Axis. The Z Axis is
designated by the stationary vertical column.
On most CNC lathes the Z Axis is parallel to the spindle and longer than the X Axis.
The three planes in the Cartesian coordinate system are XY, XZ,
and YZ. These are referred to as G17, G18, and G19,
respectively, on the mill.
Radius
(or
radial)
programming relates the
X axis to the radius of the
workpiece. For example,
for the same 5-in. outside
diameter workpiece, you
would program X2.5 to
move the tool to the
outside.
CNC Machining
PREPARING A PROGRAM
A program is a sequential list of machining
instructions for the CNC machine to execute.
These instructions are CNC code that consists of
blocks (also called lines). Each block contains an
individual command for a movement or specific
action. As with conventional machines, one
movement is made before the next one. This is
why CNC codes are listed sequentially in
numbered blocks.
(Program End)
CNC CODES
N5 G20 G90
N10 T02 M06
N15 M03 S1200
N20 G00 X0 Y0
N25 Z0.1
N30 G01 Z-0.1 F2.0
N35 G01 X1.5
BLOCK FORMAT
Block format is often more important than program format. It is vital that each
block of CNC code be entered into the CPU correctly. Each block comprises
different components, which can produce tool moves on the machine.
Following is a sample block of CNC code. Examine it closely and note how it is
written.
N135 G01 X1.0 Y1.0 Z0.125 F5.0
N135
G01
G-Code The G-code is the command that tells the machine what it is to
do in this case, a linear feed move.
X1.0 Y1.0 Z0.125 Coordinate. This gives the machine an endpoint for its move.
X designates an X axis coordinate. Y designates a Y coordinate. Z
designates a Z coordinate.
F5.0
PREPARING TO PROGRAM
The CNC operator can also use coordinate and setup sheets.
Using them as references makes generation of the CNC program
easier.
work. Once program zero has been defined, all coordinates used in a program
will be referenced from this point. When you work from a constant program
zero, you are using absolute programming. In incremental programming, you
have in effect a floating program zero that changes at all times
To specify absolute positions in
the X direction, use the Xaddress word. To specify
absolute positions in the Y and
Z directions, use the Y- and Zaddress words, respectively.
The position selected for
milling is always the lower lefthand corner and top surface of
the workpiece. The position
used for the lathe is always the
center of the part in X and the
right-hand end of the finished
workpiece in Z.
TOOL MOTION
TOOL MOTION
Tooling
Remember: The depth of cut that can be list of the various types of
available and the
taken depends on the workpiece tools
material, the coolant, the type of tool, applications of each
and the machine tool itself.
Tooling
Tooling
Tooling
CUTTING FLUIDS
There are three main reasons for using cutting fluid
To remove or reduce the heat being produced
To reduce cutting tool wear
To help clear chips from the workpiece area
Positioning in rapid
Modal
G01
Linear interpolation
Modal
G02
Modal
G03
Modal
G04
Dwell
G17
XY plane
Modal
G18
XZ plane
Modal
G19
YZ plane
Modal
G20/G70
Inch units
Modal
Modal
G21/G71
Metric units
G28
G29
G40
Modal
G41
Modal
G42
Modal
G43
Modal
G44
Modal
G49
Modal
G54-G59
Modal
G73
Modal
G80
Modal
G81
Drilling cycle
Modal
G82
Modal
G83
Modal
G90
Absolute positioning
Modal
G91
Incremental positioning
Modal
G92
G98
G99
Program stop
Optional program stop
Program end
Spindle on clockwise
Spindle on counterclockwise
EXAMPLE:
N25 G00 X2.5 Y4.75
N30 Z0.1
(Rapid to X2.5,Y4.75)
(Rapid down to Z0.1)
Depending on where the tool is located, there are two basic rules to
follow for safetys sake:
Sample Program :
Linear Interpolation,
or straight-line feed
moves, on the flat XY
plane (no Z values
are specified).
G01
command,
using multi-axis feed
moves. All diagonal
feed moves are a
result of a G01
command,
where
two or more axes
are used at once.
Circular Interpolation is
more commonly known as
radial (or arc) feed moves.
The G02 command is
specifically used for all
clockwise radial feed
moves, whether they are
quadratic arcs, partial
arcs, or complete circles,
as long as they lie in any
one plane.
The G02 command is
modal and is subject to a
user-definable feed rate.
EXAMPLE: G02 X2 Y1 R1
You can also specify G02 by entering the X and Y endpoints and then R for the
radius.
Note: The use of an R value for the radius of an arc is limited to a maximum
movement of 90.
An easy way to determine the radius values (the I and J values) is by making a small
chart:
Center point
X1
Y1
Start point
X1
Y2
Radius
I0
J-1
Finding the I and J values is easier than it first seems. Follow these steps:
1. Write the X and Y coordinates of the arcs center point.
2. Below these coordinates, write the X and Y coordinates of the arcs start
point.
3. Draw a line below this to separate the two areas to perform the subtraction.
Result: G02 X2 Y1 I0 J-1 F5
4. To find the I value, calculate the difference between the arcs start point and
center point in the X direction. In this case, both X values are 1. Hence there is no
difference between them, so the I value is 0. To find the J value, calculate the
difference between the arcs start point and center point in the Y direction. In this
case, the difference between Y2 and Y1 is down 1 inch, so the J value is 1.
N60 X2 Y1.5
N65 G01 Z-0.25
N70 G02 X2 Y1.5 I0.25 J-0.25
N75 G00 Z1
N80 X0 Y0
N85 M05
N90 M30
The G03 command requires an endpoint and a radius in order to cut the arc.
(See Fig. 5.7.) The start point of this arc is (X2, Y2) and the end-point is (X1, Y1).
To find the radius, simply measure the incremental distance from the start point
to the center point of the arc. This radius is written in terms of the X and Y
distances. To avoid confusion, these values are assigned variables called I and J,
respectively.
EXAMPLE: G03 X1 Y1 R1
You can also specify G03 by entering the X and Y endpoints and then R for the
radius.
Note: The use of an R value for the radius of an arc is limited to a maximum
movement of 90. An easy way to determine the radius values (the I and J values) is
to make a small chart as follows.
Center point X2
Y1
Start point
X2
Y2
Radius I0
J-1
Finding the I and J values is easier than it first seems. Follow these steps:
1. Write the X and Y coordinates of the arcs center point.
2. Below these coordinates, write the X and Y coordinates of the arcs start point.
3. Draw a line below this to separate the two areas to perform the subtraction.
4. To find the I value, calculate the difference between the arcs start point and
center point in the X direction. In this case, both X values are 2. Hence there is no
difference between them, so the I value is 0. To find the J value, calculate the
difference between the arcs start point and center point in the Y direction. In this
case, the difference between Y2 and Y1 is down 1 inch, so the J value is 1.
Result: G03 X1 Y1 I0 J-1
N105 M30
G04 DWELL
Format: N_ G04 P_
(Program end)
G17 XY Plane
Format: N_ G17
G18 XZ Plane
Format: N_ G18
G19 Y Z Plane
Format: N_ G19
G17
XY plane
G18
XZ plane
G19
YZ plane
The
G42
command
compensates the cutter a
specified distance to the
right-hand side of the
programmed tool path. It
is used to compensate for
excessive tool wear or
substitute a tool to profile
a part. The G42 command
is
modal,
so
it
compensates
each
successive tool move the
same specified distance
until it is overridden by a
G40 command or receives
a different offset.
N65 G00 Z1
N70 X0 Y0
N75 T04 M06
N80 M03 S1000
N85 G00 X-0.5
N90 Z-0.5
N95 G01 G42 X0.5 Y0.5 Z-0.5 D11 F15
N100 X2
N105 X2.5 Y1
N110 Y2
N115 G03 X2 Y2.5 R0.5
N120 G01 X0.5
N125 Y0
N130 G01 G40 Z0.25
N135 G00 Z1
N140 X0 Y0
N145 M05
N150 M30
The
G43
command
compensates for tool
length in a positive
direction. It is important
to realize that different
tools will have varying
lengths, and when tools
are changed in a program,
any variation in tool length
will throw the origin out
of zero. To prevent this,
the difference in tool
length
should
be
compensated for.
The
G44
command
compensates for tool
length
in
a
minus
direction. It is important
to realize that different
tools will have varying
lengths, and when tools
are changed in a program,
any variation in tool length
will throw the origin out
of zero. To prevent this,
the difference in tool
length
should
be
compensated for.
Format: N_ G49
Format: N_ G80
The G80 command cancels all previous canned cycle commands. Because
the canned cycles are modal (refer to the canned cycles on the following
pages), they will remain active until canceled by the G80 command. Canned
cycles include tapping, boring, spot facing, and drilling.
Note: On most controllers the G00 command will also cancel any canned
cycles.
necessary for machining but not those that are actual tool
movements (for example, auxiliary functions). They include
actions such as spindle on and off, tool changes, coolant on
and off, program stops, and similar related functions.
M-Codes
M00
Program stop
M01
Optional program stop
M02
Program end
M03
Spindle on clockwise
M04
Spindle on counterclockwise
M05
Spindle stop
M06
Tool change
M08
Coolant on
M09
Coolant off
M10
Clamps on
M11
Clamps off
M30
Program end, reset to start
M98
Call subroutine command
M99
Return from subroutine command
Block Skip Option to skip blocks that begin with /
Comments Comments may be included in blocks with round brackets
( )
Format: N_ M00
The M00 command is a temporary program stop function. When
it is executed, all functions are temporarily stopped and will not
restart unless and until prompted by user input.
This command can be used in lengthy programs to stop the
program in order to clear chips, take measurements, or adjust
clamps, coolant hoses, and so on.
Format: N_ M01
If the Optional Stop switch is set to ON, the program will stop
when it encounters in an M01 command. Both real CNC
controllers and the CNC simulators have this feature.
(Program end)
Format: N_ M03 S_
The M03 command switches the spindle on in a clockwise rotation. The spindle
speed is designated by the S letter address, followed by the spindle speed in
revolutions per minute
Format: N_ M04 S_
The M04 command switches the spindle on in a counterclockwise
rotation. The spindle speed is designated by the S letter address,
followed by the spindle speed in revolutions per minute.
M07/M08 COOLANT ON
Format: N_ M07 or N_ M08
The M07 and M08 commands switch on the coolant flow.
M09 COOLANT OFF
Format: N_ M09
The M09 command shuts off the coolant flow. The coolant should
be shut off prior to tool changes or when you are rapiding the tool
over long distances.
M10 CLAMPS ON
Format: N_ M10
The M10 command turns on the automatic clamps to secure
the workpiece. Automatic clamps can be pneumatic,
hydraulic, or electromechanical. Not all CNC machines have
automatic clamps, but the option exists and the actual code
will vary by machine tool make and model.
(Start of cycle)
(Call subprogram to do rest)
N60 G29 X1 Y1
N65 M03 S1200
N70 M08
N75 G83 X1 Y1 Z-1 R0.1 Q0.1 F5.0 (Start of cycle)
N80 M98 P1005
(Call subprogram to do rest)
N85 G80
N90 G28 X1 Y1
N95 M09
N100 M06 T03
N105 G29 X1 Y1
N110 M03 S1000
N115 M08
N120 G73 X1 Y1 Z-1 R0.1 Q0.1 F5.0 (Start of cycle)
N125 M98 P1005
(Call subprogram to do rest)
N130 G80
N135 G00 Z1
N140 X0 Y0
N145 M09
N150 M05
N155 M30
O1005
N5 X2
N10 X3
N15 X4
N20 Y2
N25 X3
N30 X2
N35 X1
N40 M99
(Subprogram)
(Start of cycle)
N5 X2
N20 Y2
N25 X1
N30 M99 (Return from subprogram)
Examples
This program introduces you to the Cartesian coordinate
system and absolute coordinates. Only single-axis, linear-feed
moves show the travel directions of the X, Y, and Z axe
EXAMPLE 2: I-part2.mil
This next program introduces you to diagonal linear feed moves,
where both the X axis and the Y axis are traversed
Example 3:
This program introduces arcs: G02 (clockwise) and G03
(counterclockwise). These are all simple quarter quadrant arcs
with a 1-in. radius
EXAMPLE 5:
This program involves a simple drilling cycle with a defined
retract plane. Once the G-code for the drill cycle has been
executed, only the X and/or Y location of the remaining holes
need to be defined
EXAMPLE 6: I-part6.mil
This program involves a drilling cycle with a dwell and
incremental coordinates
Z coordinate
G-CODES
G-codes are preparatory functions, which involve actual tool moves (for example,
control of the machine). These include rapid moves, feed moves, radial feed
moves, dwells, and roughing and profiling cycles. Most G-codes described here
are modal, meaning that they remain active until canceled by another G-code.
The following codes are described in detail in the following sections:
G00
G01
G02
G03
G04
G20
G21
G28
G29
G32
G40
G41
Positioning in rapid
Linear interpolation
Circular interpolation (CW)
Circular interpolation (CCW)
Dwell
Inch units
Metric units
Automatic zero return
Return from zero return position
Simple or constant thread
Tool nose radius compensation cancel
Tool nose radius compensation left
Modal
Modal
Modal
Modal
G42
Modal
Modal
Modal
Modal
Modal
G50
G54-G59
G70
Finishing cycle
Modal
G71
Turning cycle
Modal
G72
Facing cycle
Modal
G74
Modal
G75
Grooving cycle
G76
Threading cycle
G90
Absolute programming
Modal
G91
Incremental programming
Modal
G96
Modal
G97
Modal
G98
Modal
G99
Modal
Format: N_ G00 X_ Z_
The G00 command is used primarily to move the tool to and from
a non-cutting position. It is used most often before and after a
G01, G02, and G03 command. It can also be used to position the
tool for a tool change. This command causes the tool to move at
its fastest possible rate
Format: N_ G01 X_ Z_ F_
The G01 command executes all movement along a straight line at a particular
feedrate. These straight-line feed moves may cut in one or two axes
simultaneously. This command can be used for turning, facing, and tapering. It
is specified by the G01 command, followed by the endpoint of the move, and
then a specified feedrate.
N80 X1.875
N85 G01 Z0
N90 X2.125 Z-0.125
N95 G00 X4 M09
N100 Z3
N105 T0100 M05
N110 M30
Format: N_ G02 X_ Z_ I_ K_ F_
or N_ G02 X_ Z_ R_ F_
The G02 command executes all circular or radial cuts in a clockwise motion. It is
specified by the G02 command, followed by the endpoint for the move, the radius (the
distance from startpoint to the centerpoint), and a feedrate. Therefore the three
requirements for cutting arcs are:
1. The endpoint.
2. The radius R or I for X and K for Z values that represent the incremental distance from
the startpoint to the centerpoint. The R value is limited to a maximum of 90.
3. The feedrate.
Format: N_ G03 X_ Z_ I_ K_ F_
or N_ G03 X_ Z_ R_ F_
The G03 command executes all radial cuts in a counterclockwise motion. It is
specified by the G03 command, followed by the endpoint for the move, the
radius (the distance from the startpoint to the centerpoint), and a feedrate.
The radius is specified by defining the incremental distance from the arcs startpoint to its center-point in both the X and Z directions. These values are
identified by I and K variables, respectively. The R word, the value of the radius
of the arc, can also be used.
G04 DWELL
Format: N_ G04 P_
The G04 command is a no modal dwell command
that halts all axis movement for a specified time
while the spindle continues revolving at the
specified rpm. A dwell is sometimes used to allow
for the clearance of chips.
Format: N_ G28 X_ Z_
Format: N_ G28 X_ Z_
Format: N_ G32 Z_ K_ F_
Format: N_ G50 X_ Z_
The G50 command is used to specify the program zero
from the current tool position. This sets the coordinate
system for the current program.The coordinate system
setting is similar to specifying the origin point on a
mill. The origin is not a physical spot on the machine
tool, but rather a reference point to which the
coordinates relate. In turning, the zero reference or
origin can be specified from the right-hand centerpoint of the workpiece, the left of back of the
workpiece, or from the face of the chuck.
Format: N_ G50 X_ Z_
The G54 G59 commands are used to reposition the origin as per
a user- defined working coordinate system. Six register sets in the
controller which hold the values for the working coordinate
systems. The G54 G59 commands are very useful when multiple
workpiece fixtures are used.
Format: N_ G70 P_ Q_
The G70 command is used immediately after a roughing cycle, such as a G71
Rough Turning, or G72 Rough Facing cycle command. The remaining material is
machined as specified by the P and Q block number values, which point to the
start and finish blocks of the desired part profile contour.
Format: N_ G71_ P_ Q_ U_ W_ D_ F
P
Start block of segment
Q
End block of segment
U
Amount of stock to be left for finishing in X
W
Amount of stock to be left for finishing in Z
D
Depth of cut for each pass in thousandths
F
Feedrate for finish pass
The G71 command turns the part to the diameter specified in the
program segment. The cutting moves are parallel to the Z axis.
The upper half of the profile shows the G71 command and how
it steps down to size. The lower half of the profile shows how
the G70 command cleans up with a finishing pass.
(Rough turning)
Format: N_ G72 P_ Q_ U_ W_ D_ F_
P
Start block
Q
End block
U
Amount of stock to be left for finishing in X
W
Amount of stock to be left for finishing in Z
D
Depth of cut for finish pass
F
Feedrate (this is optional)
The G72 command automatically faces off a part to a predefined depth of cut,
with preset offsets and feed rates.
Format: N_ G72
The G72 command automatically faces off a part to a predefined profile,
with preset offsets and feedrates leaving an allowance for finishing. It
reads a program segment specified by the P and Q letter addresses and
determines the number of passes, the depth of cut for each pass, and
the number of repeat passes for the cycle.
Cutting is done parallel to the X axis. The U and W signs determine the
direction of the cuts.
The G74 command executes a peck drilling cycle with automatic retracts and
incremental depths of cut. The G74 command is specified by several letter
addresses:
X0
X always 0
Z
Total depth
K
Peck depth
F
Feed rate
EXAMPLE: N20 G74 X0 Z-1.0 K0.125 F0.015
In this example, a hole is peck
drilled to a total depth of 1 in.,
using 0.125 in. for the depth
of each peck
Format: N_ G74 X0 Z_ K_ F_
The G74 command involves individual peck moves in each drilling
operation. When this command is invoked, the tool positions itself as in a
standard G81 drill cycle. The K value specifies the peck depth.
The G75 command invokes an outside diamter groove cycle. This cycle
involves plunges into the workpiece from the outside of the workpiece
parallel to the X axis. The X value is the final diameter. The Z value
represents the final Z position. The F value specifies the incremental
retract after every plunge. The I and K values specify the incremental
movements in the X and Z axes, respectively.
(Grooving cycle)
In this example, the tool cuts a thread, starting at its present location and ending at the
specified XZ endpoint. The D value specifies each cut depth, and the K value defines the overall
depth. The A value defines the tool angle, and the F value defines the pitch
Format: N_ G74 X_ Z_ D_ K_ A_ F_
The G76 command automatically performs all cutting operations required
to achieve a thread. From the programmed variables the cycle will
calculate the toolpaths, based on the desired thread pitch, depth, and tool
angle.
X designates the minor diameter of thread. Z specifies the end of the
thread. D designates the depth of the first pass. K specifies the depth of
the thread. F specifies the desired pitch of the thread. A is tool angle.
Format: N_ G90
The G90 command defaults the system to accept all coordinates as
absolute coordinates. These coordinates are measured from a
fixed origin (X0, Y0, Z0) and expressed in terms of X, Y, and Z
distances.
G91 Incremental Positioning
Format: N_ G91
Incremental coordinates are measured from the previous
point and are expressed in terms of the relative X and Z
distances from the previous point
Format: N_ G98
The G98 command sets the linear feedrate to units
(inch or millimeter) per time (minutes). The setting
depends on which type of unit is currently active.
NOTE: The G98 command does not set the actual
feedrate. The feedrate is defined by using the F letter
address in the corresponding feed move command
blocks.
M-CODES
M-codes are miscellaneous functions that include actions necessary for machining
but not those that are actual tool movements (for example, auxiliary functions). They
include spindle on and off, tool changes, coolant on and off, program stops, and
similar, related functions. The following codes are described in detail in the following
sections.
M00
Program stop
M01
Optional program stop
M02
Program end
M03
Spindle on clockwise
M04
Spindle on counterclockwise
M05
Spindle stop
M07
Coolant 1 on
M08
Coolant 2 on
M09
Coolant off
M98
Subprogram call
M99
Return from subprogram
M30
End of program, reset to start
Block Skip
/ used to bypass CNC blocks
Comments
( and ) used to help operator comments
Note:
Format: N_ M00
Format: N_ M01
Format: N_ M02
The M02 command indicates the end of the
main program. This command, instructs the
MCU to switch off all machine operations (for
example, spindle, coolant, all axes, and any
auxiliaries) and terminates the program. This
command appears on the last line of the
program.
Format: N_ M04 S_
Format: N_ M30
Format: N_ M98 P_
The M98 command is used to call a subprogram. The
subprogram is referenced by the P letter address
followed by the program number. This is useful when
similar operations are required for a particular
program. An example of using sub-programming is
with bolt hole patterns where each hole must have
several canned cycle operations performed on it. If
there are many holes to be drilled these can reside in
the subprogram which is called after each canned
cycle is invoked.
The tool change function for turning involves the use of the T
letter address followed by a four-digit value. The first two digits
specify the tool turret position to be indexed. The last two digits
specify the offset register number to be referenced when tool
nose radius compensation is invoked. For example, to index to
tool station #3 and call offset #3, the program block would have
to contain T0303.
To cancel the tool you would use a reference to register 00 with
the last two digits instead. This register is usually preset to a zero
value and cannot be changed by the operator. For example,
T0300 would cancel register #3. This is usually done prior to a
tool change
Examples
EXAMPLE 1:
This program introduces you to
the basic G- and M-codes.
When executed, it turns the
workpiece from an original
diameter of 1.0 in.
EXAMPLE 2:
This program introduces
you to the basic circular
interpolation routines.
Workpiece Size: 2"
Diameter by 4" Length
Tool: Tool #1, Right-hand
Turning Tool
Tool Start Position: X2, Z3
%
:1002
N5 G20 G40
N10 T0101
N15 M03
N20 G00 X1.8 Z0.05
N25 M08
N30 G01 Z-2.5 F0.015
N35 G00 X2
N40 Z0.05
N45 X1.6
N50 G01 Z-2
N55 G00 X1.8
N60 Z0.05
N125 X1
N135 G02 X0.8 Z0 I-0.1 K0
N65 X1.4
N140 G00 X2 Z2
N70 G01 Z-1.5
N145 M09
N75 X2 Z-3
N80 G00 Z0.05
N150 T0100 M05
N85 X1.2
N155 M30
N90 G01 Z-0.5
N95 G00 X1.4
N100 Z0.05
N105 X1
N110 G01 Z-0.5
N115 G03 X1.4 Z-0.7 I0 K-0.2
N120 G00 Z-0.1
EXAMPLE 3:
This program introduces you to the G71 turning cycle and G70 finishing cycle
commands.
Workpiece Size: 4" Diameter by 2" Length
Tool: Tool #1, Right-hand Turning Tool
Tool Start Position: X2, Z3
%
:1003
N5 G90 G20 G40
N10 T0101
N15 M03
N20 G00 X2.1 Z0.05
N25 G71 P30 Q50 U0.025 W0.005 D625 F0.012
N30 G01 X1 Z0
N35 G03 X1.5 Z-0.25 I0 K-0.25
N40 G01 X1.75 Z-2
N45 G03 X2 Z-2.125 I0 K-0.125
N50 G01 X2.2
N55 G70 P30 Q50 F0.006
N60 G00 X2 Z2
N65 T0100 M05
N70 M30
EXAMPLE 4
This example demonstrates the G72 facing cycle and the G74 drilling cycle
commands.
Workpiece Size: 2" Diameter by 3" Length
Tool: Tool #2, Right-hand Turning Tool
Tool #3, 3/8" Drill
Tool Start Position: X2, Z3
%
:1004
N5 G90 G20 G40
N10 T0202
N15 M03
N20 M08
N25 G00 X2 Z0.05
N30 G72 P35 Q50 U0.05 W0.005 D500 F0.012
N35 G01 X1 Z0.05
N40 Z-1
N45 X2 Z-1.5
N50 X2.2
N55 G70 P35 Q50 F0.006
N60 T0200 G00 X4 Z3
N65 T0303
N70 G00 X0 Z0.1
N75 G74 Z-1 F0.05 D0 K0.125
N80 G00 X4 Z3 M09
N85 T0300 M05
N90 M30
CNC Tooling
Cutting Tools
One of most important components in
machining process
Performance will determine efficiency of
operation
Two basic types (excluding abrasives)
Single point and multiple point
Cutting-Tool Materials
Toolbits generally made of seven materials
High-speed steel
Cast alloys (such as stellite)
Cemented carbides
Ceramics
Cermets
Cubic Boron Nitride
Polycrystalline Diamond
Shock Resistance
Able to take the cutting loads and forces
High-Speed Steel
May contain combinations of tungsten,
chromium, vanadium, molybdenum,
cobalt
Can take heavy cuts, withstand shock and
maintain sharp cutting edge under red
heat
Generally two types (general purpose)
Molybdenum-base (Group M)
Tungsten-base (Group T)
Cast Alloy
Usually contain 25% to 35% chromium, 4% to
25% tungsten and 1% to 3% carbon
Remainder cobalt
Qualities
High hardness
High resistance to wear
Excellent red-hardness
Manufacture of Cemented
Carbides
Products of powder metallurgy process
Tantalum, titanium, niobium
Operations
Blending
Compaction
Presintering
Sintering
Blending
Five types of powders
Tungsten carbide, titanium carbide, cobalt,
tantalum carbide, niobium carbide
Compaction
Must be molded to shape and size
Five different methods to
compact powder
Extrusion process
Hot press
Isostatic press
Ingot press
Pill press
Presintering
Green compacts heated to about 1500 F
in furnace under protective atmosphere
of hydrogen
Carbide blanks have consistency of chalk
May be machined to required shape
40% oversize to allow for shrinkage that
occurs during final sintering
Sintering
Last step in process
Converts presintered machine blanks into
cemented carbide
Carried out in either hydrogen
atmosphere or vacuum
Temperatures between 2550 and 2730 F
Cemented-Carbide Applications
Used extensively in manufacture of
metal-cutting tools
Extreme hardness and good wear-resistance
Brazed-Tip Tools
Indexable Inserts
Indexable, meaning that they can be rotated or flipped without disturbing the overall geometry of the tool (effective
diameter, tool length offset, etc.). This saves time in manufacturing by allowing fresh cutting edges to be presented
periodically without the need for tool grinding, setup changes, or entering of new values into a CNC program.
Cemented-Carbide Insert
Identification
American Standards Association has
developed system by which indexable
inserts can be identified quickly and
accurately
Crater-resistant
Contain titanium carbide and tantalum carbide in
addition to tungsten carbide and cobalt
Used for machining most steels
Qualities of Tungsten
Carbide Tools
Determined by size of tungsten carbide
particles and percentage of cobalt
Additive Characteristics
Titanium carbide
Addition provides resistance to tool cratering
Content increased
Toughness of tool decreased
Abrasive wear resistance at cutting edge lowered
Tantalum carbide
Addition provides resistance to tool cratering
Without affecting abrasive wear resistance
Coatings
Titanium carbide
Titanium nitride
Aluminum oxide
Tool
Geometry
Terms adopted
by ASME
SIDE RELIEF
SIDE CLEARANCE
Cutting Tools
Single point cutting tool
Cutting-Tool Terms
Front, End, Relief
(Clearance)
Allows end of cutting tool
to enter work
Cutting-Tool Terms
Side Cutting Edge Angle
Angle cutting edge meets work
Positive
Negative - protects point at start and end of cut
Nose Radius
Strengthens finishing point of tool
Improves surface finish on work
Should be twice amount of feed per
revolution
Too large chatter; too small weakens point
Side Rake
Large as possible to allow
chips to escape
Amount determined
Type and grade of cutting tool
Type of material being cut
Feed per revolution
Angle of keenness
Formed by side rake and side
clearance
Back Rake
Angle formed between top face of tool
and top of tool shank
Positive
Top face slopes downward
away from point
Negative
Top face slopes upward
away from point
Neutral
Cemented-Carbide Cutting-Tool
Angles and Clearances
Vary greatly
Depend on three factors
Hardness of cutting tool
Workpiece material
Type of cutting operation
Cutting operation
Cutting tool held as rigidly as possible to avoid
chatter
Cemented-Carbide
Capable of cutting speeds 3 to 4 times highspeed steel toolbits
Low toughness but high hardness and
excellent red-hardness
Consist of tungsten carbide sintered in
cobalt matrix
Straight tungsten used to machine cast iron
and nonferrous materials (crater easily)
Different grades for different work
Nose radius
The nose radius, re, on the insert is a key factor in turning operations.
Selection of nose radius depends on the:
Depth of cut, ap
Feed, fn
and influences the:
Surface finish
Chip breaking
Insert strength.
Small nose radius
Ideal for small cutting depths
Reduces vibration
Less insert strength.
Large nose radius
Heavy feed rates
Large depths of cut
Stronger edge
Increased radial forces.
Insert Catalogue
Face Milling
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
End Milling
Multi-fluted cutters held vertically in
vertical milling machine spindle or
attachment
Used primarily for cutting slots or
grooves
Workpiece held in vise and fed into
revolving cutter
End milling
Cutting done by periphery of teeth
Nomenclature of an
End Mill
Nomenclature of an
End Mill
Drilling
Multi-edge cutting tool that cuts on the point
Drill's cutting edges (lips) provided with lip
clearance to permit point to penetrate
workpiece as drill revolves
Rake angle provided by helical-shaped flutes
Slope away from cutting edge
Angle of keeness
Angle between rake angle and clearance angle
Characteristics of a
Drill Point
Chip formation
of a drill
Non-Center Cutting
End Mill
Spotting Drill
Countersink
Flutes
2 Flute
Center Cutting
4 Flute
Center Cutting
4 Flute
Non-Center Cutting
Milling Tools
Tool
Description
2 Flute HSS
Single End Mills
For Cutting
Aluminum 3/8
Shank x 1
cutting length
2 Flute Ball End
Mill for Aluminum
3/8 shank x 1
cutting length
MSC Part
#
01901164
71886162
Application
Facing, profiling,
Pocketing,
Slotting,
Roughing and
Finishing
Surfacing,
Slotting,
profiling,
Roughing and
Finishing
Description
MSC Part
#
Application
Countersink &
De-burring Tool
90 Degree
02462166
Engraving, Deburring,
countersink,
Spot drilling
#3 Combined drill
& countersink 90
Degree
71037030
Spot drilling,
Engraving
spotting drill 90
deg
Professional Development ID Code: 6005
01833003
Spot Drilling,
Engraving
Roll into the cut by following an arc that curves in the same
direction as the tool rotation. This keeps the chip thin at the end
of each cutting edge pass.
2. Ramp Down
Continuous ramping keeps the load on the tool consistent, preserving tool life.
3. Spiral Out
Even though the pocket is a polygon, the tool path should follow a gradually
increasing circle for as long as it can.
It is also called spiral morphing, in which the tool path follows a growing circle
until it reaches far enough out that it finally has to give way to the pockets
shape
4. Slice Corners
Corner slicing preserves tool life and makes the process more predictable by
replacing cornering tool paths with a progressive series of arcing moves.
Milling turbine engine cases with larger-diameter tools involves driving the tool
according to a cutting point that actually lands inside the inserts curvature,
indicated here by the red dot on the drawing of the tool.
Parallel Profiling
Roughing
Finishing
Offset Profiling
Waterline Finishing
Pencil Finishing
CAD/CAM
Design tools
CAD/CAM
Geometric
tools
Networking
modeling
Computer
graphics
concepts
Design and
+ Computer
Mfg tools
Software
Networking
= CAD/CAM tools
Process planning
Geometric modeling
of conceptual design
Is design evaluation
Possible with available
Standard software?
Design
package
No
Yes
Are there
manufacturing
discrepancies in CAD
databases?
Yes
Design testing
And evaluation
No
CAPP package
Is final design
Applicable?
Yes
Drafting
Documentation
Develop customized
programs and
packages
Programming
package
No
CNC
programming
NC
package
Machining
Inspection
Assembly
Inspection
And Robotics
package
1. Geometry Creation
Producing a vector-based drawing of the
part you want to make.
3 Ways to Create Geometry
Draw it in CAD
Convert a raster-based drawing
to vectors
3D scan of an existing object
1. Geometry Creation
- Using CAD
CAD programs make vector-based
(mathematically calculated) entities.
Some common CAD formats include:
Mastercam - .mc9
AutoCAD - .dwg
Microstation - .dgn
Drawing Exchange
Format - .dxf
1. Geometry Creation
- Raster to Vector conversion
Most graphics programs make raster-based (dots
on screen) images that must be changed to vectors
so they can be used for CAM.
Some common raster formats include:
MS Paint - .bmp
Raster
Vector
1. Geometry Creation
- 3D Scan
The scanner measures millions of points on an
object and records them as co-ordinates which are
then used to create the vector geometry.
Laser scanner
2. Toolpath Creation
Using the geometry to make a road
map that the cutting tool will follow in
order to machine the part.
Several parameters must be set:
2. Toolpath Creation
- Verification
Most software will let you see a simulation of
your part being cut so you can verify that the
toolpath information is correct.
3. Post Processing
Translating the toolpath information into
a programming language called G-Code
that controls the machine.
From toolpath
to G-Code.
End
History of CNC
The RS274-D is a word address format
Each line of program == 1 block
Each block is composed of several instructions, or (words)
Sequence and format of words:
N3 G2 X+1.4 Y+1.4 Z+1.4 I1.4 J1.4 K1.4 F3.2 S4 T4 M2
sequence no
destination coordinates
preparatory function
tool
p2
p4
p5
45
(4, 4)
p1
p0 (2, 2)
Motion of tool:
p0 p1 p2 p3 p4 p5 p1 p0
p2
p4
p5
Programming in inches
5
p2
p4
p5
Feed rate
Spindle speed
45
Tool no.
Flood coolant ON
p2
p4
p5
Linear interpolation
target coordinates
N030 G01 X3.875 Y3.698
45
(4, 4)
p1
p0 (2, 2)
p2
p4
p5
Linear interpolation
target coordinates
or
(4, 4)
p1
p0 (2, 2)
p2
p4
p5
Linear interpolation
target coordinates
45
p3
(x, y)
(4, 4)
p1
(6.5, 9)
.125
p0 (2, 2)
1
p2
p4
p5
target coordinates
45
(4, 4)
p1
p0 (2, 2)
7. Cut from p4 to p5
5
2.5
p3
p2
p4
p5
Linear interpolation
45
(4, 4)
p1
p0 (2, 2)
8. Cut from p5 to p1
5
2.5
p3
p2
p4
p5
Linear interpolation
target coordinates (see step 3)
45
p2
p4
p5
Linear interpolation
target coordinates (see step 3)
end of data
N100 M00
program stop