19647980 cnc machine tools
TRANSCRIPT
-
7/30/2019 19647980 Cnc Machine Tools
1/137
2004 1
CNC TECHNOLOGYand
CNC PROGRAMMING
ME 445INTEGRATED MANUFACTURING SYSTEMS
-
7/30/2019 19647980 Cnc Machine Tools
2/137
2004 2
AUTOMATION IN MANUFACTURINGSYSTEMS
TRENDS IN INDUSTRY
THE OBJECTIVE:
TO BE COMPETITIV THROUGH INCREASING PRODUCTIVITY AND TOTAL QUALITY ASSURANCE
-
7/30/2019 19647980 Cnc Machine Tools
3/137
2004 3
EFFICIENCY OF
MANUFACTURING
COST = COST OF MANUFACTURING AND COST OF MATERIALHANDLING
PROFIT = INCOME - COST
PRODUCTIVITY =AVERAGE OUTPUT PER MAN-HOUR
-
7/30/2019 19647980 Cnc Machine Tools
4/137
2004 4
PROFIT increases as COST decreases
and as PRODUCTIVITY increases.
PRODUCTIVITY through AUTOMATION
-
7/30/2019 19647980 Cnc Machine Tools
5/137
2004 5
AUTOMATION
any means of helpingthe workers to performtheir tasks more
efficiently
transfer of the skill of the operator to themachine
-
7/30/2019 19647980 Cnc Machine Tools
6/137
2004 6
Transferred
skill Results
muscle power engine drivenmachine tools
First industrialrevolution
manipulating
skill
mechanization hard automation
vision skill use of positiontransducers,
cameras
increase of accuracy, part
recognition brain power cnc machines, industrial
robots, soft automation,
computer control of manufacturing
systems
second industrialrevolution
-
7/30/2019 19647980 Cnc Machine Tools
7/137
2004 7
Utilization of computers inmanufacturing applications hasproved to be one of the most
significant developments over thelast couple of decades in helping toimprove the productivity andefficiency of manufacturing
systems.
-
7/30/2019 19647980 Cnc Machine Tools
8/137
2004 8
The metal cutting operations (also called machining) is one of themost important manufacturing
processes in industry today (as it
was yesterday) .
-
7/30/2019 19647980 Cnc Machine Tools
9/137
2004 9
MACHINING IS THE REMOVAL OF MATERIALS IN FORMS OF CHIPS FROM THE WORKPIECE BY SHEARING WITH A SHARP
TOOL.
-
7/30/2019 19647980 Cnc Machine Tools
10/137
2004 10
The main function of a machinetool is to control the workpiece-
cutting tool positional relationshipin such a way as to achieve a
desired geometric shape of the
workpiece with sufficientdimensional accuracy.
-
7/30/2019 19647980 Cnc Machine Tools
11/137
2004 11
Machine tool provides:
work holdingtool holdingrelative motion between tooland workpiece
primary motion secondary motion
-
7/30/2019 19647980 Cnc Machine Tools
12/137
2004 12
Primary motion
Relative motionbetween tool and
workpiece
Secondary motion
Cutting motion
Cutting speed
Feed motion
Feed rate
-
7/30/2019 19647980 Cnc Machine Tools
13/137
2004 13
m a c h i n e c o n t r o l u n i t
p o s i t i o n t r a n s d u c e r s
w o r k h o l d i n g d e v i c e
t o o l h o l d i n g d e v i c e
-
7/30/2019 19647980 Cnc Machine Tools
14/137
2004 14
CLASSIFICATION OF THE CHIP REMOVING METHODS ACCORDING TO THE RELATIVE MOTION
-
7/30/2019 19647980 Cnc Machine Tools
15/137
2004 15
CLASSIFICATION OF MACHINE TOOLS
THOSE USINGSINGLE POINTTOOLS
THOSE USINGMULTIPOINTTOOLS
THOSE USINGABRASIVETOOLS
lathesshapersplaners
boring m/cs etc.
drilling m/cs milling m/cs
broaching m/cs hobbing m/cs etc.
grinding m/cs honing m/cs etc.
-
7/30/2019 19647980 Cnc Machine Tools
16/137
2004 16
ISO MACHINE TOOL AXIS DEFINITION
-
7/30/2019 19647980 Cnc Machine Tools
17/137
2004 17
ISO MACHINE TOOL AXES DEFINITIONS
AXIS MACHINE TOOL WITH SPINDLE MACHINE TOOL WITH NO SPINDLE
Z axis of spindle,(+Z) as tool goes away from the work piece
perpendicular to work holding surface, (+Z) astool goes away from theworkpiece
MACHINE TOOL WITH
ROTATINGWORKPIECE
MACHINE TOOL WITH ROTATING TOOL
HORIZONT AL AXIS
VERTICAL AXIS
X radial andparallel tocross slide,(+X) whentool goes awayfrom the axis
of spindle
horizontaland parallelto work holdingsurface,(+X) to the
right whenviewedfromspindletowardswork piece
horizontaland parallelto the work holdingsurface,(+X) to the
right whenviewedfromspindletowardscolumn
parallel to and positive inthe principal direction of cutting (primary motion)
Y apply right hand rules
-
7/30/2019 19647980 Cnc Machine Tools
18/137
2004 18
RIGHT HAND RULE Vertical Machine Horizontal Machine
-
7/30/2019 19647980 Cnc Machine Tools
19/137
2004 19
STANDARD LATHE COORDINATE
SYSTEM
-
7/30/2019 19647980 Cnc Machine Tools
20/137
2004 20
STANDARD MILLING MACHINE
COORDINATE SYSTEM
-
7/30/2019 19647980 Cnc Machine Tools
21/137
2004 21
NUMERICALLY CONTROLLED MACHINE
TOOLS: An NC machine tool is functionally the sameas a conventional machine tool. The
technological capabilities NC machine toolsin terms of machining are no different fromthose of conventional ones. The differenceis in the way in which the various machine
functions and slide movements arecontrolled.
-
7/30/2019 19647980 Cnc Machine Tools
22/137
2004 22
The functions and motions such as;
turning the spindle on and off setting cutting speeds setting feed rate turning coolant on and off moving tool with respect to workpiece
are performed by Machine Control Unit(MCU) in NC machine tools.
-
7/30/2019 19647980 Cnc Machine Tools
23/137
2004 23
INTRODUCTION TO CNC
-
7/30/2019 19647980 Cnc Machine Tools
24/137
2004 24
HISTORY
US Air Force commissioned MIT to develop thefirst "numerically controlled" machine in 1949. It
was demonstrated in 1952.At 1970-1972 first Computer Numeric Control
machines were developed.Today, computer numerical control (CNC)machines are found almost everywhere, fromsmall job shops in rural communities tocompanies in large urban areas.
-
7/30/2019 19647980 Cnc Machine Tools
25/137
2004 25
DEFINITION
In CNC (Computer Numerical Control), theinstructions are stored as a program in a
micro-computer attached to the machine.The computer will also handle much of thecontrol logic of the machine, making it
more adaptable than earlier hard-wiredcontrollers.
-
7/30/2019 19647980 Cnc Machine Tools
26/137
2004 26
CNC APPLICATIONS Machining2.5D / 3DTurning ~ Lathes, Turning Centre
Milling ~ Machining CentresForming2D
Plasma and Laser CuttingBlanking, nibbling and punching3DRapid Prototyping
-
7/30/2019 19647980 Cnc Machine Tools
27/137
2004 27
SAMPLECNC MACHINES
-
7/30/2019 19647980 Cnc Machine Tools
28/137
28
CNC TURNING
-
7/30/2019 19647980 Cnc Machine Tools
29/137
29
CNC MILLING
-
7/30/2019 19647980 Cnc Machine Tools
30/137
2004 30
CNC LASER CUTTING
-
7/30/2019 19647980 Cnc Machine Tools
31/137
2004 31
CNC PLASMA CUTTING
-
7/30/2019 19647980 Cnc Machine Tools
32/137
2004 32
CNC PRESS
-
7/30/2019 19647980 Cnc Machine Tools
33/137
2004 33
CNC RAPID PROTOTYPING
-
7/30/2019 19647980 Cnc Machine Tools
34/137
2004 34
INDUSTRIES MOST AFFECTEDby CNC
AerospaceMachineryElectricalFabrication
AutomotiveInstrumentationMold making
-
7/30/2019 19647980 Cnc Machine Tools
35/137
2004 35
SAMPLE PRODUCTS
OFCNC MANUFACTURING
-
7/30/2019 19647980 Cnc Machine Tools
36/137
2004 36
AUTOMOTIVE INDUSTRY
Engine Block
-
7/30/2019 19647980 Cnc Machine Tools
37/137
2004 37
AUTOMOTIVE INDUSTRY(Contd)
Different Products
-
7/30/2019 19647980 Cnc Machine Tools
38/137
2004 38
AEROSPACE INDUSTRY Aircraft Turbine Machined by
5-Axis CNC Milling Machine
-
7/30/2019 19647980 Cnc Machine Tools
39/137
2004 39
CNC MOLD MAKING
-
7/30/2019 19647980 Cnc Machine Tools
40/137
2004 40
ELECTRONIC INDUSTRY
-
7/30/2019 19647980 Cnc Machine Tools
41/137
2004 41
RAPID PROTOTYPINGPRODUCTS
-
7/30/2019 19647980 Cnc Machine Tools
42/137
2004 42
ADVANTAGES of CNC
ProductivityMachine utilisation is increased becausemore time is spent cutting and less time istaken by positioning.Reduced setup time increases utilisationtoo.
-
7/30/2019 19647980 Cnc Machine Tools
43/137
2004 43
ADVANTAGES of CNC
QualityParts are more accurate.Parts are more repeatable.Less waste due to scrap.
-
7/30/2019 19647980 Cnc Machine Tools
44/137
2004 44
ADVANTAGES of CNC
Reduced inventoryReduced setup time permits smallereconomic batch quantities.Lower lead time allows lower stock levels.Lower stock levels reduce interest chargesand working capital requirements.
-
7/30/2019 19647980 Cnc Machine Tools
45/137
2004 45
ADVANTAGES of CNC
Machining Complex shapesSlide movements under computer control.Computer controller can calculate steps.First NC machine built 1951 at MIT foraircraft skin milling.
-
7/30/2019 19647980 Cnc Machine Tools
46/137
2004 46
ADVANTAGES of CNC
Management ControlCNC leads to CADProcess planningProduction planning
-
7/30/2019 19647980 Cnc Machine Tools
47/137
2004 47
DRAWBACKS of CNCHigh capital cost
Machine tools cost $30,000 - $1,500,000Retraining and recruitment of staff New support facilitiesHigh maintenance requirementsNot cost-effective for low-level production onsimple parts
As geometric complexity or volume increasesCNC becomes more economical
Maintenance personnel must have bothmechanical and electronics expertise
-
7/30/2019 19647980 Cnc Machine Tools
48/137
2004 48
CNC SYSTEM ELEMENTS
-
7/30/2019 19647980 Cnc Machine Tools
49/137
2004 49
CNC SYSTEM ELEMENTS
A typical CNC system consists of thefollowing six elementsPart program
Program input deviceMachine control unitDrive system
Machine toolFeedback system
-
7/30/2019 19647980 Cnc Machine Tools
50/137
2004 50
NC SYSTEM ELEMENTS
-
7/30/2019 19647980 Cnc Machine Tools
51/137
2004 51
OPERATIONAL FEATURES of CNCMACHINES
-
7/30/2019 19647980 Cnc Machine Tools
52/137
2004 52
PART PROGRAM A part program is a series of coded instructions requiredto produce a part. It controls the movement of themachine tool and the on/off control of auxiliary functionssuch as spindle rotation and coolant. The codedinstructions are composed of letters, numbers andsymbols and are arranged in a format of functionalblocks as in the following example
N10 G01 X5.0 Y2.5 F15.0 | | | | || | | | Feed rate (15 in/min)
| | | Y-coordinate (2.5")| | X-coordinate (5.0")| Linear interpolation mode
Sequence number
-
7/30/2019 19647980 Cnc Machine Tools
53/137
2004 53
PROGRAM INPUT DEVICE
The program input device is themechanism for part programs to be
entered into the CNC control. The mostcommonly used program input devices arekeyboards, punched tape reader, diskette
drivers, throgh RS 232 serial ports andnetworks.
-
7/30/2019 19647980 Cnc Machine Tools
54/137
2004 54
MACHINE CONTROL UNITThe machine control unit (MCU) is the heart of a CNCsystem. It is used to perform the following functions:
Read coded instructionsDecode coded instructions
Implement interpolations (linear, circular, and helical) togenerate axis motion commandsFeed axis motion commands to the amplifier circuits fordriving the axis mechanisms
Receive the feedback signals of position and speed foreach drive axisImplement auxiliary control functions such as coolant orspindle on/off, and tool change
-
7/30/2019 19647980 Cnc Machine Tools
55/137
2004 55
TYPES of CNC CONTROLSYSTEMS
Open-loop controlClosed-loop control
-
7/30/2019 19647980 Cnc Machine Tools
56/137
2004 56
OPEN-LOOP CONTROL SYSTEM
In open-loop control system step motors areusedStep motors are driven by electric pulsesEvery pulse rotates the motor spindle through acertain amountBy counting the pulses, the amount of motion
can be controlledNo feedback signal for error correctionLower positioning accuracy
-
7/30/2019 19647980 Cnc Machine Tools
57/137
2004 57
CLOSED-LOOP CONTROL
SYSTEMSIn closed-loop control systems DC or ACmotors are used
Position transducers are used to generateposition feedback signals for errorcorrectionBetter accuracy can be achievedMore expensiveSuitable for large size machine tools
-
7/30/2019 19647980 Cnc Machine Tools
58/137
2004 58
DRIVE SYSTEM
A drive system consists of amplifiercircuits, stepping motors or servomotors
and ball lead-screws. The MCU feedscontrol signals (position and speed) of each axis to the amplifier circuits. Thecontrol signals are augmented to actuate
stepping motors which in turn rotate theball lead-screws to position the machinetable.
-
7/30/2019 19647980 Cnc Machine Tools
59/137
2004 59
STEPPING MOTORS
A stepping motor provides open-loop, digitalcontrol of the position of a workpiece in anumerical control machine. The drive unitreceives a direction input (cw or ccw) and pulse
inputs. For each pulse it receives, the drive unitmanipulates the motor voltage and current,causing the motor shaft to rotate bya fixed angle(one step). The lead screw converts the rotarymotion of the motor shaft into linear motion of the workpiece .
-
7/30/2019 19647980 Cnc Machine Tools
60/137
2004 60
STEPPING MOTORS
-
7/30/2019 19647980 Cnc Machine Tools
61/137
2004 61
RECIRCULATING BALL SCREWS
Transform rotational motion of the motorinto translational motion of the nut attached tothe machine table.
-
7/30/2019 19647980 Cnc Machine Tools
62/137
2004 62
RECIRCULATING BALL SCREWS
Accuracy of CNCmachines depends ontheir rigidconstruction, care inmanufacturing, andthe use of ball screwsto almost eliminate
slop in the screwsused to move portionsof the machine.
-
7/30/2019 19647980 Cnc Machine Tools
63/137
2004 63
-
7/30/2019 19647980 Cnc Machine Tools
64/137
2004 64
POSITIONING
The positioning resolution of a ball screw drivemechanism is directly proportional to thesmallest angle that the motor can turn.The smallest angle is controlled by the motorstep size.Microsteps can be used to decrease the motorstep size.CNC machines typically have resolutions of 0.0025 mm or better.
-
7/30/2019 19647980 Cnc Machine Tools
65/137
2004 65
MACHINE TOOL
CNC controls are used to control varioustypes of machine tools. Regardless of
which type of machine tool is controlled, italways has a slide table and a spindle tocontrol of position and speed. The
machine table is controlled in the X and Y axes, while the spindle runs along the Zaxis.
-
7/30/2019 19647980 Cnc Machine Tools
66/137
2004 66
FEEDBACK SYSTEM
The feedback system is also referred to asthe measuring system. It uses position
and speed transducers to continuouslymonitor the position at which the cuttingtool is located at any particular time. TheMCU uses the difference between
reference signals and feedback signals togenerate the control signals for correctingposition and speed errors.
-
7/30/2019 19647980 Cnc Machine Tools
67/137
2004 67
CNC MACHINES FEEDBACK
DEVICES
-
7/30/2019 19647980 Cnc Machine Tools
68/137
2004 68
POTENTIOMETERS
-
7/30/2019 19647980 Cnc Machine Tools
69/137
2004 69
POTENTIOMETERS
ENCODERS
-
7/30/2019 19647980 Cnc Machine Tools
70/137
2004 70
ENCODERS
A device used to convert linear or
rotational position information into anelectrical output signal.
-
7/30/2019 19647980 Cnc Machine Tools
71/137
2004 71
ENCODERS
-
7/30/2019 19647980 Cnc Machine Tools
72/137
2004 72
INDUSTRIAL APPLICATIONS of ENCODERS
-
7/30/2019 19647980 Cnc Machine Tools
73/137
2004 73
RESOLVERS
A resolver is a rotarytransformer that
produces an output signalthat is a function of therotor position.
-
7/30/2019 19647980 Cnc Machine Tools
74/137
2004 74
SERVOMOTOR with RESOLVER
-
7/30/2019 19647980 Cnc Machine Tools
75/137
2004 75
VELOCITY FEEDBACK
Tachometers:Electrical output is proportional to rate of angular rotation.
Encoders, Resolvers, Potentiometers:Number of pulses per time is proportionalto rate change of position.
-
7/30/2019 19647980 Cnc Machine Tools
76/137
2004 76
CNC CUTTERS
Turning center cuttersMachining center cutters
-
7/30/2019 19647980 Cnc Machine Tools
77/137
2004 77
TURNING CENTER CUTTERS
Types of cutters used on CNC turningcenters
Carbides (and other hard materials) insertturning and boring toolsCeramics
High Speed Steel (HSS) drills and taps
-
7/30/2019 19647980 Cnc Machine Tools
78/137
2004 78
STANDART INSERT SHAPES V used for profiling, weakestinsert, 2 edges per side.D somewhat stronger, used forprofiling when the angle allows it,2 edges per side.T commonly used for turningbecause it has 3 edges per side.C popular insert because thesame holder can be used forturning and facing. 2 edges perside.W newest shape. Can turn andface like the C, but 3 edges perside.S Very strong, but mostly usedfor chamfering because it wontcut a square shoulder. 4 edgesper side.R strongest insert but leastcommonly used.
TYPICAL TURNING,
-
7/30/2019 19647980 Cnc Machine Tools
79/137
2004 79
TYPICAL TURNING,THREADING and PARTING TOOLS
MACHINING CENTER CUTTING
-
7/30/2019 19647980 Cnc Machine Tools
80/137
2004 80
MACHINING CENTER CUTTINGTOOLS
Most machining centersuse some form of HSS orcarbide insert endmill as
the basic cutting tool.Insert endmills cut manytimes faster than HSS,but the
HSS endmills leave abetter finish when sidecutting.
MACHINING CENTER CUTTING
-
7/30/2019 19647980 Cnc Machine Tools
81/137
2004 81
MACHINING CENTER CUTTINGTOOLS (contd)
Facemills flatten largesurfaces quickly andwith an excellentfinish. Notice theengine block beingfinished in one pass
with a large cutter.
MACHINING CENTER CUTTING
-
7/30/2019 19647980 Cnc Machine Tools
82/137
2004 82
MACHINING CENTER CUTTINGTOOLS (contd)
Ball endmills (bothHSS and insert) areused for a variety of profiling operationssuch as the moldshown in the picture.Slitting and sidecutters are used whendeep, narrow slotsmust be cut.
MACHINING CENTER CUTTING
-
7/30/2019 19647980 Cnc Machine Tools
83/137
2004 83
MACHINING CENTER CUTTINGTOOLS (contd)
Drills, Taps, and ReamersCommon HSS tools such asdrills, taps, and reamers arecommonly used on CNC
machining centers. Note that aspot drill is used instead of acenterdrill. Also, spiral point orgun taps are used for throughholes and spiral flute for blindholes. Rarely are hand tapsused on a machining center.
TOOL HOLDERS
-
7/30/2019 19647980 Cnc Machine Tools
84/137
2004 84
TOOL HOLDERS
All cutting tools must be held in a holderthat fits in the spindle. These include endmill holders (shown), collet holders, facemill adapters, etc. Most machines in theUSA use a CAT taper which is a modifiedNST 30, 40, or 50 taper that uses a pullstud and a groove in the flange. Themachine pulls on the pull stud to hold theholder in the spindle, and the groove inthe flange gives the automatic toolchanger something to hold onto. HSK toolholders were designed a number of yearsago as an improvement to CAT tapers,but they are gaining acceptance slowly.
-
7/30/2019 19647980 Cnc Machine Tools
85/137
2004 85
CNC PROGRAMMING
-
7/30/2019 19647980 Cnc Machine Tools
86/137
2004 86
CNC PROGRAMMING
Offline programming linked to CAD programs.Conversational programming by the
operator.MDI ~ Manual Data Input.Manual Control using jog buttons or`electronic handwheel'.Word-Address Coding using standard G-codesand M-codes.
-
7/30/2019 19647980 Cnc Machine Tools
87/137
2004 87
During secondary motion, either the tool
moves relative to the workpiece or theworkpiece moves relative to the tool. In NCprogramming, it is always assumed that the
tool moves relative to the workpiece nomatter what the real situation is.
Basics of NC Part Programming:
-
7/30/2019 19647980 Cnc Machine Tools
88/137
2004 88
The position of the tool is describedby using a Cartesian coordinate
system. If (0,0,0) position can bedescribed by the operator, then it is
called floating zero .
-
7/30/2019 19647980 Cnc Machine Tools
89/137
2004 89
In defining the motion of the toolfrom one point to another,eitherabsolute positioning mode orincremental positioning mode
can be used.
-
7/30/2019 19647980 Cnc Machine Tools
90/137
2004 90
1. Absolute positioning . In this mode, thedesired target position of the tool for aparticular move is given relative to the origin
point of the program.
2. Incremental positioning . In this mode,the next target position for the tool is givenrelative to the current tool position.
-
7/30/2019 19647980 Cnc Machine Tools
91/137
2004 91
Structure of an NC Part Program:
Commands are input into the controller inunits called blocks or statements .
Block Format:
1. Fixed sequential format
2. Tab sequential format3. Word address format
EXAMPLE:
-
7/30/2019 19647980 Cnc Machine Tools
92/137
2004 92
EXAMPLE: Assume that a drilling operation is to be
programmed as:
1. The tool is positioned at (25.4,12.5,0) by a
rapid movement.2. The tool is then advanced -10 mm in the zdirection at a feed rate of 500 mm/min., with theflood coolant on.
3.The is then retracted back 10 mm at the rapidfeed rate, and the coolant is turned off.
-
7/30/2019 19647980 Cnc Machine Tools
93/137
2004 93
1. Fixed sequential format0050 00 +0025400 +0012500 +0000000 0000 000060 01 +0025400 +0012500 -0010000 0500 080070 00 +0025400 +0012500 +0000000 0000 09
2. Tab sequential format0050 TAB 00 TAB +0025400 TAB +0012500 TAB +0000000 TAB TAB0060 TAB 01 TAB TAB TAB -0010000 TAB 0500 TAB 080070 TAB 00 TAB TAB TAB -0000000 TAB 0000 TAB 09
3. Word address formatN50 G00 X25400 Y125 Z0 F0N60 G01 Z-10000 F500 M08N70 G00 Z0 M09
M d l d : Commands iss ed in the
-
7/30/2019 19647980 Cnc Machine Tools
94/137
2004 94
Modal commands : Commands issued in theNC program that will stay in effect until it ischanged by some other command, like, feedrate selection, coolant selection, etc.
Nonmodal commands : Commands that areeffective only when issued and whoseeffects are lost for subsequent commands,like, a dwell command which instructs thetool to remain in a given configuration for agiven amount of time.
-
7/30/2019 19647980 Cnc Machine Tools
95/137
2004 95
CNC PROGRAMMING
-
7/30/2019 19647980 Cnc Machine Tools
96/137
2004 96
INFORMATION NEEDED by a CNC
1. Preparatory Information: units, incremental or absolutepositioning
2. Coordinates: X,Y,Z, RX,RY,RZ3. Machining Parameters: Feed rate and spindle speed4. Coolant Control: On/Off, Flood, Mist5. Tool Control: Tool and tool parameters6. Cycle Functions: Type of action required7. Miscellaneous Control: Spindle on/off, direction of
rotation, stops for part movementThis information is conveyed to the machine through a setof instructions arranged in a desired sequence Program.
BLOCK FORMAT
-
7/30/2019 19647980 Cnc Machine Tools
97/137
2004 97
Sample Block N135 G01 X1.0 Y1.0 Z0.125 F5
Restrictions on CNC blocksEach may contain only one tool moveEach may contain any number of non-tool move G-codesEach may contain only one feedrateEach may contain only one specified tool or spindlespeed
The block numbers should be sequentialBoth the program start flag and the program numbermust be independent of all other commands (onseparate lines)The data within a block should follow the sequenceshown in the above sample block
-
7/30/2019 19647980 Cnc Machine Tools
98/137
2004 98
WORD-ADDRESS CODING
N5 G90 G20N10 M06 T3N15 M03 S1250N20 G00 X1 Y1N25 Z0.1N30 G01 Z-0.125 F5N35 X3 Y2 F10
N40 G00 Z1N45 X0 Y0N50 M05N55 M30
Example CNC Program Each instruction to the machineconsists of a letter followed by anumber.
Each letter is associated with aspecific type of action or piece of information needed by the machine.
Letters used in Codes
N,G,X,Y,Z,A,B,C,I,J,K,F,S,T,R,M
-
7/30/2019 19647980 Cnc Machine Tools
99/137
2004 99
G & M Codes
N5 G90 G20N10 M06 T3N15 M03 S1250N20 G00 X1 Y1N25 Z0.1N30 G01 Z-0.125 F5N35 X3 Y2 F10
N40 G00 Z1N45 X0 Y0N50 M05N55 M30
Example CNC Program G-codes : Preparatory Functions
involve actual tool moves.
M-codes : MiscellaneousFunctions involve actionsnecessary for machining (i.e.spindle on/off, coolant on/off).
-
7/30/2019 19647980 Cnc Machine Tools
100/137
2004 100
G CodesG00 Rapid traverseG01 Linear interpolationG02 Circular interpolation,
CWG03 Circular interpolation,
CCWG04 DwellG08 AccelerationG09 DecelerationG17 X-Y PlaneG18 Z-X PlaneG19 Y-Z PlaneG20 Inch Units (G70)G21 Metric Units (G71)
G40 Cutter compensation cancel
G41 Cutter compensation left
G42 Cutter compensation-rightG70 Inch formatG71 Metric formatG74 Full-circle programming
off G75 Full-circle programming
onG80 Fixed-cycle cancelG81-G89 Fixed cyclesG90 Absolute dimensions
G91 Incremental dimensions
-
7/30/2019 19647980 Cnc Machine Tools
101/137
2004 101
Modal G-Codes
Most G-codes set the machine in a mode which stays in effect until it is changed orcancelled by another G-code. These
commands are called modal.
-
7/30/2019 19647980 Cnc Machine Tools
102/137
2004 102
Modal G-Code ListG00 Rapid TransverseG01 Linear InterpolationG02 Circular Interpolation, CWG03 Circular Interpolation,
CCWG17 XY PlaneG18 XZ PlaneG19 YZ PlaneG20/G70 Inch unitsG21/G71 Metric UnitsG40 Cutter compensation
cancel
G41 Cutter compensation leftG42 Cutter compensation rightG43 Tool length compensation
(plus)
G43 Tool length compensation(plus)
G44 Tool length compensation(minus)
G49 Tool length compensationcancel
G80 Cancel canned cyclesG81 Drilling cycleG82 Counter boring cycleG83 Deep hole drilling cycleG90 Absolute positioningG91 Incremental positioning
-
7/30/2019 19647980 Cnc Machine Tools
103/137
2004 103
M CodesM00 Program stopM01 Optional program stopM02 Program endM03 Spindle on clockwise
M04 Spindle on counterclockwiseM05 Spindle stopM06 Tool changeM08 Coolant onM09 Coolant off M10 Clamps onM11 Clamps off M30 Program stop, reset to start
-
7/30/2019 19647980 Cnc Machine Tools
104/137
2004 104
N Codes
Gives an identifying number for each block of information.
It is generally good practice to incrementeach block number by 5 or 10 to allow
additional blocks to be inserted if futurechanges are required.
-
7/30/2019 19647980 Cnc Machine Tools
105/137
2004 105
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 reference
point.
-
7/30/2019 19647980 Cnc Machine Tools
106/137
2004 106
I,J, and K Codes
I, J, and K codes are used to specify thecoordinate axis when defining the center
of a circle.
Number following the code defines the
respective coordinate for the center of thecircle.
-
7/30/2019 19647980 Cnc Machine Tools
107/137
2004 107
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 toolidentification number associated with thetool to be used in subsequent operations.
Application of Some Codes
-
7/30/2019 19647980 Cnc Machine Tools
108/137
2004 108
Application of Some CodesG01 Linear Interpolation
Format: N_ G01 X_ Y_ Z_ F_
Linear Interpolation results in a straightline feed move.
Unless tool compensation is used, thecoordinates are associated with thecenterline of the tool.
Application of Some Codes
-
7/30/2019 19647980 Cnc Machine Tools
109/137
2004 109
Application of Some CodesG01 Linear Interpolation
. As an example, for the motion that occurs inx-y plane with the same maximum speed for thex- and y-axis, initial motion is at an angle of 45oto the axes until motion in one of
the axes is completed and then the balance of
the motion occurs in the other axis. This is calledpoint-to-point motion .
Application of Some Codes
-
7/30/2019 19647980 Cnc Machine Tools
110/137
2004 110
Application of Some CodesG01 Linear Interpolation
5
1 0
1 5
2 0
2 5
5 1 0 1 5 2 0 2 5 3 0
A
B C
P o s i t i o n i n g m o t i o n f r o m A t o C
N 1 0 G 0 0 X 3 0 0 0 0 Y 2 0 0 0 0 F 0
Application of Some Codes
-
7/30/2019 19647980 Cnc Machine Tools
111/137
2004 111
Application of Some CodesG01 Linear Interpolation
G01 is another preparatory function to specifythat the tool should be moved to a specifiedlocation along a straight line path. It is referredto as linear interpolation .
This function is typically used to specifymachining of straight features such as turninga cylindrical surface in turning, cutting a slot inmilling, etc.
Application of Some Codes
-
7/30/2019 19647980 Cnc Machine Tools
112/137
2004 112
Application of Some CodesG01 Linear Interpolation
5
1 0
1 5
2 0
2 5
5 1 0 1 5 2 0 2 5 3 0
A
C
L i n e a r i n t e r p o l a t i o n f r o m A t o C
N 1 0 G 0 1 X 3 0 0 0 0 Y 2 0 0 0 0 F 2 5 0 0
G01 Linear Interpolation
-
7/30/2019 19647980 Cnc Machine Tools
113/137
2004 113
N10 G00 X1 Z1N15 Z0.1N20 G01 Z-0.125 F5N25 X2 Z2 F10
G01 Linear Interpolation
X
Z
G02 Ci l I l i
-
7/30/2019 19647980 Cnc Machine Tools
114/137
2004 114
G02 Circular Interpolation
G02 is also a preparatory function to specify thatthe tool should be moved to a specified locationalong a circular path in a clockwise direction. Inorder to specify the path to the MCU, the endpoint of the arc and the location of the center of the arc should be specified. Within the block inwhich the G02 code is programmed, the centerof the arc is given by specifying its locationrelative to the start of the arc.
G02 Ci l I l i (CW)
-
7/30/2019 19647980 Cnc Machine Tools
115/137
2004 115
G02 Circular Interpolation (CW)
The G02 command requires anendpoint and a radius in orderto cut the arc.I,J, and K are relative to thestart point.
N_ G02 X2 Y1 I0 J-1 F10
orN_ G02 X2 Y1 R1
G02 Ci l I l i (CW)
-
7/30/2019 19647980 Cnc Machine Tools
116/137
2004 116
G02 Circular Interpolation (CW)
5
1 0
1 5
2 0
2 5
5 1 0 1 5 2 0 2 5 3 0
C
C
C i r c u l a r i n t e r p o l a t i o n f r o m A t o B
a b o u t a c i r c l e c e n t e r e d a t C
N 1 0 G 0 2 X 2 0 0 0 0 Y 1 0 0 0 0
I 5 0 0 0 J 1 5 0 0 0 F 2 5 0 0
A
B
I = 5
J = 1 5
Canned Cycles
-
7/30/2019 19647980 Cnc Machine Tools
117/137
2004 117
Some Commonly Used Canned Cycle
-
7/30/2019 19647980 Cnc Machine Tools
118/137
2004 118
Code Function Down feed At bottom Retracti on
G81 Drilling Continuousfeed
No action Rapid
G82 Spot face,counterbore
Continuousfeed
Dwell Rapid
G83 Deep hole drilling Peck No action Rapid
G84 Tapping Continuousfeed
Reversespindle
Feedrate
G85 Through boring(in& out) Continuousfeed No action Feedrate G86 Through boring(in
only) Continuous
feed Stop
spindle Rapid
G81 ILLUSTRATION
-
7/30/2019 19647980 Cnc Machine Tools
119/137
2004 119
Th M i t f CNC
-
7/30/2019 19647980 Cnc Machine Tools
120/137
2004 120
Three Main parts of a CNC program
N5 G90 G21 (Absolute units, metric)
N10 M06 T2 (Stop for tool change, use
tool # 2)N15 M03 S1200 (Turn the spindle on CW to1200 rpm)
Part 1- Program Petup
Th M i t f CNC g
-
7/30/2019 19647980 Cnc Machine Tools
121/137
2004 121
Three Main parts of a CNC program
N20 G00 X1 Y1 (Rapid to X1,Y1 from originpoint)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
Th M i t f CNC g
-
7/30/2019 19647980 Cnc Machine Tools
122/137
2004 122
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/30/2019 19647980 Cnc Machine Tools
123/137
2004 123
MILLING MACHINE
G CODE PROGRAM
-
7/30/2019 19647980 Cnc Machine Tools
124/137
2004 124
G-CODE PROGRAM
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.125
N30 Z0.125N35 G01 Z-0.125 F5N40 X3.875N45 Y4.125N50 X0.125N55 Y0.125
Second pass:
-
7/30/2019 19647980 Cnc Machine Tools
125/137
2004 125
pconventional mill to a
depth of 0.25 aroundedge profile.
N35 Z-0.250N40 X3.875N45 Y4.125N50 X0.125N55 Y0.125N60 Z0.125
Third pass:conventional mill to a
-
7/30/2019 19647980 Cnc Machine Tools
126/137
2004 126
conventional mill to adepth of 0.125
around pocket profile.
N65 G00 X1.25 Y1.0N70 G01 Z-0.125 F5N75 X1.75N80 Y2.5N85 X1.25
N90 Y1.0N95 Z0.125
Fourth pass: climbill d h f
-
7/30/2019 19647980 Cnc Machine Tools
127/137
2004 127
mill to a depth of 0.125 acrossremaining material.
N100 Y2.125N105 X2.625N110 Z0.125N115 G00 X-5 Y-5 Z5
N120 M05N125 M30
Advanced features:
-
7/30/2019 19647980 Cnc Machine Tools
128/137
2004 128
Execution of the part of the program in arotated or mirrored position.
Ability to scale the program and producelarger or smaller programs.Three dimensional circular interpolationwhich produces a helical shape.Parabolic and cubic interpolation.
-
7/30/2019 19647980 Cnc Machine Tools
129/137
2004 129
Program Loading:
Through keyboard
Through punched tape readerThrough diskette driveThrough RS 232 serial port
Through network interface card
Direct Numerical Control (DNC):
-
7/30/2019 19647980 Cnc Machine Tools
130/137
2004 130
A system in which a central computerdownloads the NC programs block by block to many NC machine tools simultaneously iscalled Direct Numerical Control (DNC )system.
Direct Numerical Control (DNC):
Direct Numerical Control (DNC):
-
7/30/2019 19647980 Cnc Machine Tools
131/137
2004 131
This system used to work with the early NCmachine tools which can not read more than ablock of information at a time. The centralcomputer feed the program information oneblock at a time. When the machine execute theinformation, the next block of informationwould be fed.
( )
Distributed Numerical Control (DNC):
-
7/30/2019 19647980 Cnc Machine Tools
132/137
2004 132
Distributed NC is known by the same acronymas Direct Numerical Control (DNC). After theintroduction of CNC, the machine tools havehad the capability of storing large amount of
information. Therefore, there have been noneed to have drip feed information system,like, Direct Numerical Control. Instead,Distributed Numerical Control is introduced. In
such a system, a host computer communicatewith many CNC machine tools via networksand download or upload programs.
Distributed Numerical Control (DNC):
-
7/30/2019 19647980 Cnc Machine Tools
133/137
2004 133
With Distributed Numerical Control systems, itis possible to monitor the activities in individualCNC machine tools on host computer.Therefore, better shop floor control can beachieved.
-
7/30/2019 19647980 Cnc Machine Tools
134/137
2004 134
NC program preparation may be tedious anddifficult if the part to be machined has acomplex geometry. The main difficulty is tofind out the cutter locations during themachining. Computers may be used to assistthe programmers in preparing the NC codes.
Computer Aided Part Programming:
-
7/30/2019 19647980 Cnc Machine Tools
135/137
2004 135
Advantages of applying computer-aided partprogramming include the following:
1. It reduces the manual calculationsinvolves in determining the geometriccharacteristics of the part.It provides the cutter path simulation.
It provides tool collision checking.It shortens the program preparation time.It makes the program preparation easier.
Th A I d t i A i ti
-
7/30/2019 19647980 Cnc Machine Tools
136/137
2004 136
The Aerospace Industries Associationsponsored the work that led to the first partprogramming language, developed in MIT in1955.This was called: Automatically Programmed Tools (APT).
APT is an English like simple programminglanguage which basically produce the Cutter Location (CL) data.
Using the cutter location data, the program cangenerate the actual NC codes by using apostprocessor .
CAD/CAM Based Part Programming:
-
7/30/2019 19647980 Cnc Machine Tools
137/137
The output of any CAD package include thegeometric data of the part to be machined.Therefore, many CAD/CAM package canproduce cutter location (CL) data to be usedfor NC code generation.There is still to be a process planning modulefor a workable NC code generation.Some of the CAD/CAM packages that have theNC code generation capabilities areComputervision, CATIA, CADAM, ProEngineer,