1-New Introduction 1 (I ST Half)
1-New Introduction 1 (I ST Half)
COLLEGE, SEENAPURAM.
DEPARTMENT OF MECHANICAL ENGINEERING
LAB MANUAL
Department : …………………………………......
The three-dimensional coordinate planes are shown in Fig. 2. The X and Y planes
(axes) are horizontal and represent horizontal machine table motions. The Z plane
or axis represents the vertical tool motion. The plus (+) and minus (-) signs
indicate the direction from the zero point (origin) along the axis of movement.
The four quadrants formed when the XY axes cross are numbered in a
counterclockwise direction (Fig. 3). All positions located in quadrant 1 would be
positive X (X+) and positive Y(Y+). In the second quadrant, all positions would
be negative X (X-) and positive Y (Y+). In the third quadrant, all locations would
be negative X (X-) and negative Y (Y-). In the fourth quadrant, all locations
would be positive X (X+) and negative Y (Y-).
Fig. 3 The quadrants formed when the X and Y axes crossing are used to locate
Points accurately from the XY zero, or origin, point.
In Fig. 3 , point A would be 2 units to the right of the Y axis and 2 units
above the X axis. Assume that each unit equals 1.000. The location of point A
would be X + 2.000 and Y + 2.000. For point B, the location would be X + 1.000
and Y - 2.000. In CNC programming it is not necessary to indicate plus (+) values
since these are assumed. However, the minus (-) values must be indicated. For
example, the locations of both A and B would be indicated as follows:
A X 2.000 Y2.000
B X1.000 Y-2.000
Machine Types
Turning Machine
Milling Machine
The milling machine has always been one of the most versatile machine
tools used in industry (Fig. 5). Operations such as milling, contouring, gear
cutting, drilling, boring, and reaming are only a few of the many operations which
can be performed on a milling machine. The milling machine can be programmed
on three axes:
• The X axis controls the table movement left or right.
• The Y axis controls the table movement toward or away from the column.
• The Z axis controls the vertical (up or down) movement of the knee or
spindle.
Z AXIS
X AXIS
Y AXIS
Programming Systems
CNC uses two types of programming modes, the incremental system and
the absolute system,. Both systems have applications in CNC programming, and
no system is either right or wrong all the time. Most controls on machine tools
today are capable of handling either incremental or absolute programming.
A “X plus” (X+) command will cause the cutting tool to be located to the right of
the last point.
A “X minus” (X-) command will cause the cutting tool to be located to the left of
the last point.
A “Y plus” (Y+) command will cause the cutting tool to be located toward the
column.
A “Y minus” (Y-) will cause the cutting tool to be located away from the column.
A “Z plus” (Z+) command will cause the cutting tool or spindle to move up or
away from the workpiece.
A “Z minus” (Z-) moves the cutting tool down or into the workpiece.
Fig. 7 A workpiece dimensioned in the absolute system mode. Note: All dimensions are given
from a known point of reference.
A “X plus” (X+) command will cause the cutting tool to be located to the right of
the zero or origin point.
A “X minus” (X-) command will cause the cutting tool to be located to the left of
the zero or origin point.
A “Y plus” (Y+) command will cause the cutting tool to be located toward the
column.
A “Y minus” (Y-) command will cause the cutting tool to be located away from
the column.
In absolute programming, the G90 command indicates to the computer and
MCU that the programming is in the absolute mode.
Fig. 9 The path followed by point-to-point positioning to reach various programmed points
(machining locations) on the XY axis.
In Fig. 9 point 1 to point 2 is a straight line, and the machine moves only
along the X axis; but points 2 and 3 require that motion along both the X and Y
axes takes place. As the distance in the X direction is greater than in the Y
direction, Y will reach its position first, leaving X to travel in a straight line for
the remaining distance. A similar motion takes place between points 3 and 4.
Continuous Path (Contouring)
Contouring or continuous path machining, involves work such as that
produced on a lathe or milling machine, where the cutting tool is in contact with
the work piece as it travels from one programmed point to the next. Continuous
path positioning is the ability to control motions on two or more machine axes
simultaneously to keep a constant cutter - work piece relationship. The
programmed information in the CNC program must accurately position the
cutting tool from one point to the next and follow a predefined accurate path at a
programmed feed rate in order to produce the form or contour required (Fig. 10)
Interpolation
The method by which contouring machine tools move from one
programmed point to the next is called interpolation. The ability to merge
individual axis points into a predefined tool path is built into most of today’s
MCU’s. There are five methods of interpolation: linear, circular, helical,
parabolic, and cubic. All contouring controls provide linear interpolation, and
most controls are capable of both linear and circular interpolation. Helical,
parabolic, and cubic interpolation are used by industries that manufacture parts
which have complex shapes, such as aerospace parts and dies for car bodies.
Linear Interpolation
Linear Interpolation consists of any programmed points linked together by
straight lines, whether the points are close together or far apart .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.
Circular Interpolation
The development of MCU’s 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 MCU’s.
Fig. 12 For two-dimensional circular interpolation , the MCU must be supplied with the XY axis,
radius, start point, end point, and direction of cut.
Programming Format
Word address is the most common programming format used for CNC
programming systems. This format contains a large number of different codes
(preparatory and miscellaneous) that transfers program information from the part
print to machine servos, relays, micro-switches, etc., to manufacture a part. These
codes, which conform to EIA (Electronic Industries Association) standards, are in
a logical sequence called a block of information. Each block should contain
enough information to perform one machining operation.
Word Address Format
Every program for any part to be machined, must be put in a format that the
machine control unit can understand. The format used on any CNC machine is
built in by the machine tool builder and is based on the type of control unit on the
machine. A variable-block format which uses words (letters) is most commonly
used. Each instruction word consists of an address character, such as X, Y, Z, G,
M or S. Numerical data follows this address character to identify a specific
function such as the distance, feed rate, or speed value.
The address code G90 in a program, tells the control that all measurements
are in the absolute mode. The code G91, tells the control that measurements are in
the incremental mode.
Codes
The most common codes used when programming CNC machines tools are
G-codes (preparatory functions) and M codes (miscellaneous functions). Other
codes such as F, S, D and T are used for machine functions such as feed, speed,
cutter diameter offset, tool number, etc.
G -CODES
G-codes are sometimes called cycle codes because they refer to some
action occurring on the X, Y, and/or Z axis of a machine .The G-codes are
grouped into categories such as Group 01, containing codes G00, G01, G02, G03.
which cause some movement of the machine table or head. Group 03 includes
either absolute or incremental programming, while Group 09 deals with canned
cycles.
A G00 code rapidly positions the cutting tool while it is above the work
piece from one point to another point on a job. During the rapid traverse
movement, either the X or Y axis can be moved individually or both axes can be
moved at the same time. Although the rate of rapid travel varies from machine to
machine, it ranges between 200 and 800 in./min (5 and 20 m/min).
BASIC G - CODES
The G01, G02, and G03 codes move the axes at a controlled feed rate.
S. No G -CODES FUNCTIONS
1. G00 Positioning (Rapid Traverse)
2. G01 Linear Interpolation (Feed)
3. G02 Circular Interpolation (CW)
4. G03 Circular Interpolation (CCW)
5. G04 Dwell, Exact Stop
6. G20 Inch Data Input
7. G21 Metric Data Input
8. G28 Reference Point return(Home)
9. G32 Thread cutting
10. G40 Cutter compensation cancel
11. G41 Cutter compensation left
12. G42 Cutter compensation right
13. G50 Work coordinate change / maximum spindle speed setting
14. G70 Finishing cycle
15. G71 Stock removal in turning
16. G72 Stock removal in facing
17. G73 Pattern Repeating
18. G74 Peck drilling in Z- axis
19. G75 Grooving in X - axis
20. G76 Multiple thread cutting cycle
21. G90 Cutting cycle (turning)
22. G92 Thread cutting cycle
23. G94 Cutting cycle (Facing)
24. G96 Constant surface speed control
25. G97 Constant surface speed control cancel
26. G98 Feed per minute
27. G99 Feed per revolution
G-CODES FOR MILLING
S. No G -CODES FUNCTIONS
1 G00 Positioning (Rapid Traverse)
2 G01 Linear Interpolation (Feed)
3 G02 Circular Interpolation (CW)
4 G03 Circular Interpolation (CCW)
5 G04 Dwell, Exact Stop
6 G17 XY Plane selection
7 G18 ZX Plane selection
8 G19 YZ Plane selection
9 G20 Inch Data Input
10 G21 Metric Data Input
11 G28 Reference Point return (Home)
12 G40 Cutter compensation cancel
13 G41 Cutter compensation left
14 G42 Cutter compensation right
15 G43 Tool length Compensation + direction
16 G44 Tool length Compensation -direction
17 G49 Tool length Compensation cancel
18 G73 High speed peck drilling cycle
19 G74 L.H Tapping cycle
20 G76 Fine boring
21 G80 Canned cycle cancel
22 G81 Continuous drilling cycle, spot boring
23 G82 Continuous drilling cycle, spot boring with dwell
24 G83 Peck drilling cycle
25 G84 R.H Tapping cycle
26 G90 Absolute Zero
27 G91 Incremental Command
28 G94 Feed per Minute
29 G170 & G171 Circular Pocketing
30 G172 & G173 Rectangular Pocketing
M-CODES
M or Miscellaneous codes are used to either turn ON or OFF different
functions which control certain machine tool operations, Fig. 15.M-codes are not
grouped into categories, although several codes may control the same type of
operations such as M03, M04, and M05 which control the machine tool spindle.
M03 turns the spindle on clockwise
M04 turns the spindle on counterclockwise and M05 turns the spindle off
SOME M-CODES FOR TURNING and MILLING
Fig.19 The relationship between the part zero and the machine system of coordinates.
Fig. 20 In absolute programming, all dimensions must be taken from the XY zero at the top
left-hand corner of the part.
Fig. 21 In incremental programming, all dimensions are taken from the previous point.
Fig. 22 Cutter-diameter compensation must be used when machining with various size
cutters.
SYLLABUS
INDEX
Staff
S.No Date Experiment Marks
signature
10
11
12