Chapter One-1
Chapter One-1
TABLE OF CONTENTS
CHAPTER1: INTRODUCTION:
1.1 History of CNC
1.1.1 Background
1.1.2 What is CNC?
1.2 Type of CNC machine
1.2.1 Types of CNC Machines by Type
1.2.2 Types of CNC Machines by Number of Coordinate Axes
1.2.3 Types of CNC Machines According to the Control System
1.3 Advantage and disadvantage
1.3.1 Advantage of CNC Machines
1.3.2 Disadvantage of CNC Machines
1.4 Different of NC, DNC, CNC
1.4.1 Numerical Control (NC)
1.4.2 CNC Machining
1.4.3 DNC
1.5 Types of control, codes M-G general (CAD, CAM, CAE)
1.5.1 CNC Controller Board Manufacturers in World
1.5.2 What are G Codes?
1.5.3 What is m code?
1.5.4 Difference between CAD/CAM/CAE
1
List of tables
No. Subject Page
Table 4-1 difference between NC, CNC, DNC 18
2
List of figures
No. Subject Page
Fig. 1.4 configuration of CNC machine control unites 15
Fig. 1.4 General configuration of a DNC system. 17
Connection to MCU is behind the tape reader.
Key: BTR = behind the tape reader, MCU =
machine control unit
3
NOMENCLATURE
Symbol Definition
CNC Computer numerical control
NC Numerical control
DNC Distributed numerical control
IBM
CAM Computer aided manufacturing
CAD Computer aided design
CAE Computer aided engineering
4
Chapter one
Introduction
1.1.1 Background
After the time period of the first metal cutting machine, manual machines became
little advanced but still needed the operator for its operation. Apart from this, these
machines have some problems such as inability to make complex shapes, causes
variation in dimensions, high scrap rate, fitting problem, wastage of raw material,
high production cost and machine run time. Despite this, we are not saying that
conventional/manual machine was not good. During that time, these machines were
the best ones.
Due to the above-mentioned drawbacks, during World War I and II the American Air
force faced some problems in equipment like the helicopter rotor blade and other
machine parts because the manually operated machine was unable to perform three-
dimensional complex operations as intended. In 1952, the Massachusetts Institute of
Technology (MIT) introduced the first semiautomatic NC machine with the support
of Mr. John T Parson and IBM. It was an American government funded project for
the American Air force. This initial machine solved the initial requirements of the
American Air force and gave revolutionary results to the manufacturing industry.
Numerical control (NC) machine was the design of the mechanical and electronics
technology. This NC machine performed its work perfectly and resolved maximum
machine related problems. These machines technology was the best machine
technology of that time. We can say these machines were the back bone of that time
5
industry like aviation industry etc. But after development in machine technologies,
in the 1970s, Mr. John T Parson and the MIT together developed the first CNC
machine tools with the help of IBM. This CNC machine was fully automatic and
owns a computation system.
There are different CNC machine types. In this section, we’ll know a list of CNC
machine types and uses.
A. Mill CNC Machine
CNC milling machine types remove material from a workpiece and precisely
shape it to the required specifications using high-speed cutting tools.
B. Lathe CNC Machine
The way CNC lathe machines operate is by rotating the material of the
workpiece about a primary axis. The lathe cutting tools remove the material
from the workpiece and shape it as needed.
C. Drilling CNC Machine
The Drilling machine is one of the most popular CNC machines found in most
CNC machine shops. the drilling CNC machine uses a specialized cutting tool
6
called drill bits or drill. It is ideal for drilling holes in many materials.
D. Grinding CNC Machine
This machine uses a grinding wheel to remove materials from a workpiece at
a very slow rate. The grinding machine types function primarily for sanding,
polishing, or finishing.
E. Laser Cutting CNC Machine
This CNC machine shapes products or parts using a highly focused laser
beam. The laser beam cuts through the materials to create the desired product
or shape.
F. Plasma Cutting CNC Machine
A CNC plasma cutting device produces a very precise cut. It ionizes the air
and melts the material in its path using an electrical discharge arc. The
procedure only works with electrically conductive materials since it involves
an electrical arc.
G. Waterjet Cutting CNC Machine
This machine cuts through materials using a thin jet of water. CNC water jet
cutting is one of the most adaptable processes due to its capacity to cut through
any material.
H. EDM (Electric Discharge Machine)
The EDM uses an electrical arc to remove materials from a workpiece. It
functions similarly to the plasma cutter. Besides, this machine produces parts
through a non-contact process, and machines parts regardless of hardness.
Nevertheless, this machine works only on conductive materials.
I. CNC Router Machine
CNC routers can cut a variety of forms and patterns on flat surfaces of any
7
material.
J. Multi-Axis CNC Machine
This CNC machine can move in four or more directions or axes. it is more
complex and produces more accurate parts. It also offers machinists greater
machining flexibility.
K. 3D Printer
A 3D printer uses a digital file to create 3D solid objects. It is a process that
successively creates products by adding materials to each other
L. Press Brake Machines
is a mechanical tool powered by a hydraulic or electrical system, with an AI program
attached to it for precise and accurate bending on the raw material.
M. Punch Machines
is a sheet metal manufacturing process that is carried out by CNC punch presses.
8
D. 5-Axis CNC Machines
5-axis CNC provides the cutting tool with a pivoting motion along an axis called the
C-axis. The C-axis is the axis on which turning. These machines can machine five
surfaces of material concurrently with the work surface remaining stationary, which
allows them to produce intricate and precise parts.
The basic principle of a CNC machine is to move the cutting tool and the workpiece
relative to each other. There are different ways in which tool repositioning works,
leading to three different types of CNC machines:
A. Point-to-Point Positioning Control
is the most basic type of computerized numerical control system. In this control
system, the cutting tool moves to a predefined point, after which the machining starts
around the predefined cutting point.
9
B. Straight Cut Positioning Control
A Straight Cut positioning control system can simultaneously reposition the cutting
tool and machine the workpiece. However, the movement occurs only in parallel to
one axis at a given time.
C. Contouring Path CNC System
It is the most expensive of all three positioning control systems and can create the
most intricate parts. This versatility can create curved surfaces [4].
To keep the setup time to a mini- mum should be one of the primary considerations
of any machine shop supervisor, programmer and operator. Because of the design of
CNC machines, the setup time should not be a major problem.
Modular fixturing, standard tooling, fixed locators, automatic tool changing, pallets
and other advanced features, make the setup time more efficient than a comparable
setup of a conventional machine. With a good knowledge of modern manufacturing,
productivity can be increased significantly. The number of parts machined under one
setup is also important, in order to assess the cost of a setup time. If a great number
of parts is machined in one setup, the setup cost per part can be very insignificant
[5].
10
B. Reduced lead time
The time between the receipt of a design drawing and manufacturer getting ready to
start production on the shop floor, including the time needed for planning, design
and manufacture of jigs, etc. is called lead time. Since special jige and fixtures are
often entirely eliminated in CNC machines, the whole of the time needed for their
design and manufacture is saved. Consider the position of two manufacturers, one
equipped with conventional machines and the other with CNC machine tools. For a
job requiring special jigs and fixtures and cutting tools, the manufacturing unit with
conventional machines will have to spend considerable time in design and
manufacture of special tooling before taking up the production of components
whereas the unit with CNC machines can start production within a short period of
the work being planned and material being available.
D. Operator activity
The operator is relieved of tasks readily performed by the machine and is free to
attend to matters for which his skills and abilities are essential. Pre-setting of tools,
setting of components and preparation and planning of future jobs fall into this
category. It is possible for two work-stations to be prepared on a single machine
table, even with small batches. Two setting positions are used, and the operator can
set up one station while machining takes place at the other. The two jobs need not be
identical. Also, it is possible for one operator to attend to more than one CNC
machine at a time.
11
F. Smaller Batches
By the use of pre-set tooling and pre-setting techniques, downtime between batches
is kept at a minimum. Periodic machining of small batches is found to be economical
and brings about a rapid stock turnover. Larger storage facilities for work-in-
progress are not required. Machining centers eliminate some of the set-ups needed
for successive operations on one job and time spent in waiting until each machine
for successive operations is free. The components circulate round the machine shop
in a shorter period, interdepartmental transport costs are saved and 'Progress
Chasing' is reduced.
J. Reduced Inspection
The time spent on inspection and in waiting for inspection to begin is greatly
reduced. Normally, it is necessary to inspect the first component only. If there is any
difference in the dimensions of the machined component, the programme is checked
and corrected, if needed.
12
K. Less scarp
Since the operator errors are eliminated; a proven part programme results in an
accurate component. However, tool set- tings, as in a boring bar, do not come under
the control of the part programme and periodic checks must be made to ensure that
the settings remain correct. Drill or tap breakages are not unknown, but since the
tools are operating under controlled optimum conditions, the incidence of breakages
should be very small.
13
Since most of the preparatory work for CNC operation is done away from the
machine, planned support facilities will be essential e.g. part programming, tape
preparation and tool pre-setting are fundamental services that must be considered.
However, the advantages of CNC systems outweigh the disadvantages considerably
and the CNC machines have been widely accepted by the industry, CNC is being
used in drilling, turning, boring, milling and grinding machines. In addition to metal
re- moving operations, CNC is used on machines like pipe bending, coil winding,
flame cutting, welding, wire-cut EDM and many other areas [6].
Additional instructions are usually included, such as spindle speed, feed rate, cutting
tool selection, and other functions. The program is coded on a suitable medium for
submission to the machine control unit.
14
1.4.2 CNC machining
Is the process of using a computer-driven machine tool to produce a part out of solid
material in a different shape, depends on digital instructions usually made on
Computer Aided Manufacturing (CAM) or Computer Aided Design (CAD) software
like SolidWorks or MasterCAM. The software writes G-code that the controller on
the CNC machine can read. The computer program on the controller interprets the
design and moves cutting tools and/or the workpiece on multiple axes to cut the
desired shape from the workpiece.
the CNC Machine Control Unit: the MCU is the hardware that distinguishes CNC
from conventional NC, The MCU consists of the following components and
subsystems: (1) central processing unit, (2) memory, (3) I/O interface, (4) controls
for machine tool axes and spindle speed, and (5) sequence controls for other machine
tool functions. These subsystems are interconnected by means of a system bus,
which communicates data and signals among the components of the network
15
Memory
The immediate access memory in the CPU is not intended for storing CNC software.
A much greater storage capacity is required for the various programs and data needed
to operate the CNC system. As with most other computer systems, CNC memory
can be divided into two categories:
1. Main memory
2. Secondary memory
Input/Output Interface:
The I/O interface provides communication between the various components of the
CNC system, other computer systems, and the machine operator. As its name
suggests, the I/O interface transmits and receives data and signals to and from
external devices. The operator control panel is the basic interface by which the
machine operator communicates with the CNC system
16
1.4.3 DNC:
DNC Components:
The system consisted of four components: (1) central computer, (2) bulk memory at
the central computer site, (3) set of controlled machines, and (4) telecommunications
lines to connect the machines to the central computer [7].
Figure 2 General configuration of a DNC system. Connection to MCU is behind the tape reader. Key: BTR = behind the tape
reader, MCU = machine control unit
17
Summary compare:
Table 4-1 difference between NC, CNC, DNC
18
- Technology: - Technology: - Technology: more flexibility in
Developed in the Emerged in the Developed in the late operation.
1940s and 1950s, 1970s with the 1960s and early
- Technology:
relying on analog development of 1970s. Utilized
Common in today’s
systems and microprocessors mainframe
manufacturing
mechanical and integrated computers and large
setups with
components. circuits. networks of CNC
networked CNC
machines.
- Flexibility: - Flexibility: machines.
Limited flexibility, Highly flexible. - Flexibility: More
- Flexibility:
as any Programs can be flexible than NC but
Highly flexible, as
modification easily modified, less flexible than
programs can be
requires creating a uploaded, and modern CNC
easily distributed,
new punched tape. stored in the systems because
modified, and
machine or a machines still rely on
- Reliability: Less executed across
computer the central computer
reliable due to multiple machines.
network. for instructions.
mechanical wear
- Reliability: More
and complexity of - Reliability: - Reliability:
reliable than earlier
physical media like More reliable than Reliable as long as
DNC systems as the
tapes. NC, with fewer the central computer
machines can
mechanical is functioning; if the
continue to operate
components mainframe fails, all
independently after
involved and connected machines
receiving the part
higher accuracy. stop.
programs
- Additional - Usage: DNC is
Features: CNC useful in large
machines offer manufacturing
high precision, facilities where many
can execute machines are
complex controlled from a
operations, and central location.
integrate with
CAD/CAM
systems.
19
1.5 types of control
• FANUC – Japan
• Siemens – German
• HuazhongCNC – China
• Heidenhain – Germany
• Mazak – Japan
• Mitsubishi – Japan
• Haas – America
• Fagor – Spain
• NUM – France
• Bosch Rexroth – German
Generally, G-codes are used in CNC programming for machining of different profile
like turning, boring, facing, step turning, threading, chamfer, radius profile, profile
turning etc. G-codes are used with numerical numbers like G01, G02, G21, etc. We
can say, these codes are used in material removing operations, parameter settings
and tool geometry offsets, etc.
G Codes are of Two Types
Model Command
G codes of this group will be effective in CNC program until replaced by another G
code or another G code will not activate. Examples G01, G00, etc.
Non-Model Command
G codes of this group are effective only once when it is used or when it occurs. It
will not effective in the next line, if it is not used again. Examples G02, G03, G04,
etc [1].
Addresses
N refers to the block number
20
G refers to the G code (Preparatory function).
X refers to the absolute distance travelled by the slide tool in the X axis direction.
U refers to the incremental distance travelled by the slide tool in the X axis direction.
Z refers to the absolute distance travelled by the slide tool in the Z axis direction.
W refers to the incremental distance travelled by the slide tool in the Z axis direction.
F refers to the feed rate.
M refers to the M code (Miscellaneous function).
S refers to the spindle speed.
T refers to the tooling management.
Summary of G-Codes
GOO / Rapid positioning
GOl /Linear interpolation
G02 /Clockwise circular/helical interpolation
G03 /Counterclockwise circular/helical interpolation
G04 /Dwell
G I O /Coordinate system origin setting
G12 /Clockwise circular pocket
G13 /Counterclockwise circular pocket
G15/G16 /Polar coordinate moves in GOO and GOl
G17 /XY plane select
G18 /XZ plane select
G19 /YZ plane select
G20/G21 Inch/millimeter unit
G28 /Return home
G28.1/ Reference axes
G30 /Return home
G31 /Straight probe
G40 /Cancel cutter radius compensation
G41/G42 /Start cutter radius compensation left/right
G43 /Apply tool length offset (plus)
G49 /Cancel tool length offset
G50 /Reset all scale factors to 1.0
G51 /Set axis data input scale factors
G52 /Temporary coordinate system offsets
G53 /Move in absolute machine coordinate system
G54 /Use fixture offset 1
21
G55 /Use fixture offset 2
G56-58/ Use fixture offset 3, 4, 5
G59 /Use fixture offset 6/use general fixture number
G61/G64/ Exact stop/Constant velocity mode
G68/G69 /Coordinate system rotation
G73 /Canned cycle - peck drilling
G80 /Cancel motion mode (including canned cycles)
G81/ Canned cycle - drilling
G82 /Canned cycle - drilling with dwell
G83 /Canned cycle - peck drilling
G85 /Canned cycle - boring, no dwell, feed out
G86 /Canned cycle - boring, spindle stop, rapid out
G88 /Canned cycle - boring, spindle stop, manual out
G89 /Canned cycle - boring, dwell, feed out
G90 /Absolute distance mode
G91 /Incremental distance mode
G92 /Offset coordinates and set parameters
G92.X /Cancel G92 etc.
G93 /Inverse time feed mode
G94 /Feed per minute mode
G95 /Feed per rev mode
G98 /Initial level return after canned cycles
G99 /R-point level return after canned cycles.
The “M” references miscellaneous or machine code, and covers all the major
instructions not covered by the G-code. Rather than geometric alphanumeric
movements, M-codes instruct the CNC machine to start and stop certain actions or
programs outside the G-code’s domain.
These instructions include when to use coolant, when to open the machine doors,
when to change the direction the spindle spins in, or to change tools.
M Code Meaning
MO: Program stops
Ml: Optional program stops
M2: Program end
22
M3/4: Rotate spindle clockwise/counterclockwise
M5: Stop spindle rotation
M6: Tool change (by two macros)
M7: Mist coolant on
M8: Flood coolant on
M9: All coolant off
M30: Program end and rewind
M47: Repeat program from first line
M48: Enable speed and feed override
M49: Disable speed and feed override
M98: Call subroutine
M99: Return from subroutine/repeat [8].
23
• SolidWorks
• Creo 10
A 2023 report from market research firm Grand View Research also highlights the
growing trend of utilizing cloud-based CAD software, or outsourcing certain design
projects. However, the company expects continued demand for 3D CAD software
due to growing adoption of 3D printing. If outsourcing portions of design becomes
more commonplace, engineers will likely be more focused on providing conceptual
design ideas and interfacing with vendors to review final designs.
25
References:
1. Pawan Negi ،Mangey Ram ،Om Prakash Yadav“ Basics of CNC
Programming” ,2019
2. M. Sheen, NC Machining: Precision, Process, and Tools
Explained, Power publishing, 2024
3. Types of CNC Machining Jeff Jaje Autodesk
4. James Madison, CNC Machining Handbook, Industrial Press, 1996
5. Peter smid ‘CNC programming handbook’, second edition, 2003
6. B. S. Pabla ،M. Adithan ‘CNC Machines’, first edition ,2005
7. Groover, M. P. Automation, Production Systems, and Computer-
Integrated Manufacturing. Fourth edition,2007.
8. Alan Overby, CNC machine,2010.
9. Michigan State University
26