Degree In Mechanical Engineering
ECD6323
CAD / CAM
Chapter 3: Numerical Control
(Principles of numerical control. Types of numerical control systems. Types of numerical control machines. NC part programming)
(10 Hours)
By Dr. Umar Nirmal
1
Overview of Chapter 3
PART 1: INTRODUCTION TO COMPUTER NUMERICAL CONTROL (CNC)
PART 2: TURNING CENTRE PROGRAMMING
PART 3: CNC HARDWARE BASICS
PART 4: CNC TOOLING
2
PART 1: INTRODUCTION TO COMPUTER NUMERICAL CONTROL (CNC)
By Definition:
Computer numerical control (CNC) is a manufacturing method that automates the control, movement and
precision of machine tools through the use of preprogrammed computer software, which is embedded inside the
tools.
Q3.1: In Computer Numerical Control (CNC), what does the part program mainly does?
3
PART 1: Historical Development of CNC
4
PART 1: Numerical Control (NC)
5
PART 1: NC (cont’d)
C
6
PART 1: Part Program - A
7
PART 1: Machine Control Unit (MCU) - B
8
PART 1: Machine Tool- C
9
PART 1: NC (cont’d)
10
PART 1: Elements of NC Machine Tool Operation
11
PART 1: Types of NC Systems
12
PART 1: Types of NC Systems - Motion Systems
13
PART 1: Types of NC Systems - Control Systems
Computer Numerical Control
14
Open Loop vs. Closed Loop
Process A Process B Process C
Input Output
Q3.2: Illustrate by means of a sketch the main difference between an ‘Open Loop’ and a ‘Closed Loop’ system?
Input
Process A Process B Process C Output
Feedback Drive
15
PART 1: Types of NC Systems - Positioning Systems
16
PART 1: Types of NC Systems – Power Source
vs.
vs.
Hydraulic Power
Electrical Power Pneumatic Power
17
PART 1: Advantages of CNC
18
PART 1: Disadvantages of CNC
Q3.2: State five disadvantages of CNC?
19
PART 1: Application of CNC Machines
20
PART 1: Types of CNC Machines
21
PART 2: TURNING CENTRE PROGRAMMING
22
PART 2: Example of a Block Line Address Format in NC
23
PART 2: Axes Systems in CNC
Tool Offset
Q3.4: Illustrate the possible impact of the final work piece after a typical CNC
machining process if the cutting tool is not calibrated to it original tool datum? 24
PART 2: General Programming Functions
25
PART 2: General Programming Functions (cont’d)
26
PART 2: General Programming Functions – Tool vs. Turret
B
A
A A D
B C
Turret
Tool
A B C
D
A
Tmmnn
27
PART 2: General Programming Functions (cont’d)
28
PART 2: General Programming Functions (cont’d)
29
PART 2: General Programming Functions (cont’d)
30
PART 2: General Programming Functions (cont’d)
31
PART 2: General Programming Functions – ‘M’ functions (cont’d)
32
PART 2: Motion Commands
Basic CNC Turning Programming: [Link]
33
PART 2: Motion Commands (cont’d)
X = U = -(55-
10)*2 (the
Diameter = 20mm in X-axis shaft
diameter is
taken in this
case)
Z = W = -25
(only the length of
the shaft affected)
Radius = 10mm in X-axis
34
PART 2: Motion Commands (cont’d)
Diameter = 20mm in X-axis; point B (10x2)
Diameter = 30mm in X-axis; point C (15x2)
A to A’ in -X direction = ((55-10)*2) = -90
So, U = -90
Diameter = 60mm in X-axis; point D (30x2)
U
A’
A to A’ (diameter mode) A’ to B in -Z direction = 25-0= -25
So, W = -25
A’ to B (diameter mode)
(30-15)*2 in +X axis
25-23 in +Z axis
35
PART 2: Motion Commands (cont’d)
36
PART 2: Motion Commands (cont’d)
X = 60 as is the
end of chamfer
starting from
point B
Z = -60-(-20) = -40 ; only the ‘z’ points on C and E
37
PART 2: Motion Commands (cont’d)
38
X
; G20 = inch mode / G40 = tool compensation /
G98 = absolute positioning mode
; zero return the tool to its zero position via a
reference point at rapid speed
Standard
Start ; call tool from turret
; set spindle speed
Z
(K = 0)
; zero return the tool to its zero position via a
reference point at rapid speed
Standard
End
; tool return to its turret X
; program end
A (-0.25, 2.75)
A (3.25,1)
39
PART 2: Motion Commands (cont’d)
Normally used
for Boring
operations
40
PART 2: Cut Planning
41
PART 2: *Setting the Tool Datum wrt the WP
= diameter of the shaft = X Cutting Tool’s Tip
=0=Z
Turning
CNC Turning
CNC
=X
=0=Z
Spindle speed (rpm) = ∏ x d x f;
where; X and Y = ?
∏ = 3.142
d = diameter of the cutting tool in mm
f = feed rate (normally 30 to 40 mm/min)
Q3.5: Illustrate the impact to the workpiece in CNC CNC Milling
machining if the tool datum is not correctly set.
*Setting datum differs with different CNC machines. The one illustrated here is for MMU-FET CNC machines respectively. 42
43
44
G98: return tool to initial cutting point after each cutting cycle
G40: Compensation Off
S200
45
46
G02: is used to machine an arc or radius in a clockwise direction
G03: is used to machine an arc or radius in a anti-clockwise direction
G03
F0.20
(Tapper 3 x 45deg
G02
Can we perform operation N235
Standard End followed by N240 or straight N240?
47
PART 2: General Programming Functions – Thread Cutting
48
PART 2: General Programming Functions – Thread Cutting (cont’d)
49
M08 is the G Code command to turn on the main spindle coolant,
M09 turns off all coolant.
50
Q3.6: If the depth of cut for a typical CNC turning machine
is 2mm, can the user perform a turning operation only
once with the given 2mm? Explain your answer.
51
PART 2: Canned Cycles
52
PART 2: Turning Canned Cycles
53
PART 2: Facing Canned Cycles
54
PART 2: Thread Cutting Canned Cycles
55
PART 2: Thread Cutting Canned Cycles (cont’d)
56
57
Conventional CNC Part Programming Canned Cycle CNC Part Programming
vs.
Q3.7: What is the main advantage / advantages of using
canned cycle part program over the conventional
programming method in the CNC Machining industry?
58
Milling Programming
Visit - [Link]
59
PART 3: CNC HARDWARE BASICS
60
PART 3: CNC HARDWARE BASICS – CNC Machine Layout
61
PART 3: CNC HARDWARE BASICS – Spindle Designs
62
PART 3: CNC HARDWARE BASICS – Components in a Spindle
63
PART 3: CNC HARDWARE BASICS – Types of Spindles
64
PART 3: CNC HARDWARE BASICS – Types of Spindles (cont’d)
65
PART 3: CNC HARDWARE BASICS – Types of Drive Systems
66
PART 3: CNC HARDWARE BASICS – Feedback Devices
67
PART 3: CNC HARDWARE BASICS – Feedback Devices: Rotary Encoder
68
PART 3: CNC HARDWARE BASICS – Absolute Encoder
69
PART 3: CNC HARDWARE BASICS – Axes System
70
PART 3: CNC HARDWARE BASICS – Axes System (cont’d)
71
PART 3: CNC HARDWARE BASICS – Axes System (cont’d)
Q3.8: Illustrate the importance to have an
axes system and the possible error that may
develop during a typical CNC machine
operation.
72
Q3.9: Provide images (i.e. real or schematic) and briefly explain the working principle for the type of drive systems below:
a) AC drives
b) DC drives
c) DC servo motor
d) Brushed and Brushless motor
e) Stepper motor
f) Linear motor
73
PART 4: CNC TOOLING
74
PART 4: CNC TOOLING– Cutting Tool Materials
75
PART 4: CNC TOOLING– Turning Tool Geometry
Cutting Tool Holder
Cutting Tool
76
PART 4: CNC TOOLING– Types of CNC Turning Tools
77
PART 4: CNC TOOLING– Types of Turning Operations
78
PART 4: CNC TOOLING – Turning Turrets
Cutting Tool Turret
(Holder + Cutter) Q3.10: Draw a CNC cutting tool and its corresponding tool holder.
79
PART 4: CNC TOOLING – Milling Tooling Systems
Drill Bit
Holder
Q3.11. You have a 10mm in diameter slot drill bit
which will be used for CNC milling. What will be
the recommended size of the collet for this slot
drill? Explain your answer briefly.
80
PART 4: CNC TOOLING – Type of Milling Operations
81
Q3.12. Name the type of Milling operations as per the schematic drawings shown in Figure a to l respectively.
82
Watch Operations on Milling Machines: [Link]
83
PART 4: CNC TOOLING – Automatic Tool Changers (ATC)
84
PART 4: CNC TOOLING – Types of ATC
85
PART 4: CNC TOOLING – ATC: Tool Changing Operation
86
PART 4: CNC TOOLING – Types of Work Holding Devices
87
88
89
90
Q3.13. A machine grade of Aluminum is to be milled on a CNC machine with a 20mm diameter four tooth end milling
cutter. Cutting speed = 120 m/min and feed = 0.008 mm/tooth. Find the following:
a) Rotational speed
b) Feed rate in the unit of mm/rev and mm/min respectively.
Q3.14. A turning operation is to be performed on a CNC lathe machine. Cutting speed = 2.5m/s, feed rate = 0.2mm/rev
and depth = 4.0mm. Workpiece diameter = 100mm and its length = 400mm. Find the following:
a) Rotational speed of the workpiece
b) Feed rate in the unit of mm/min
c) Time to travel from one end of the part to the other
91
Q3.13. A machine grade of Aluminum is to be milled on a CNC machine with a 20mm diameter four tooth end milling
cutter. Cutting speed = 120 m/min and feed = 0.008 mm/tooth. Find the following:
a) Rotational speed
b) Feed rate in the unit of mm/rev and mm/min respectively.
92
Q3.14. A turning operation is to be performed on a CNC lathe machine. Cutting speed = 2.5m/s, feed rate = 0.2mm/rev
and depth = 4.0mm. Workpiece diameter = 100mm and its length = 400mm. Find the following:
a) Rotational speed of the workpiece
b) Feed rate in the unit of mm/min
c) Time to travel from one end of the part to the other
93
~ end ~
94