Beruflich Dokumente
Kultur Dokumente
ME453
UNIT 3
1
Unit 3
• CNC: Introduction, Components of CNC system –
Types of CNC systems
• DNC : Introduction, Types of DNC systems
• Adaptive control
• Manual part programming, preparatory &
miscellaneous functions
• Formats, coding
2
PROBLEM WITH NC MACHINE
• Part programming mistakes:
– In preparing the punched tape, part programming mistakes are
common.
– The mistakes can either be syntax or numerical errors.
• Non optimal speeds and feeds:
– In NC machines the control system does not provide the opportunity
to make changes in speeds and feeds during the cutting process.
• Punched tape:
– Another problem related to programming is the tape itself.
• Tape reader:
– The tape reader that interprets the punched tape is the least
reliable hardware component of the machine.
• Controller:
– The NC controller unit is hard wired. This means that its control features
cannot be easily alerted to incorporate improvements into the unit.
3
INTRODUCTION: CNC MACHINES
• What is a CNC Machine?
• Improved quality: Due to accurate part dimensions and excellent surface finish
that can be achieved due to precision motion control and improved thermal
control by automatic control of coolant flow.
• Reduced scrap rate: Use of Part programs that are developed using
optimization procedures
• Reliable and Safe operation: Advanced engineering practices for design and
manufacturing, automated monitoring, improved maintenance and low human
interaction
6
INTRODUCTION: CNC MACHINES
7
CNC MACHINES
COMPONENTS OF CNC SYSTEMS
1. Part program
4. Drive system
5. Machine tool
6. Feedback system
8
CNC MACHINES
COMPONENTS OF CNC SYSTEMS
1. Part program
• A part program is series of coded instruction that are required to
the movement of the machine tools.
1. Part program
There are four methods of generating CNC part programs, namely:
The program input device is the mechanism used to enter the part
program into the CNC control.
11
CNC MACHINES
COMPONENTS OF CNC SYSTEMS
3. Machine Control Unit
The machine control unit (MCU) is the backbone of CNC systems.
Following six functions are being done by MCU:
• Read coded instructions
• Decode coded instructions
• Implement interpolations to generate axis motion commands
• Feed axis motion commands to amplifier circuits to drive axis
mechanisms
• Receive the feed back signals of position and speed for each drive
axis
• Implement auxiliary control functions such as coolant ON/OFF,
spindle ON/OFF, and tool change
12
CNC MACHINES
COMPONENTS OF CNC SYSTEMS
4. Drive System
• Amplifier circuits, drive motors, and ball lead screws are
main component of a drive systems.
13
CNC MACHINES
COMPONENTS OF CNC SYSTEMS
5. Machine Tool
• CNC controls are used to control various types of machine
tools.
14
CNC MACHINES
COMPONENTS OF CNC SYSTEMS
6. Feedback System
15
16
CNC MACHINES
FUNCTIONS:
17
CNC MACHINES
FUNCTIONS: Machine Tool Control
• The primary function of the CNC system is control of the machine
tool.
• This involves conversion of the part program instructions into
machine tool motions through the computer interface and servo-
system.
• The capability to conveniently incorporate a variety of control
features into the soft-wired controller unit is the main advantage
of CNC.
• Some of the control function, such as circular interpolation can be
accomplished more efficiently on the hard-wired circuits from the
computer.
• This fact has lead to the development of two alternative controller
designs to CNC .
– Hybrid CNC
– Straight CNC 18
CNC MACHINES
FUNCTIONS: Machine Tool Control: Hybrid CNC
• In Hybrid CNC system, the controller consists of soft-wired
computer plus hard wired logic circuits.
• In hard-wired components perform the function which they do
best such as feed rate generation and circular interpolation.
• Use of these hard-wired circuits saves the computer from
performing less calculation and hence less expensive computer is
required in hybrid CNC controller.
19
CNC MACHINES
FUNCTIONS: Machine Tool Control: Straight CNC
• It uses a computer to perform all the CNC functions.
• The only hard-wired elements are those required to interface the
computer with machine tool and the operator’s console.
• Interpolation, tool position feedbacks and all other functions are
performed by computer software.
• Hence the computer required in a straight CNC system must be
more powerful than that needed for a hybrid system.
• The advantage gained in the straight CNC configurations is
additional flexibility.
20
CNC MACHINES
FUNCTIONS: In-process compensation
• This involves the dynamic correction of the machine tool motions
for changes or errors which occur during processing.
22
CNC MACHINES
FUNCTIONS: Diagnostics
23
CNC MACHINES
TYPES OF CNC MACHINES
24
PARTS SUITABLE FOR CNC MACHINES
• The following parts are usually made in practice on the CNC
Machines:
• Aerospace equipments.
• Automobile Parts.
• Complex shapes.
• Electronic industry uses CNC e.g. Printed circuit board.
• Electrical industry uses CNC e.g. Coil winding.
• For small to medium batch quantity.
• Where the set-ups are very large.
• Where the tool storage is a problem.
• Where much metal needs to be removed.
• When the part geometry is so complex.
• The operations are very complex. 25
Spur Gear 26
DIRECT NUMERICAL CONTROL : DNC
The EIA definition of DNC.
•In principle , one large computer can be used to control more than
100 separate machines.
•The DNC computer is designed to provide instructions to each
machine tool on demand.
•When the machines needs control commands, they are
communicated to it immediately.
27
DNC
Direct Numerical Control (DNC)
• Direct Numerical Control Software (DNC) solution is a multi-
threaded communications and file management system that
allows for simultaneous upload and download of multiple CNC
controls.
28
DNC
Components of a DNC system
• Central computer
• Bulk memory, which stores the part program
• Telecommunication lines
• Machine tools
29
DNC
• The computer calls the part program instructions from bulk
storage an d sends them to the individual machines as the need
arises.
• It also receives data back from the machines.
• The two way information flow occurs in real time, which means
that each machine’s requests for instructions must be satisfied
almost instantaneously.
• Similarly computer must always be ready to receive information
from the machine and to respond accordingly.
30
DNC
• Depending on the number of machines and the computational
requirements that are imposed on the computer, it is sometimes
necessary to make use of satellite computers.
• These satellites are minicomputers, and they serve to take some of the
burden off the central computer. Each satellite computer controls
several machines.
• Group of of part program instructions are received from the central
computer and stored in buffers.
• They are then dispensed to the individual machines as required.
• Feedback data from the machines are also stored in the satellite's
buffer before being collected at the central computer.
31
DNC
32
DNC
Distributed Numerical Control Configurations
Network consisting of central computer connected to machine
tool MCUs, which are CNC
• Present technology
• Two way communication
Switching
network
33
TYPES OF DNC
Two types:
1. Behind the Tape Reader (BTR) 2. Special Machine Control Unit
1. Behind the tape Reader (BTR)
•Computer is linked directly to
regular NC controller unit.
•Less cost. 34
TYPES OF DNC
2. Special Machine Control Unit
• In this configuration the
regular NC controller is
replace with special MCU.
• This special MCU is a device
that is specifically designed to
facilitate communication
between the machine tool
and the computer.
• One area where this
communication link is
important is in circular
interpolation of the cutter
path.
• The special MCU is soft-wired
and, while the conventional
NC controller is hard–wired. 35
NC, CNC AND DNC COMPARISON 05.10.2017
36
Advantages of DNC
1. Elimination of punched tape and tape reader
2. Greater computational capability and flexibility
3. Convenient storage of NC part programs in computer files
4. Programs stored as CLFILE
5. Reporting of shop performance
6. Establishes the framework for evolution of future computer
automated factory (CIM)
7. 2-5 % increase in operational efficiency of CNC machine tools.
Cost of DNC installation can be recovered quickly.
37
ADAPTIVE CONTROL: AC
Adaptive Control
40
ADAPTIVE CONTROL
Where to use adaptive control?
41
ADAPTIVE CONTROL
Sources of variability in machining.
42
ADAPTIVE CONTROL
Sources of variability in machining
•Toolwear
As tool wears, cutting forces increases and AC will reduce the
feed rate.
43
ADAPTIVE CONTROL
44
ADAPTIVE CONTROL
Identification function.
• This involves determining the current performance of
the process or system.
• Normally, the performance quality of the system is
defined by some relevant index of performance.
• The identification function is concerned with
determining the current value of this performance
measure by making use of the feedback data from the
process.
• Since the environment will change overtime, the
performance of the system will also change.
• Identification of the system may involve a number of
possible measurements activities.
45
ADAPTIVE CONTROL
Decision function
• Once the system performance is determined, the next
function is to decide how the control mechanism should
be adjusted to improve process performance.
• The decision procedure is carried out by means of a pre-
programmed logic provided by the designer.
• Depending upon the logic the decision may be to
change one or more of the controllable process.
46
ADAPTIVE CONTROL
Modification function
49
ADAPTIVE CONTROL
50
ADAPTIVE CONTROL
51
ADAPTIVE CONTROL
Adaptive control optimization (ACO)
• In this form of adaptive control , an index of performance is
specified for the system.
• The performance index is a measure of overall process
performance, such as production rate or cost per volume of
metal removed.
• The objective of the adaptive controller is to optimize the
index of performance by manipulating speed and/or feed in
the operation.
• Most adaptive control optimization system attempt to
maximize the ratio of work material removal rate to tool wear
rate.
IP= a function of MRR/TWR
MRR=Material removal rate; TWR= Tool wear rate 52
ADAPTIVE CONTROL
Adaptive control optimization (ACO)
• Tool Wear Rate cannot be measured on line with today’s
measurement technology.
• Hence the IP cannot really be monitored doing the process,
eventually, sensors are used.
• However due to sensor problems , nearly all adaptive control
machining is of adaptive control constraint system.
DUE TO INCREASED
WORKPIECE HARDNESS OR
DEPTH OR WIDTH OF CUT
FEED RATE IS
DUE TO DECREASE IN INCREASED
WORKPIECE HARDNESS
FORCE DECREASES OR DEPTH OR WIDTH OF
CUT OR AIR-GAPS
Benefits of AC
• Formats, coding
58
• The part program is a sequence of instructions, which
describe the work, which has to be done on a part, in
the form required by a computer under the control of a
numerical control computer program.
Define Tool
CNC data
Make 3D model
Simulate
cutting
67
CNC Programming Basics
• Binary digit is called BITS (1,0)
68
L6: 28.02.2017
Block Configurations
N G X Y Z I J K F S T M EOB
End
tool of Block
center of circle spindle speed
destination coordinates feed rate miscellaneous
preparatory function function
sequence no
69
N CODES
Block Configurations
N G X Y Z I J K F S T M EOB
70
G CODES
• The most common codes used when programming NC
machines tools are G-codes (preparatory functions).
• G-code specifies certain machine preparations such as inch
or metric modes, or absolutes versus incremental modes.
• G-codes are sometimes called cycle codes because they
refer to some action occurring on the X, Y, and/or Z-axis of a
machine tool.
• Generally it is a code telling the machine tool what type of
action to perform such as:
• Rapid move
• Controlled feed move in a straight line or arc
• Series of controlled feed move- profile shape
• Set tool information
71
X,Y, AND Z CODES
• X, Y, and Z codes are used to specify the coordinate
axis.
Block Configurations
N G X Y Z I J K F S T M EOB
72
I, J, AND K CODES
Block Configurations
N G X Y Z I J K F S T M EOB
73
F, S, AND T CODES
• F-code: used to specify the feed rate
Block Configurations
N G X Y Z I J K F S T M EOB
74
M CODES
M-code specifies miscellaneous machine functions and
work like on/off switches for coolant flow, tool
changing, or spindle rotation. Other letter addresses
are used to direct a wide variety of other machine
commands.
Block Configurations
N G X Y Z I J K F S T M EOB
75
RESTRICTIONS ON CNC BLOCKS
79
Positioning (Rapid traverse); G00
G00 – Preparatory code to control final position of the tool and not
concerned with the path that is followed in arriving at the final
destination.
Command format
G00 Xx Yy Zz
x, y, z, : Represent coordinates, and could be either absolute values
or incremental values, depending on the setting of G90/G91.
80
Linear interpolation; G01
Command format
G01 Xx Yy Zz Ff
Command format
G02 (G03) Xx Yy ZZ Ii Jj Kk Ff;
Xx, Yy ZZ: End point
Ii, Jj, Kk : Arc center
Ff : Feed rate
For the arc command, the arc end point coordinates are assigned
with addresses X, Y or Z, and the arc center coordinate value is
assigned with addresses I, J or K).
Either an absolute value or incremental value can be used for the
arc end point coordinate value command, but the arc center
coordinate value must always be commanded with an incremental
value from the start point. 82
The G02 command requires an
endpoint and a radius in order to
cut the arc.
I, J, and K are relative to the start
point.
83
G04 Dwell
Format: N_ G04 P_; P=1/1000 seconds
N_ G04 X_; X= time in seconds
N_ G04 U_; U=Preferred on lathe (seconds)
N30 G04 U2 (Dwell for 2 seconds)
The G04 command is a
non modal dwell
command that halts all
axis movement for a
specified time while the
spindle continues
revolving at the specified
rpm.
A dwell is used largely in
drilling operations and
after plunge moves,
which allows for the
clearance of chips .
Inch/metric command change; G20/G70, G21/G71
G20/G70; G21/G71;
85
Position command methods ; G90, G91
By using the G90 and G91 commands, it is possible to
execute the next coordinate commands using absolute
values or incremental values.
G90 :Absolute value command
G91 :Incremental command
In the incremental value mode, the current position is the start point (0), and the
movement is made only the value determined by the program, and is expressed as an
incremental value.
N 2 G90 G01 X200. Y50. F100; N 2 G91 G01 X200. Y50. F100; 86
(2) For the next block, the last G90/G91 command that was given
becomes the modal.
87
(3) Since multiple commands can be issued in the same block, it is
possible to command specific addresses as either absolute values or
incremental values.
N 4 G90 X300. G91 Y100.;
The X axis is treated in the absolute value mode, and with G90 is
moved to the work piece coordinate system 300 mm position. The Y
axis is moved +100.mm with G91.
As a result, Y moves to the 200.mm position. In terms of the next
block, G91 remains as the modal and becomes the incremental
value mode.
88
Feed; G94, G95
Using the G95 command, it is possible to assign the feed
amount per rotation with an F code.
When the G94 command is issued the per-minute feed
rate will return to the designated per-minute feed mode.
Command format
G94;
G95;
91
Modal G-Code List
• G00 Rapid Transverse
• G01 Linear Interpolation
• G02 Circular Interpolation, • G80 Cancel canned cycles
CW • G81 Drilling cycle
• G03 Circular Interpolation, • G82 Counter boring cycle
CCW
• G20/G70 Inch units • G83 Deep hole drilling cycle
• G21/G71 Metric Units • G90 Absolute positioning
• G40 Cutter compensation • G91 Incremental
cancel positioning
• G41 Cutter compensation • G43 Tool length
left compensation (plus)
• G42 Cutter compensation
right
92
Structure of an NC Part Program
Block Format:
93
1. Fixed sequential format
N G X Y Z F M
50 00 +254 +125 +000 000
60 01 +254 +125 -100 500 08
70 00 +254 +125 +000 000 09
94
END OF 3rd UNIT
95