CAM-CIM Manual - M.tech - Jan 2022
CAM-CIM Manual - M.tech - Jan 2022
LABORATORY MANUAL
M.Tech. (CAD/CAM)
Semester II
Name : _________________________________________________________________
Roll No : _________________________________________________________________
Year : _________________________________________________________________
SURAT – 395007
(GUJARAT) INDIA
DEPARTMENT OF MECHANICAL ENGINEERING
INDIA
CERTIFICATE
Practical No: 01
AIM: Demonstration of CNC Milling machine with user interface and calculating
the Co-ordinates of given geometry in absolute and increment mode for
cutter path.
Longitudinal
Vertical
transverse
Axis X
Axis Y
Axis Z
The three axis are identified by upper case X, Y and Z and the direction of
movement along each axis is specified as either PLUS (+) or Minus (-).
The Z axis is always parallel to the main spindle of the machine. The X
axis is at right angles to both Z and X axis. Fig. 1 shows Coordinate
System for Milling Work.
1
Computer Aided Manufacturing
This is specified by the manufacturer of the machine. This is the zero point
for the coordinate systems and reference points in the machine.
The machine zero point can be the center of the table or a point along the
edge of the traverse range as shown in Fig. 2. The position of the machine
zero point generally varies from manufacturer to manufacturer. The
precise position of the machine zero point as well as the axis direction
must therefore be taken from the operating instruction provided for each
individual machine.
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. 3 is accurately predetermined in 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 axis 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.
2
Computer Aided Manufacturing
Fig. 4 Example for the Position of Workpiece Zero Point for a Milling Part
3
Computer Aided Manufacturing
The tool setting point E is located at a certain point on the tool holder as
shown in Fig. 5. This setting point permits measuring of tool away from
the CNC machine. The data thus measured such as tool length, tool point
offset or tool radius are input into the tool data storage (memory) of 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.
4
Computer Aided Manufacturing
Absolute Increment
5
Computer Aided Manufacturing
Practical No: 02
AIM: Introduction of G codes and M codes and write the CNC part programming
for a given geometry using Linear, Circular interpolation. (Using FANUC
Controller)
G-codes:
G00 Positioning G45 Tool compensation increase
G01 Linear interpolation G46 Tool compensation decrease
G02 Circular interpolation CW G49 Tool length compensation cancel
G03 Circular interpolation CCW G73 Peck drilling cycle
G04 Dwell, Exact Stop G74 Counter tapping cycle
G05 High-speed continuous cutting G76 Fine boring cycle
G07 SINE interpolation G80 Canned cycle cancel
G09 Exact stop check G81 Drilling cycle
G10 Offset value setting / work zero G82 Drilling cycle/counter boring
offset setting G83 Peck drilling cycle
G17 XY plane selection G84 Tapping cycle
G18 ZX plane selection G85 Boring cycle with feed retraction
G19 YZ plane selection G86 Boring cycle with rapid retraction
G20 Inch data input G87 Back boring cycle
G21 Metric data input G88 Boring cycle
G22 Stored stroke limit on G89 Boring cycle
G23 Stored stroke limit off G90 Absolute programming
G27 Zero return check G91 Incremental programming
G28 Automatic Zero Return G92 Programming of absolute zero
G31 Skip cutting point
G33 Thread cutting G94 Feed per minute
G40 Cutter compensation cancel G95 Feed per revolution
G41 Cutter compensation left side G98 Return to initial point level in
G42 Cutter compensation right side canned cycle
G43 Tool length compensation (+) G99 Return to R point level in canned
G44 Tool length compensation (-) cycle
6
Computer Aided Manufacturing
M -codes:
(These are just EIA standard M-codes and every machine builder can make his own codes.)
7
Computer Aided Manufacturing
Parameters
Block Code X Y Z Comment
8
Computer Aided Manufacturing
Parameters
Block Code X Y Z Comment
9
Computer Aided Manufacturing
Practical No: 03
AIM: Write the CNC part programming for a given geometry using Mirror and
Subroutine. (Using FANUC Controller)
10
Computer Aided Manufacturing
Parameters
Block Code X Y Z Comment
11
Computer Aided Manufacturing
Parameters
Block Code X Y Z Comment
12
Computer Aided Manufacturing
Parameters
Block Code X Y Z Comment
13
Computer Aided Manufacturing
Parameters
Block Code X Y Z Comment
14
Computer Aided Manufacturing
Practical No: 04
AIM: Write the CNC programming for a given geometry using Polar Co -ordinate
for drilling cycles. (Using FANUC Controller)
Parameters
Block Code X Y Z Comment
15
Computer Aided Manufacturing
Parameters
Block Code X Y Z Comment
16
Computer Aided Manufacturing
Practical No: 05
AIM: Write the CNC part programming for a given geometry using Tool Radius
Compensation and Repeat loop for Peck Drilling Cycle. (Using FANUC
Controller)
Parameters
Block Code X Y Z Comment
17
Computer Aided Manufacturing
Parameters
Block Code X Y Z Comment
18
Computer Aided Manufacturing
Parameters
Block Code X Y Z Comment
19
Computer Aided Manufacturing
Parameters
Block Code X Y Z Comment
20
Computer Aided Manufacturing
G73 High Speed Peck Drilling Cycle G83 Deep Hole Peck Drilling Cycle
When machining, the drill is positioned at the co-ordinate point of the first hole,
for the X and Y axes and at the initial level, for the Z axis.
The G73 command is then read into the machine controller and the cycle begins.
The drill will rapid traverse to the R point level and begin to feed in, until a cut-in
distance of Q is attained.
At this point, the drill will retract a small distance (set within the machine
controller).
A cut-in distance of Q at the same feedrate will begin again, followed by a similar
retraction.
These movements will continue until the total Z depth has been reached.
The drill will rapid traverse out to the Initial level, if a G98 code is programmed
within the cycle, or to the R point level, if a G99 code is programmed within the
cycle.
At this point the next block is read into the machine controller.
21
Computer Aided Manufacturing
If this block contains an X, Y or X and Y coordinate the drill will position itself at
that point and the high speed peck drilling cycle will begin again.
Parameters
Block Code X Y Z Comment
22
Computer Aided Manufacturing
Parameters
Block Code X Y Z Comment
23
Computer Aided Manufacturing
Exercise:
Write a manual part program for Pocketing operation for the given component
Parameters
Block Code X Y Z Comment
24
Computer Aided Manufacturing
Parameters
Block Code X Y Z Comment
25
Computer Aided Manufacturing
Practical No: 06
AIM: Introduction and programming of all canned cycle of Milling machine.
(Using FANUC controller)
A canned cycle simplifies the program using a single block with a G code to
specify the machining operations usually specified in several blocks.
Operation Description
1 Positioning of axes X and Y (including another axis)
2 Rapid traverse up to point R
3 Hole machining
4 Operation at the bottom of a hole
5 Retraction to point R
6 rapid traverse up to the initial point
26
Computer Aided Manufacturing
The data format used in canned cycles is specified by the codes G90 and G91, as
shown below:
The return point position of the tool (i.e. to the Initial Level, or the R Level) is
specified by the codes G98 and G99.
The Initial level refers to the absolute value of the Z axis, at the time of change
from the positioning mode top the canned cycle mode.
27
Computer Aided Manufacturing
(G90) (G98)
or or G.... X.... Y.... Z.... R.... P.... Q.... K.... F....
(G91) (G99)
where,
Z.... is defined as the distance from the R point to the bottom of the hole in
incremental mode, or the position of the hole bottom in absolute mode.
R.... is defined as the distance from the initial level to the R point level in
incremental mode, or the position of the Z datum in relation to the R point
level in absolute mode.
P.... is defined as the dwell time to be performed at the bottom of the hole (i.e.
G04 code).
Q.... is defined as the cut-in distance value or shift value (Note - this is always
specified as an incremental value).
K.... is defined as the number of repeats, for a series of holes. When not
specified, K=1.
Note:
2) Once the drilling data has been specified and read into the machine
controller, it is retained until it is either changed, or the canned cycle
cancelled.
All the required data must be specified when the canned cycle is started and
only the data to be changed has to be specified during the cycle.
28
Computer Aided Manufacturing
CANNED CYCLES
29
Computer Aided Manufacturing
Parameters
Block Code X Y Z Comment
30
Computer Aided Manufacturing
Parameters
Block Code X Y Z Comment
31
Computer Aided Manufacturing
Practical No: 07
AIM: Demonstration and study of CNC Lathe machine with sample
programming.
The engine lathe, one of the most productive machine tools, has always been an
efficient means of producing round parts.
Negative X (X-) moves the tool towards the spindle centerline; positive X moves
the tool away from the spindle centerline.
The Z axis controls the carriage travel toward or away from the headstock.
Programming Hints
The feedrate code to move the cutting tool or workpiece to the desired
Fxx
position.
The X Z coordinates of the small diameter, the large diameter, and a feedrate
must be programmed.
32
Computer Aided Manufacturing
Z moves the cutting tool longitudinally away from the end of the workpiece.
Z- moves the cutting tool along the length of the workpiece towards the chuck
(headstock).
The G28 code is used to set the programmed offset of the reference point.
Codes are modal and do not have to be repeated in every sequence line.
G Code Application
33
Computer Aided Manufacturing
G Code Application
34
Computer Aided Manufacturing
Parameters
Block Code X Z Comment
35
Computer Aided Manufacturing
Parameters
Block Code X Z Comment
36
Computer Aided Manufacturing
Exercise : 01
Write manual part program for the part shown in following figure. Assume that the
raw material is cylindrical bar of size Ø 52 mm × 125 mm.
Parameters
Block Code X Z Comment
37
Computer Aided Manufacturing
Parameters
Block Code X Z Comment
38
Computer Aided Manufacturing
Exercise : 02
Write manual part program using (1) radius of arc programming method and (2)
centre of arc programming method, for finishing cut only. Part is shown in following
figure. Assume that the part is already rough turned.
Parameters
Block Code X Z Comment
39
Computer Aided Manufacturing
Parameters
Block Code X Z Comment
40
Computer Aided Manufacturing
Practical No: 08
AIM: Write CNC programming for given geometry (Lathe) using stock removal
cycles (Using FANUC controller)
Straight turning and taper turning are the basic operations perform on a tuning
center.
Generally to perform both these operations, programmer has to write four block
by using G00 and G01 codes for single cut. These blocks are
A canned cycle or stock removal cycle combine all these blocks in a single NC
block. So, material is removed from the stock until the specified profile is
achieved.
Hence, program length and time to write the program is reduce drastically. It
also reduces the programming error.
G Code Application
41
Computer Aided Manufacturing
G Code Application
42
Computer Aided Manufacturing
Parameters
Block Code X Z Comment
43