CAM Module 3 Students
CAM Module 3 Students
HISTORY
◼ US Air Force commissioned MIT to develop the first "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, from small job shops in rural communities to companies
in large urban areas.
3
Introduction to NC, CNC and DNC
Table
Leadscrew
Encoder A/C Motor
~
Servo Controller
Counter Comparator
Part program:
14
Program input device
15
Machine Control Unit
17
Feed Back System
18
Drive System
19
POWER DRIVES
• In machine tools, power is generally required for driving the main spindle,
saddles and carriages and to some auxiliary units.
.In CNC, usually stepper and servo electrical drives are used
• Exhibit favorable torque-speed characteristics and are relatively in
expensive
20
STEPPER MOTOR
A stepper motor is a pulse-driven motor that changes the
angular position of the rotor in steps.
Due to this nature of a stepper motor, it is widely used in
low cost, open loop position control systems.
24
• Rotation of a hybrid stepping motor is produced in the similar
fashion as a permanent magnet stepping motor, by energizing
individual windings in a positive or negative direction.
• These generated poles attract the permanent poles of the rotor and
also the finer metal teeth present on rotor.
25
• The rotor moves one step to align the offset
magnetized rotor teeth to the corresponding
energized windings.
26
Advantages of stepper motors
• Low cost
• Simplicity of construction
• Low maintenance
• Less likely to stall or slip
• Will work in any environment
• Excellent start-stop and reversing responses
Disadvantages of stepper motors
• Low torque capacity compared to DC motors
• Limited speed
• During overloading, the synchronization will be broken.
Vibration and noise occur when running at high speed.
27
SERVO MOTORS
• Servomotors are special electromechanical devices that produce
precise degrees of rotation.
34
• In many servo systems, both velocity and position are monitored.
• Servomotors provide accurate speed, torque, and have ability of
direction control.
DC servomotors
DC operated servomotors are usually respond to error signal
abruptly and accelerate the load quickly. A DC servo motor is actually
an assembly of four separate components, namely:
o DC motor
o gear assembly
o position-sensing device
o control circuit 35
AC servo motor
• The conventional thread forms like vee or square are not suitable in CNC
because of their high wear and less efficiency.
• Therefore CNC machines generally employ ball screw for driving their
workpiece carriages.
• These drives provide backlash free operation with low friction- wear
characteristics.
• These are efficient and accurate in comparison with that of nut- and-screw
drives. Most widely used linear motion drives are ball screws.
33
Advantages of CNC machines
• Machining is accurate and have very high precision
• Time taken to perform a job is very less
• Safe to operate
• Number of operators required to operate a machine are reduced
• No possibility of human error
• Reliable
• They are versatile
• Uniformity in designs
• They could run for all 24 hours a day
• Wastage generated by CNC machining is low as compared to conventional machining
• It reduces the number of defective products produced to almost zero
• It is more efficient and faster compared to conventional machining
• It is energy efficient
• It reduces overall production cost
• Products manufactured by CNC machines are highly consistent in nature
• Prototyping of the product is not required
• By updating the software machine can be updated to some extent
• One operator can supervise more than one machine at a time
• It can work on a wide range of material
Disadvantages of CNC machines
• Costly
• Trained operator is required to operate the machine
• In case of breakdown a highly skilled professional is required to solve the
problem
• Reduction in manual labour can lead to unemployment
• Its installation cost is high
• Applications of CNC machines
• Metal removal industries
• Material fabrication industries
• For non-conventional machining industries where the machining task is difficult
to perform manually
CNC APPLICATIONS
◼ Machining
2.5D / 3D
Turning ~ Lathes, Turning Centre
Milling ~ Machining Centres
◼ Forming
2D
Plasma and Laser Cutting
Blanking, nibbling and punching
3D
Rapid Prototyping
◼ In the non-machine tool category, CNC applications include
welding machines (arc and resistance), coordinate measuring
machine, electronic assembly, tape laying and filament winding
machines for composites etc
Direct numerical control (DNC)
◼ Direct numerical control (DNC) can be described as a various type of a
manufacturing system in which that multiple NC machine or CNC machines are
remotely controlled from a host computer or DNC control of multiple machines tools
by a single computer through a direct connection.
Functions of DNC System
◼ Following are the functions of the DNC machine:
1. For use the central computer for storage and editing programs for all machine
tools connected to it.
2. To give the stored programs to the connected machines on demand.
3. For to post-process part programs written in higher-level languages like APT.
4. To combine CAD with CAM by having a common database.
5. To provide a link between a central computer and various plant computers
connected through modems and networks even though the plants may be
placed several kilometres away from each other.
Components Used in DNC Machine
Following are the main components used in CNC machine:
1. Central computer
3. Communication network
4. NC machine
2. Specialised MCU
Behind The Tape Reader (BTR) System
Specialised MCU
Advantages and Disadvantages
◼ Following are the advantages of the DNC system:
1. The DNC rejects the use of tape readers, which are absolutely the weakest
component of the NC system.
2. Time-sharing by central control makes it possible to keep close control over the
entire machine shop.
3. The huge memory of DNC allows it to store a large number of part programs for
subsequent use. It also receives the memories of NC control unit.
4. Presence of a central bulk memory allows the same program to be run on
different machines at the same time without duplicating it at individual places.
◼ Following are the disadvantages of the DNC system:
1. DNC uses a central control and in an event of computer failure, the complete
activities of the machine shop would come to a standstill.
2. DNC is expensive and its use is practical in areas where high automation is
required.
PART PROGRAMMING
44
INTRODUCTION
45
❑ CNC program structure
46
FIXED ZERO v/s FLOATING ZERO
Fixed zero:
• Origin is always located at some position on M/C table
(usually at south west corner/Lower left-hand) of the
tables & all tool location are defined W.R.T. this zero
Floating Zero:
• Very common with CNC M/C used now a days.
• Operator sets zero point at any convenient position on
M/C table.
• The Coordinate system is knows as work coordinate
system (WCS)
47
Modal and Non modal commands
• Commands issued in the NC program may stay in effect
indefinitely (until they explicitly cancelled or changed by some
other command), or they may be effective for only the one time
that they are issued.
• The former are referred as Modal commands. Examples
include feed rate selection and coolant selection.
• Commands that are effective only when issued and whose
effects are lost for subsequent commands are referred to as
non-modal commands.
• A dwell command, which instructs the tool to remain in a given
configuration for a given amount of time, is an example of a
non-modal command.
48
Structure of an NC part program
• An NC part program is made up of a series of commands that are input
into the MCU in a serial manner.
• The MCU interprets these commands and generates the necessary signals
to each of the drive units of the machine to accomplish the required action.
49
• In general, several commands are grouped together to accomplish a specific
machining operation, hence the use of a block of information for each
operation.
• The way in which words are arranged within the block is called block format.
• Three different block formats are commonly used, (Fixed sequential format,
Tab sequential format and Word address format)
50
Word Sequential Format : Used on virtually all modern
controllers.
• With this type of format, each type of word is assigned as address that is identified
by a letter code within the part program.
• Thus the letter code specifies the type of word that follows and then its associated
numeric data is given.
• For example, the code T represents a tool number. Thus a word of the form T01
would represent tool number 1.
• Theoretically, with this approach, the words in a given block can be entered in any
sequence and the controller should be able to interpret them correctly.
51
• With the word address format only the needed words for a
given operation have to be included within the block.
52
COMMONLY USED WORD ADDRESSES
57
G00 Rapid traverse
When the tool being positioned at a point preparatory to a cutting
motion, to save time it is moved along a straight line at Rapid
traverse, at a fixed traverse rate which is pre-programmed into the
machine's control system.
Typical rapid traverse rates are 10 to 25 m /min., but can be as high
as 80 m/min.
G 17 : XY plane selection
Syntax: N.. G17
G 18 : ZX plane selection
Syntax: N.. G18
G 19 : ZY plane selection
Syntax: N.. G19
ADDRESS CHARACTERS
F Feed function
S Speed function
T Tool function
M Miscellaneous Code
Rules for programming
Block Format
N135 G01 X1.0 Y1.0 Z0.125 F5
Sample Block
• 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 feed rate
• 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 be independent of all
other commands (on separate lines)
• The data within a block should follow the sequence shown in the above sample
block
Manual Part Programming Example
5”
2.5”
p4
p2 p3 p5
1”
(4, 4)
p1
Motion of tool:
p0 → p1 → p2 → p3 → p4 → p5 → p1 → p0
p0 (2, 2)
1. Set up the programming parameters
5”
2.5”
p4
p2 p3 p5
1”
Programming in inches
5”
Use absolute coordinates
Feed in ipm
45°
N010 G70 G90 G94 G97 M04
(4, 4)
p1
Spindle speed in rpm
p0 (2, 2)
Spindle CCW
2. Set up the machining conditions
5”
2.5”
p4
p2 p3 p5
1”
Machine moves in XY-plane
Spindle speed
45°
N020 G17 G75 F6.0 S300 T1001 M08
(4, 4)
p1
Tool no.
p0 (2, 2)
Flood coolant ON
3. Move tool from p0 to p1 in straight line
5”
2.5”
p4
p2 p3 p5
Linear interpolation
1”
target coordinates
45°
(4, 4)
p1
p0 (2, 2)
4. Cut profile from p1 to p2
5”
2.5”
p4
p2 p3 p5
1”
Linear interpolation
5” target coordinates
p0 (2, 2)
5”
2.5”
p2 p3
p4
p5 Linear interpolation
target coordinates
1”
5”
y = 9 + 0.125 = 9.125
(6.5 - x)2 + 0.1252 = (1 - 0.125)2
x = 5.634
45° p3
(x, y)
(4, 4)
p1 (6.5, 9)
.125
p0 (2, 2)
1”
6. Cut along circle from p3 to p4
5”
2.5”
p4
p2 p3 p5
1”
5”
target coordinates
5”
2.5”
p4
p2 p3 p5
1”
5”
Linear interpolation
p0 (2, 2)
8. Cut from p5 to p1
5”
2.5”
p4
p2 p3 p5
1”
5”
Linear interpolation
p0 (2, 2)
9. Return to home position, stop program
5”
2.5”
p4
p2 p3 p5
1”
Linear interpolation
45°
end of data
(4, 4)
N100 M00
p1
N G81 X Y Z R
Z-2
Z-3
Z-4
Z-5
G28 U0 W0
M05
M30
PART PROGRAM FOR SIMPLE TURNING
N5 M12
N10 T0101
N15 G0 X100 Z50
N20 M3 S600
N25 M8
N30 G1 X50 Z0 F600
N40 Y-30 F200
N50 X80 Y-20 F150
N60 G0 X100 Z50
N70 T0100
N80 M5
N90 M9
N100 M13
N110 M30
Taper Turning
G00 X 21 Z21 Z-15
G77 X31 Z-20 R0 F1
R-1
R-2
R-5
G00 X25 Z1
G00 X0 Z0
G03 X10 Z-5 R5
G28 U0 W0
M05
M30
Code Explanation
N5 Clamping workpiece
N10 Changing No.1 tool and executing its offset
N15 Rapidly positioning to A point
N20 Starting the spindle with 600 r/min
N25 Cooling ON
N30 Approaching B point with 600mm/min
N40 Cutting from B point to C point
N50 Cutting from C point to D point
N60 Rapidly retracting to A point
N70 Cancelling the tool offset
N80 Stopping the spindle
N90 Cooling OFF
N100 Releasing workpiece
N110 End of program, spindle stopping and Cooling OFF
CNC MILLING EXAMPLE
N5 G90 G71
N10 T1 M6
N15 G92 X-100 Y86 Z95
N20 G0 X0 Y0 S2500 M3
N25 Z12.5
N30 G1 Z-12.5 F150
N35 X-20 Y30
N40 G2 X10 Y100 R80
N45 G1 X140 Y60
N50 G2 X150 Y0 R50
N55 G1 X0 Y0
N60 G0 Z12.5
N65 G91 G28 Z0 M5
N70 G91 G28 X0 Y0
N75 M30
CODE EXPLANATION
N5 absolute positioning, metric unit
N10 tool change to T1
N15 define work zero point at A
N20 rapid traverse to A, spindle on (2500 RPM, CW)
N25 rapid plunge to 12.5 mm above Z0
N30 feed to Z-12.5, feed rate 150 MMPM
N35 cut line AB to B
N40 cut arc BC to C
N45 cut line CD to D
N50 cut arc DE to E
N55 cut line EA to A
N60 rapid retract to Z12.5
N65 reference point return in Z direction, spindle off
N70 reference point return in X and Y directions
N75 end of program
SAMPLE PROGRAM ON DRILLING
N1M06 T16
N2 G90 G54 G00 X0.5 Y-0.5
N3 S1450 M03
N4 G43 H16 Z1. M08
N5 G81 G99 Z-0.375 R0.1 F9.
N6 X1.5
N7 Y-1.5
N8 X0.5
N9 G80 G00 Z1. M09
N10 G53 G49 Z0. M05
N11 M30
CODE EXPLANATION
Save as 1200
G90
G00 X10 Y10 Z5;
G01 Z-1 F50;
G01 X 40 Y10 ; (A-F)
X 40 Y 20 (F-E)
X 20 Y20 ; (E-D)
X 20 Y40 ; (D-C)
X 10 Y40 ; (C-B)
X 10 Y10 ; (B-A)
X10 Y10 Z 5;
M99.
Typical PROGRAMMING - TURNING OPERATIONS
99