Computer Numerical Control (CNC) Machine: Industrial Oriented Mini Project Report ON
Computer Numerical Control (CNC) Machine: Industrial Oriented Mini Project Report ON
ON
SUBMITTED BY
R.VAMSHIDHAR REDDY
16RA1A0313
B.TECH
`1
PREFACE
This record is concerned about our practical training during the summer vacations after
3rd year. We have taken our practical training in “RAJESHWARA RINGS
Pvt.Ltd(RRPL)” .During this training, we got to learn many new things about the CNC
machine. This training provide to be a milestone in our knowledge of present industry.
Every say and every moment was an experience in itself, an experience which
theoretical study can’t provide.
`2
ACKNOWLEDGEMENT
Lastly, I would like to thank the almighty and my parents for their moral support and
my friends with whom I shared my day-to-day experience and received lots of
suggestions that my quality of work.
R.VAMSHIDHAR REDDY
16RA1A0313
B.Tech (Mech)
`3
CERTIFICATE
`4
ABSTRACT
Computer numerical control (CNC) machines are widely used to manufacture different
parts in different types of materials. It is a highly precise way for manufactures to make
sure all their parts are within the set of tolerances. CNC is a computer controlled
whereas in the past it was manually controlled by the operator.
In the manufacturing filed, and particularly in the area of metal working, Numerical
Control technology has caused something of revolution. Even in the every days before
computers became standard fixtures in every company and in many homes, the
machine tools equipped with Numerical Control system found their special place in the
machine shops. The recent evolution of micro electronics and the never ceasing
computer development , including its impact on Numerical Control , has brought
significant changes to the manufacturing sector in general and metalworking industry in
particular.
`5
TABLE OF CONTENTS
S.NO DESCRIPTION Page. No
1. COMPUTER NUMERICAL CONTROL (CNC)…………………………...…………………..……7
1.1 CNC HISTORY…………………………………………………………………….......... 7
1.2 CLASSIFICATION OF CNC MACHINE……………………………................... 7
4. PART PROGRAMMING……………………………………………………………………….… 15
5. TYPES OF CNC PROGRAMING………………………………………………………………. 17
8. CNC OPERATING…………………………………………………………………………………. 30
13. REFERENCES……………………………………………………………………………………….. 44
`6
LIST OF FIGURES
S.NO DESCRIPTION Page. No
1. OPEN LOOP CONTROL SYSTEM…………….…………………………………………... 9
4. NC COORDINATE SYSTEN……………………………………………………………..…… 13
6. TURNING OPERATION……………………………………………………………………… 35
8. PATTERN REPEATING……………………………………………………………………….. 37
9. THREADING OPERATION…………………………………………………........................ 39
LIST OF TABLES
S.NO DESCRIPTION Page. No
1. CNC MACHINE PARTS AND THEIRFUNCTIONS…………………………………… 24
`7
1. COMPUTER NUMERICAL CONTROL (CNC)
Computer numerical control (CNC) is the automated control of machining tools (drills,
boring tools, lathes) and 3D printers by means of a computer. A CNC machine processes a
piece of material (metal, plastic, wood, ceramic or composite) to meet specifications by
following a coded programmed instruction and without a manual operator.
`8
1.3.CONSTRUCTION DETAILS OF CNC
In general, a cnc machine tool consists of the following units:
(i) Computers
(ii) Control systems
(iii) Drive motors
(iv) Tool changes
According to the construction of cnc machine tools, it works in the following manner:-
1. The cnc machine controlled by the computer reads the program and translates it into
machine language, which is a programming language of binary notation used on
computers, not on cnc machines.
2. When the operator starts the execution cycle, the computer translates the binary
codes into electronic pulses which are automatically sent to the machine’s power
units. The control unit compares the number of pulses sent and received.
3. When the motor receives each pulse, they automatically transforms the pulse into
rotations that drive the spindle and lead screw, causing the spindle to rotate and
slide or move the table. The part on the, milling machine table or the tool in the
lathe turret is driven to a position specified by the program.
COMPUTERS:-
Cnc machines introduced in the late 1970s were less dependent on hardware and more
dependent on software. These machines store a program into memory when it is first read
in. This facilitated faster operation when producing number of identical parts, since the
program can be recalled from memory repeated without having to read it again.Cnc
machines use an on-board computer that allows the operator to read, analyze and edit
programmed instruction, while nc machines require operators to make a new tape to alter
a program. In essence, the computers distinguishes cnc from nc as with all computers,the
cnc machines computer also works on binary principal using only two characters, 1 & 0 for
information processing. When creating the program, the programmer does not care about
the machine language,instead he or she simply uses a list of codes i.e., G & M codes and
keys in meaningful information. Special built-in software complies theprogram into machine
language and machine moves the tools by servomotors. However, the ability to program the
machine is dependent on whether there is a computer in the machine control. Modern cnc
machines use 32-bit processors in their computers to allow fast and accurate processing of
information. This result in considerable saving of machining time.
CONTROL SYSTEM:-
There are two types of control systems on nc/cnc machines. The overall accuracy of the
machine is determined by the type of control loop used.
Open loop:The open loop control does not provide positioning feedback to the control
unit. The movement pulses are sent out by the control unit and are received by a special
type of servomotor called a stepper motor. The stepper motor then proceeds with the next
`9
movement command. Since this control only counts pulse and cannot identify discrepancies
in positioning, the control has no way of knowing whether the tool has reached the proper
location or not. The machine will continue this inaccuracy until somebody finds the error.
The open loop control can be used in applications in which there is no change in load
conditions, such as the cnc drilling machine. The advantage of open loop control system is
that it is less expensive, since I does not require the additional hardware and electronics
needed for positioning feedback. The disadvantage is difficulty of detecting positioning
error.
Closed loop:In the closed loop control system, the electronic movement pulses are sent
from the control to the servomotor, enabling the motor to rotate with each pulse. The
pulses are detected and counted by a feedback device called a transducer. With each step of
movement, a transducer sends a signal back to the control, which compares the current
position of the driven axis with the programmed position. When the number of pulses and
received match, the control starts sending out pulses for the next movement. Closed loop
systems are very accurate. Most have an automatic compensation for error, since the
feedback device indicates the error and the control makes the necessary adjustment to
bring the slide back to its position. They use ac,dc or hydraulic servomotors.
Drive Motors:The drive motors control the machine slide movement on cnc equipment.
They are classified into four basic types as follows:-
`10
motor controls the amount of rotation of the motor. Stepper motors are mostly used in
applications where low torque is required. Stepper motors are used in open loop control
system, while ac, dc or hydraulic servomotors are used in closed loop control system.
2. Dc servomotors: These are variable speed motors that rotate in response to the
applied voltage. They are used to drive a lead screw and gear mechanism. Dc servos provide
high torque output than stepper motors.
4.Fluid servomotors: It is also a variable speed motor. They are able to produce more
power or more speed in the case of pneumatic motors than electric servomotors. They
hydraulic pump provides energy to valves which are controlled by the mcu.
Tool changers:Most of the time, different cutting tools are used to produce one part of
machine. The tools have to be replaced quickly for the next machining operation. Owing to
this reason, the majority of cnc machine are equipped with automatic tool changer, such as
magazines on machining centers and turrets on turning centre. Tool changers may be
equipped for either random or sequential tool selection. In random tool selection, there is
no specific pattern of tool selection on machining centre, when the program calls for the
tool; it is automatically indexed into waiting position, where it can be retrieved by the tool
handling device. On the turning centre, turret automatically rotates, bringing tools into
position.
`11
FOR TURNING:-For turning operation, two axes are normally at that are required to
command the movement of the tool relative to the rotating work piece. The Z axis is the axis
of rotation of the work part and X axis defines the radial location of the cutting tool. This
arrangement is illustrated in the fig. the purpose of the coordinate system is to provide a
means of locating the tool in relation to the work piece. Depending on the cnc machine, the
part programmermay have several different
options available for specifying this location.
Floating zero: The second and more common feature on modern cnc machines
allows the machine operator to set the zero point any position on the machine table.
This feature is called floating zero. The part program is the one who decides where the
zero point should be located. The decision is based on part programming convince.
MODE OF POSITIONING:
`12
Incremental positioning:
Incremental positioning means that the next tool location must be defined with difference
to the previous too location. If in our drilling example, suppose that the previous hole had
been drilled at an absolute position of X=+4.000 and Y=+5.000. Accordingly , the incremental
position instructions would be specified as X=+2.000 and Y=+3.000, in order to move the
drill to the desired spot.
3.NUMERICAL CONTROL(NC)
Programmable automation in which the mechanical actions of a ‘Machine Tool’ are
controlled by a program containing coded alphanumeric data that represents relative
positions between a work head and a work part.
`13
NC COORDINATE SYSTEMS:
For flat and prismatic (block like) parts:
`14
3.Contouring cnc: Contouring is the most
complex, the most flexible, and the most
expensive type of machine tool control. It is
capable of performing both ptp and straight-
cut operation. In addition, the distinguishing
feature of contouring cnc systems is their
capacity for simultaneous control of more
than one axis movement of the machine tool.
The path of the cutter is continuously
controlled to generate the desired geometry
of the work piece. For this reason, contouring
system is also called continuous-path cnc system.
4.Linear Interpolation:
Linear Interpolation consists of any programmed points linked together by straight lines,
whether the points are close together or far apart (Fig. 11). Curves can be produced with
linear interpolation by breaking them into short, straight-line segments. This method has
limitations, because a very large number of
points would have to be programmed to describe
the curve in order to produce a contour shape. A
contour programmed in linear interpolation
requires the coordinate positions (XY positions in
two-axis work) for the start and finish of each
line segment. Therefore, the end point of one
line or segment becomes the start point for the
next segment, and so on, throughout the entire
program.
5.Circular Interpolation:
The development of MCUs capable of circular
interpolation has greatly simplified the process
of programming arcs and circles. To program
an arc (Fig. 12), the MCU requires only the
coordinate positions (the XY axes) of the circle
center, the radius of the circle, the start point
and end point of the arc being cut, and the
direction in which the arc is to be cut
(clockwise or counterclockwise) See Fig. 12.
The information required may vary with
different MCUs.
`15
4.PART PROGRAMMING
The programmer carefully converts the sequence of operations to set off instruction,
i.e.,(part program). Part programming consists of sequence of blocks, each block has a
specific function to perform. Machine read one block & command the tool or other slides to
perform that operation. After this controller shifts to the next block. In this way complete
machining is performed which consists of small step operation define by each block
.example,
Format : G02 x_z_i_k_f_(i,k format)
Or G02 x_z_r_f_
Here ,in first syntax,
i= distance between start point& centre point of arc along x-axis.
K=distance between start point& centre point of arc along z-axis.
In second syntax,
r= radius of the arc.
The G02 command is utilized to move the tool in the
circular arc profile with G02 the movement will be in the clockwise direction. The
movement taken will be at the programmed feed rate.
Manual part program:-The program contains G and M codes. G codes are called predatory
codes. They prepare the machine for cutting operation e.g. linear interpolation, circular
interpolation, rapid etc. M codes are called miscellaneous codes they perform all other
operation except for cutting like spindle on/off,
N10 G90 G00 X+100 Y-100 Z+50;(single block)
`16
`17
Programming tips:
Programming is just like any other work with good knowledge and appositive attitude; it can
be done right and with first class results. Here are some tips to get the best results from any
programming effort.
1. Approach cnc programming in a logical and methodological way.
2. Always calculate unknown values never guess.
3. Standardized a programming style and adhere to it.
4. Program dimensional values in absolute mode whenever possible.
5. Make a setup sheet and/or tooling sheet before programming, not after.
6. Program has many machining operations in a single setup as possible.
7. Use minimum number of tools for maximum number of jobs standardize.
8. Always program for the safety for cnc machining.
9. Document your work and store everything relating to the program development.
10. Watch for programming errors-syntax and logical-all errors are avoidable.
`18
5. TYPES OF CNC PROGRAMING
CNC programming is made of blocks & blocks are made by commands. Commands are
provided for different functions.
Block: Group of commands known as block. One block has one or more
commands. Block is started from sequence number and endedby end of block
command where sequence number is optional.
G-codes: These are preparatory function codes and used for different
functions.
`19
1.Axis movement:G0, G01, G02, G03, codes are used for programming of any axis.
G00= This code is used for tool positioning & free movement in air.
Format--G00 X…Z…;
G01= This code is used for linear movement of axis.
Format--G01 X… Z… F…;
G02= This code is used for linear movement of axis.
Format—G02 X… Z… R… F…;
G03= This code is used for linear movement of axis.
Format—G02 X… Z… R… F…;
G28= This code is used for linear movement of axis.
Format—G28 U0.0 W0.0;
2.Dwell Time:
G04X….(time in second)
G04 U….(time in second)
G04 P….(time in m.s.)
3.Plane Selection:
G17X-Y plane selection
G18X-Z plane selection
G19Y-Z plane selection
4.Inch/mm Mode Setting:
G20-program in inch
G21-program in mm
5.Stroke Check Function
G22-Stored stroke check function On
G23-Stored stroke check function Off
6.Referanc return:
G27- reference return check
G28- 1st ref. point
G29- return from 0 point
G30- 2nd ref. point
7.Skip Function:
G31- skip function
8.Thread Cutting:
G32- thread cutting
G34- variable lead threading cutting
`20
9. Tool Nose Radius:
G40- Tool nose radius compensation cancel
G41- Tool nose radius compensation left
G42- Tool nose radius compensation right
`21
M-CODES:Theseare miscellaneous function codes and it is used for start /stop of any
function.
M00- Program stop
M01- Optional stop
M02- Program end and restart
M03- Spindle rotation CW
M04- Spindle rotation CCW
M05- Spindle stop
M06- Tool changing in VMC
M07- Coolant On
M08- Coolant On/Off
M09- Coolant Off
M10- Chuck Declamp
M11- Chuck Clamp
`22
M16- Chuck ID selection
M18- Chuck OD selection
M19- Spindle Orientation
M20- Spindle Orientation cancel
M30- End of Main program
M32- Tailstock Quill forward
M33- Tailstock Quill retract
M34- Parts catcher forward
M35- Parts catcher retract
M46- Door open
M47- Door close
M50- Spindle lock
M51- Spindle unlock
M78- Steady rest open
M79- Steady rest hold
M82- Tail stock body fwd./unclamp
M83- Tail stock body ret./clamp
M84- Touch probe arm forward
M85- Touch probe arm retract
M98- Sub program call
M99- Sub program end
`23
Different addressing codes in CNC:
A-Extra axis
B-Extra axis
C-Extra axis
D-Cutter dia in VMC
F-Feed on axis
G-G code program
H-Tool length offset in VMC
I-The value of X from start point of radius to center of radius.
J-The value of Y from start point of radius to center of radius
K-The value of Z from start point of radius to center of radius
L-Loop in VMC
M-M code group
N-Sequence number
O-Program number
P-Peak depth in X
Q-Peak depth in Z
R-Radius
S-Spindle
T-Tool no. and offset no. in CNC
U-X axis value in incremental program
V-Y axis value in incremental program
W-Z axis value in incremental program
X- X axis value in absolute program
Y- Y axis value in absolute program
Z- Z axis value in absolute program
PROGRAM SCAN: CNC m/c Scan the program sequentially in blocks from Top
block to Bottom block.
PROGRAM HEADER:
Program No.
Sequence No.
Cancellation command
M/c home position
Tool & offset selection
Spindle rpm with direction
Coolant On
Tool positioning
`24
PROGRAM FOOTER:
Tool return to home position
Spindle stop
Coolant off
Program End & Reset
5.2.OPERATING MODE
Different functions:
Method—
Step 1—select auto
Step 2—select single block
Step 3—Press cycle start button -> single block
Will work on pressing one time to the cycle start button for next repeating cycle start
button.
`25
5.3.CNC MACHINE PARTS AND THEIR FUNCTIONS
`26
5.4 SOME G- CODES AND THEIR GROUP
`27
`28
5.5.METHOD OF INSERTING NEW PROGRAM
`29
6.CNC MACHINE START PROCEDURE
`30
7.OPERATING PANEL KEY OF CNC MACHINE
`31
8. CNC OPERATING
`32
8.2 Operating mode:
`33
`34
9. CNC SETTING
OFFSET: To make a new point in software or shafting any point in software from its
actual position is known as offset.
`35
10. SAMPLE PROGRAMS
`36
1.TURNING OPERATION:
2.TAPERING OPERATION:
`37
3.PATTERN REPEATING:
`38
4.THREADING:
`39
`40
`41
11.PROJECT WORK ON CNC MACHINE
TURNING OPERATION:
PROGRAM:
1ST OPERATION
O2255;
N1;
`42
G03 X43.70 Z-0.52 R0.2 F0.08; G0 X35.0 Z10.0;
G01 G40 Z-2.0 F0.15; G0 Z2.0;
G01 X43.8; X35.6;
G03 X45.45 Z-2.9 R0.9; Z1.0;
G01 Z-9.0 F0.12; G01 G41 X33.6 Z0.0 F0.1;
G0 U2.0; A250.0 R0.5 F0.1;
G0 Z20.0; A200.0 X31.8 Z-0.95 F0.1;
G28 U0.0 W0.0 M05; G01 G40 U-1.0;
M01; Z20.0 M09;
N2; G28 U0.0 W0.0 M05;
G28 U0.0 W0.0 ; M01;
G97 S2000 M03; M30;
T0303 M07;
G0 X27.0 Z10.0; 2nd OPERATION:
Z2.0;
/ G01 Z-25.5 F0.15; O0995;
/G0 U-1.0 Z1.0; N1;
/X29.5; G28 U0.0 W0.0;
/G01 Z-25.5 F0.15; G97 S2000 M03;
/G0 U-1.0 Z1.0; T0707 M07;
X30.0 G0 X50.0 Z20.0;
G01 Z-25.5 F0.15; Z2.0;
G0 U-1.0 Z1.0; /G01 X29.0 F0.15;
X31.2; /G0 X50.0 Z3.0;
G01 Z-25.5 F0.15; /Z1.5;
G0 U-1.0 Z1.0; /G01 X29.0 F.15;
Z20.0 M09; /G0 X50.0 Z1.5;
G28 U0.0 W0.0 M05; /Z0.5;
M01; /G01 X29.0 F0.15;
N3; /G0 X46.0 Z2.0;
G28 U0.0 W0.0; /G01 Z-15.0 F0.15;
G97 S2000 M03; /G0 X47.0 Z2.0;
T0404 M07; X44.0;
`43
G01 Z-1.98 F0.15; G0 X51.0 Z10.0;
G0 X46.0 Z0.0; G0 Z1.0 M07;
G01 X27.0 F0.15; G01 Z-5.5 F0.25;
G0 X39.0 Z0.5; G01 X50.45 F0.15;
G01 G42 X41.62 Z0.0 F0.15; G02 X50.45 Z-16.0 R7.74;
G01 X43.44 A110.0 F0.08; G0 U2.0;
G03 X43.70 Z-0.52 R0.2 F0.08; G0 Z-5.5;
G01 G40 Z-2.0 F0.15; G01 X49.45 F0.15;
G01 X43.8; G02 X49.45 Z-16.0 R7.74;
G03 X45.45 Z-2.9 R0.9; G0 U2.0;
G01 Z-18.0 F0.12; G0 Z-5.5;
G0 U2.0; G01 X48.45;
G0 Z20.0; G02 X48.45 Z-16.0 R7.74;
G28 U0.0 W0.0 M05; G0 U2.0;
M01; G0 Z-5.5;
N2; G01 X47.45;
G28 U0.0 W0.0; G02 X47.45 Z-16.0 R7.74;
G97 S2000 M03; G0 U2.0;
T0202 M07; Z-5.5;
G0 X35.0 Z20.0; G01 X46.45;
G0 Z1.0; G02 X46.45 Z-16.0 R7.74;
G01 G41 X35.40 Z0.0 F0.18; G0 U2.0;
G01 X35.22 A240.0 F0.08; G0 Z-4.0;
G02 X32.58 Z-1.62 R3.0; G01 G42 X45.55 Z-5.13 F0.12;
G01 X31.70 A200.0; G03 X44.59 Z-6.18 R1.5
G0 G40 U-1.0; G02 X44.59 Z-17.02 R7.74;
G0 Z20.0 M09; G03 X45.65 Z-18.07 R1.5;
G28 U0.0 W0.0 M05; G0 G40 U2.0;
301; G0 Z20.0 M09;
N3; G28 U0.0 W0.0 M05;
G28 U0.0 W0.0; M01;
G97 S2000 M03; M10;
T0101; M30;
`44
12.RESULT & CONCLUSION
Hence I have successfully studied about the CNC machine tools and their functions. With
their G & M codes and operation performed on
these type of machine tool.
The importance of lathes and milling machines even if they are conventional cannot be
undetermined. These machines have played a real important role in bringing about
industrial revolution and have laid the foundations. But the bringing about of the new
technology in the present era is very important. The conventional machines required in a
small quantities whereas the CNC machines must be increased to improve the quantity and
quality of production.
`45
13.REFERENCES
1.www.wikipedia.org/wiki/Main
@www.engr.uvic.ca
3. www.slideshare.net
5.http://www.pc-control.co.uk/index.hmt
`46