Final Chapter One
Final Chapter One
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 Milling CNC machine
1.2.2 Lathe CNC machine
1.2.3 Drilling CNC machine
1.2.4 Grinding CNC machine
1.2.5 Laser cutting CNC machine
1.2.6 Plasma cutting CNC machine
1.2.7 Water jet cutting CNC machine
1.2.8 Electric discharge machine
1.2.9 Router CNC machine
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 Computer Numerical Control (CNC)
1.4.3 Distributed numerical control (DNC)
1.5 controller
1.5.1 CNC Controller Board Manufacturers in World
1.6 codes M-G general
1.6.1 What are G Codes?
1.6.2 What is M code?
1.7 Different Softwares
1.7.1 Computer Aided Design (CAD)
1.7.2 Computer Aided engineering (CAM)
1.7.3 Computer Aided manufacturing (CAE)
1
List of tables
No. Subject Page
Table 1-1 Difference between CNC milling machine and 7
manual milling machine.
Table 1-2 CNC and Conventional Lathe Machines 11
Table 1-3 CNC and Conventional Drilling Machines 14
Table 1-4 Advantage and disadvantage of Grinders CNC 19
Machining
Table 1-5 Advantage and Disadvantage of EDM 35
Table 1-6 difference between NC, CNC, DNC 50
2
List of figures
No. Subject Page
3
NOMENCLATURE
Symbol Definition
CNC Computer numerical control
NC Numerical control
DNC Distributed numerical control
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 [1].
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 [1].
A computer numerical control (CNC) milling machine is a mill that uses computer
code to understand where to make cuts[10].
Like all milling machines, a CNC mill produces a final piece by carving away from
a block of material versus adding layers of material to a blank slate. However, unlike
manual milling, CNC mills do not have to be operated by hand. You simply need
the right computer software and a library of programs to instruct your machine on
how to create the desired product [10].
CNC milling is just one type of CNC machining process your business could
consider integrating to make your production more accurate and efficient [10].
6
Fig 1.1 The Vital Parts of a CNC Milling Machine.
Table 1-1 Difference between CNC milling machine and manual milling machine.
7
CNC milling machines can automatically Manual milling machines can only change the
change tools so that it is more efficient. tool manually.
The CNC milling machine structure is the manual milling machine is the work table
different from the manual milling machine. moving up and down to complete the work.
The CNC milling machine Z axis can move up
and down
The standard CNC milling machine is a 3-axis Manual milling can only achieve 2 axis linkage.
linkage. We can also expand into a 4 axis and
5 axis linkage.
Because CNC milling machines use computer Manual milling machines can’t do this.
programming, even if they manufacture large
quantities of parts, their size and surface are
the same.
Since the CNC milling machine adopts program the manual milling machine can only operate
control, one can operate multiple machines one machine.
CNC milling machines require trained Ordinary people can operate manual milling
engineers to complete the operation. machines
CNC milling machines are less prone to errors Manual milling machines are more prone to
due to program control. errors due to the need for manual operation.
8
Types Of CNC Milling Machine.
• Structure: The spindle is placed horizontally, allowing the cutters to remove material
more efficiently on the side.
• Uses: Ideal for cutting grooves, slots, and other complex shapes in large workpieces.
• Features: Excellent for heavy-duty or high-volume work [10].
9
Fig 1.5 Horizontal CNC machine
10
Fig 1.6 lathe CNC machine
Table 1-2 CNC and Conventional Lathe Machines
11
1.2.3 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 called drill
bits or drill. It is ideal for drilling holes in many materials [11].
Number of Axes in CNC Drilling Machines
CNC machines vary in the number of axes based on their applications:
• 3-Axis Machines: Move in three directions (X, Y, Z). This type is the most
common for drilling operations.
• 4-Axis Machines: Add an additional rotational axis (Axis A), allowing the
machine to rotate the part around the X-axis.
• 5-Axis Machines: Add two more axes (Axis A and Axis B), allowing for more
complex movements and multiple angles [10].
Components of a CNC Drilling Machine
a) Frame:
The frame serves as the primary structure that supports all the machine components.
It is designed to provide stability and reduce vibrations during operation, which is
crucial for maintaining precision.
b) Motors:
CNC drilling machines use various types of motors, including stepper motors and
servo motors, to control the movement of the axes. These motors ensure accurate
positioning and speed control, which is essential for achieving precise drilling
operations.
c) Controller:
The controller is the brain of the CNC drilling machine. It receives commands from
the computer or programming software and translates them into specific actions for
the motors and other components. The controller often includes interfaces for user
input, monitoring, and adjustments.
d) Spindle:
The spindle is the part of the machine that holds and rotates the cutting tools. It is
designed to achieve high rotational speeds, which is crucial for effective drilling.
12
The spindle speed can vary depending on the material being drilled and the type of
tool used.
a) Axes:
The axes of a CNC drilling machine provide movement in different directions. Most
CNC drilling machines operate with three axes (X, Y, Z), while more advanced
machines may include additional axes (like A and B) for more complex movements,
allowing for intricate drilling patterns and angles.
b) Software:
CNC machines rely on specialized software for programming. This software allows
operators to create and edit machining programs, which are then converted into
machine-readable code (G-code). This code directs the machine’s movements and
operations, ensuring accuracy and efficiency [11].
13
Table 1-3 CNC and Conventional Drilling Machines
14
1.2.4 Grinding machine
Grinding is an abrasive machining process used for fine machining and finishing of
workpieces. It can be performed manually or using grinding machines. As with all
abrasive procedures, excess material is removed from the workpiece in the form of
chips. The cutting is actually performed by the edges of microscopically small hard
mineral crystals in the grinding tool [12].
Grinding meets today's production needs as it guarantees high quality and output at
reduced cost per workpiece. Grinding is available for:
• High dimensional and form accuracy
• A defined surface quality
• Machining of difficult-to-cut materials
External cylindrical grinding
External cylindrical grinding is used for the production of cylindrical or tapered
workpieces, such as the grinding of shafts, axles and spindles as used in the general
machine tool, automotive and aerospace industries. The circumference of the
grinding wheel is used to remove material from the circumference of the workpiece.
This can be done in the radial (plunge grinding) or axial (traverse gringing) modes.
To allow for greater accuracy in clamping, workpieces are usually mounted between
centers. Multiple idle strokes (spark-outs) are used to improve the form accuracy and
surface quality [12].
15
Internal cylindrical grinding
Internal cylindrical grinding is primarily used for machining cylindrical or tapered
bores. During internal cylindrical grinding, the longitudinal feed movement is
typically carried out by the grinding wheel, with the radial infeed movement during
internal cylindrical grinding handled by the wheel head or the work head, depending
on the design of the machine. Basically, the same kinematic relationships apply as
with external cylindrical grinding. The contact area between grinding wheel and
workpiece is however considerably larger, which makes the removal of chips and
the cooling of the process more difficult [12].
16
Fig 1.9 Axis of Grinding Machine
17
Manual Control
An example of manual control is where a human operator provides a feed motion.
This may be as simple as providing an increment of cross feed or down-feed in
surface grinding or as complex as following a contour when grinding a form tool on
an optical profile grinder. The feature that distinguishes manual control is that a
human being has control of measurement, decision making, and actuation. An
important decision is deciding when the workpiece has reached its finish size. This
implies the use of some measurement device such as a micrometer or a reading on a
leadscrew scale. Early grinding machines were all manually operated. Many
machines are still manually controlled but almost all machines incorporate elements
of automation such as automatic traverse reversal for traverse grinding [12].
Switching control
Switching control is one of the simplest forms of machine control, used to reverse
the feed motion in traverse grinding. It relies on switches that are set to determine
the switching point. This can be achieved through PLCs or low-cost computers with
position measurement tools like encoders or linear scales.
In more advanced systems, servo drives and ball screws are used for feed motion,
allowing for easier adjustment of switching positions in more complex feed cycles.
Automatic retraction can also be incorporated when a measuring device detects that
the final size has been reached [12].
Computer Numerical Control (CNC)
Modem CNCs vary from low-cost computers that basically provide switching
control using servo-drives to full three-axis contouring control that allows complex
shapes to be generated. The example shown is an easy set-up machine produced by
Jones & Shipman Precision Ltd. Other CNCs in the product range provide far more
advanced control features. The process engineer produces a process sheet that
specifies the stages in the production of a part together with critical dimensions and
the type of feed cycle to be employed. These instructions are fed into the CNC using
a code format acceptable to the CNC. After validation of the code, and machine set-
up, the CNC operates automatically to produce a part or batch of parts [12].
18
Intelligent Control in CNC Machines
Intelligent control refers to a machine's ability to automatically adjust its operating
settings to improve the process based on real-time data collected from sensors. This
means that instead of the machine working with fixed settings throughout the
process, it can change operating parameters, such as feed rate or tool position,
depending on the information it receives during operation.
For example, if a machine is grinding a part and using a measurement device, such
as a diameter gauge, it can automatically adjust the position of the part or the tool to
achieve the required size with precision [12].
19
1.2.5 Laser cutting CNC machine
A CNC laser cutter is a piece of computer numerical control (CNC) equipment that
uses a focused, high-powered laser beam to mark, cut, or engrave a material to form
custom shapes. Its unique design and operation make it highly accurate, especially
when cutting intricate shapes and small holes [19].
20
Silver retains heat from the laser and starts to warp during cutting operations, making
it challenging to achieve the desired machined part. As a result, top-tier machine
shops typically use a bracket as a heat sink to transfer heat away from the silver
workpiece during fiber laser cutting operations.
21
Numbers of axis of laser cutting cnc machines
22
Fig 1.10 axis of laser cut machine
23
• Medical Equipment Manufacturing: CNC laser cutters facilitate the production of
surgical tools, medical devices, and orthopedic implants, where detail and
accuracy are of the utmost importance.
• Jewelry Industry: Creating intricate designs with high precision, CNC laser
cutting is used extensively in jewelry making for cutting and engraving purposes.
• Construction Sector: Large-scale CNC laser cutting machines assist in cutting
structural components for buildings, bridges, and other construction projects
[19].
• Higher Quality Edges: The non-contact nature of laser cutting reduces the chance
of mechanical distortion, resulting in cleaner edges with little to no burring.
• Narrower Kerfs: Compared to traditional cutting methods, CNC laser cutters
produce a much smaller cut width (kerf), which allows for intricate cuts and
maximizes material usage.
• Smaller Heat-Affected Zone (HAZ) and Less Material Distortion: As lasers
produce a smaller HAZ, there is less chance of thermal distortion of the material.
• Less Contamination and Waste: The precision of the CNC laser cutter results in
less waste material, and since it’s a contactless process, there’s reduced risk of
material contamination.
• Less Maintenance Required: CNC laser cutters often require less maintenance
than their mechanical counterparts due to their non-contact nature.
• Less Repair Costs: Fewer mechanical parts mean there are fewer components that
can wear out or break, thus reducing repair costs.
• Greater Operator Safety: The operation of a CNC laser cutter is generally
automated and enclosed, reducing risks to the operator compared to manual
cutting methods [20].
24
Types of materials can be cut using a CNC laser cutting machine
• Metals: These include steel, aluminum, and other metals. Laser cutters are perfect
for precision cutting metal sheets, with the power output and laser type
influencing the cut quality and thickness handled.
• Plastics: Both thermoplastics and non-thermoplastics can be laser cut, though
caution is needed due to potentially harmful fumes. Types include acrylic, ABS,
and polycarbonate.
• Thermoplastics: These are a type of plastic that becomes moldable when heated.
Examples include nylon, polyethylene, and polyvinyl chloride.
• Rubber: Laser cutters can precisely cut rubber, making them ideal for producing
gaskets, seals, and other custom rubber parts.
• Leather: Whether for fashion, upholstery, or crafts, laser cutting machines can
provide precise cuts on leather, including complex patterns and designs.
• Ceramics: CNC lasers can cut and engrave ceramics, though caution is needed to
prevent cracking or breakage.
• Wood: From hardwoods to softwoods and plywood, laser cutters offer precise cuts
and intricate detailing.
• Acrylic: Laser cutting is an excellent method for working with acrylic, providing
clean edges and intricate designs.
• Foam: Ideal for packaging, insulating materials, and crafts, foam can be cleanly
and efficiently cut with a laser cutter.
• Textiles: From cotton to polyester and even delicate fabrics like silk, laser cutters
offer precise and fray-free cuts.
• Paper: Whether for crafts, model-making, or packaging, laser cutters can handle
paper of various thicknesses.
• Composites: Composites like fiberglass and carbon fiber can be cut with a CNC
laser, though special care is needed due to the risk of harmful particles.
• Stone: Laser cutters can engrave stone but cutting through is usually not possible
due to the high thickness and hardness [20].
25
1.2.6 Plasma cutting CNC machine
A plasma cutter is a thermal cutting tool used to cut various metals, producing clean
and accurate cuts. Common users of plasma-cutting machines include fabrication
shops, manufacturers, and automotive repair.
Depending on the machine, a plasma machine can cut a wide range of materials,
particularly electrically conductive metals, such as steel, aluminum, stainless, brass,
and copper [21].
26
Fig 1.12 3D CNC plasma
27
Pure water jet cutting, which uses only water as its medium, is designed for soft
materials such as wood, plastics, foam, paper, and rubber. When an abrasive is added
to the water stream, the cutting process becomes more aggressive, enabling it to cut
through hard materials like titanium, stainless steel, aluminum, glass, ceramic, and
concrete [21].
28
The shaping method used in water jet cutting offers several advantages over other
cutting processes like plasma or laser cutting. Water jet cutting provides superior
accuracy, can handle complex designs, and is suitable for thermally sensitive
surfaces. The abrasive, akin to sandpaper, erodes the material being cut without
heating it or altering its temper. As a result, the cut edges are clean and ready for
welding without the need for additional processing [21].
Abrasive flow machining (AFM)
Abrasive flow machining (AFM) is used for interior surface finishing, particularly
for deburring and honing parts that are difficult to reach with traditional methods.
By using a mixture of water and abrasive, AFM effectively erodes raised surfaces
inside a workpiece, similar to the action of a grinder or sandpaper, to remove
unwanted particles and achieve a smooth finish [21].
29
The abrasive jet machining process is a key aspect of abrasive water jet cutting. It
involves a high-pressure stream of water mixed with abrasive particles that blast and
erode the workpiece, removing particulate matter, burrs, and other materials. This
technique uses extremely fine particles applied at high velocity and is particularly
effective for cutting and shaping brittle, thin, and hard materials. Abrasive jet
machining excels in creating intricate shapes and achieving smooth, even edges [21].
30
High pressure water cutting
Intensifiers are used to dramatically increase the pressure of pure water, allowing it
to shape and form soft materials without leaving behind water residue. Hydraulic
pumps play a crucial role in this process, converting the force of the water into
mechanical energy to achieve the required high pressure.
Most CNC water jet cutting machines operate on three axes: X (left to right), Y (front
to back), and Z (up and down). Recent advancements include five-axis models that
add rotational capabilities. The A axis allows rotation around the X axis, and the B
axis provides rotation around the Y axis, offering greater flexibility and precision in
cutting complex shapes [21].
31
1.2.8 Electric Discharge Machining (EDM)
Electrical Discharge Machining Computer Numerical Control, namely EDM CNC,
is a special machining method that uses the electrical erosion effect produced by the
pulse discharge between electrodes in the working liquid to remove the conductive
materials. It is also called discharge machining or electrical erosion machining [13].
In EDM, the tool electrode and the workpiece are connected to the two poles of the
pulse power supply respectively, and immersed in the working liquid, or the working
liquid is charged into the discharge gap. The tool electrode is fed to the workpiece
through the gap automatic control system. When the gap between the two electrodes
reaches a certain distance, the pulse voltage applied on the two electrodes will break
down the working fluid and produce spark discharge [13].
32
Fig 1.18 EDM working principle
33
Fig 1.19 sinker EDM
b. Wire EDM:
34
Table 1-5 Advantage and Disadvantage of EDM
35
1.2.9 Router CNC machine
A CNC router can be controlled by a computer, it’s like a traditional router with a
modern-day upgrade. To control it, the machine’s servo motors are fed a set of
instructions in a language they can understand: G-code. The instructions tell the
machine exactly how and where to move and, once it has read them, the router gets
to work moving a high-speed rotating cutting tool to make the carvings. The process
falls under the subtractive manufacturing category as it removes material to make
parts, unlike 3D printing, a.k.a. additive manufacturing, which adds layers [14].
Unlike standard CNC mills, these routers don’t have much range of motion up and
down (along the z-axis), so won’t be able to make deeper cuts or holes on tall parts
or very thick materials without struggling or making mistakes. They can be used to
engrave lettering onto harder materials like granite, though. In general, CNC routers
are best for use on flatter and softer materials (think: MDF, plywood, acrylic, and
polyurethane foam/sheet), and metals like brass and aluminum [14].
CNC routers are used a lot in woodworking to make everything from cupboard doors
to 3D sculptures. They can create wooden patterns for sand molds used in metal
casting and cut foam into custom shapes to be used in packaging. The advertising
industry uses CNC routers to engrave custom signs and lettering on wood or plastic
for various promotional products [14].
36
Fig 1.21 CNC Router Machine
Controller: This part houses all the electronics, including the stepper or servo
motors, that control the machine’s speed and how and where it cuts [15].
Motors: The stepper or servo motors operate each of the three motion axes. Steppers
are usually found on cheaper hobbyist routers, whereas servos, which are found on
more expensive machines, are used in professional-grade models because they offer
more precision. There’s also a separate high-speed motor that rotates the cutting tool
[15].
Spindle/Router: This is what holds and rotates the cutting tool at the set speed. It’s
usually mounted on the gantry above the bed and moves as needed along the axes.
The below diagram shows the different parts of a CNC router [15].
37
Fig 1.22 CNC Router component
38
Applications of CNC Routers:
c. Woodworking: Used to cut shapes, profiles, and intricate patterns for
cabinets, furniture, and artistic wood carvings.
d. Signage: Engraving and cutting letters, logos, and patterns in materials like
wood, plastic, or acrylic.
e. Furniture Making: Creating detailed parts and components for furniture
design.
f. Rapid Prototyping: Used in engineering and design for quickly making
prototypes out of wood, plastic, or foam.
g. Mold Making: CNC routers can be used to create molds from materials like
wood or plastic for various manufacturing processes [16].
39
How to develop a CNC router?
Upgrading a CNC Router can include a variety of improvements, from improving
performance and cutting techniques to updating software. Here are some steps and
guidelines for upgrading a CNC Router:
a. Improving the design and structure:
- Re-evaluating the frame: Make sure the frame is strong and stable. You can use
more rigid materials such as steel or aluminum.
- Adding additional support Use additional supports or bases to reduce vibrations
and increase accuracy.
b. Upgrading the electronic system:
- High-quality motors: Replace existing motors with high-quality stepper motors or
servo motors to improve accuracy and speed.
- Better drivers: Use improved motor drivers for better performance.
c. Improving cutting tools:
- Using new bits: Try different types of bits, such as carbide bits or diamond bits,
which provide better performance.
- Varying cutting speeds: Try different speeds to increase productivity and reduce
wear on tools.
d. Software Update:
CAM/CAD Software Change: Use modern design software that provides advanced
features such as 3D simulation.
G-code Improvements: Ensure that the software generates efficient G-code to reduce
cutting time.
e. Add New Features:
- Remote Control: You can add smart controllers to control the machine remotely.
- Sensors: Integrate sensors such as height sensors to improve accuracy and reduce
errors.
40
f. Periodic Maintenance:
- Cleaning and Maintenance: Ensure that the machine is cleaned regularly and
damaged parts are replaced.
- Engine Oil: Use appropriate oils for engines and moving components to ensure
smooth movement.
g. Training and Professional Development:
- Operator Training: Invest in training operators to use software and tools better.
- Workshops: Join workshops or online courses to enhance technical skills.
h. Performance Evaluation:
- Testing of parts: Perform periodic tests of parts to ensure quality is maintained.
- Analyzing the results: Collect and analyze data on performance to discover any
areas for improvement.
i. Communicating with the community:
- Join forums: Participate in CNC forums to get tips and suggestions from other
professionals.
- Seek partnerships: Collaborate with technicians or engineers to improve
performance.
j. Research and Development:
- New Technology: Stay up to date on the latest technologies and innovations in the
CNC field.
- Experiencing new ideas: Don’t hesitate to try new ideas to improve productivity
and quality [18].
41
1.3 Advantage and disadvantage
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 [5].
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].
42
C. Estimation of operator’s error
The machine is controlled by programme of instructions stored in the memory of the
computer. The programme is checked before it goes to the machine so no errors will
occur in the job. Fatigue, boredom or inattention by an operator will not affect the
quality or duration of the machining [6].
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 [6].
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 [6].
43
H. Elimination of Special Jigs and Fixtures
Standard locating fixtures are often not used on CNC machines, and cost of special
jigs and fixtures is frequently eliminated. The capital cost of jig storage facilities is
also reduced. The storage of a part programme is very simple matter, it may be kept
for many years and the manufacture of spare parts, repeat orders or re- placements
is made much more convenient [6].
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 [6].
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 [6].
44
1.3.2 Disadvantage of CNC Machines:
45
1.4 Different Between DNC, CNC, NC
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 [7].
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 [7].
46
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 in fig [1.1]: (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 [7
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
47
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 [7].
Fig 1.3 General configuration of a DNC system. Connection to MCU is behind the tape reader.
Key: BTR = behind the tape reader, MCU = machine control unit
49
1. Numerical Control 2. Computer 3. Direct Numerical 4. (DNC) (Modern
(NC): Numerical Control Control (DNC): Context):
(CNC):
Definition: NC refers to a system CNC is a more DNC is a centralized In modern usage, DNC
in which machine tools advanced system that control system where a also refers to
are controlled by a uses a computer to single computer (often Distributed Numerical
program stored on control machine tools. a mainframe) controls Control, where part
Summary compare:
physical media like Programs are stored multiple CNC programs are stored on
punched tape. The digitally in the machines by sending a central server but
instructions are fed machine’s memory programs in real time. downloaded to
into the machine in a and executed individual CNC
sequence. automatically. machines for
execution.
Control: The control is done The machine has an The central computer Machines execute the
through hardwired onboard computer sends the part programs locally after
50
logic and (CPU) that interprets programs directly to downloading from the
electromechanical and runs the program the CNC machines in server, which allows
devices that read stored in its memory. real-time, rather than for more independence
instructions from the program being than Direct Numerical
punched tapes. stored locally on each Control.
machine.
Table 1-1 difference between NC, CNC, DNC
Storage: No internal storage for Internal memory, The part programs are Part programs are
part programs. Each allowing easy reuse stored on the central stored both centrally
operation requires a and modification computer and (on the server) and
new punched tape with without physical transmitted to locally (on the
the program for that media like tapes. machines as needed. machines), ensuring
task. Machines do not store more flexibility in
the programs operation.
independently.
Technology: Developed in the 1940s Emerged in the 1970s Developed in the late Common in today’s
and 1950s, relying on with the development of 1960s and early 1970s. manufacturing setups
analog systems and microprocessors and Utilized mainframe with networked CNC
mechanical components. integrated circuits. computers and large machines.
networks of CNC
machines.
Flexibility: Limited flexibility, as any Highly flexible. More flexible than NC Highly flexible, as
modification requires Programs can be easily but less flexible than programs can be easily
creating a new punched modified, uploaded, and modern CNC systems distributed, modified, and
tape. stored in the machine or a because machines still executed across multiple
computer network. rely on the central machines.
computer for
instructions.
51
Reliability: Less reliable due to More reliable than NC, Reliable as long as the More reliable than earlier
mechanical wear and with fewer mechanical central computer is DNC systems as the
complexity of physical components involved and functioning; if the machines can continue to
media like tapes. higher accuracy. mainframe fails, all operate independently
connected machines stop. after receiving the part
programs
• 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. [1].
G Codes are of Two Types
A. 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.
B. 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].
52
Addresses
N refers to the block number
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
53
G53 /Move in absolute machine coordinate system
G54 /Use fixture offset 1
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 [8].
M Code Meaning
54
MO: Program stops
Ml: Optional program stops
M2: Program end
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].
55
• Fusion 360
• NX Core Designer
• 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 [9].
56
1.7.3 Computer Aided manufacturing (CAE)
57
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
10.Robert E. Krull, Fundamentals of CNC Machining
11.Helmi A. Youssef Hassan EL Hofy, Machining Technology
Machine Tools and Operations
12.W. Brian Rowe, Principles of Modern Grinding Technology
13.J. S. Choudhury and A. K. Gupta, Electrical Discharge Machining
14. Woodweb (www.woodweb.com): Provides resources and discussions on CNC
routers for woodworking and furniture making.
15. CNCZone (www.cnczone.com): An online forum that discusses CNC router
machines, software, and accessories.
16. Practical Machinist (www.practicalmachinist.com): Offers advice and
information for metalworkers using CNC routers and similar equipment.
17. CNC Cookbook (www.cnccookbook.com): Covers tutorials, buyer guides, and
software tips for CNC routing and machining.
18. Vectric Software (www.vectric.com): Creators of VCarve Pro and Aspire,
offering extensive tutorials and support for CNC router users.
19.Mary-Lane Kamberg, Creating with Laser Cutters and Engravers
20.George Chryssolouris, Laser Machining: Theory and Practice
21.Eddie Paul, Plasma Cutting Handbook,2011
22.
58