CNC Programming & Application: Federal TVET Institute Manufacturing Technology Department Addis Abeba Ethiopia
CNC Programming & Application: Federal TVET Institute Manufacturing Technology Department Addis Abeba Ethiopia
& Application
Federal TVET Institute
Manufacturing Technology Department
Addis Abeba
Ethiopia
Mr. Gezae Mebrahtu
Masters in Mechanical Manufacturing and Automation
1. What is machining?
• Machining is basically removal of material, most
often metal, from the work-piece, using one or more
cutting tools to achieve the desired dimensions.
• There are different machining processes, such as,
turning, milling, boring etc.
• For all metal-cutting processes, the cutting speed,
feed, and depth of cut are important parameters.
2. Why CNC?
• Modern precision manufacturing demands
extreme dimensional accuracy and surface finish.
Such performance is very difficult to achieve
manually, if not impossible, even with expert
operators. In cases where it is possible, it takes
much higher time due to the need for frequent
dimensional measurement to prevent overcutting.
2. Why CNC?
• It is thus obvious that automated motion control
would replace manual “hand-wheel” control in
modern manufacturing. Development of
computer numerically controlled (CNC) machines
has also made possible the automation of the
machining processes with flexibility to handle
production of small to medium batch of parts.
3. What is NC?
• Numerical control (NC) refer to control of a machine
or a process using codes consisting of characters and
numerals.
• The word CNC came into existence in 7th when
microprocessors and microcomputers replaced
integrated circuit IC based controls used for NC
machine.
3. What is NC?
• The concept of NC was proposed in the
late 1940s by john Parsons who
recommended a method of automatic
machine control that would guide a
milling cutter to produce a curvilinear
motion in order to produce a curvilinear
motion in order to generate smooth
profiles on the work pieces.
4. Components of traditional NC systems
5. Advantages of NC systems over manual methods of
production
• Better control of the tool motion under
optimum cutting conditions.
• Improved part quality and repeatability
• Reduced tooling costs, tool wear, and job
setup time.
• Reduced scrap
• Better production planning and
placement of machining operations in the
hand of engineering.
6. Computer Numerical Control (CNC)
• Computer numerical control CNC is the numerical control
system in which a dedicated computer is built into the control
to perform basic and advanced NC functions.
• CNC controls are also referred to as soft wired NC systems
because most of their control functions are implemented by
the control software programs.
• CNC is a computer assisted process to control general
purpose machines from instructions generated by a processor
and stored in a memory system.
7. Components of modern CNC systems
8. Advantages of CNC systems
• CNC machines can be used continuously and only need to
be switched off for occasional maintenance.
• These machines require less skilled people to operate
unlike manual lathes/milling machines etc.
• CNC machines can be updated by improving the software
used to drive the machines.
• Training for the use of CNC machines can be done through
the use of “virtual software”.
8. Advantages of CNC systems
• The manufacturing process can be simulated virtually and no need
to make a prototype or a model. This saves time and money.
• Once programmed, these machines can be left and do not require
any human intervention, except for work loading and unloading.
• These machines can manufacture several components to the
required accuracy without any fatigue as in the case of manually
operated machines.
• Saving in time that could be achieved with the CNC machines are
quite significant.
9. Disadvantages of CNC systems
• CNC machines are generally more expensive than manually
operated machines.
• The CNC machine operator only needs basic training and
skills, enough to supervise several machines.
• Increase in electrical maintenance, high initial investment and
high per hour operating costs than the traditional systems.
• Fewer workers are required to operate CNC machines.
Investment in CNC machines can lead to unemployment.
10. Direct Numerical Control (DNC)
• In a Direct Numerical Control system (DNC), a mainframe computer
is used to coordinate the simultaneous operations of a number NC
machines.
• The main tasks performed by the computer are to program and edit
part programs as well as download part programs to NC machines.
• Machine tool controllers have limited memory and a part program
may contain few thousands of blocks. So the program is stored in a
separate computer and sent directly to the machine, one block at a
time.
11. Distributed Numerical Control (DNC)
• Distributed NC is known by the same acronym as Direct Numerical Control
(DNC).
• After the introduction of CNC, the machine tools have had the capability of
storing large amount of information. Therefore, there have been no need to
have drip feed information system, like, Direct Numerical Control. Instead,
Distributed Numerical Control is introduced. In such a system, a host
computer communicate with many CNC machine tool via networks and
download or upload programs.
• With Distributed Numerical Control systems, it is possible to monitor the
activities in individual CNC machine tools on host computer. Therefore,
better shop floor control can be achived.
12. Application of CNC machine tools
• CNC was initially applied to metal
working machinery: Mills, Drills,
Boring machines, Punch presses
etc and now expanded to robotics,
grinders, welding machinery,
EDM’s, flame cutters and also for
inspection equipment etc.
12. Application of CNC machine tools
• The machines controlled by CNC can be classified into the
following categories:
– CNC mills and machining centers,
– CNC lathes and turning centers,
– CNC electrical discharge machining (EDM)
– CNC grinding machines
– CNC cutting machines (laser, plasma, electron, press, bending
machine, or press brake)
– CNC welding machines
12. Application of CNC machine tools
04/02/2021
Gezae Mebrahtu (Mechanical Engineer)
Part Programming
2. Machining parameters such as, feed rate,
spindle speed, tool number, tool offset
compensation parameters etc
3. Codes for initiating machine tool functions like
starting and stopping of the spindle, on/off
control of coolant flow and optional stop.
04/02/2021
Gezae Mebrahtu (Mechanical Engineer)
Part Programming
4. Program execution control codes, such as block
skip or end of block codes, block number etc.
5. Statements for configuring the subsystems on
the machine tool such as programming the
axes, configuring the data acquisition system
etc.
04/02/2021
Gezae Mebrahtu (Mechanical Engineer)
Structure of a block in a part program
N_ G_ X_Y_ F_ S_ T_ M_ ;
Tool
Sequence Preparatory Feed Spindle function
number function function speed
Dimension Miscellaneous
function
word function
04/02/2021
Gezae Mebrahtu (Mechanical Engineer)
Part Programming
04/02/2021
Gezae Mebrahtu (Mechanical Engineer)
PROGRAM CONFIGURATION
• There are two program types, main program and
subprogram. Normally, the CNC operates according to the
main program.
• However, when a command calling a subprogram is
encountered in the main program, control is passed to the
subprogram.
• When a command specifying a return to the main program is
encountered in a subprogram, control is return to the main
program
04/02/2021
Gezae Mebrahtu (Mechanical Engineer)
Main Program :
04/02/2021
G28 IP_ ; Reference position
G30 P2 IP _ ; 2 nd reference position
G30 P3 IP _ ; 3 nd reference position
G30 P4 IP _ ; 4 nd reference position
IP _: Command specifying the intermediate position
• Return from reference (29)
G29 IP_ ;
IP _ : Command specifying the destination of return
from reference .
04/02/2021 Gezae Mebrahtu (Mechanical Engineer)
• Tool length offset (G43 G44 G49)
This function can be used by setting the difference
between the tool length assumed during
programming and the actual tool length of the tool
used into the offset memory . It is possible to
compensate the different without changing the
program .
G43 Z _ H _ ; Positive Offset
G44 Z_ H _ ; Negative Offset
G49 ; Tool length offset cancel
04/02/2021 Gezae Mebrahtu (Mechanical Engineer)
• Tool Compensation Start
G00 (or G01) G41(or G42) IP _ D _ ;
G41 : Cutter compensation left
G42 : Cutter compensation right
IP_ : Command for axis movement
D : Code for specifying as the cutter compensation
value
G40 : Cutter Compensation cancel