lecture cad cam

Upload: ismail69

Post on 14-Apr-2018

251 views

Category:

Documents


1 download

TRANSCRIPT

  • 7/29/2019 Lecture Cad Cam

    1/84

    Manufacturing Department

    Mechanical Engineering

    University Technology Malaysia

    Manufacturing Process

    SKMM2713

    Monday -2013/05/20 AIE/NR

  • 7/29/2019 Lecture Cad Cam

    2/84

    CAD: Computer Aided Design

    CAM: Computer Aided Manufacturing

    CNC: Computer Numerical Control

  • 7/29/2019 Lecture Cad Cam

    3/84

    :It is the technology concerned with the

    use of computers to perform designand manufacturing functions.

    CAD/CAM ( Computer Aided Designand Computer Aided Manufacturing)

  • 7/29/2019 Lecture Cad Cam

    4/84

    :it can be defined as the use of computersystems to perform certain functions in thedesign process.

    CAD

  • 7/29/2019 Lecture Cad Cam

    5/84

    CAM: is the use of computer systems toplan, manage and control the operations

    of manufacturing plant through eitherdirect or indirect computer interface withthe plants production resources

    Computer aided Manufacturing(CAM)

  • 7/29/2019 Lecture Cad Cam

    6/84

    From CAM definition, the application of

    CAM falls into two broad categories:1. Computer monitoring and control .

    Computer ProcessProcessdata

    Control signals

    Computer ProcessProcess data

  • 7/29/2019 Lecture Cad Cam

    7/84

    2. Manufacturing support application .

    Control signalsComputer Mfg

    operations

    Process data

  • 7/29/2019 Lecture Cad Cam

    8/84

    1) Improve productivity.

    2) Lead time reduction.

    3) Reduce engineering personal requirements.

    4) Improve accuracy of product.

    Benefits of CAM:

  • 7/29/2019 Lecture Cad Cam

    9/84

    5) Reduce training time for routine drafting.

    CONT

    6) Fewer errors in NC part programming.

    7) Provide the potential of using more existing

    parts and tooling.

    8) Waste can be kept to a minimum.

  • 7/29/2019 Lecture Cad Cam

    10/84

    1) Process planning and scheduling.

    2) Programming for numerical control and

    Industrial robots.3) Design of dies and molds for casting.

    4) Die for metal working operations.

    5) Design of tooling and fixtures and EDMelectrodes.

    6) Quality control and inspection.

    7) Plant layout.

    Some typical applications of CAD/CAM

  • 7/29/2019 Lecture Cad Cam

    11/84

    Computer Numerical control (CNC)

  • 7/29/2019 Lecture Cad Cam

    12/84

    History of CNC

    1949US Air Force asks MIT to develop a "numericallycontrolled" machine.

    1952Prototype NC machine demonstrated (punched tape input)

    1980-CNC machines (computer used to link directly to controller)

    1990-DNC: external computer drip feeds control programmer tomachine tool controller

  • 7/29/2019 Lecture Cad Cam

    13/84

    DEFINITIONIn CNC (Computer Numerical Control), theinstructions are stored as a program in amicro-computer attached to the machine.The computer will also handle much of thecontrol logic of the machine, making it moreadaptable than earlier hard-wired

    controllers.

  • 7/29/2019 Lecture Cad Cam

    14/84

    Conventional vs. CNC machine

  • 7/29/2019 Lecture Cad Cam

    15/84

    Conventional vs. CNC machine

  • 7/29/2019 Lecture Cad Cam

    16/84

    Difference between Conventional M/C& CNC M/C

    Item Conventional

    machine

    CNC

    machine

    1. Movement Acme screw Ball screw

    2. Feed manual motor

    3.measurement manual Linear scale

  • 7/29/2019 Lecture Cad Cam

    17/84

    CNC APPLICATIONS

    - Machining

    2.5D / 3D

    Turning ~ Lathes, Turning Centre

    Milling ~ Machining Centres2-Forming

    2D

    Plasma and Laser CuttingBlanking, nibbling and punching

    3D

    Rapid Prototyping

  • 7/29/2019 Lecture Cad Cam

    18/84

    SAMPLE CNC MACHINES

    CNC TURNING CNC MILLING

  • 7/29/2019 Lecture Cad Cam

    19/84

    SAMPLE CNC MACHINES

    CNC LASER CUTTING CNC PLASMA CUTTING

  • 7/29/2019 Lecture Cad Cam

    20/84

    CNC PRESS CNC RAPID PROTOTYPING

    SAMPLE CNC MACHINES

  • 7/29/2019 Lecture Cad Cam

    21/84

    Advantages of CNC1) Easier to program.2) Easy storage of existing programs.

    3) Easy to change a program.

    4) Avoids human errors.

    5) NC machines are safer to operate.

    6)Complex geometry is produced as cheaply as simple

    ones.

    7) Usually generates closer tolerances than manual

    machines .

  • 7/29/2019 Lecture Cad Cam

    22/84

    DRAWBACKS of CNC1) High capital cost )Machine tools cost $30,000 -

    $1,500,000 ).

    2) Retraining and recruitment of staff .

    3) New support facilities .

    4) High maintenance requirements.

    5) Not cost-effective for low-level production onsimple parts.

    6)Maintennce personnel must have both mechanical

    and electronics expertise .

  • 7/29/2019 Lecture Cad Cam

    23/84

    CNC SYSTEM ELEMENTSA typical CNC system consists of the following six

    elements

    1) Part program

    2) Program input device

    3) Machine control unit

    4) Drive system

    5) Machine tool

    6) Feedback system

  • 7/29/2019 Lecture Cad Cam

    24/84

    STANDARD MILLING MACHINE COORDINATESYSTEM

  • 7/29/2019 Lecture Cad Cam

    25/84

    STANDARD LATHE COORDINATE SYSTEM

  • 7/29/2019 Lecture Cad Cam

    26/84

    RIGHT HAND RULE

    Vertical Machine Horizontal Machine

  • 7/29/2019 Lecture Cad Cam

    27/84

    Zero and reference points on CNC

  • 7/29/2019 Lecture Cad Cam

    28/84

    Zero Point of machine on a CNC lathe

  • 7/29/2019 Lecture Cad Cam

    29/84

    Machine Zero Point and Work part zeropoint on CNC milling machine

  • 7/29/2019 Lecture Cad Cam

    30/84

    Additional Axis of Movement

    (A) FOURTH AXIS ROTARY MOTION : Rotate about axis X.

    (B) FIFTH AXIS ROTARY MOTION: Rotate about axis Y.

    (C )AUXILIARY EXTERNAL ROTARY AXIS :Rotate about axis Z.

  • 7/29/2019 Lecture Cad Cam

    31/84

    Programming Systems

    Two types of programming modes, theincremental system and the absolute system,are used for CNC.

  • 7/29/2019 Lecture Cad Cam

    32/84

  • 7/29/2019 Lecture Cad Cam

    33/84

  • 7/29/2019 Lecture Cad Cam

    34/84

    What is the value in X and Y for each hole in absolute and

    incremental positing .

    CNC Positioning systems

  • 7/29/2019 Lecture Cad Cam

    35/84

    Point-to-Point Positioning

    CNC Positioning systems

    Point-to-point positioning is used when it is

    necessary to accurately locate the spindle,

    or the workpiece, perform such operations

    as drilling, reaming, boring, tapping.

  • 7/29/2019 Lecture Cad Cam

    36/84

    Point-to-Point Positioning

  • 7/29/2019 Lecture Cad Cam

    37/84

    Continuous Path (Contouring)

    Contouring, or continuous path machining,involves work such as that produced on a lathe

    or milling machine, where the cutting tool is incontact with the workpiece as it travels fromone programmed point to the next.

  • 7/29/2019 Lecture Cad Cam

    38/84

    Continuous Path (Contouring)

  • 7/29/2019 Lecture Cad Cam

    39/84

    G-codes (preparatory functions):

    Most G-codes set the machine in a modewhich stays in effect until it is changed orcancelled by another G-code. Thesecommands are called modal.

  • 7/29/2019 Lecture Cad Cam

    40/84

    G00 Rapid TransverseG01 Linear InterpolationG02 Circular Interpolation,CWG03 Circular Interpolation,

    CCW

    G17 XY PlaneG18 XZ PlaneG19 YZ PlaneG20/G70 Inch unitsG21/G71 Metric UnitsG40 Cutter compensation

    cancelG41 Cutter compensation leftG42 Cutter compensationright

    G43 Tool lengthcompensation (plus)

    G44 Tool lengthcompensation (minus)

    G49 Tool length

    compensation cancelG80 Cancel canned cycles

    G81 Drilling cycle

    G82 Counter boring cycle

    G83 Deep hole drilling

    cycleG90 Absolute positioning

    G91 Incrementalpositioning

    Modal G-Code List

  • 7/29/2019 Lecture Cad Cam

    41/84

  • 7/29/2019 Lecture Cad Cam

    42/84

    CIRCULAR PLANE SELECTION

  • 7/29/2019 Lecture Cad Cam

    43/84

    G17 XY CIRCULAR PLANE SELECTION

  • 7/29/2019 Lecture Cad Cam

    44/84

    G18 XZ CIRCULAR PLANE SELECTION

  • 7/29/2019 Lecture Cad Cam

    45/84

    G19 YZ CIRCULAR PLANE SELECTION

  • 7/29/2019 Lecture Cad Cam

    46/84

    CUTTER COMPENSATION

    G41 Cutter Compensation Left

    That is the tool is moved to the left of theprogrammed path to compensate for theradius of the tool

    G42 Cutter Compensation Right

    That is the tool is moved to the right of theprogrammed path to compensate for thesize of the tool.

    NOTE :G40 Cancel Cutter Comp G41 and G42

  • 7/29/2019 Lecture Cad Cam

    47/84

    TOOL LENGTH COMPENSATIONG43 Tool Length Compensation + (plus)This code selects tool length compensation in a positive direction.That is; the tool length offsets are added to the commanded axispositions.

  • 7/29/2019 Lecture Cad Cam

    48/84

  • 7/29/2019 Lecture Cad Cam

    49/84

    :are used to either turn ON or OFF different

    functions which control certain machine tool

    operations

    M or miscellaneous codes :

  • 7/29/2019 Lecture Cad Cam

    50/84

    M00 Program stopM01 Optional program stopM02 Program endM03 Spindle on clockwiseM04 Spindle on counterclockwiseM05 Spindle stopM06 Tool change

    M08 Coolant onM09 Coolant offM10 Clamps onM11 Clamps off

    M30 Program stop, reset to start

    M Codes

  • 7/29/2019 Lecture Cad Cam

    51/84

    X,Y, and Z Codes

    X, Y, and Z codes are used to specify thecoordinate axis.

    Number following the code defines thecoordinate at the end of the move relativeto an incremental or absolute referencepoint.

  • 7/29/2019 Lecture Cad Cam

    52/84

    I,J, and K Codes

    I, J, and K codes are used to specify thecoordinate axis when defining the centerof a circle.

    Number following the code defines therespective coordinate for the center of the

    circle.

  • 7/29/2019 Lecture Cad Cam

    53/84

    F,S, and T Codes

    F-code: used to specify the feed rate

    S-code: used to specify the spindle speed

    T-code: used to specify the tool

    identification number associated with thetool to be used in subsequent operations.

  • 7/29/2019 Lecture Cad Cam

    54/84

    CNC Programming:

  • 7/29/2019 Lecture Cad Cam

    55/84

    The first step in producing a CNC program is to take the information from the print

    and produce a program manuscript

  • 7/29/2019 Lecture Cad Cam

    56/84

    1) Manual

    Write code directly

    2)Computer-assisted

    Draw cutter path

    3) CAD/CAM

    Draw the part Cutter path is generated

  • 7/29/2019 Lecture Cad Cam

    57/84

    INFORMATION NEEDED by a CNC1) Preparatory Information: units, incremental or absolut

    positioning

    2) Coordinates: X,Y,Z, RX,RY,RZ

    3) Machining Parameters: Feed rate and spindle speed

    4) Coolant Control: On/Off, Flood, Mist

    5) Tool Control: Tool and tool parameters

    6) Cycle Functions: Type of action required

    7) Miscellaneous Control: Spindle on/off, direction of rotationstops for part movement

    This information is conveyed to the machine through a set

    of instructions arranged in a desired sequence Program.

    OC O

  • 7/29/2019 Lecture Cad Cam

    58/84

    BLOCK FORMAT

    Sample Block :N135 G01 X1.0 Y1.0 Z0.125 F5

    Restrictions on CNC blocks.Each may contain only one tool move.

    Each may contain any number of non-tool move G-codes.Each may contain only one feedrate.Each may contain only one specified tool or spindle speed.The block numbers should be sequential.

    Both the program start flag and the program number must beindependent of all other commands (on separate lines).The data within a block should follow the sequence shown in

    the above sample block.

  • 7/29/2019 Lecture Cad Cam

    59/84

    Block of Information

    CNC information is generally programmed in blocks offive words

  • 7/29/2019 Lecture Cad Cam

    60/84

    Three Main parts of a CNC program

    N5 G90 G21 (Absolute units, metric)

    N10 M06 T2 (Stop for tool change, usetool # 2)

    N15 M03 S1200 (Turn the spindle on CW to1200 rpm)

    Part 1- Program Petup

  • 7/29/2019 Lecture Cad Cam

    61/84

    General formula for calculating the cutting parameters

  • 7/29/2019 Lecture Cad Cam

    62/84

    G90 G01 X110 Y75.0 F20;

    To move tool at point B write block as :

  • 7/29/2019 Lecture Cad Cam

    63/84

  • 7/29/2019 Lecture Cad Cam

    64/84

    RAPID POSITION COMMAND

    G00 RAPID POSITIONING MOTION*X Positioning X axis motion*Y Positioning Y axis motion*Z Positioning Z axis motion

    *A Positioning A axis motion

  • 7/29/2019 Lecture Cad Cam

    65/84

    LINEAR INTERPOLATION COMMAND

    G01 LINEAR INTERPOLATIONMOTION*X Linear X-axis motion*Y Linear Y-axis motion

    *Z Linear Z-axis motion*A Linear A-axis motion*F Feed rate in inches (mm)per minute

  • 7/29/2019 Lecture Cad Cam

    66/84

    G02 CW CIRCULAR INTERPOLATION MOTION &G03 CCW CIRCULAR INTERPOLATION MOTION*X Circular end point X-axis motion

    *Y Circular end point Y-axis motion*Z Circular end point Z-axis motion*A Circular end point A-axis motion*I X-axis Distance from start point to arc center (If R is not used)*J Y-axis Distance from start point to arc center (If R is not used)

    *K Z-axis Distance from start point to arc center (If R is not used)*R Radius of the arc to be machined (If I, J, K are not used)*F Feed rate in inches (or mm) per minute

    CIRCULAR INTERPOLATION COMMANDS

  • 7/29/2019 Lecture Cad Cam

    67/84

  • 7/29/2019 Lecture Cad Cam

    68/84

  • 7/29/2019 Lecture Cad Cam

    69/84

    EXAMPLE

    G02 CCW CIRCULAR INTERPOLATION

    G02 CW CIRCULAR INTERPOLATION USING "I", &"J"

  • 7/29/2019 Lecture Cad Cam

    70/84

    FOR THE X & Y AXIS

  • 7/29/2019 Lecture Cad Cam

    71/84

    G02 CW CIRCULAR MOTION USING "R"

  • 7/29/2019 Lecture Cad Cam

    72/84

    G03 CCW CIRCULAR INTERPOLATION

    EXAMPLE

    G03 CCW CIRCULAR INTERPOLATION USING "I", &"J"

  • 7/29/2019 Lecture Cad Cam

    73/84

    G03 CCW CIRCULAR INTERPOLATION USING I , & JFOR THE X & Y AXIS

    EXAMPLE : Cutter Compensation

  • 7/29/2019 Lecture Cad Cam

    74/84

    EXAMPLE : Cutter Compensation(G41/G42/G40)

  • 7/29/2019 Lecture Cad Cam

    75/84

    Three Main parts of a CNC program

    N5 G90 G21 (Absolute units, metric)

    N10 M06 T2 (Stop for tool change, usetool # 2)

    N15 M03 S1200 (Turn the spindle on CW to1200 rpm)

    Part 1- Program Petup

  • 7/29/2019 Lecture Cad Cam

    76/84

    Three Main parts of a CNC program

    N20 G00 X1 Y1 (Rapid to X1,Y1 from origin

    point)N25 Z0.125 (Rapid down to Z0.125)N30 G01 Z-0.125 F100 (Feed down to Z-0.125 at

    100 mm/min)N35 G01 X2 Y2 (Feed diagonally to X2,Y2)N40 G00 Z1 (Rapid up to Z1)N45 X0 Y0 (Rapid to X0,Y0)

    Part 2- Chip Removal

  • 7/29/2019 Lecture Cad Cam

    77/84

    Three Main parts of a CNC program

    N50 M05 (Turn the spindle off)

    N55 M00 (Program stop)

    Part 3- System Shutdown

    EXAMPLE OPERATION on CNC

  • 7/29/2019 Lecture Cad Cam

    78/84

    EXAMPLE OPERATION on CNCMILLING MACHINE

  • 7/29/2019 Lecture Cad Cam

    79/84

    First pass : conventional mill toa depth of 0.125 around edgeprofile. Tool 1 is a inch dia.end mill.

    %

    :1002N5 G90 G20N10 M06 T1N15 M03 S1200N20 G00 X0.125 Y0.125N30 Z0.125

    N35 G01 Z-0.125 F5N40 X3.875N45 Y4.125N50 X0.125N55 Y0.125

  • 7/29/2019 Lecture Cad Cam

    80/84

    Second pass:conventional mill to a

    depth of 0.25 aroundedge profile.

    N35 Z-0.250N40 X3.875

    N45 Y4.125

    N50 X0.125

    N55 Y0.125

    N60 Z0.125

    Third pass:

  • 7/29/2019 Lecture Cad Cam

    81/84

    Third pass:conventional mill to adepth of 0.125

    around pocket profile.

    N65 G00 X1.25 Y1.0

    N70 G01 Z-0.125 F5N75 X1.75

    N80 Y2.5

    N85 X1.25

    N90 Y1.0N95 Z0.125

    Fourth pass: climb

  • 7/29/2019 Lecture Cad Cam

    82/84

    Fourth pass: climbmill to a depth of

    0.125 acrossremaining material.

    N100 Y2.125

    N105 X2.625

    N110 Z0.125

    N115 G00 X-5 Y-5 Z5

    N120 M05

    N125 M30

  • 7/29/2019 Lecture Cad Cam

    83/84

    Exercises

    1-Write CNC blocks for paths as shownbelow.

    2)Write CNC program for machining w/p as dawning

  • 7/29/2019 Lecture Cad Cam

    84/84