Unit 3
Unit 3
Unit 3
UNIT-3
CNC Programming has a defined structure which machine can read the codes without
errors. NC Programming can be categorized into 3 parts:
Main Program.
Part program.
Sub program.
The main program is first read or accessed on machine tool when the entire part
program sequence is run. Normally, the controller operates according to one program.
In this case the main program is also the part program. This controlling program can
then call a number of smaller programs into operation. These smaller programs, called
Sub Programs. These subprograms are generally used to perform repeat tasks, before
returning control back to the main program.
Each block, or program line, contains addresses which appear in this order:
N, G, X, Y, Z, F, M, S, T;
This order should be maintained throughout every block in the program, although
individual blocks may not necessarily contain all these addresses.
Meaning of addresses:
The part program can be further broken down into separate lines of data, each
line describing a particular set of machining operations. These lines run in sequence,
are called blocks. A block of data contains words which is called codes. Each word
refers to a specific cutting/movement command or machine function. The programming
language recognized by the CNC, the machine controller, is an I.S.O. code, which
includes the G-Code and M-code groups. Each program word is composed from a
letter, called the address, along with a number.
Address Example: G
The part program can contain a number of separate programs, which together describe
all the operations required to manufacture the part.
COORDINATE SYSTEM
Nearly all CNC machine uses a Cartesian coordinate system based on an X, Y, and Z-
axis. This system allows a machine to move in a specific direction along a specific
plane. Reduce the Cartesian system to its basics, and you have a familiar number line.
One point on the line gets designated as the Origin.
The real parts of a CNC program involves the input of co-ordinates of the tool
endpoint to produce any machining profile, subsequently it is necessary to follow a
proper co-ordinate system.
All the machine tools make use of the Cartesian coordinate system for the purpose
of simplicity. The guiding coordinate system followed for assigning the axes is the
familiar right hand coordinate system. The fundamental axes to be assigned are the
rectangular axes and the rotary axes. One could use his right hand to arrive at these
alternate variable positions of the same right hand coordinate system.
G & M CODES
M code is the machine control language that controls the overall program, often called
G code. While G commands describe positions, M code directs the machine's actions.
While M represents miscellaneous codes, some refer to it as machine code because it
controls particular operations of the equipment.
M-code controls miscellaneous functions, and typically these can be thought of as non-
geometry machine functions. Examples include spindle rotation start and stop, coolant
on and off, pallet change, etc. Some of these functions may vary by the specific
machine.
CUTTER RADIUS
COMPENSATION
Cutter compensation or sometimes referred
to as “cutter comp”, is an offset or shift from
center line of the tools shaft to the cutters
edge along a programmed path. The
advantage of cutter compensation is the
use of geometry based offsets rather than
tool center point, allowing for the same program to use different diameter tools.
The attached file contains NC code and a Feature CAM part file that will be referenced
in the explanation below (remember to use tools from last save). Feel free to follow
along.
Feature CAM adjusts for the tool nose radius that is entered in the tool properties
automatically.
Tool compensation determines the machining precision and quality . There are tool
length compensation, tool radius compensation and corner radius compensation in CNC
system . The parameters of these compensation are all static.
Alternative tool wear compensation modules employing drawbar actuated tool position
adjustment or electrically activated solid-state prime mover adjustment including means
for physically sensing and verifying the extent of adjustment without awaiting the gaging
of successive work piece dimensions following compensation adjustment. In one
embodiment, a piezoelectric stack is employed with a flexure unit mounted tool to
produce adjustment deflection through controlled voltage applied to the piezoelectric
stack.
CANNED CYCLES
A canned cycle is a combination of machine movements that perform machining
operation like drilling, milling, boring and tapping. This cycle simplifies the program by
using a single block with a G-code to specify the machining operations usually specified
in several blocks. This cycle is also called as fixed cycle. Canned cycles are traditionally
used in making the holes on the complex parts of air crafts and aerospace component
manufacturing, electronics instruments, optical or mold making industry.
Canned cycles are so called because they allow a concise way to program a machine to
produce a feature of a part. A canned cycle is also known as a fixed cycle. A canned
cycle is usually permanently stored as a pre-program in the machine's controller and
cannot be altered by the user.
Mirroring Features
Mirror image is a function through which can machine the same trace in other place of
the work-piece, not only saving the tool setting time but also simplifying the edit of
program.
By this way, product could have good accuracy and interchangeability. However,
researches aimed at mirror function based on PMAC is rare. This paper analyzed the
principle of mirror image, combined with coordinate transformation and G-code
development way, a method to deliver the mirror function G-code has been put forward,
which has already used in the independent R&D project single-point diamond ultra-
precision CNC system.
In addition, this article introduced an upper computer software of CNC system based
on Qt and listed the program code of mirror function. The method is available to any
CNC system based on PMAC, offering good versatility.
Machining center
Machining centers are widely used in manufacturing sites. Machining centers are critical
equipment for machining metal parts and components in addition to their primary
purpose of die manufacture.
As an example, machining centers in the automobile industry are used for efficient
grinding and drilling of engine parts as well as for making dies for body components.
Many other products commonly used in daily life and in industrial settings are
manufactured in machining centers.
tool magazine where the tools are stored during the machining of work-pieces. This
saves time and effort required for standard tool changeovers, and consequentially
enables automated and power-saving operations while reducing costs.
In recent years, the emergence of five-axis machining centers, equipped with two
rotational axes in addition to the conventional three axes, has enabled machining of
shapes with even greater complexity.
Wire electrical discharge machining (WEDM) uses a metallic wire to cut or shape a
work-piece, often a conductive material, with a thin electrode wire that follows a
precisely programmed path. Typically the electrode diameters range from .004″ – .012″
(.10mm – .30mm), although smaller and larger diameters are available.
During the wire cutting process there is no direct contact between the wire and the
work-piece which allows for machining without causing any distortion in the path of the
wire, or the shape of the material. To accomplish this, the wire is very rapidly charged to
a desired voltage. The wire is also surrounded by deionized water. When the voltage
reaches the correct level, a spark jumps the gap and melts a small portion of the work
piece. The deionized water cools and flushes away the small particles from the gap.
The hardness of the work piece material has no detrimental effect on the cutting
speed. Extrusion dies and blanking punches are very often machined by wire cutting.
EDM cutting is always through the entire work-piece. To start wire machining it is first
necessary to drill a hole in the work-piece or start from the edge. On the machining
area, each discharge creates a crater in the work-piece and an impact on the tool. The
wire can be inclined, thus making it possible to make parts with taper or with different
profiles at the top and bottom. There is never any mechanical contact between the
electrode and work-piece (see above). The wire is usually made of brass or stratified
copper, and is between 0.1 and 0.3 mm diameter.
Depending on the accuracy and surface finish needed, a part will either be one cut or it
will be roughed and skimmed. On a one cut the wire ideally passes through a solid part
and drops a slug or scrap piece when it is done. This will give adequate accuracy for
some jobs, but most of the time, skimming is necessary.
A wire EDM machine is a type of CNC machine that can move along four independent
axes to generate taper cuts. For example, a stamping die can be machined with 1/4
degree taper or a mold with one degree taper in some areas and two degrees in
another with precision. Extrusion dies or nozzles and horns can be cut with constantly
changing tapers. For example, a detailed shape on the top of the work piece can
transition to a simple circle on the bottom.
Applications
It is a flexible process that generates low thermal damage to the machined surface as
there is no continuous tool-material con- tact along the machining process.
To overcome the disadvantage of water jet machining, the abrasive particles will be
added into the water so that the abrasive particles along with water also come out from
the nozzle at a very high velocity to remove the material from the surface of a workpiece
to get desired shape and size at high accuracy.
CONSTRUCTIONS OF AWJM
The main parts of the Abrasive Water jet Machining Process are as follows. Some of the
parts of the water jet machining process are also included in the setup because the
AWJM process is the advance of the WJM process.
Reservoir:
The reservoir will act as a basic part for storing water and this water is sent to all the
other parts of the system to work properly.
Hydraulic Pump:
The hydraulic pump is generally used to pump the fluid from one place to another place
whereas here in this unit, it acts as a mediator between the reservoir and the Intensifier.
It sucks the water from the reservoir and sends it to the Intensifier.
Hydraulic Intensifier:
It is connected after the hydraulic pump and is used to increase the pressure of the
water.
Accumulator:
The accumulator is used to store the water temporarily and supplies the water in the
system when there is either a pressure drop or high-pressure water required in the
system.
Control Valves:
The duty of the pressure control valve is to control the pressure of water and
also the direction of water.
A flow regulator valve is used to regulate the flow of water into the system.
Flow regulator:
As the name flow regulator, it is used to regulate the flow of water which was arrived
from the control valve and send that water towards the nozzle.
Abrasive Tank:
Abrasive particles play a vital role in this process. As we know that water jet machining
process is used to cut soft materials whereas, in order to cut the hard materials, just
water is not sufficient. In addition to water, Abrasives are also added so that the material
can cut at a faster rate. The commonly used Abrasive particles are aluminum oxides,
sand, garnet, glass particles, etc.
Mixing Chamber:
In the water jet machining process, only water is used as a cutting medium whereas, in
the Abrasive Water Jet Machining process, 70% water and 30% Abrasive particles are
used and they are mixed in the mixing chamber.
Nozzle:
The duty of the nozzle is to convert high-pressure water into kinetic energy(K.E) and
this K.E. is increased due to the decrease in the nozzle area. This high K.E. water along
with the abrasive particles is impinged onto the surface of the workpiece to get the
desired shape and size at a faster rate.
Drain system:
The main duty of the drain is to collect the water coming away from the work region and
is supplied back to the reservoir via the pump and the filter
The control valves are placed in the system to control the pressure of water and the
directional flow of water. Next, the abrasive particles along with water in a percentage of
30 & 70 are mixed in the mixing chamber.
When these high-velocity Abrasive particles are impinging onto the hard work-
pieces, it is possible to produce plastic deformation fracturing in the hard work
materials.
As the percentage of abrasives is increasing, the material removal also increases but
the flow characteristics of the liquid mixture are coming down.
The most common usage of abrasive particles in the AWJM process is in the range of
100 to 150 grit.
Abrasive Materials:
The most used abrasive materials are Garnet(which is 30% more efficient than sand),
silicon carbide, and silica.
Traverse rate:
The depth of cut decreases when the traverse rate is increased. The Traverse speed
maintained is 100 mm/min to 5 m/min.
Stand-off distance:
If the stand-off distance is increased, the depth of the cut is decreased. The stand-off
distance maintained is 1-2mm.
Depth of cut:
ADVANTAGES
1. No heat-affected zone
2. No cutter induced distortion
3. Eliminates thermal distortion
4. Low cutting forces on work-pieces
DISADVANTAGES
1. High capital cost and high noise levels during machining.
2. It cannot cut the materials that degrade quickly with moisture.
3. Surface finish loses at higher cut speeds.
APPLICATIONS
1. It is highly used in the automotive, aerospace, and electronics industries.
2. In aerospace industries, parts such as engine components (aluminum, titanium,
and heat resistant alloys), aluminum body parts, titanium bodies for military
aircraft, etc. are made using abrasive water jet machining process.
Sheet metal forming is used in almost every sector of industrial production, like the
automotive industry, the aircraft industry, the home appliance industry, the food industry
etc.
(1) cutting,
(3) drawing
CAM software is used to program tool paths and to generate the G-code that controls
CNC machines like mills, routers, lathes, and wire EDMs. CAD/CAM software, like
Master-cam, is used to take parts from design through production within a single, user
friendly interface.