You are on page 1of 20

UNIT V CNC MACHINING Components of a NC machine tool

SYLLABUS: Numerical Control (NC) machine The components of a traditional NC


tools – CNC types, constructional details, machine tool are:
special features, machining centre, part Program of instructions
programming fundamentals CNC – manual part The program of instruction, often called part
programming – micromachining. program is the detailed set of directions for
5.1 NUMERICAL CONTROL MACHINE TOOLS producing a component by the NC machine. Each
Numerical control of machine tools may be line of instruction is a mixture of alphabetic codes
defined as a method of automation in which and numeric data and is punched in a input media
various functions of machine tools are controlled (usually paper tape) in a specified format. This
by letters, numbers, symbols and alphanumeric program is translated into electrical signals to drive
instructions. Basically a NC machine runs on a various motors to operate the machine to carry out
program fed to it, by means of punched card, the required operations.
punched tape or magnetic tape. The program Tape punch
consists of precise instructions about the Usually it is a paper tape of 1 inch width.
manufacturing methodology as well as the Paper-Mylar, Aluminium Mylar or plastics are also
movements. used as tape materials. Paper tapes are cheap
For example, what tool is to be used, at and popular but cannot last long. It is treated to
what speed, at what feed and to move from which resist oil and water. Mylar tapes are expensive but
point to which point in which path, all these durable. These are still used by machine
instructions are given. Numerical control is a form manufacturers to store information as executive
of programmable automation. All the functions of tapes. Punching machine (Flexo writers) of various
an NC machine tool are controlled electronically, types is used to key in program instructions to
hydraulically or pneumatically. tapes. Presently tapes are prepared by micro
NC Machine Tool = MCU + Machine Tool computers by keying in the information from the
MCU = Machine Control Unit = DPU + CLU manuscript. The end of NC tapes was the result of
DPU = Data Processing Unit, two competing developments, CNC and DNC.
CLU = Control Loop Unit Tape readers
Block diagram of a NC machine tool is A tape reader reads the hole pattern on the
schematically shown in Fig. 5.1 tape and converts the patterns to a corresponding
electrical signal.
Machine controller
It receives the electrical signals from tape
reader or an operating panel and causes NC
machine to respond. It contains a
decoder/encoder, an interpolator and facilities to
execute auxiliary functions which are machine
Fig. 5.1 Block diagram of a NC machine tool
dependent. The decoder/encoder receives the
Classification of NC machine tools

1
data and stores them in two separate memory centers, are capable of accomplishing a
locations. One is the part geometry data and the very high number of machining operations
other for the process data. thus reducing significantly the number of
For cutting complex surfaces, the machine tools in the workshops.
interpolator breaks down these curves into small  Low operator qualification: the role of the
individual increments for each controlled motion of operation of a NC machine is simply to
machine tools. Controller also interfaces various upload the work piece and to download the
machine units like drive motors, transducers and finished part. In some cases, industrial
other control functions of the machine tools. robots are employed for material handling,
NC machine thus eliminating the human operator.
It responds to the electrical signals from the
controller. Accordingly the machine executes Types of NC systems
various slide motions and spindle rotations to Machine controls are divided into three groups:
manufacture a part. 1. Traditional numerical control (NC).
2. Computer numerical control (CNC).
The major advantages of NC over conventional 3. Distributed numerical control (DNC).
methods of machine control are as follows: CNC refers to a system that has a local
 Higher precision: NC machine tools are computer to store all required numerical data.
capable of machining at very close While CNC was used to enhance tapes for a while,
tolerances, in some operations as small as they eventually allowed the use of other storage
0.005 mm. media, magnetic tapes and hard disks. The
 Machining of complex three-dimensional advantages of CNC systems include but are not
shapes: this is discussed in Section 6.2 in limited to the possibility to store and execute a
connection with the problem of milling of number of large programs (especially if a three or
complex shapes. more dimensional machining of complex shapes is
 Better quality: NC systems are capable of considered), to allow editing of programs, to
maintaining constant working conditions for execute cycles of machining commands, etc.
all parts in a batch thus ensuring less The development of CNC over many years,
spread of quality characteristics. along with the development of local area
 Higher productivity: NC machine tools networking, has evolved in the modern concept of
reduce drastically the non machining time. DNC. Distributed numerical control is similar to
Adjusting the machine tool for a different CNC, except a remote computer is used to control
product is as easy as changing the a number of machines. An off-site mainframe host
computer program and tool turret with the computer holds programs for all parts to be
new set of cutting tools required for the produced in the DNC facility. Programs are
particular part. downloaded from the mainframe computer, and
 Multi-operational machining: some NC then the local controller feeds instructions to the
machine tools, for example machine hardwired NC machine. The recent developments

2
use a central computer which communicates with
local CNC computers (also called Direct Numerical Point-to-point Vs Continuous systems
Control). The two major types of NC systems are,
1. Point-to-point (PTP) system.
Controlled axes 2. Contouring system.
NC system can be classified on the number PTP is a NC system, which controls only
of directions of motion they are capable to control the position of the components. In this system, the
simultaneously on a machine tool. Each free body path of the component motion relative to the work
has six degree of freedom, three positive or piece is not controlled. The travelling between
negative translations along x, y, and z-axis, and different positions is performed at the traverse
three rotations clockwise or counter clockwise speed allowable for the machine tool and following
about these axes. the shortest way.
Commercial NC systems are capable of Contouring NC systems are capable of
controlling simultaneously two, two and half, three, controlling not only the positions but also the
four and five degrees of freedom, or axes. The NC component motion, i.e., the travelling velocity and
systems which control three linear translations (3- the programmed path between the desired
axis systems), or three linear translations and one positions:
rotation of the worktable (4-axis systems) are the
most common.

Schematics of point-to-point (Left) and


contouring (Right) NC systems.
CNC
The abbreviation CNC stands for computer
numerical control, and refers specifically to a
computer "controller" that reads G-code
instructions and drives a machine tool, a powered
mechanical device typically used to fabricate
Identification of controlled axes for (a) lathe, components by the selective removal of material.
(b) vertical spindle milling machine and CNC does numerically directed interpolation of a
(c) Horizontal spindle milling machine cutting tool in the work envelope of a machine.
Although the directions of axes for a The operating parameters of the CNC can be
particular machine tool are generally agreed as altered via a software load program CNC was
shown in the figure, the coordinate system origin is preceded by NC (Numerically Controlled)
individual for each part to be machined and has to machines, which were hard wired and their
be decided in the very beginning of the process of operating parameters could not be changed. NC
CNC part programming. was developed in the late 1940s and early 1950s

3
by John T. Parsons in collaboration with the MIT 1980 - CNC machines (computer used to link
Servomechanisms Laboratory. The first CNC directly to controller).
systems used NC style hardware, and the 1990 - DNC: external computer “drip feeds” control
computer was used for the tool compensation programmer to machine tool controller.
calculations and sometimes for editing.
Punched tape continued to be used as a Motivation and uses
medium for transferring G-codes into the controller To manufacture complex curved geometries in 2D
for many decades after 1950, until it was or 3D was extremely expensive by mechanical
eventually superseded by RS232 cables, floppy means (which usually would require complex jigs
disks, and now is commonly tied directly into plant to control the cutter motions).
networks. The files containing the G-codes to be Machining components with repeatable accuracy.
interpreted by the controller are usually saved Unmanned machining operations.
under the .NC extension. Most shops have their
own saving format that matches their ISO Advantages of CNC
certification requirements.  Easier to program.
The introduction of CNC machines radically  Easy storage of existing programs.
changed the manufacturing industry. Curves are  Easy to change a program.
as easy to cut as straight lines, complex 3-D  Avoids human errors.
structures are relatively easy to produce, and the  NC machines are safer to operate.
number of machining steps that required human  Complex geometry is produced as cheaply
action has been dramatically reduced. as simple ones.
With the increased automation of  Usually generates closer tolerances than
manufacturing processes with CNC machining, manual machines.
considerable improvements in consistency and
quality have been achieved with no strain on the CNC terminology
operator. CNC automation reduced the frequency BLU: basic length unit - smallest programmable
of errors and provided CNC operators with time to move of each axis.
perform additional tasks. CNC automation also Controller: (Machine Control Unit, MCU) -
allows for more flexibility in the way parts are held Electronic and computerized interface between
in the manufacturing process and the time operator and machine.
required changing the machine to produce Controller components:
different components.  Data Processing Unit (DPU).
 Control-Loops Unit (CLU).
History of CNC Data Processing Unit:
1949 - US Air Force asks MIT to develop a  Input device [RS-232 port/ Tape Reader/
"numerically controlled" machine. Punched Tape Reader].
1952 - Prototype NC machine demonstrated  Data Reading Circuits and Parity Checking
(punched tape input). Circuits.

4
 Decoders to distribute data to the axes Now a day’s AC spindle motors are
controllers. preferred for the main drive by CNC machine tool
Control Loops Unit: designers due to a variety of reasons. They are:
 Interpolator to supply machine-motion AC motors are more reliable than Dc motors under
commands between data points. severe operating conditions including floating dust
 Position control loop hardware for each axis and coolant splash.
of motion. AC motors being free of brushes and other
wearing parts do not require frequent
5.2 TYPES OF CNC MACHINES maintenance.
Based on Motion Type: Point-to-Point or The unique stator cooling system in AC
Continuous path. motors results in high speed high output
Based on Control Loops: Open loop or Closed characteristics with compact size.
loop. AC drive units provide stable and smooth
Based on Power Supply: Electric or Hydraulic or operation with reduced vibrations and noise from
Pneumatic. low speed to high speed.
Based on Positioning System: Incremental or Demerits
Absolute.  Inverters used for converting DC into AC
are very costly.
5.3 CONSTRUCTIONAL FEATURES  Size of the inverters is big which occupies
Spindle drives of CNC machine tools more space.
DC drive units
Direct current motors allow precise control Digital Ac servo drives are preferred today
of the speed over a wide operating range by because of:
manipulation of the voltage applied to the motor.  Good response for stable, high cutting
They are ideally suited for driving the axes performance.
of small to medium sized NC machines and  Improved acceleration and deceleration in
robots. low speed range.
Merits  Improving rigidity at spindle orientation.
 It is relatively easy to control the speed of  Improve in linearity of loadmeter.
rotation.  Easy setting of maximum rpm through
 High over load capacity. parameter values.
 Excellent dynamic response.
Demerits AC spindle drives for machine tools comprise
 High cost. a squirrel cage induction motor and a
 Large dimension and weight. transistor inverter type controller. These
 Regular maintenance is required. motors:
AC drive units  Are maintenance free.
 Enable fast installation.

5
 Have high degree of safety. 2. AC servomotors
 Save mechanical gear reductions.
 Have low inertia. DC servomotors
 Have short speed and torque response These are characterized by high overload
time. capacity and excellent dynamic response. They
have low moment of inertia. The speeds usually
In order to reduce inertia rotors are made vary up to 3000 rpm. These motors provide
hollow. The magnetic material used is samarium smooth rotation even at low speeds.
cobalt. Two thermostats are used to protect motor
from excessive temperature rise. AC servomotors
3 phase servomotors are now becoming
Transmission belting popular with CNC machine tool designers. These
Different types of transmission belting are have the followings merits:
used with CNC machine drives. For low speed  Low moment of inertia.
operation (say up to 3000 rpm) it is common to  High power/weight ratio.
use toothed belt, in conjunction with a toothed  Constant acceleration torque up to
pullers. maximum speed.
For higher speeds a poly V belt is  Practically no maintenance required.
recommended. This belt has a higher strength but  Light weight motor.
lower mass. The matching profile on the pulley  Low speed and torque response times.
reduces slip. Some CNC machines are found to be  High frequency response.
fitted with standard V- belts.  High reliability.
 These are self cooled motors.
Axes feed drives These motors are provided with integrated holding
CNC machines are provided with brake and pulse generator or resolver.
independent axis drives to provide the feed
movements for the slides. The arrangements for Slideways for CNC machines
the slides are similar with variation only in the Precise positioning and repeatability of
ratings of motors or sizes of ball screws. In order machine tool slides are the major functional
to obtain fast response, a special type of motor requirements of CNC machines. The inaccuracies
called servomotor is used to power the slides. The that are caused are mainly due to the stick slip
servomotors can be directly coupled or drive is motion when plain slideways (metal to metal
transmitted through a toothed belt drive. contact) are used. To eliminate the stick slip
The encoders or resolver mounted on the motion rolling friction slideways and slideways with
servomotor is used to generate the signals low friction PTFE (Poly Tetra Fluoro Ethylene) are
required for position/velocity feedback. The used. These have low wear, negligible stick-slip,
servomotors are of two types: good vibration damping, easy machinability, low
1. DC servomotors

6
price and low coefficient of friction properties. Another advantage is the ease with which a worn
Combinations of machine tool slideway systems: out strip can be replaced without the need for any
Plain scraping or machining of bed ways.
Metal to metal.
 Cast iron to cast iron. Linear motion bearings
 Cast iron to steel. Rolling element when applied to reciprocating
 Steel to steel. motion has following advantages.
Plastic to metal. With rolling element linear motion bearings
 Plastic to cast iron. there is little difference between dynamic friction
 Plastic to steel. and static friction. This means that is possible to
Rolling friction reduce the drive power to be used and also makes
Linear motion system with the drive equipment more compact. Further
 Recirculating balls. machine weight, overall costs and maintenance
 Recirculating rollers. cost can be reduced.
Even though internal clearance is reduced
The requirements of a good slideway system: to zero to absorb machine vibration and shock,
A good slideway system must possess; smooth motion is obtained.
 Low coefficient of friction at varying slide Stick slip problem is completely eliminated.
velocities. Lubrication of metal to metal contact
 Minimum difference between static and slideways is difficult at low speed. So a high
dynamic friction co efficient - positive slope degree of wear results in conventional slides. But
for friction - velocity characteristics. a rolling element slide requires only small
 Low rate of wear. quantities of lubricant, shows little wear and lasts
 High stiffness at the sliding joints. long.
 Sufficient damping.
Construction
Plastic coated slideways Linear motion guide system consists of a
In this slideways a plastic or non-metallic bearing block and rail. Two race ways are
inserts are used. These inserts are bonded to the provided on one side of the bearing block where
underside of the sliding members. They can be of two rows of rolls are retained and caused to re-
thermoplastics (Trucite-B) or thermosetting (SKC- circulate by means of retainer and two end plates.
3, moglice) types. These inserts/ composites are The unit is constructed in such a manner that each
made of two or more materials in which one of the rows of balls rolling over the rail comes into
reduces co efficient of friction. The other increases contact with the race way at an angle of 45°.
strength, war resistance and load bearing The race is in line contact rather than the
capacity. They also have self lubricating property; conventional point contact. Thus the ball has 13
have a soft matrix for taking up dust or particles more times allowable load carrying capacity than
and to eliminate scoring. conventional point contact system. This system is

7
capable of withstanding equal load in any Nut configurations
direction. Ball screw nuts are available in different types:
 Round flanged nut with embedded tube for
Ball screws return of the balls.
Ball screws are primarily employed in feed  Round cylindrical nut with embedded tube.
mechanism of CNC machine tools. When  Small outside diameter flanged nut with
compared with conventional acme and trapezoidal outside tube.
screws, the ball screws provide many advantages,  Rectangular nuts.
they are:
In a ball screws, the load between the threads 5.4 SPECIAL FEATURES
of the screw and nut is not transmitted by direct Feedback devices
contact, but through intermediate rolling members Feedback devices measure the position of
(spherical balls). the slide and close the control loop. The accuracy
 Low coefficient of friction. of the positioning of the slide is largely dependent
 High transmission efficiency. This allows on the resolution of the feedback device.
larger thrust loads to be carried with less Feedback devices can be broadly classified into:
torque. 1. Digital incremental measuring devices.
 Friction force is virtually independent of the 2. Digital absolute measuring devices
travel velocity and the friction at rest is very 3. Analog measuring devices.
small.
 Consequently the stick slip phenomenon is Digital incremental displacement measuring
absent, ensuring uniformity of motion. systems
Digital measuring methods offer three
General arrangement of ball screws fundamental advantages when applied to
The basic idea of ball screw is to interpose numerical control systems:
a series of bearing balls between the screw and  The measured value can be transmitted
the nut. These balls rolls in the groove as the nut directly to a numerical data processing unit.
or screw moves and the rolling friction thus  The data can be processed numerically
replaces the sliding friction of the conventional right from the moment when it is originally
acme or trapezoidal screws. produced to the end of the process.
 It is possible to provide a numerical value
The balls rolling in the grooves exit from the for the actual position of the slide using very
trailing end of the nut, and are picked up by the simple means.
return tube inserted from outside and are re- Incremental rotary encoders
circulated into the loading end of the nut. The ball The visible exterior of the unit includes the
screws can have circular or Gothic arch grooves. shaft, the flange, the rotor housing, and output
Gothic arch grooves have a small axial clearance. cable.

8
The shaft carries a graduated glass disc machine tools and other equipments as a primary
with radial crating. Incremental linear measuring generator for shaft digitizers. The linear form
systems use a glass scale with line grating which provides means for accurate control of elements
consists of opaque lines and transparent spaces of moving in translation and widely used in automatic
equal width. machine tool controls.

The digital absolute measuring system Laser interferometer


A NC system in which all positional Interferometric techniques have been
dimensions are measured with respect to a developed due to the demand for greater accuracy
common datum point called a digital absolute and due to inherent manufacturing errors which
system. In such a system, the transducers lead to decreased accuracy in conventional
therefore give a direct reading of position with position and velocity transducers. LASERS have a
reference to the common datum (zero point). The high coherence and frequency stability. This can
zero point may be either a floating or a fixed point. be used in wide environmental conditions and
An absolute rotary encoder is used in this system. does not require highly skilled operator. Laser
interferometers are mainly used for the calibration
Electro magnetic analog position transducers of CNC machine tools.
Synchros and synchro-resolvers
A synchro is an electromagnetic position 5.5 PART PROGRAMMING FUNDAMENTALS
transducer comprising a rotor and a stator with a The term CNC programming refers to the
number of windings. The level of output voltage methods for generating the instructions used to
depends upon the angular position of the rotor. drive CNC machine tools. For two dimensional
The voltage reduces to zero when the axis of the components with little geometric complexity, the
rotor coil coincided with the field vector of the instructions can be written manually. However as
stator. A synchro resolver has the windings at geometrical complexity increases more
exactly 90o to each other and resolves the voltage sophisticated techniques are required, particularly
into two components at a phase difference of 90o. for driving 3 axis, 4 axis CNC machines.
Four distinct techniques are used for generating
Inductosyn CNC instructions:
The Inductosyn is a precision feedback 1. Manual CNC programming.
device for the accurate measurement and control 2. Computer assisted part programming.
of angles or linear distances with inductive 3. Graphic numerical control programming
coupling between conductors separated by a small (CAD/CAM based programming system).
air space. Accuracy of better than one second or 4. CNC programming based on solid
arc and linear accuracy of better than 0.5 microns modeling.
is achieved.
There are two forms in inductosyns. Rotary
form is used in precision servo systems on

9
5.6 MANUAL PART PROGRAMMING Programmed Tools). Many variations of APT have
Manual programming is one of the been developed, including ADAPT (ADaptation of
conventional methods of CNC programming. This APT), EXAPT (a European flavor of APT), UNIAPT
technique is widely used for work pieces of (APT controller for smaller computer systems),
relatively simple geometry. Manual programming etc.
begins with careful study of component drawing. NC programming for complex parts is
The tool path of the CNC machine is then generated using advanced computer programs
described in machine codes, which usually take (CAD/CAM programs), which create automatically
the following general form some of the terms being the machine code (so called G-code) in a graphic
optional. environment. Machine code is also largely used for
N-G-X-Y-Z-A-B-C-F-S-T-M manual part programming of simple shapes and is
NC program covered in the present section.
A program of NC consists of a sequence of
directions that causes an NC machine to Machine code
accomplish a certain operation. The NC program The structure of a NC program written in
describes the sequence of actions of the controlled machine code is standardized and for a two-axis
NC machine. NC system has the following format:
These actions include but are not limited to:
 Component movements, incl. direction,
velocity and positioning.
 Tool selection, tool change, tool offsets, and
tool corner wear compensation.
 Spindle rotation and spindle rotation speed, Structure of a NC program
incl. possibility to change it to keep NC program block consists of a number of
constant. program words. The NC program is executed
 Cutting speed for different diameters in block by block: each next block is entered in the
turning. system and executed only after entirely completing
 Application of cutting fluids. the current block.
Each program word is an ordered set of
A part program is simply an NC program used characteristics, letters and numbers, to specify a
to manufacture a part. Part programming for NC single action of the machine tool. Program words
may be performed manually (manual part fall into two categories:
programming) or by the aid of a computer Modal, which are active in the block in
(Computer-aided part programming). which they are specified and remain active in the
Many programming languages have been subsequent blocks until another program word
developed for part programming. The first that overrides them.
used English like statements and one of the most Non-modal, which are only active in the
popular languages is called APT (for Automatically block in which they are specified.

10
Some of the most important program words radial compensation of tool corner wear for each
are as follows: new run of the program (and each new part);
Sequence numbers (N****) Miscellaneous functions (M**)
Sequence numbers are a means of The M-function performs miscellaneous
identifying program blocks. In some systems they machine actions such as these listed in the table:
are not required although sequence numbers are
needed in most canned cycles (covered later in Absolute Vs incremental programming
this section). Absolute and incremental programming
specifies the coordinates of points with respect to
Preparatory functions (also G-codes) (G**) the work coordinate system (absolute
Preparatory functions are used to set up the coordinates), or from the point where the
mode in which the rest of the operation is to be component is located (incremental coordinates):
executed. Some of examples of G-codes are given
in the table.
Dimension words (D****.***), where D stands
for X, Z, U, or W
Dimension words specify the coordinate
positions of the programmed path. X and Z specify
the absolute coordinates, and U and W specify the
Absolute (X and Z) and incremental (U and W)
incremental coordinates (absolute and incremental
coordinates of point B, and sections of NC
programming are explained later in this section);
programs showing both types of programming.
Arc center coordinates (D****.***), where D
stands for I, or K
Incremental positioning is also called a
Arc center coordinates specify the
point-to-point positioning (do not mix with point-to-
incremental coordinate position of the arc center (I
point NC systems). Both types of programming
in the direction of X-axis, and K in the direction of
can be used for the whole program or just for
Z-axis), measured from the arc starting point;
certain sections of the program. Which kind of
Feed function (F**.**)
programming to apply generally depends on the
Specifies the velocity of feed motion;
type of dimensioning used in the part drawing?
Spindle control function (S****)
The next figure illustrates some examples of
Specifies spindle rotational speed in
different dimensioning styles applied to one and
revolutions per minute or cutting velocity in meter
the same part configuration, which suggest either
per minute depending on the type of NC system
absolute, or incremental, or mixed programming:
and machine tool;
Tool calls (T**.**)
The tool call word is used to access the
required tool. It also gives the information for the

11
The G54 code tells the machine where the
position of the WPC measured from the machine
zero point is. Machine zero point (machine datum)
is a fixed point on the machine tool and cannot be
programmed or altered.

The type of part dimensioning defines the type


of programming used.
Program points
The NC system must know where the part
is positioned in the work space. The procedure for
defining the work coordinate system (WPC) is
called work piece coordinate setting. Two
Example of how G54 is used to set the WPC.
important factors deal with work piece coordinate
Note that in turning X is given as a diameter,
setting:
not radius
 Where the part datum (the origin of the
Another important point is the program start
WPC) is situated with respect to the work
point (also tool home position). This point is
piece.
selected by the programmer at some distance
 Where the part datum is situated with
from the work piece, not too far to save some time
respect to the machine tool.
when the tool returns home, and not too close to
The WPC origin may be located at any part of
allow for safe indexing of the tool turret when the
the work piece, but to avoid dimensional
cutting tool is changed. The program, therefore the
recalculations and respectively errors, the good
new part machining, starts and ends with the tool
programmers will chose the WPC origin at the
at home position, but the tool needs also to be
point, from where the part features are
returned to home whenever a tool change take
dimensioned.
place during the program execution.

Selection of WPC origin


The method for locating the positions of the
WPC origin with respect to the machine tool varies
for each machine tool. Some systems use a zero-
The use of G-codes for rapid positioning of the
set button to set the WPC origin. On other types of
tool (G00), linear feed motion (G01) and rapid
NC systems, the WPC is set with a G54 or a G92
home return (G28)
code followed by X, and Z dimensions.

12
Some NC system uses a G28 command to Cycles
return to home position; other systems return to The repetitive program (and machining)
home automatically when a tool change (M06) is sequence is called a cycle. Cycles are classified
commanded into two principle groups:
1. Canned cycles (also fixed cycles).
Linear and circular interpolation 2. User-defined cycles (sub-routines).
A G01 linear interpolation code moves the Canned cycles are an inbuilt feature of the
tool to a position with coordinates defined with NC system. The usage of canned cycles makes
program words in a straight, including angular line easier programming for threading, drilling holes
at the specified with F-code feed rate. The and other repetitive machining tasks. The next
command is modal and is active until either a G00, figure illustrates a thread cutting canned cycle.
or G02, or G03 overrides it.
NC systems are capable of commanding a
circular motion. Arc movement is known as circular
interpolation and is carried out with a G02
(clockwise circular interpolation) or G03 (counter
clockwise circular interpolation) codes. The arc
radius is specified either by the incremental
dimensional words I and K, which defines the
Example of threaded canned cycle.
position of arc center point with respect to the arc
start point, or directly by the radius R-code. In both
User sub-routines are useful, when the
methods, the program block, which starts with a
necessary canned cycle is not available. The user
G02 or G03 codes must also include the
sub-routine is a NC program, which describes a
coordinates of the arc end point. If R-code is used,
sequence of operations, which is often repeated
arcs less than 180o are given a positive radius and
when machining particular part. The sub-routine is
arcs more than 180o are given a negative radius
called from the main NC program with a M98
value.
command.
A special type of user-defined cycles is so-
called macros, which are generic cycles with
parametric variables. The macro is called from the
main program with a set of numerical values for
these variables. This allow to use one and the
same macro to machine different in size, but
similar in shape components. Programming with
Linear and circular interpolation.
macros is often referred to as a parametric
programming.

13
Nomenclature of the CNC machines Tool post reference point – T
According to international standard It is the point of rotation of the tool post. It is
ISO/R841, the US standard EIA (Electronics useful for cutter tool compensation, tool changing
Industries Association) document RS267 formed etc.
the basis of the ISO standard.
Machine types Zero points or zero datum
CNC machines are classified into four groups: It is the origin point of the co-ordinate
Group1 – machines with rotating tools. system of the NC machine.
Group2 – machines with rotating work pieces. With respect to this origin point programmer
Group3 – machines with non rotating work pieces decides the tool positions and movements.
and non rotating tools. There are two methods of specifying this
Group4 – machines other than belongs to above 3 zero point.
groups – CNC drafting machine. Fixed zero
It is fixed by the manufacturer and cannot
Reference points for manual programming be changed by the user.
The machine datum point –M E.g. machine datum point (M) , machine
The machine datum is the origin of the co- reference point ( R )
ordinate system. With lathes it is on the mounting Floating zero
flange of the main spindle and the turning axis. It is set by the operator at any position on
It is fixed by the manufacturer and the machine.
programmed into the computer memory. It cannot E.g. work piece zero point (W), tool post
be changed by the user of the machine. reference point (T)
The machine reference point – R
The position of the reference point R is PART PROGRAM FORMATS
determined by the manufacturer. The value of 1. Fixed block format
machine reference co-ordinates XMR and ZMR a. Fixed sequential format
are fixed and cannot be changed by the user. b. Tab sequential format
The machine reference point serves for the 2. Word address format (variable block)
calibration of the measuring system.
The workpiece zero point –W PREPARATORY FUNCTIONS OR G
It is also called the program zero point. FUNCTIONS OR G CODES IN CNC
This point determines the workpiece co- PROGRAMMING
ordinate system in relation to the machine zero These are the commands which prepare
point. the machine tool for different modes of movement
This point is chosen by the programmer and like positioning, turning, facing, thread cutting etc.
inputted to the CNC system when setting up the The preparatory functions always precede the
machine. dimension words.

14
As per DENFORD - FANUC OT (Offline MISCELLANEOUS OR AUXILIARY FUNCTIONS
turning) & FANUC OM (offline milling) OR M CODES
programming the preparatory functions are given The function related to the auxiliary or
below. switching information like spindle start-stop,
G - CODES - Preparatory Functions coolant on-off, etc., and not related to any
(Table as shown in last page) dimensional movement of the machine is known
The G codes are divided into two types: as miscellaneous functions.
1. Model G codes. As per Denford - FANUC OT (offline
2. One shot or non-model G codes. turning) and FANUC OM (offline milling)
programming the miscellaneous functions are
Model G codes - This G code is effective until given below.
another G code in the same group is commanded. M - CODES - Miscellaneous Functions
(Table as shown in last page)
Non-model G codes - This G code is effective
only at the block in which it was specified. COMPUTER ASSISTED PART PROGRAMMING
In computer aided part programming, much
Motion group – GO0, G01, GO2, GO3 of the tedious computational work needed in
Dwell group – GO4 manual programming is performed by the
Active plane selection group – G17, G18, G19 computer processor. In this programming the
Cutter compensation group – G40, G41, G42 programmer prepare the set of instructions in high
Units Group – G20, G21 level computer language. The high level computer
Hole making canned cycle group – G80, G81-G89 languages use simple
Co – ordinate system group – G90, G91 English words which can be converted to
machine tool level program with the help of
processors.
Canned cycles or fixed cycles Merit – programming becomes less time
The routine that automatically generates consuming and accurate.
multiple tool movements from a single block is E.g. APT, UNIAPT, ADAPT, COMPACT-II
known as canned or fixed cycle. e.g. G71, G70,
G81-G89, G92 APT language
G80 – canned cycle cancel. The APT (automatically Programmed Tools)
Merits language system was designed at the
Program becomes simple and needs less servomechanism laboratory of Massachusetts
memory. institute of technology. The APT NC reference
Program writing is easier. language consists of a specially structured set of
vocabulary, symbols, rules and conventions which
are easily understood by the part programmer and

15
would help him in faster preparation of control Post processor statements
tapes. These are used to specify the machine tool
Today it is used for continuous path functions and are supposed to be acted upon by
programming up to five axes. It includes: the post processor identified earlier in the part
 APTURN for Lathes program.
 APTMIC for mill and drill E.g. COOLNT/ON, SPINDL/ON, FEDRAT/20
 APTPOINT for point-point operation
APT program is used to command the cutting Auxiliary statements
tool through its sequence of machining process. These are used for cutter size definition,
APT is also used to calculate the cutter positions. part identification and so on. These statements
APT is a three dimensional system controlling up control the output listing, translation, rotation and
to five axes including rotational co-ordinates. repetitive programming techniques.
The complete APT part program consists of the E.g. CLPRNT, OUTTOL, INTOL, FINI.
following four types of statements: Normally, a part program is executed
1. Geometric statements. sequentially starting from a PARTNO statement to
2. Motion statements. the FINI statement. After entering the program, a
3. Post processor statements. printout of the APT processor can be obtained
4. Special or compilation control or showing the canonical information of all the
Auxiliary statements. geometry defined and the cutter location data. A
plot of the CLDATA is also obtained to prove the
Geometric statements validity of the program.
These are used to define the part The abbreviation CNC stands for
configuration, which includes points, lines, circles, computer numerical control, and refers
planes, cylinders, ellipses, cones, general conics specifically to a computer "controller" that reads G-
and quadrics with a total of fifteen different code instructions and drives a machine tool, a
surfaces. powered mechanical device typically used to
Format: fabricate components by the selective removal of
Symbol = Geometry type/ descriptive data material. CNC does numerically directed
interpolation of a cutting tool in the work envelope
Motion statements of a machine. The operating parameters of the
These statements are used to control the CNC can be altered via a software load program.
cutter path to generate the part and include start-
up procedures, point-to-point programming, and 5.7 MICROMACHINING
cutter description and direction modifiers. Micromachining refers a technique for the
Format: fabrication of 3D structures on the micrometer
Motion command/ descriptive data scale. Micromachining refers the super finishing, a
metalworking process for producing very fine
surface finishes. It mainly involves the micro-

16
celectro-mechanical systems to perform electroplating and molding processes. The five
micromachining processes. basic steps of LIGA are resist development, X-ray
The various types of micromachining radiation and masking, electroforming, resist
processes are given below, removal and molding.
i. Bulk micromachining i. Resist development:
ii. Surface micromachining The resist material is applied on the surface
Micromachining is mainly applied in MEMS of the part. The surface is allowed for few minutes
devices e.g. airbag sensor, medical devices, to dissolve the resist material using a wet-etching
micro-dies and molds, etc. process.
Before carrying out micromachining ii. X-ray radiation and masking:
process, the part to be machined should be made Next, the deep X-ray is penetrated to break
ready by doing some preliminary processes such the chemical bonds of the resist material.
as photolithography, etching, LIGA, laser ablation. iii. Electroforming:
1. Photolithography process: The spaces generated by the removal of
The wafers are chemically cleaned to the irradiated plastic material are filled with the
remove particulate matter, organic, ionic, and metal using an electro-deposition process. The
metallic impurities. The high-speed centrifugal precision grinding process with diamond slurry-
whirling of silicon wafers known as “Spin coating’ based metal plate is used to remove substrate
produces a thin uniform layer of photoresist on the layer.
wafers. The photoresist is exposed to a set of iv. Resist removal:
lights through a mask often made of quartz. Poly Methyl MethAcrylate(PMMA) resist
2. Etching: exposed to X-ray and to remove oxygen plasma or
The second step in a part preparation can through a wet-etching process.
be carried out by two ways. v. Plastic Molding:
a) Wet etching The metal mold from LIGA used for
b) Dry etching injection molding of MEMS.
a) Wet etching process: 3. Laser Ablation Process:
The reactants are applied on the surface of High –power laser pulses are used to
the part to be machined. The surface reaction evaporate matter from a target surface. The
takes place to clean the surfaces. process is carried in a vacuum chamber.
b) Dry etching: 4. Mechanical Micromachining
This type of etching is carried in two ways For three-dimensional structures,
such as lithography or etching methods are not suitable to
i. Plasma based etching, and form the surfaces of the part to be machined. It is
ii. Non Plasma based etching. carried through ultra precision diamond turning
c) LIGA: machines or precise machine tools or micro-lathe
It refers LIthographie, Galvanoformung, or micro-mill or micro-EDM etc.
Abformung (LIGA). It involvs lithography,

17
MICROMACHINING PROCESS: silicon can be produced V-shaped grooves. These
Generally, there are two types of grooves can atomically be smoothened, if the etch
micromachining processes. is carried out correctly.
(i) Bulk micromachining Surface Micromachining
(ii) Surface micromachining In surface micromachining process, the
Bulk micromachining structures are created on top of a substrate. In this
It is the process used to produce micro- case, a silicon substrate (wafer) is selectively
machinery or micro-electro-mechanical systems etched to produces structures. In this machining,
(MEMS). It uses a series of thin film deposition the microstructures are built by deposition and
and selective etching. The process is defined as etching of different structural layers on top of the
structures by selectively etching inside a substrate. substrate. These layers are selectively etched by
The process is carried out in three stages photolithography and either a wet etch involving an
such as dopant diffusion, maskig ang anistropic acid or a dry etch involving an ionized gas, or
etching. plasma. Dry etching can combine the chemical
etching with physical etching, or ion bombardment
of the material. Generally poly-silicon is used as
one of the layers and silicon dioxide is used as a
sacrificial layer. The purpose is to remove or etch
voids.
It offers the advantage of the possibility of
realizing monolithic Microsystems to built
structures n the same substrate. The limitation of
this machining is that only smaller components
can be machined. This type of micromachining is
Fig. 5.2 Bulk micromachining
mainly preferred for the manufacture of thin film
Usually, silicon wafers are used as
solar cells. The complicated components such as
substrate for bulk micromachining as they can
movable parts are built using a sacrificial layer.
anisotropically be wet etched to form highly regular
In addition, the surface micromachining
structures. Bulk micromachining transfers a
processes are used in action in the following
pattern from a mask of the surface. Bulk MEMS products such as surface micro machined
micromachining can be performed with wet or dry
accelerometers and 3D flexible multichannel
etches. Wet etching uses alkaline liquid solvents neural probe array.
such as potassium hydroxide (KOH) or tetramethyl
ammonium hydroxide (TMAH) for dissolving
silicon. These alkali solvents dissolve the silicon
faster by forming some crystallographic
orientations. The dissolving rate is up to 1000
times faster than other matching process. The
specific crystallographic orientations in the raw
18
G - CODES - Preparatory Functions
Codes Function in turning centre Function in machining centre
G00 Rapid movement or positioning Rapid movement or positioning
G01 Linear movement with feed rate Linear movement with feed rate
G02 Circular movement with feed rate (CW) Circular movement with feed rate (CW)
Circular movement with feed rate
G03 Circular movement with feed rate (CCW)
(CCW)
G04 Dwell Dwell
G05 - G19 Not assigned Not assigned
G20 Inch data input Inch data input
G21 Metric data input Metric data input
G22 - G27 Not assigned Not assigned
G28 Return to home position Return to home position
G29 - G39 Not assigned Not assigned
G40 Tool nose radius compensation cancel Cutter compensation cancel
G41 Tool nose radius compensation left Cutter compensation left
G42 Tool nose radius compensation right Cutter compensation right
G43 Not assigned Z length offset
G44 - G49 Not assigned Not assigned
G50 Work coordinate system shift / Cancel scaling
Clamping maximum spindle speed
G51 Not assigned Scaling
G52, G53 Not assigned Not assigned
G54 Not assigned Datum shift
G55 - G67 Not assigned Not assigned
G68 Not assigned Coordinate rotation
G69 Not assigned Cancel rotation
G70 Finishing cycle Not assigned
G71 Multiple turning cycle Not assigned
G72 Multiple facing cycle Not assigned
G73 Pattern repeating cycle High speed peck drilling
G74 End face peck drilling cycle Counter tapping
G75 Grooving cycle Not assigned
G76 Multiple threading cycle Fine boring
G80 Not assigned Canned cycle cancel
G81 Deep hole drilling cycle Drilling - Spot boring
G82 Not assigned Drilling - Counter boring
G83 Not assigned Deep hole peck drilling
G84 Not assigned Tapping
G85, G86 Not assigned Boring
G87 Not assigned Back boring
G89 Not assigned Boring
G90 Turning cycle Absolute zero command
G91 Not assigned Incremental command
G92 Threading cycle Not assigned
G93 Not assigned Not assigned
G94 Facing cycle Feed rate in mm / min
G95 Not assigned Feed rate in mm / rev
G96 Constant surface speed control Not assigned
G97 Constant surface speed control cancel
G98 Feed rate in mm / min Return to initial level
G99 Feed rate in mm / rev Return to R point level
G170, G171 Not assigned Circular pocket milling
G172, G173 Not assigned Rectangular pocket milling

19
M - CODES - Miscellaneous Functions
Codes Function in turning centre Function in machining centre
M00 Program stop Program stop
M01 Optional stop Optional stop
M02 End of program Program reset
M03 Spindle forward Spindle forward
M04 Spindle reverse Spindle reverse
M05 Spindle stop Spindle stop
M06 Automatic tool change Automatic tool change
M07 High pressure coolant ON Not assigned
M08 Low pressure coolant ON Coolant ON
M09 Coolant OFF Coolant OFF
M10 Chuck open Vice open
M11 Chuck close Vice close
M13 Spindle forward and coolant ON Spindle forward and coolant ON
M14 Spindle reverse and coolant ON Spindle reverse and coolant ON
M19 Not assigned Spindle orientation
M20 Not assigned ATC arm in
M21 Not assigned ATC arm out
M22 Not assigned ATC arm down
M23 Not assigned ATC arm up
M24 Not assigned ATC draw bar unclamp
M25 Tail stock quill extend ATC draw bar clamp
M26 Tail stock quill retract Not assigned
M27 Not assigned Reset carousel to pocket one
M30 Program stop and reset Program reset and rewind
M32 Not assigned Carousel CW
M33 Not assigned Carousel CCW
M38 Door open Door open
M39 Door close Door close
M40 Parts catcher extend Not assigned
M41 Parts catcher retract Not assigned
M62 - M67 Auxiliary output functions Not assigned
M70 Not assigned Mirror in ‘X’ ON
M71 Not assigned Mirror in ‘Y’ ON
M76, M77 Auxiliary output functions Not assigned
M80 Not assigned Mirror in ‘X’ OFF
M81 Not assigned Mirror in ‘Y’ OFF
M98 Sub program call Sub program call
M99 Sub program end and return Sub program end and return

20

You might also like