Unit 4
Unit 4
Robot Programming
• The term work cell is used to describe a local collection of equipment, which may include
one or more manipulators, conveyor systems, parts feeders, and fixtures.
• At the next higher level, work cells might be interconnected in factory wide networks so
that a central control computer can control the overall factory flow.
• Current technology robots can accept input from sensors and other devices.
• Robots can send signals to pieces of equipment operating with them in the cell
• Robots can make decisions on its own. Robots can communicate with computers to
receive instruction.
• During the teach phase, the user would guide the robot either by hand or through
interaction with a teach pendant.
• Teach pendants are handled button boxes that allow control of each manipulator joint or
of each Cartesian degree of freedom.
• Some such controllers allow testing and branching, so that simple programs involving logic
can be entered.
• Some teach pendants have alphanumeric displays and are approaching hand-held
terminals in complexity.
1. Powered Leadthrough
• Powered Lead through method makes use of a teach pendant to control the various joints
motors, and to power drive the robot arm and wrist through a series of points in space.
• Each point is recorded into memory for subsequent playback during the work cycle.
• The teach pendant is usually a small handheld control box with combination of toggle
switches, dials and buttons to regulate the robots physical movements and programming
capabilities.
• Powered Lead through method is limited to Point to point motions rather than continuous
movements because of the difficulty in using teach pendant to regulate complex
geometries.
• Applications of Powered Leadthrough method: Part transfer task, Machine loading and
unloading application , Spot welding.
2. Manual Leadthrough
Manual Leadthrough method also called the “Walk-through” method which is used for
continuous path programming where the motion cycle involves smooth complex curvilinear
movements. Applications: Spray Painting, Continuous arc welding
• In this method, the programmer physically grasps the robot arm and moves it through the
desired motion cycle.
• If the robot is large and awkward to physically move, a special programming apparatus is
used.
• A teach button is often located near the wrist of the robot which is depressed during those
movements of the manipulator that will become part of the robot programmed cycle.
• The motion cycle is divided into hundreds or even thousands of individually closely spaced
joints along the path and these points are recorded into the controller memory.
• The control system for both leadthrough procedures operate in either of 2 modes: teach
mode or run mode. Teach mode is used to program the robot and run mode is used to
execute the program.
• No computer programming
• Disadvantages:
• Downtime during programming
• Ever since the arrival of inexpensive and powerful computers, the trend has been
increasingly toward programming robots via programs written in computer programming
languages.
• Usually, these computer programming languages have special features that apply to the
problems of programming manipulators and so are called robot programming languages
(RPLs).
• The first textual language was WAVE, developed in 1973 as an experimental language for
research at the Stanford Artificial Intelligence Laboratory.
• Research involving a robot interfaced to a machine vision system was accomplished using
the WAVE language.
• They were developed largely to implement motion control, so they referred some times as
motion level languages.
• Typical features include ability to define manipulator motions using statements, Straight
line interpolation, branching and elementary sensor commands involving binary (on-off)
signals.
• These languages are called structured programming languages, because they possess
structured control constructs used in computer programming languages.
• Advanced Sensor Capabilities: not only simple binary (on-off) signal, use analog signals to
have capability to control devices by means of sensory data. (ex: in 1G only open & close of
gripper, but 2G can measure forces)
• Communications and data processing: they generally have provisions to interact with
computers and its data bases, purposes of maintaing records, data controlling activities of
work cell.
• These languages allow users to focus on specifying what tasks need to be done, without
needing to worry about the specific implementation details.
• They are widely used for tasks such as database handling, generating reports, and building
graphical user interfaces (GUIs).
• Some well-known examples are SQL(Structured Query Language), Python, Perl, Ruby, and
MATLAB.
• These languages use visual tools and constraint-based logic to create programs.
• Instead of writing step-by-step instructions, the programmer defines goals, and the system
generates the code to achieve them.
• The first two generations are called low-level languages. The next three generations are
called high-level languages.
A SAMPLE APPLICATION
• Automated work cell that completes a small subassembly in a hypothetical manufacturing
process.
• The work cell consists of a conveyor under computer control that delivers a work piece; a
camera connected to a vision system, used to locate the work piece on the conveyor; an
industrial robot (a PUIVIA 560 is pictured) equipped with a force-sensing wrist;
• A small feeder located on the work surface that supplies another part to the manipulator;
a computer-controlled press that can be loaded and unloaded by the robot;
• The work cell consists of a conveyor under computer control that delivers a work piece ; a
camera connected to a vision system, used to locate the work piece on the conveyor ; an
industrial robot (a PUIVIA 560 is pictured) equipped with a force -sensing wrist ;
• A small feeder located on the work surface that supplies another part to the manipulator ;
a computer - controlled press that can be loaded and unloaded by the robot ;
4. The bracket is placed in the fixture on the work surface. At this point, the conveyor can be
signaled to start again for the next bracket—that is, steps 1 and 2 can begin in parallel with
the following steps.
5. A pin is picked from the feeder and inserted partway into a tapered hole in the bracket.
Force control is used to perform this insertion and to perform simple checks on its
completion. (If the pin feeder is empty, an operator is notified and the manipulator waits
until commanded to resume by the operator.)
6. The press is commanded to actuate, and it presses the pin the rest of the way into the
bracket. The press signals that it has completed, and the bracket is placed back into the
fixture for a final inspection.
7. By force sensing, the assembly is checked for proper insertion of the pin. The manipulator
senses the reaction force when it presses sideways on the pin and can do several checks to
discover how far the pin protrudes from the bracket.
8. If the assembly is judged to be good, the robot places the finished part into the next
available pallet location. If the pallet is full, the operator is signaled. If the assembly is bad, it
is dropped into the trash bin.
Sensors
• A sensor is a device that produces an output signal for the purpose of detecting a physical
phenomenon.
• A transducer is a device that converts one type of physical variable into another form.
• Internal Sensors: These are responsible for the internal working of the robot and are
mainly used for closing the loop in feedback control (ex: Position, velocity, Acceleration viz.,
potentiometers, encoders, LVDT, Tachometers, Accelerometers). A robot cannot function
properly without these if it is using a closed loop feedback control system.
• External Sensors: These are responsible for interaction with the environment. A robot
can use external sensors like touch sensor for interaction with the environment. In case of
any of these sensors fail the robot can still function but its ability to interact with the
external world is reduced. Ex: force, vision, touch, pressure, slip, proximity viz., on/off
switches, ultrasonic, force sensor, hall effect, inductive sensor, piezo sensor.
• The wiper contact is linked to mechanical shaft either rotary or slider, which causes
resistance value between the wiper and 2 end connections to change.
• The resistance change is then converted to a proportional voltage change in the electrical
circuit of the sensor.
Encoder Types:
• Incremental Encoder: (Magnetic, Optical, Inductive, Capacitive, Laser)
• Resolver : Provides sine wave and cosine wave to provide both velocity and position
feedback.
Incremental Encoder:(optical)
• An incremental encoder consists of a disk
marked with alternating transparent and
opaque stripes aligned radially.
• In a typical encoder, there are two sets of photo transmitters and receivers aligned 900
out of phase.
• This phasing provides direction information, that is, if signal A leads to signal B by 900 the
encoder disk is rotating in one direction, if B leads A then is going in the other direction.
• By counting the pulses and by adding or subtracting based on the sign, it is possible to use
the encoder to provide position information w.r.t a known starting location.
• Normally, two incremental encoders are used in parallel so that the resolution of
measurements is increased.
• The rate at which pulses are generated can also be counted to get an estimate of the
velocity of the rotating shaft. Hence, can also used as velocity sensor.
Absolute Encoder:(optical)
• In some cases, it is desirable to know the position of an object in absolute terms, that is
not w.r.t a starting position. For this an absolute encoder could be used.
• Construction is same as incremental encoder except that there are more tracks are stripes
and a corresponding number of receivers and transmitters. Usually the stripes are arranged
to provide a binary number proportional to the shaft angle.
• The first track might have two stripes, the second four, the third eight and so on. In this
way the angle can be read directly from the encoder without any counting being necessary.
• The resolution of an absolute encoder is dependent on the number of tracks and is given
by Resolution= 2n (where n is number of tracks on the disk)
Resolver
• A resolver is an electromagnetic transducer that can be used in a wide variety of position
and velocity feedback applications which includes light duty/servo, light industrial or heavy
duty applications.
• Resolvers, known as motor resolvers, are commonly used in servo motor feedback
applications due to their good performance in high temperature environments.
• Because of its simple transformer design and lack of any on board electronics, the resolver
is a much more rugged device than most any other feedback device and is the best choice
for those applications where reliable performance is required in those high temperature,
high shock and vibration, radiation and contamination environments which makes the
resolver the sensible design alternative for shaft angle encoding.
• The resolver is a special type of rotary transformer that consists of a cylindrical rotor and
stator. An ac signal must be used for excitation, if dc signal is used then there would be no
output signal. Primary coil is connected to rotating shaft and carries alternate current.
• To specifically define a resolver has a single winding on the rotor and a pair of windings on
stator.
• A resolver outputs signal by energizing the input phase of the resolver with an AC voltage
(VAC) to induce voltage into each of the output windings.
• The resolver amplitude modulates the VAC input in proportion to the Sine and the Cosine
of the angle of mechanical rotation.
• The signal may be used directly or it can be converted into digital representation using a
device known as “resolver-to-digital” converter
Velocity Sensors
• There is a digital equivalent of the DC tachometer which provides a pulse train output of a
frequency proportional to the angular velocity.
Machine vision
• Machine vision is the
substitution of the human
visual sense and judgment
capabilities with a video
camera and computer to
perform an inspection task.
• It is the automatic
acquisition and analysis of
images to obtain desired
data for controlling or
evaluating a specific part or
activity.
1. Sensing and digitizing image data 2. Image processing and analysis 3. Application
• The sensing and digitizing functions involve the input of vision data by means of camera
focused on the scene of interest.
• Special lighting techniques are frequently used to obtain an image of sufficient contrast
for later processing.
• The digital image is called a frame of vision data and is frequently captured by a hardware
device called a frame grabber. These devices are capable of digitizing images at the rate of
15 FPS to 120 FPS(frames per second)
• The frames consist of a matrix of data representing projections of the scene sensed by the
camera. The elements of the matrix are called picture element or pixels.
• The number of pixels are determined by a sampling process performed on each image
frame.
• A single pixel is the projection of a small portion of the scene which reduces that portion
to a single value. The value is measure of the light intensity for that element of the scene.
• This data reduction can change the representation of a frame from several hundred
thousand bytes of raw image data to several hundred bytes of feature value data.
• The resultant feature data can be analyzed in the available time for action by the robot
system.
• Defect detection
• Gauging
• Part Identification
• Packaging inspection
• Pattern Recognition
• Product Inspection
• Surface Inspection
• Web Inspection