UNIT-II-Manual Part Programming and Robotics
UNIT-II-Manual Part Programming and Robotics
NC Part programming
MED, KITSW
Students will able to understand the
following by the end of the Lecture
Basic of NC machines
Types of Part programming
Preparatory and Miscellaneous codes
Manual part programming
Computer assisted programming
Introduction
NC part programming consists of planning
and documenting the sequence of processing
steps to be performed by an NC machine.
The part programmer must have a
knowledge of machining (or other
processing technology for which the NC
machine is designed), as well as geometry
and trigonometry.
The documentation portion of part
programming involves the input medium
used to transmit the program of instructions
to the NC machine control unit.
NC Coordinate Systems
To program the NC processing equipment, a part
programmer must define a standard axis system
by which the position of the work head relative
to the work part can be specified.
There are two axis systems used in NC, one for
flat and prismatic work parts and the other for
rotational parts. Both systems are based on the
Cartesian coordinates.
The axis system for flat and block-like parts
consists of the three linear axes (x, y, z) in the
Cartesian coordinate system, plus three
rotational axes (a, b, c), as shown in Figure .
NC Coordinate Systems
Fig: Coordinate systems used in NC (a) for flat and prismatic work and (b) for
rotational work. (On most turning machines, the z-axis is horizontal rather
than vertical as shown here.)
Finding directions in a Right
Hand Co-ordinate System
NC Coordinate Systems
In most machine tool applications, the x- and y-axes are used
to move and position the worktable to which the part is
attached, and the z-axis is used to control the vertical
position of the cutting tool.
Such a positioning scheme is adequate for simple NC
applications such as drilling and punching of flat sheet metal.
Programming these machine tools consists of little more
than specifying a sequence of x–y coordinates.
The a-, b-, and c-rotational axes specify angular positions
about the x-, y-, and z- axes, respectively.
To distinguish positive from negative angles, the right-hand
rule is used: Using the right hand with the thumb pointing in
the positive linear axis direction (+x, +y, or +z), the fingers of
the hand are curled in the positive rotational direction.
NC Coordinate Systems
The rotational axes can be used for one or both
of the following:
(1) orientation of the work part to present
different surfaces for machining or
(2) orientation of the tool or work head at some
angle relative to the part.
These additional axes permit machining of
complex work part geometries.
Machine tools with rotational axis capability
generally have either four or five axes: three linear
axes plus one or two rotational axes.
The coordinate axes for a rotational NC system
are illustrated in Figure 7.2(b).
NC Coordinate Systems
These systems are associated with NC
lathes and turning machines.
Although the workpiece rotates, this is not
one of the controlled axes on most turning
machines.
Consequently, the y-axis is not used.
The path of the cutting tool relative to the
rotating workpiece is defined in the x–z
plane, where the x-axis is the radial location
of the tool and the z-axis is parallel to the
axis of rotation of the part.
NC part programming
A group of commands given to the CNC or NC
for operating the machine is called the program.
NC part programming creates NC codes, which
provide the instructions that drive cutters and
control machine operations.
Floating Zero:
Very common with CNC M/C used now a days.
Operator sets zero point at any convenient
position on M/C table.
The Coordinate system is knows as work
coordinate system (WCS)
Modal and Non modal commands
Commands issued in the NC program may stay in effect indefinitely
(until they explicitly cancelled or changed by some other
command), or they may be effective for only the one time that
they are issued.
Commands that are effective only when issued and whose effects
are lost for
subsequent commands are referred to as non-modal commands.
Miscellaneous function
Sequence number
Reference rewind stop
Spindle speed function
Tool function
Secondary motion dimension parallel to X*
Secondary motion dimension parallel to Y*
Secondary motion dimension parallel to Z*
Primary X motion dimension
Primary Y motion dimension
G Codes or Preparatory Functions
G Codes or Preparatory Functions
Miscellaneous Functions, M
Commonly used word addresses
F-CODE: Feed rate. The F code specifies the feed in the
machining operation.
N G81 X Y Z R
Manual Part Programming Ex
Write a part program for step turning
operation of the figure shown below on
CNC lathe machine
Part program
G21 G98 - Initial setting, metric & mm per min.
G28 U0W0 - Going to Home Position
M06 T01 - Selecting Tool No.1 with off Set No.1
M03 S1200 - setting spindle speed at 1200RPM.
G00 X23 Z5 - Tool is moving to starting point at rapid rate.
G90 X22 Z-45 F100 - G90-Box turning cycle (syntax : G90 X Z F)
X21
X20
X19 Z-30
X18
X17
X16
X15
X14 Z-15
X13
X12
X11
X10
G28 U0 W0 - Going to Home position
M05 - Stop Spindle
M30 - Program stop and rewind
Assignment
Point-to-Point Drilling
example
This example presents the NC part program in word address format for
drilling the three holes in the sample part shown in Figure P7A.3.
The outside edges of the starting work part have been rough cut (by jig
sawing) and are slightly oversized for subsequent profile milling. The three
holes to be drilled in this example will be used to locate and fixture the
part for profile milling in the following example.
For the present drilling sequence, the part is gripped in place so that its
top surface is 40 mm above the surface of the machine tool table to
provide ample clearance beneath the part for hole drilling. The x-, y-, and z-
axes are defined as shown in Figure P7A.4. A 7.0-mm diameter drill,
corresponding to the specified hole size, has been chucked in the CNC
drill press.
The drill will be operated at a feed of 0.05 mm/rev and a spindle speed of
1,000 rev/min (corresponding to a surface speed of about 0.37 m/sec,
which is slow for the aluminum work material). At the beginning of the job,
the drill point will be positioned at a target point located at x = 0, y = -50,
and z = +10 (axis units are in millimeters). The program begins with the
tool positioned at this target point.
Explanation
Cutter path for profile milling
outside perimeter of sample part.
Explanation
Computer-Assisted Part
Programming
APT or Automatically Programmed Tool, is a
high-level computer programming language most
commonly used to generate instructions for
numerically controlled machine tools.
APT uses language statements to define part
shape and tool motion as well as machine tool-
dependent data (e.g., feed rates and spindle
speeds). The general procedures of generating
APT source codes involve the following steps:
1. Identify part geometry.
2. Identify cutter motions, feeds, speeds, and cutter
parameters.
3. Code the geometry, cutter motions, and general
machine instructions into the part programming
languages. The code is known as source
Computer-Assisted Part
Programming
4.Compile or process the source to produce the
machine-independent list of cutter movements and
auxiliary machine control information, known as the
cutter location data file (or CL data).
5. An APT processor program is used to read these
statements, interpret the meanings, and perform all
the necessary calculations to generate a series of
cutter location points that define the toolpath.
6. The generalized APT output (usually in CL
data) is converted to the particular format G-
code required by the CNC machine using a post-
processor program.
7. The CL data file contains (mainly) details of
cutter moves, either as a series of absolute linear
GOTO moves or relative GODLTA moves.
Computer-Assisted Part
Programming
Articulated robot
(jointed-arm robot).
Body-and-Arm Configurations
2. Polar configuration.
This configuration consists of a sliding arm
(L joint) actuated relative to the body,
which an rotate about both a vertical axis
(T joint) and a horizontal axis (R joint)
Polar configuration.
Body-and-Arm Configurations
3. SCARA:
SCARA is an acronym for Selectively Compliant Arm
for Robotic Assembly.
This configuration is similar to the jointed-arm
robot
Except that the shoulder and elbow rotational
axes are vertical, which means that the arm is
very rigid in the vertical direction, but compliant
in the horizontal direction.
This permits the robot to perform insertion tasks
(for assembly) in a vertical direction, where some
side-to-side alignment may be needed to mate the
two parts properly.
SCARA configuration
Body-and-Arm Configurations
4. Cartesian coordinate robot.
Other names for this configuration include
gantry robot, rectilinear robot, and x–y–z
robot.
As shown in Figure, it consists of three
orthogonal joints (type O) to achieve linear
motions in a three-dimensional rectangular
work space.
It is commonly used for overhead access to
load and unload production machines.
Cartesian coordinate robot
Body-and-Arm Configurations
5. Delta robot.
This unusual consists of three arms attached to
an overhead base.
Each arm is articulated and consists of two
rotational joints (type R), the first of which is
powered and the second is unpowered. design,
depicted in Figure,
All three arms are connected to a small platform
below, to which the end effector is attached.
The platform and end effector can be
manipulated in three dimensions.
The delta robot is used for high-speed movement
of small objects, as in product packaging.
5. Delta robot.
Wrist Configurations.
The robot’s wrist is used to establish the
orientation of the end effector.
Robot wrists usually consist of two or
three joints that almost always consist of
R and T type rotary joints.
One possible configuration for a three-
axis wrist assembly is shown in figure.
Wrist Configurations