CIM & ML Lab_Manual
CIM & ML Lab_Manual
Laboratory Manual
For
B.Tech
VII SEMESTER
(B20ER0706)
University Vision
“REVA University aspires to become an innovative university by developing excellent
human resources with leadership qualities, ethical and moral values, research culture and
innovative skills through higher education of global standards”.
University Mission
1. To create excellent infrastructure facilities and state-of-the-art laboratories and incubation
centers
2. To provide student-centric learning environment through innovative pedagogy and
education reforms
3. To encourage research and entrepreneurship through collaborations and extension
activities
4. To promote industry-institute partnerships and share knowledge for innovation and
development
5. To organize society development programs for knowledge enhancement in thrust areas
6. To enhance leadership qualities among the youth and enrich personality traits, promote
patriotism and moral values.
School Vision
“Aspires to be recognized globally for outstanding value based education in mechanical and
allied areas and research leading to well-qualified engineers, who are innovative,
entrepreneurial, successful in their career and committed to the development of the country.”
School Mission
1. To impart quality education to the students and enhance their skills to make them globally
competitive engineers in mechanical and allied areas.
2. To promote multidisciplinary study, cutting edge research and expand the frontiers of
engineers’ profession in mechanical and allied areas.
3. To create state-of-art facilities with advanced technology for providing students and faculty
with opportunities for innovation, application and dissemination of knowledge.
4. To prepare for critical uncertainties ahead for mechanical engineering and allied areas and to
face the challenges through clean, green and healthy solution.
5. To collaborate with industries, institutions and such other agencies nationally and
internationally to undertake exchange programs, research, consultancy and to facilitate
students and faculty with greater opportunities for individual and societal growth.
1. Introduction to CAD
CAD involves the use of computers for design, analysis and modification of a new or existing
product. In CAD systems, the images are created using basic geometric elements such as points,
lines, circles, and curves. These can be modified (rotated, moved, reduced etc), rotated and
transformed on the CRT screen using the respective commands leading to creation of desired
model.
Geometric Modeling: Geometric modeling in CAD refers to the creation of the geometry
of an object, which is the computer compatible mathematical description. The software for CAD
is the interface between the designer and the hardware. In geometric modeling, the designer
creates the graphical image of the required product on the CRT screen of the ICG system by
inputting three types of commands to the computer. The first type of command generates basic
geometrics like points, lines, curves etc. The second type of commands is used to form
transformations actions like scaling, modifying, rotation etc. The third type of command is used to
obtain desired shape of the product. During geometric modeling process, the computer converts
these commands into a mathematical model, stores it in its data storage place, and displays on
the CRT screen.
1. Wire frame modeling - 2D: Two-dimensional representation is done for flat objects.
2. Surface modelling - 2 ½ D: This represents a 3-D object without any lateral surface details.
3. Solid modelling: 3D- Three-dimensional representation with complete geometry.
Wire Frame Modeling (WFM) is the basic form of geometric modeling. In this wire frames are used
to represent an object. The object is displayed by interconnecting lines.
Surface modeling is the enhancement of WFM, in which the object is represented with surfaces.
Solid Modeling uses solid geometric shapes such as cylinders, cubes etc called primitives to construct an
object. It also considers physical properties of the created object based on the inputs given.
Part of the system involves flexible manufacturing, where the factory can be quickly
modified to produce different products, or where the volume of products can be changed
quickly with the aid of computers. Some or all of the following subsystems may be found in a CIM
operation:
Computer-aided techniques:
CAD (computer-aided design)
CAE (computer-aided engineering)
CAM (computer-aided manufacturing)
CAPP (computer-aided process planning)
CAQ (computer-aided quality assurance)
PPC (production planning and control)
ERP (enterprise resource planning)
A business system integrated by a common database.
Technologies:
FMS, (flexible manufacturing system)
ASRS, automated storage and retrieval system
AGV, automated guided vehicle
Robotics
Automated conveyance systems & others.
NUMERICAL CONTROL
According to EIA.
NC is defined as a system in which actions are controlled by the direct insertion of
numerical data some points, where the system must automatically interpret at least portion of
this data.
‘’NC machine is a combination of a machine tool and control system’’.
Numerical control can be applied to a wide variety of processes. The applications divide into two
categories.
i) M/C tool application such as drilling, milling, turning and other metal working.
ii) Non machine tool application such as assembly, drafting and inspection.
1) Program of instructions: It is the detailed step-by-step commands that direct the action of the
processing equipment. In m/c tool application. The program of instructions is called a PART
PROGRAM. It is coded in numeric or symbolic form on some type of input medium that can
be interpreted by the controller unit. The program contains both technical information
(regarding the type of tool, speed &feed) & dimensional information such as length ,width
.radii etc.
o INPUT MEDIA: PUNCHED CARDS---7 3/8’’ X 3 ¼’’ having 80 columns & 20rows
o FLOPPY DISKS----Mylar coated with magnetic oxide cartridge
o MYLAR TAPE ------ Paper Mylar /solid Mylar.
o MAGNATIC TAPE, DISKETTES AND ELECTRONIC TRANFER.
1. Machine control unit: MCU consists of a micro computer and related control hardware that
stores the program of instructions and executes it by converting each command into mechanical
actions of the processing equipment, one command at time .the different types of MCU, are.
o Housed MCU.
o Swing around MCU.
o Stand alone MCU.
FEATURES OF CNC.
The various features of CNC are.
Storage of more than one part program.
Various forms of program input.
Program editing at the machine tool.
Fixed cycles and programming subroutines.
Interpolation
Positioning features for setup
Cutter length and size compensation.
Acceleration and declaration calculation.
Communication interface.
Diagnostics.
Control start-up Diagnostics.
Malfunction and failure analysis.
Tool life monitoring.
Programming Diagnostics.
Preventive maintenance notices.
CLASSIFICATION OF NC SYSTEMS
The classification of NC machine tools is based on,
1. According to the type of machine.
i) point-to – point.
ii) Straight line or straight cut.
iii) contouring or continues path
POINT-TO-POINT
PTP system is also called as positioning system, move the work table to a
programmed location without regard for the path taken to get to that location .once the
move has been completed, some processing action is accomplished by the work head at the location
.thus it consists of a series of point location at which operation are performed as shown in the
above figure 2.
STRAIGHT CUT:
CONTOURING:
The continuous path systems are capable of continuous, simultaneous control of two or more
axes. It is a universal type system which can perform all kinds of motion .It provides control of
the tool trajectory relative to the work part as shown in the figure 4.
2. According to the structure of the controller hardware based.
i) NC II) CNC
In absolute positioning- The work head locations are always defined with respect to the axis system.
In incremental positioning- The next work head position is defined relative to the locate
Data in absolute dimension system, refers to a fixed reference point in the drawing , which
is also known as coordinate zero point .The dimensions lines run parallel to the coordinate
axes &always start at the reference point as shown in fig 5.
Absolute dimensions are also called as “REFERENCE DIMENSIONS”.
Point X Y
P1 0 0
P2 20 0
7
0
P3 0 20
40
P4 50 0
P5 0 -20
P6 30 0
P7 0 40
P8 -30 30
P9 -70 0
1. If manual programming is used, with incremental system the inspection of the part
program, before punching the tape is easy.
2. Minor image programming is facilitated with incremental system.
3. The performance of the incremental system can be checked by a closed-loop tape.
The last position command on the tape causes the table to return to the initial
position.
NC COORDINATE SYSTEM
Fig 7: Coordinate system used in NC (a) For flat and prismatic work (b) For rotational work
(turning)
To program the NC processing equipment, a std, axes system must be defined by which the position
of the work head relative to the work part can be specified.
SCHOOL OF MECHANICAL ENGG. REVA UNIVERSITY Page 10
COMPUTER INTEGRATED MANUFACTURING & MACHINE LEARNING LAB B20ER0706
The both axis systems are based on the Cartesian coordinate system. The axis system for flat and
prismatic parts consists of three linear axes (X.Y.Z) plus three rotational axes (a, b,
c) as shown in the fig 7. In the most m/c tool application the x & y axis are used to move and
position the work table to which the part is attached and the Z-axis is used to control the vertical
position of the cutting tool. The (a,b,c)rotational axis specifies angular position about (x,y,z)axis.
The coordinate axis for a rotational NC system is illustrated in fig, which are associated the lathe
and turning centres. Although the work rotates, the y axis isn’t used. The path of the cutting tool
relative to the rotating W/P is defined in the X-Z plane, where the x-axis is the radial location and
the Z-axis is parallel to the axis of the rotation of the part.
Disadvantages of NC system.
1. Higher investment cost.
2. Higher maintenance effort.
3. Skilled labour required which is more expensive.
4. Down time is very expensive.
5. Part programming mistakes.
6. Not cost effective for low production levels,
2.7 NC PROCEDURE
The various basic steps in NC procedure,
Process planning.
Part programming.
Part program entry.
Providing the part programs.
Production.
1. Process planning:
The part programmer will often carry out the task of process planning process
planning is the procedure of deciding what operations are to be done on the component, in
what order and with what tooling and work holding facilities.
The process planning procedure is as follows,
Receive the part drawing from part drawing information, check suitability of part to be
machined against the machine capacity.
Determine a method of driving the components. (Chuck type, chuck size type of jaw, collate
size, face driver etc.) and method of machining .
Identify the tooling required for machining and determine the order of machining and
tooling stations.
Determine planned stop.(cycle interrupt procedure , incorporating block delete
codes) for checking dimensional sizes where required by operator .
Determine cutting speeds based on.
Component material, method of driving, rigidity of components.
Tooling selected for roughing and finishing.
Determine the depth of cut and feeds for roughing operation.
Determine surface finish requirements and feed rates.
Allocate tool offsets as required.
Complete planning sheet.
2. PART PROGRAMMING
Part programming consists of planning documentation/documents the sequence of
processing steps to be performed on an NC machines. The part programmer must have
knowledge of machining as well as geometry and trigonometry.
Part programming can be accomplished using a variety of procedures ranging from highly
manual to highly automated methods.
to be used so that the axes movement can be easily monitored, which is carried out with or
without mounting the component on machine.
Dry run:
A dry run consists of running the part program in auto mode I this, the component is not
installed on the machine table and cutting is done in air.
The purpose of this run is to verify the programmed path of the tool under
continuous operation and to check whether adequate tolerance/ clearance exists b/w the
clamping arrangement and other projections with the setup.
Graphical simulation:
A graphical simulation package emulates the machine tool and using computer graphics,
plots out the machine movements on a VDU screen.
5. PRODUCTION:
The processing of a component with a proper sequence of operation in a factory model is
known as production.
The words required for one machine tool type may differ from those required for a
different type.
The words in a block are in the following order.
Sequence number (N-word).
Preparatory word (G-word).
Coordinates(X, Y, Z words for linear axes U, V, W words for rotational axes.
Feed rate (F- word).
Spindle speed(S-word).
Tool selection (T-word)Miscellaneous command.(M-word)
End -of-block (EOB Symbol)
Word
Prefix Function
N Sequence number; identifies block of instruction from one to four digits can be used
G Preparatory word; prepares controller for instructions given in the block.
Coordinate data for the three linear axis, specified in either inches or Millimeter for
X,Y,Z
absolute programming.
U,V,W Coordinate data for incremental moves.
Coordinate values of arc center, corresponding to X,Y and Z axis respectively used in
I, J, K
circular interpolation .
F Feed rate per minute or per revolution in either mm/inches as specified by G words
Spindle rotation speed in revolutions /minute. (It is expressed as a % of maximum
S speed available on machine).
T Tool selection, used for m/c tools with automatic tool changes or tool turret.
Miscellaneous command; used to signal an action from a miscellaneous group of
M commands.
M- WORDS
M-words are used to specify miscellaneous or auxiliary function that are available on the
machine tool. Examples:
starting the spindle rotation.
Stopping the spindle for a tool change.
Turning the cutting fluid on and off ….miscellaneous commands are normally placed at
the end of the block.
M-CODE: These are instruction describing miscellaneous function like the calling the tool,
spindle rotations, coolant on ……etc.
M CODES. FUNCTION
M00 Program stop; used in the middle of the program.
M01 Optional program stop; active only when optional stop required’
M02 Program end. (M/c stop).
M03 Spindle forward (clockwise).
M04 Spindle forward(counter clockwise direction)’
M05 Spindle stop.
M06 Tool change-execute tool change, either manually or automatically. If
manually operator much restarts m/c. doesn’t include selection of tool. This
is done by T-word if automatic.
M07 Cutting fluid on flood’
M08 Coolant off.
M09 Coolant on.
M10 Chuck opens.
M11 Chuck close.
M30 End of program.(program rest and rewind).
M98 Sub program call.
M99 Sub program exit.
01000 In ,Fanuc controller first line has to be started with letter ‘o’ followed by 4 digit number.
Billet X….Z…. It defines the w/p dimensions with dia and length.
G21/G20 Code specifies that program data input in metric or in imperial units.
G98/G99 Code specifies feed in mm/minute or mm/revolution compensation cancel.
G40 Compensation cancel.
G50 S1800 Clamps the spindle speed at 1800 rpm.
G28 U0 W0 Make the tool to go home position U&Ware secondarymovements about X and y axis.
M06 T0101 M06 –tool change.
The first two digit specify the tool position in the turret and last two digits
denotes the offset number.
M03 /M04S… M03: Makes the spindle rotate in clock wise direction
Mo4: Makes the spindle to rotate in Counter clock wise direction
s……: spindle rotates at 1000 rpm.
Goo gives rapid position of the tool to a point X…. Z…… which is just above the
G00 X…. Z…. billet .this point is called as tool entry points.
END OF PROGRAM
G28 U0 W0
M05
M02/M30
G28 U0 W0 Makes the tool to go to home position U and w secondary Movements
about X &Z-axis.
M05 Stop the spindle rotation
M02/M30 M02 optional stop / M30 program stop and rewind
The coordinate system for designating the axes is the conventional “Right Hand Coordinate System”
as shown in Fig.9. A labeling of the axes is a right hand coordinate system whenever the
fingers of the fight hand are aligned with the positive X axis and are then rotated (through the
smaller angle) toward the positive Y axis, then the thumb of the right hand points in the direction
SCHOOL OF MECHANICAL ENGG. REVA UNIVERSITY Page 20
COMPUTER INTEGRATED MANUFACTURING & MACHINE LEARNING LAB B20ER0706
of the positive Z axis. Otherwise, the orientation is a “Left Hand Coordinate System”. The right
hand coordinate system is also known as “Clockwise Rotating Coordinate System”. The reason
for this is the sequence of the axis definitions if the X-axis is rotating in the direction of the Y-axis,
the movement is the same as if a screw is turned in the Z direction as shown in Fig.10.
Fig 9: Right Hand Co-ordinate Systems Fig 10: Clock wise Rotating Coordinate system
One could use his right hand to get these alternative relative positions of the same right hand
coordinate system as shown in Fig.11. In programming it must be assumed that the work piece is
stationary and the tools move in the coordinate system. The work piece is positioned within the
coordinate system so that the Z-axis coincides with the turning center- line (axis of rotation) and
the X and Y coordinates always have the same values. Therefore the Y coordinate is not used in
turning.
Machine zero point (M): is specified by the manufacturer of the machine. This is the zero point
for the coordinate systems & reference points in the machine. On turning lathes, the machine
zero point as shown in FIG.13 & FIG.14 is generally at the centre of the spindle nose face. The
main spindle axis (centre line) represents the Z-axis; the face determines the X-axis. The directions
of the positive X and Z-axis point toward the working area. When the tool traverses in the positive
direction, it moves away from the work piece
Reference Point (R): This point serves for calibrating and for controlling the measuring system
of the slides and tool traverses. The position of the reference point as shown in FIG.15 is
accurately predetermined every traverse axis by the trip dogs and limit switches Therefore, the
reference point coordinates always have the same, precisely known numerical value in
relation to the machine zero point. After initiating the control system, the reference point must
always be approached from all axes to calibrate the traverse measuring system. If current slide
and tool position data should be lost in the control system as, for example, through an electrical
failure. The machine must again be positioned to the reference point to re-establish the proper
positioning values
the dimensions in the work piece drawing can be conveniently converted into coordinate values
and orientation when damping/chucking, setting up and checking, the traverse measuring
system can be affected easily. For turned parts, the work piece zero point should be placed along
the spindle axis (centre line), in line with the right-hand or left-hand end face of the finished
contour as shown in FIG.16. Occasionally, the work piece zero point is also called the “Program
Zero Point”.
Fig 16. Examples of Work piece Zero point position for turned parts
Tool Point: Which machining a work piece, it is essential to able to control the tool point or the
tool cutting edges in precise relationship to the work piece along the machining path Since
tools have different shapes and dimensions, precise tool dimensions have to be established
beforehand and input into the control system. The tool dimensions arc related to a fixed tool
setting point during pre-setting.
The tool selling point .E is located at a certain point on the tool holder as shown in Fig. 17. This
setting point permits measuring of tools away from the CNC machine. The data thus measured
such as tool length, tool point offset or tool radius is input into the tool data storage
(memory) or the control system. The mate of the tool setting point is the Socket point N on the
tool carrier. When the tool or tool holder is inserted into the tool carrier (e.g., turret), the
setting point and the tool socket point coincide.
TAPERTURNING CYCLE,
G90 X……. Z..... R…….. F……..
X—Diameter to which the movement is being made.
Z—Z-axis coordinate to which movement is being made.
F—Feed rate.
R—The different in incremental of the cut start radius value and cut Finish radius value.
If an ‘R’ value is specified in the command format of G90 cycle , tapering Will be
performed.
G75 R1
G75 X14 W-2 P100 Q1500 F15
Peck Drilling
Syntax format for end face peck drilling on lathe machines.,
G74 R……
G74 Z…….. Q……… F………….
R : Return Amount / Relief Amount ,1mm
Z : Total Depth F: Feed Rate
Q : Depth of cut ( Incremental mode) Expressed in Microns
For centre drill - 0.1mm = 100 microns
For Peck drill – 0.4mm = 400 microns
PROGRAM NO 1:
70
PROGRAM NO 2.
PROGRAM NO 3.
PROGRAM NO 4:
PROGRAM NO 5:
PROGRAM NO 6:
PROGRAM NO 07:
PROGRAM NO 8:
PROGRAM NO 9:
PROGRAM NO 10:
6 Introduction to MILLING
Machining of a work piece by an NC program requires a coordinate system to be
applied to the machine tool. The entire machine tools have more than one slide, it is
important that each slide is identified individually. There are three planes in which
movement can take place,
Longitudinal
Vertical
Transverse
Each plane is assigned a letter and is referred to as an axis, i.e,
Axis x
Axis Y
Axis Z
The three axes (coordinate system) which are identified are as shown below.,
The z-axis is always parallel to the main spindle of the machine. The X axis is always parallel to the
work holding surface and always at right angles to the Z axis. The y-axis is at right angles to both
Z and X axis.
Program End
Write the manual part programming for the profile as shown below:-
Program No 1:
Program No 2:
Program No 03:
Program No 04:
Program No 05:
Program No 06:
Program No 07:
The Machine learning life cycle as shown in below figure, involves seven major steps,
which are given below:
Gathering Data
Data preparation
Data Wrangling
Analyse Data
Train the model
Test the model
Deployment
1. Supervised learning
Supervised Learning is the types of machine learning in which machines are trained using
well "labelled" training data, and on basis of that data, machines predict the output. The labelled
data means some input data is already tagged with the correct output.
In supervised learning, the training data provided to the machines work as the supervisor
that teaches the machines to predict the output correctly. It applies the same concept as a
student learns in the supervision of the teacher. Supervised learning is a process of providing
input data as well as correct output data to the machine learning model. The aim of a supervised
learning algorithm is to find a mapping function to map the input variable(x) with the output
variable(y). In the real-world, supervised learning can be used for Risk Assessment, Image
classification, Fraud Detection, spam filtering, etc.
Types of supervised Machine Learning Algorithms:
Supervised learning can be further divided into two types of problems:
2. Unsupervised Learning
is a machine learning technique in which models are not supervised using training
dataset. Instead, models itself find the hidden patterns and insights from the given data. It
can be compared to learning which takes place in the human brain while learning new
things. Unsupervised learning cannot be directly applied to a regression or classification
problem because unlike supervised learning, we have the input data but no corresponding
output data. The goal of unsupervised learning is to find the underlying structure of dataset,
group that data according to similarities, and represent that dataset in a compressed
format.
Types of Unsupervised Learning Algorithm:
Random Forest is a popular machine learning algorithm that belongs to the supervised learning
technique. It can be used for both Classification and Regression problems in ML. It is based on the
concept of ensemble learning, which is a process of combining multiple classifiers to solve a
complex problem and to improve the performance of the model.
Random Forest is a classifier that contains a number of decision trees on various subsets of the
given dataset and takes the average to improve the predictive accuracy of that dataset." Instead
of relying on one decision tree, the random forest takes the prediction from each tree and based
on the majority votes of predictions, and it predicts the final output. The greater number of trees
in the forest leads to higher accuracy and prevents the problem of over fitting. The below figure
explains the working of the Random Forest algorithm:
Below are some points that explain why we should use the Random Forest algorithm:
It takes less training time as compared to other algorithms.
It predicts output with high accuracy, even for the large dataset it runs efficiently.
It can also maintain accuracy when a large proportion of data is missing.
Logistic regression
is much similar to the Linear Regression except that how they are used. Linear Regression
is used for solving Regression problems, whereas Logistic regression is used for solving
the classification problems. In Logistic regression, instead of fitting a regression line, we
fit an "S" shaped logistic function, which predicts two maximum values (0 or 1). The curve
from the logistic function indicates the likelihood of something such as whether the cells
are cancerous or not, a mouse is obese or not based on its weight, etc. Logistic Regression
is a significant machine learning algorithm because it has the ability to provide
probabilities and classify new data using continuous and discrete datasets. It can be used
to classify the observations using different types of data and can easily determine the
most effective variables used for the classification. The below figure is showing the
logistic function:
Binomial: In binomial Logistic regression, there can be only two possible types of
the dependent variables, such as 0 or 1, Pass or Fail, etc.
Multinomial: In multinomial Logistic regression, there can be 3 or more possible
unordered types of the dependent variable, such as "cat", "dogs", or "sheep"
Ordinal: In ordinal Logistic regression, there can be 3 or more possible ordered
types of dependent variables, such as "low", "Medium", or "High".
Decision Tree is a Supervised learning technique that can be used for both classification
and Regression problems, but mostly it is preferred for solving Classification problems. It
is a tree-structured classifier, where internal nodes represent the features of a dataset,
branches represent the decision rules and each leaf node represents the outcome. In a
Decision tree, there are two nodes, which are the Decision Node and Leaf Node. Decision
nodes are used to make any decision and have multiple branches, whereas Leaf nodes are
the output of those decisions and do not contain any further branches. The decisions or
the test are performed on the basis of features of the given dataset. It is a graphical
representation for getting all the possible solutions to a problem/decision based on given
conditions. It is called a decision tree because, similar to a tree, it starts with the root
node, which expands on further branches and constructs a tree-like structure. In order to
build a tree, we use the CART algorithm, which stands for Classification and Regression
Tree algorithm. A decision tree simply asks a question, and based on the answer (Yes/No),
it further split the tree into sub trees. Below figure explains the general structure of a
decision tree:
Exercise1- Machining of Aluminium material over CNC mill machine and identification
of optimal cutting forces by Machining Learning algorithm.
The following flow chart illustrates the steps to be adopted to get the optimize cutting
forces by developing ML algorithm.
Start
Start
Exercise -2 Machining of Aluminium material over CNC mill machine and binary
conversion of optimal machining parameters by Machining Learning algorithm.