Lecture Notes On CNC
Lecture Notes On CNC
Lecture Notes On CNC
NC Technology
1.
Introduction:
Conventional machines used for operations like Turning, Drilling, Milling were commonly
used and operated manualy. the worker had to use a detailed working drawing sheet of the
workpart that included dimensions, tolerances, surface roughness,.
He also had to use process sheet, which includes production steps, cutting speed, feed,
feedrate, revolutions,..
This sheet was used to develop the NC coded program.
2.
Program
Instruction
Machine
Control
Unit (MCU)
(Computer
)
Machine Tool
To produce the program instruction we use the process sheet and convert it to NC coded
program.
The NC coded program is then punched into a tape to be transferred to the machine
control unit.
The machine control unit (MCU) contains a tape reader, it also has register and buffer,
they are used to convert the data from the punched tape into electric signals that are sent
to the machine tool.
3.
4. Program of Instructions :
It is the detailed step by step commands that direct the actions of the processing
equipment. In machine tool applications ,the program of instruction is called part
program ,and the person who prepare the program is called a part programmer.
The program is coded on a suitable medium for submission to the machine control
unit. The most common input mediums used are punched tape , punched cards and
magnetic tape .
a. Punched Card:
Punched card is a plastic / paper card which is having holes . It can
accommodate only few sentences of the program so there is restriction on the
size . The advantage of using card is that sequence of operation can be changed
because each operation is on separate card .,program readers and
transportation devices for punched cards are more complicated than for
punched tape.
b. Punched Tape :
Different materials have been used for punched tape . These materials are
paper and foil . The following figure shows the shape and dimensions of the
punched tape
The following tables shows the standard EIA and ISO (ASCII) codes for
numerical control programming originally designed for punched tape.
c. Magnetic Tape :
Magnetic tape is a plastic tape coated with iron oxide and is similar to the tape
Used in tape recorders (but small size).magnetic tape can store much more
information per unit length as compared to punched cards or magnetic tapes .Also
Information can be easily stored and erased .This is the least preferred in
machining because of the following reasons :
1. electrical and magnetic fields can easily distort program signals
2. any damage of the magnetic tape is not easy detectable because no visual
examination is possible.
3.tape gets damaged in dust in the shop floor.
Tape Reader
Information Read
& Decode
Machine
Actuating
Registers
Machine Table
Machine Control
Unit (MCU)
Most modern NC and CNC machine controls are equiped with buffer storage shown
in the following figure ,this feature allows the control to accept information into the
buffer registers while an operation is being performed from the active machine
registers.when the operation is complete the information is transferred from the buffer
storage to the machine actuation registers.
Tape Reader
Information
Read
Decode&
X
Y
1
5
0
8
7
9
6
2
4
4
Machine Table
Information Passed
Directly
Machine
Actuating
Registers
X
Y
Machine Control
Unit (MCU)
6. .Axis Relationships:
For Milling/Drilling
+
Z
-Y
-X
+
X
+
Y
8
-Z
a
c
for Turning:
+
X
-Z
+
Z
-X
Once the NC tape has been read ,decoded and the machine actuation registers loaded ,the
Machine responds with its appropriate coordinate axis movements and other commands
Machines with only X and Y position capability are known as two axis machines. On
Machines of this type distance in Z direction is controlled by the operator or by preset
Stops similar to that of a conventional drill press.
The three basic motions are designed by the electronic industries association (EIA) are the
X,Y,Z , the X motion is parallel to the longest dimension of the machine table,the Ymotion
Is normally parrel to the shortest dimension of the machine table.The Z motion becomes
Complicated by the fact that the NC macines are made with vertical and horizontal spindle
so it can be said that the line through the centre of the machine spindle is actually the Z
axis ,it is only when the actual depth of cut Z axis is controlled by the tape ,the macine is
considered a true three axis NC machine. Machine / axes relationships can be seen in
figures :
Turning Machine
10
2. Contouring Motion:
X,Y,Z motion are always controlled and they have constant feedback.
Used in milling or turning operations.
11
3. Straight Cut:
Only one coordinated is monitored at a time.
Used in simple straight cutting operations.
12
13
subsequent positions are affected and all the remaining moves are incorrect, but
when a positioning error occurs in an absolute system a particular location is in
error but subsequent positions are not affected.
+
Z
-X
+
X
+
Y
-Z
2.Floating Zero:
The origin point is left for the operator to define using a special tool, which is lowered
until it touches the desired point with no restrictions.
(X & Y can take positive or negative values)
+
Z
-Y
-X
+
Y
+
X
-Z
14
There are two types of positioning systems used in NC system : shown in figure
a. open loop system operates without verifying that the actual position achieved
in the move is the same as the desired position.
b. Closed loop control system uses feedback measurements to confirm that the
final position of the worktable is the location specified in the program .
Open loop cost less than closed loop systems and are appropriate when the force
15
Resisting the actuating motion is minimal , closed loop systems are normally
specified for machines that perform continuous path operations such as milling or
Turning in which there are significant forces resisting the forward motion of the
cutting tool.
16
Chapter 2
CNC Machines
1.Introduction:
17
Program
performs
interpolation
calculations
3.
Memory
1.Main Memory:
.ROM: Operating
Sys.
RAM: Part
Program
2.Secondary
Memory:
Removable
storage
CPU
1.Control Section
2.Arithmetic Logic
Unit (ALU).
3.Immediate Access
memory
System
Bus
4.
I/O Interface
1.Operator Panel
(Keyboard, CRT,)
2.Tape Reader
Sequence Controls
Coolant
Fixture Clamping
Tool Changer
CNC Software:
1. Operating system software: is to interpret the NC part program and generate the
corresponding control signals to derive the machine tool axes ,it is installed by the
controller manufacturer and is stored in ROM in the MCU. The operating system
software consists of the following :
Editor: which permits the machine operator to input and edit NC part programs
Control program: which decodes the part program instructions,perform
interpolation and acceleration/deceleration calculations ,and accomplishes
other related functions to produce the coordinate control signals for each axis.
Executive program: which manage the execution of the CNC software as well as
the I / O operations of the MCU.
2. Machine interface software: is used to operate the communication link between the
CPU and the machine tool to accomplish the CNC auxiliary functions (coolant
control ,tool changer ,fixture clamping device ,timers ),as previousely indicated ,the
I / O signals associated with the auxilliary functions are sometimes implemented by
means of a programmable logic controller interfaced to the MCU ,and so the machine
interface software is ofthen written in the form of ladder logic diagram
18
3. Application software: consists of the NC part programs that are written for
machining.
5.
MC
U
MC
U
Bulk Memory
NC
Programming
MC
U
6.
MCU
MCU
Switching 19
Network
MCU
DNC Computers
Satellite
Computer
MC
U
MC
U
20
Chapter 3
NC Coding System
1.Format of NC Coded Program:
Punched tape, Punched
Card, Magnetic tape
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Chapter .4
NC
Part Program
The following are explanations of the different methods of part programming with some
. Examples
45
The following are some exercises in drilling ,milling and turning machine operations
: using the Boxford CNC machines
: a. Drilling and Milling Exercises
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
: b. Turning Exercises
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
Chapter .5
105
Midterm Examination
Term: JAN./MAY 2007
Course
: Control of
manufacturing
Code
: MTE203
Examiner :Dr.Ibrahim Nasr
Time
:1 Hour
Problem ONE :
[10]
?What are the basic components of NC System .1
? Explain the different zeros of NC machine tool .2
? Explain the NC Procedure .3
Problem TWO:
[10]
? Explain briefly the Function controlled by NC .1
?Explain the preparatory functions .2
Write a simple part program for the following .3
:component
Drilling and taping two holes with diameter 10 ..
mm with
.depth 20 mm ,using manual Z control
Higher Technological Institute
10 th of Ramadan
Mechanial Engineering
Department
Midterm Examination
Term: JAN./MAY 2007
Course
: Control of
manufacturing
Code
: MTE203
Examiner :Dr.Ibrahim Nasr
Time
:1 Hour
106
Material : Plastic
Tool changed at : X0,Y0,Z25
: Required
Mill the steps [8 mm diameter slot drill] .1
Drill the holes [ 4 mm diameter slot drill ] .2
Mill the 30 mm diameter pocket [ 8 mm diameter slot .3
drill ]
Higher Technological Institute
10 th of Ramadan
Mechanial Engineering
Department
Midterm Examination
Term: MAY/AUG. 2007
Course
: Control of
manufacturing
Code
: MTE203
Examiner :Dr.Ibrahim Nasr
Time
:1 Hour
Problem ONE :
[10]
?What are the basic components of NC System .1
? Explain the different zeros of NC machine tool .2
?Explain the NC Steps .3
107
Problem TWO:
[10]
Describe the usage of punched tape as input medium for NC .1
? machine
Compare between the punched tape readers operations ?
.2
3.Explain the functions of the following : Decoder Buffer
storage
interpolator Drive unit
? 4.Explain the basic types of motion control system
? Draw block diagram of NC system .5
108
Final Examination
Term: JAN./MAY 2007
Course: Automatic control in
manufacturing
Code
: MTE203
Examiner :Dr.Ibrahim Nasr
Time
:1.5 Hour
Problem ONE :
[5]
109
110
111
Final Examination
Term: Oct./Jan.2008
Course: Automatic control in
manufacturing
Code
: MTE203
Examiner :Dr.Ibrahim Nasr
Time
:30 min.
112
113
114
Final Examination
Term: Oct./Jan.2008
Course: Automatic control in
manufacturing
Code
: MTE203
Examiner :Dr.Ibrahim Nasr
Time
:1.5 Hour
Problem ONE :
[10]
1. What are the steps of NC system ?
?Briefly , compare between NC,CNC, DNC machines .2
? Explain briefly the components of NC system .3
? sketch and explain the NC coordinate system .4
? Compare between the types of Zero points .5
Problem TWO:
[10]
?What are the types of motion control system 1
? Compare between the different input media in NC machine .2
?What are the types of punched tape readers .3
Explain with sketches ,the difference between open and closed .4
loop
? control systems
Problem Three: [Practical]
[20]
Write the G,M- coded program and simulate the production
steps on
Computer
115
Final Examination
Term: Jan./May 2008
Course: Automatic control in
manufacturing
Code
: MTE203
Examiner :Dr.Ibrahim Nasr
Time
:1.5 Hour
Problem ONE :
Compare between the
?machine controlunit of NC and CNC machines
:Explain the following using sketch .2
NC coordinate system Zero point .The G81 , G82 ,G84 , G85 ,G97 -
[5]
.1
Problem TWO:
[15]
? Explain the Tasks in computer assisted part programming .1
Write the APT program to produce the following shown .2
: component
: the required
116
Final Examination
Term: Jan./May 2008
Course: Automatic control in
manufacturing
Code
: MTE203
Examiner :Dr.Ibrahim Nasr
Time
:1.5 Hour
Problem ONE :
?How NC collect informations .1
:Explain the following using sketch .2
motion control system -.flow diagram of NC -.interpolation G-codes -Problem TWO:
[15]
?Explain the APT language statements ?give examples .1
Write the APT program to produce the following shown .2
: component
: the required
a. drilling the hole with feed rate 120 mm/min. ,cutting tool
speed 2000 rpm
117
[5]
118
119
120
121
122
123
124
125