Cim Automation Lab Manual 10me78
Cim Automation Lab Manual 10me78
Cim Automation Lab Manual 10me78
B M S INSTITUTE OF TECHNOLOGY
YELAHANKA, BANGALORE – 64
DEPARTMENT OF MECHANICAL ENGINEERING
VII SEMESTER
Vision
To become one of the best mechanical engineering departments in the country and aim to
achieve global and societal recognition.
Mission
To impart quality education in Mechanical Engineering and allied areas by providing
state-of-the-art infrastructure and dedicated faculty.
To provide conducive environment for both students and faculty to pursue higher
education and research to work ethically for the benefit of society.
PEO-3: Excel in higher studies, research and adapt in a world of constantly developing
technology
Present technology has a high degree of automation which requires qualified and innovative
professionals for technological developments. Graduates are required to upgrade their
knowledge by continuous learning to meet the challenges of changing technology.
Programme Outcomes (PO)
PART - A
CNC part programming using CAM packages. Simulation of Turning, Drilling, Milling
operations. 3 typical simulations to be carried out using simulation packages like Master-
CAM, or any equivalent software.
PART - B
PART - C
Scheme of Examinations
Do’ s
Don’ts
1. Bring Pen drives / Mobile / CDs inside the lab. In case they are found, they will be
confiscated.
2. Change any setting on the computer.
3. Leave the lab without the permission of the staff concerned / instructor.
4. Turn on your monitor and start working until instructions have been given.
5. Start the machine without knowing its operation.
CNC PROGRAMMING
N_ G_ X_ Y_ Z_ R_ F_ S_ T_ M_
N is the Sequence number. Each block or line starts with a sequence number which
identifies the block. It gives an identifying number for each block of information. It is
generally good practice to increment each block number by 5 or 10 to allow additional blocks
to be inserted if future changes are required.
G is the Preparatory functions which are used to set the control for the various
machine movements such as linear movement, circular movement. Preparatory functions
preapares the controller to carry the instructions that are to follow after the G letter.
X,Y & Z are used to specify the co ordinates along X,Y & Z axes. R is the arc radius
to be used in circular interpolations. F is the Feed Rate in mm/min or mm/rev. S is the spindle
speed in RPM. T is the tool function which specifies the type of the tool & its offset number
in automatic tool changer.
M is the Miscellaneous function used to perform auxillary functions which do not
relate to the dimensional movements of the machine tool or the cutting tool.
SEE NC TURN
See NC turn is special purpose CNC part programme verification software used for
the turning center programmes. Turning centers typically use only X and Z axis as shown in
the fig below. The X-axis denotes the axis perpendicular to the spindle and controls the
diameter of the part. The Z-axis denotes the movement of the tool parallel to the spindle axis
and controls the length of the part.
Spindle
Workpiece
Chuck
Axes convention :
The main screen of the See NC turn consists of three screens namely
1. Programme editor screen : Wherein the programmer enters the part programmes.
2. Syntax error message screen : Where in the errors in the part programme are
displayed.
3. Tool path simulation screen : Where in the specified path of the tool can be
observed.
PROCEDURE
The G00 command is a rapid tool move. A rapid tool move is used to move the tool linearly
from position to position without cutting any material. When the tool being positioned at a
point preparatory to a cutting motion, to save time it is moved along a straight line at Rapid
traverse, at a fixed traverse rate which is pre-programmed into the machine's control system.
Typical rapid traverse rates are 10 to 25 m /min., but can be as high as 80 m/min.
The G01 command is mainly used for the linear removal of material from a workpiece. Any
combination of the X or Z axes can be used. The machine tool wiill follow a linear trajectory
from the current position to the target position. The tool moves along a straight line in one or
two axis simultaneously at a programmed linear speed, the feed rate.
Circular Interpolation is defined by the G02 command. It executes all circular or radial cuts
in a clockwise motion. The G02 command requires an endpoint for the move, the radius, and
a feedrate.
The G03 command executes all radial cuts in a counterclockwise motion. It requires an
endpoint for the move, then the radius, the distance from the startpoint to the centerpoint, and
a feedrate.
G04 DWELL
N_ G04 P_
The G04 command is a nonmodal dwell command that halts all axis movement for a
specified time while the spindle continues revolving at the specified rpm. A dwell is
sometimes used to allow for the clearance of chips .
The G20 command defaults the system to inch units. When a program is being run and the
G20 command is encountered, all coordinates are stated as inch units. This command is
usually found at the beginning of a program. However, it can be used to switch between inch
and metric units while the middle of a program.
The G21 command defaults the system to metric units. When a program is being run and the
G21 command is encountered, all coordinates are stated as millimeter units. This command is
usually found at the beginning of a program. However, it can be used to switch between
metric and inch units in the middle of a program.
The G28 command is commonly used prior to an automatic tool change. It allows the
existing tool to be positioned to the predefined reference point automatically via an
intermediate position. This ensures that when the tool turret is engaged, it is properly aligned
and clears the workpiece.
Thread cutting is done by moving the tool along the thread repeatedly at different depths tiil
the final thread profile is formed. Each cut must start at the same angular position on the part.
The spindle has an encoder, which generates a pulse at exactly the same angular position in
every revolution. When a threading motion is programmed, the linear motion of the tool
starts when this pulse is detected. This ensures that every cut starts at the same angular
position. Thread cutting must be done at constant spindle speed.
Block format
N__ G33 X__ Z__ F__
X, Z are the end point of the thread and F is the pitch of the thread.
The G40 command cancels any cutter compensation that was applied to the tool during a
program. It also acts as a safeguard to cancel any cutter compensation applied to a previous
program or G-codes.
The G41 command applies cutter compensation to the left hand side of the programmed tool
path. This amount is equal to the current tool's nose radius value, which is stored in the Tool
Offset Register table of the controller. This register number is referenced by the last two
digits in the tool change command. For example, a tool change command with T0202 will
reference the tool nose radius value in register #2.
The G42 command applies cutter compensation to the right hand side of the programmed
tool path. This amount is equal to the current tool's nose radius value, which is stored in the
Tool Offset Register table of the controller.
CANNED CYCLES:
A canned cycle simplifies a program by using a few blocks containing G-codes functions to
specify the machining operations usually specified in several blocks.
The G70 command is used immediately after a roughing cycle, such as a G71 Rough
Turning, or G72 Rough Facing cycle command. The remaining material is machined as
specified by the P and Q block number values, which point to the start and finish blocks of
the desired part profile contour.
Format
G71 U (d) R (e)
G71 P (n) Q(n) U(u) W(w) F(f)
N (n) _ _ _ _
_______
_______
N (n)_ _ _ _
d = Depth of cut
e = Retract amount
n = Number of the first block of the shape
n = Number of the last last block of the shape
u = Finishing allowance in X
w =Finishing allowance in Z
f = Feed rate
Format
G71 W(d) R (e)
G71 P (n) Q(n) U(u) W(w) F(f)
N (n) _ _ _ _
_______
_______
N (n) _ _ _ _
d = Depth of cut
e = Retract amount
n = Number of the first block of the shape
n = Number of the last last block of the shape
u = Finishing allowance in X
w =Finishing allowance in Z
f = Feed rate
The G72 command automatically faces off a part to a predefined profile, with preset offsets
and feedrates leaving an allowance for finishing. It reads a program segment specified by the
P and Q letter addresses and determines the number of passes, the depth of cut for each pass,
and the number of repeat passes for the cycle.
N_ G74 X0 Z_ K_ F_
The G74 command involves individual peck moves in each drilling operation. When this
command is invoked, the tool positions itself as in a standard G81 drill cycle. The K value
specifies the peck depth.
N_ G75 R(e)
N_ G75 X_ Z_ P_ Q_ F_
The G75 command invokes an outside diamter groove cycle. This cycle involves plunges
into the workpiece from the outside of the workpiece parallel to the X axis. The X value is
the final diameter. The Z value represents the final Z position. The R value specifies the
retract after every plunge. The P and Q values specify the incremental movements in the X
and Z axes, respectively.
The G76 command automatically performs all cutting operations required to achieve a
thread. The G76 cycle code is used for the CNC lathe single point threading applications.
This code allows the CNC programmer to enter the data required for a specified thread size
& the controller will determine the number of thread passes & automatically position the
tool. The G76 code reduces the number of programming blocks required for a threading
operation.
Format:
G76 P Q R
G76 X Z P Q F
Ex: G76 P031560 Q150 R0.015
The G90 command defaults the system to accept all coordinates as absolute coordinates.
These coordinates are measured from a fixed origin (X0, Y0, Z0) and expressed in terms of
X, Y, and Z distances.
The G91 command defaults the system to accept all coordinates as incremental, or relative,
coordinates. This command is found at the beginning of some programs to default the system
to incremental coordinates. It is possible to switch between incremental and absolute
coordinates at any time within a program (see the G90 command).
The G98 command sets the linear feedrate to units (inch or millimeter) per time (minutes).
The setting depends on which type of unit is currently active.
The G99 command sets the feedrate to units (inch or millimeter) per revolution. The setting
depends on which type of unit is currently active.
M codes vary from machine to machine depending on the functions available on it and the
manufacturer of the machine decides them. The M codes listed below are the common ones.
M-codes Function
M00 Optional program stop automatic
M01 Optional program stop request
M02 Program end
M03 Spindle ON clock wise (CW)
M04 Spindle ON counter clock wise (CCW)
M05 Spindle stop
M06 Tool change
M07 Mist coolant ON (coolant 1 ON)
M08 Flood coolant ON (coolant 2 ON)
M09 Coolant OFF
M30 End of program, Reset to start
M98 Sub program call
M99 Sub program end
. PROBLEM 1:
70
40
50 50
O1001
BILLET DIA 75 LENGTH 103 START Z 3
2
DRILLING: DIA5mm
10
R 5
R
20
40
50
10
10
40 15 20 20
O 02
BILLET DIA 55 LENGTH 120 START Z 3
PROBLEM 3:
10
R
R
25
40
35
10
5
5 5 5 7 5 10 5 10
52
O 03
BILLET DIA 42 LENGTH 60 START Z 0
PROBLEM 4:
4 BILLET OF DIA55mmLENGTH113mm 10
DRIILINGDIA5mm R
5
R
40
20
50
10
40 15 20 20
110
O 04
BILLET DIA 55 LENGTH 113
PROBLEM 5:
6
5
R
5
R
20
32
10
25 5 10 10 15
70
BILLET : DIA32mm
LENGTH70mm
O 05
BILLET X32 Z70
PROBLEM 6:
BILLET : DIA32mm
LENGTH60mm
24
32
12
6
8
1
10 10 6 4 30
PROBLEM 7:
PROBLEM 8:
M20 X 1.5
20
40
36
16
18
10 5 20 46 30 2
82
BILLET DIA 42 L 85
PROBLEM 9:
BILLET : DIA22mm
LENGTH80mm
R15
R15
M12 X 1.25
20
16
8
10 10 10 10 4 30
BILLET DIA 22 L 75
See NC mill is special purpose CNC part programme verification software used
for the machining center programmes. Milling machines uses all the three axes as shown
in the figure below. In the vertical miling machine, the Z-axis denotes the movement
parallel to the spindle axis ie, the up and down movement of the spindle. The X-axis
moves to the operators left and right. The Y axis moves towards and away from the
operator.
Axes convention
The tool can be moved to any position in a 3 dimensional cartesian co-ordinate system.
The Z axis is along the spindle axis. The X and Y axes are perpendicular to Z.
G-code Function
G00 Positioning rapid traverse
G01 Linear interpolation (feed)
G02 Circular interpolation CW
G03 Circular interpolation CCW
G04 Dwell
G20 Inch unit
G21 Metric unit
G28 Automatic zero return
G40 Tool nose radius compensation cancel
G41 Tool nose radius compensation left
G42 Tool nose radius compensation right
G43 Tool length compensation
G80 Canned cycle cancel
G81 Drilling cycle
G82 Drilling cycle with dwell
G83 Peck drilling cycle / deep drill
G84 Tapping cycle
G85 Boring / Reaming cycle
G86 Boring cycle
G90 Absolute command
G91 Incremental command
G94 Feed per minute
G95 Feed per revolution
G98 Return to initial point in canned cycle
G99 Return to R point in canned cycle
The G40 cancels any cutter compensation that was applied to the tool during a program
and acts as a safeguard to cancel any cutter compensation applied to a previous program
or G-codes.
The G42 compensates the cutter a specified distance to the right-hand side of the
programmed tool path. It is used to compensate for excessive tool wear or substitute a
tool to profile a part.
The G43 command compensates for tool length in a positive direction. Different tools of
different lengths are used in machining any part. The lengths of the tools are not
considered in the part program. They are entered in the machine’s memory, and are
considered automatically for each motion in the program depending on the tool that is
being used. The tool lengths in the Z direction are called the Tool length offsets.
CANNED CYCLES
Canned or fixed cycles are programming aids that simplify programming. Canned cycles
combine many programming operations and are designed to shorten the program length,
minimize mathematical calculations, and use minimal tool motions.
The G82 cycle follows the same operating procedures as the G81 drilling cycle, with the
addition of a dwell.
10
R
R
10
R
10
10
10
20
10
R
R
10
50
O01
BILLET 120 X 120 X 30 MM
R3
0
75
25
15
80
100
O02
BILLET 150 X 150 X 30 MM
100
50
8
R
100
16
O
50
30
30 30
150
O03
BILLET 200 X 150 X 30 MM
PROBLEM NO 4:
O04
BILLET 100 X 100 X 30 MM
25
25 50 25
O05
BILLET 120 X 120 X 30 MM
30
120
80
30
30 30
25
120
PROBLEM NO 6:
O06
BILLET 350 X 250 X 30 MM
75
R
50
R5
0
50
75 125
CAPS turn and CAPS mill are the CADEM softwares available to create
complicated designs and models for turning & milling related operations. It can also be
utilized as a tool to generate a part and in turn to generate the NC part programme for the
part generated. Writing a manual part programme involves designing the part and writing
programme. But by using CAPSturn & CAPSmill, the part programme will generate by
itself for the part drawn by the operator. It is also possible to interface this software
directly to a CNC machine where in the part designed can be machined.
The programming process of CAPSturn & CAPSmill includes the following 8 steps
• Creating geometry.
• Selecting tools.
• Performing Roughing and Finishing operations.
• Viewing tool path.
• Generating documents.
Part drawing