How to calculate point-to-point SCARA movements

Gerard Bush at servo motion specialist INMOCO explains what machine builders need to know about motion control for SCARA robot arms.

Machine builders, system integrators and automation engineers are increasingly called upon to provide two-dimensional positioning systems for applications such as packing multiple products into a tray. Normally a Cartesian mechanism is used for this, with two perpendicular linear actuators working in unison, one providing the x-axis movement, the other the y-axis.

But in some applications a jointed, articulated robot arm is better. These look intriguingly like a human arm, with a shoulder joint and an elbow joint. But programming one to be able to move to positions defined by XY co-ordinates can seem a bit daunting at first. The mathematical discipline used to calculate the necessary movements of the upper and lower arms is known as 'motion kinematics'; while this may seem complicated, it is in fact based on some simple trigonometric principles.

Articulated robot arms are often referred to as SCARA (Selective Compliant Assembly Robot Arm) robots, or PUMA (Programmable Universal Manipulation Arm) robots. In the most common SCARA robot configurations there are four axes of motion, although only two - the shoulder rotation and the elbow rotation - contribute to the positioning of the load point in the XY plane. The third axis is the wrist (or load point), which is often a tool or end effector, and the fourth axis moves the entire arm up and down.

SCARA positioning

How do the two main motion actuators, the shoulder joint and the elbow joint, position the end effector? To answer this, we must calculate the 'forward kinematics' of the arm, ie equations that translate the combined shoulder and elbow rotations into the X and Y co-ordinates of the load point.

Image
The equations, which denote the shoulder-connected segment as length Ls, the elbow-connected segment as Length Le, the shoulder angle as phi (Φ), and the elbow angle as theta (Θ), are given by the equations on the right.

This is basic trigonometry. If we know the lengths of the upper and lower arm parts and the angles of the two joints, we can calculate the X and Y axis co-ordinates of the end effector.

But there is an obvious problem here - the mathematical procedure is the reverse of the practical situation. What we actually know is the desired XY co-ordinates; what we want to calculate is the two joint angles. So we need to use 'inverse kinematics' - which is more complicated.

Image
To begin with, there are always two ways to get to every location in the motion plane: with the arm cranked to the left or with the arm cranked to the right. Nevertheless, still using basic trigonometry we can derive the equations for the two joint angles (phi and theta) given X and Y. They are given by the equations on the right.

Dynamics

The above equations are used to calculate positions for the load point, but when it moves from one position to another the natural trajectory is not a straight line but a curve. This is due to the effect of the combined rotation of the two joints. The curved trajectory leads to extra energy consumption compared with a straight line, and can make tracking the load point more difficult. Thus a straight line motion, while not always strictly necessary, is usually preferable.

In order to achieve a straight line motion the speed of rotation of both joints must be constantly varied. This is, in fact, the primary challenge of controlling non-Cartesian mechanisms: to continuously calculate and reset the speed of each joint's rotation to produce direct-line travel.

Fortunately, there are a number of ways to do this. For instance, some motion controllers allow you to download equations, and have sufficient computing power to perform inverse kinematic calculations on the fly.

Another approach, and perhaps the most common method used until relatively recently, is to break the curved trajectory into discrete steps and use standard motion control programs to convert each one into a straight line. Even just a few steps will improve the straightness, and if you break the movement into dozens or hundreds of pieces, very smooth motions will be achieved. The main downside of this segmented approach is that it requires a lot of work from the supervisory software program.

The third approach, now becoming increasingly popular, uses software lookup tables to perform 'reference frame conversions' on the fly. It works like this: you program the starting and ending XY co-ordinates, plus several intermediate co-ordinates that are on the straight line trajectory. Offline the software does all the calculations to move the end effector through each point in turn. Execution of the profile by the motion controller then happens in real time, via a simple and fast lookup operation.

Lookup tables could require fairly powerful controllers. In fact a table that contained every possible movement would take up an impractical amount of memory. So the practical answer is to use only a specific library of moves that are needed for the application. Thus most motion systems have instructions for moves such as 'extend straight out', 'retract straight in' and 'move from station #3 to station #8'.

This library method is useful and convenient, but has certain limitations. The main one is that you must create a separate table for each application. Another is that you cannot use the feedforward techniques employed by servo engineers working with Cartesian systems to compensate for load inertia.

Summary

The fundamental mathematics of control for SCARA robot arms and similar systems are described by forward and inverse kinematics. But these equations can be complex, and create challenges for managing path execution. There are techniques to manage this complexity, of which translation tables that convert XY points to phi and theta angular movements are increasingly the most popular.

This branch of motion control mathematics can seem daunting but, with practice, it can be mastered. And it is always a good idea to seek the assistance of the experts from your motion control provider - after all, they practise the techniques day in and day out.

For more information about motion control for articulated robot arms, visit the Inmoco website at www.inmoco.co.uk.

Inmoco

4 Brunel Close
Drayton Fields
Daventry
NN11 8RB
UNITED KINGDOM

+44 (0)1327 307600

info@inmoco.co.uk

www.inmoco.co.uk

More from Inmoco

Miniaturisation in motion control

Posted 4 days ago

New compact actuators deliver high force

Posted 1 month ago

Pumping technologies for precise fluid handling

Posted 2 months ago

High force integrated actuator reduces footprint

Posted 7 months ago

Rod-style electric actuators deliver 222kN thrust

Posted 8 months ago

Smooth motion arc segments, 360-deg rotary direct-drive motors

Posted 9 months ago

Agility Series direct-drive motors feature zero cogging

Posted 10 months ago

Voice coil motors offer precision motion in compact package

Posted 11 months ago

Inductive angle encoders are simple, robust and ultra-precise

Posted 1 year ago

Servo systems cables with improved connectors and labelling

Posted 1 year ago

Low-voltage DC servo motors for high-performance machines

Posted 1 year ago

Inmoco offers alternatives for motors no longer available

Posted 1 year ago

What does the future hold for motion control?

Posted 1 year ago

Simple Co-Engineering options for Kollmorgen AKM 2G servo motors

Posted 1 year ago

New stepper motor controller from Inmoco

Posted 2 years ago

Next-generation servomotors raise machine performance

Posted 2 years ago

Next-generation servo motors deliver 30 per cent more torque

Posted 2 years ago

Component compatibility can make or break a good system

Posted 3 years ago

High-performance actuator range is compact and rugged

Posted 3 years ago

Helicopter actuators may also transfer to other applications

Posted 3 years ago

Miniature encoders help advance surgical robot capabilities

Posted 3 years ago

Compact actuators improve aircraft motion systems

Posted 3 years ago

Encoders step up to help miniaturise electronics

Posted 3 years ago

Linear actuator design enables automated maintenance

Posted 4 years ago

Advanced motion cards provide precise actuation

Posted 4 years ago

Compact DA series actuators deliver quality and reliability

Posted 4 years ago

DA99 linear roller screw actuators increase reliability

Posted 4 years ago

DA Series high-performance electric actuators

Posted 4 years ago

New high-performance actuators available in UK

Posted 4 years ago

Servo motor with Ethernet interface connects directly with CNCs

Posted 4 years ago

Heavy duty linear actuator has high-performance controls

Posted 4 years ago

Single cable, multi-axis servo systems gets more power

Posted 5 years ago

Precision motion chips for dedicated controllers

Posted 5 years ago

Hygienic motor range has new feedback and connector options

Posted 5 years ago

Inmoco launches KOLLMORGEN safety feedback option

Posted 5 years ago

MC58113 Series programmable motion control chips

Posted 5 years ago

MicroE Veratus Series encoders: smart and reliable

Posted 5 years ago

Smaller, smarter encoders from Inmoco

Posted 5 years ago

Servo controller doubles power

Posted 5 years ago

Maintenance-free linear motors delivery high power density

Posted 5 years ago

PCB-based options are mighty minis for motor control

Posted 5 years ago

Vacuum-rated encoders from Inmoco

Posted 6 years ago

Minutes to motion - linear positioning explained

Posted 6 years ago

Servo users should not be seduced by power density alone

Posted 6 years ago

Inmoco introduces hygienic motor-gear combination

Posted 6 years ago

Servo technology is moving to a new paradigm

Posted 6 years ago

Compact washdown motor offers excellent performance

Posted 6 years ago

Maintenance-free lifting columns are easy to fit

Posted 6 years ago

Electric actuator optimises machine design and saves energy

Posted 6 years ago

Encoder offers value and performance plus flexible mounting

Posted 6 years ago

User-friendly compact encoder gets new side mount option

Posted 6 years ago

Reduce cabling with distributed servo drives from Inmoco

Posted 6 years ago

New functions make servo super-safe

Posted 7 years ago

Power storage modules act as servo UPS

Posted 7 years ago

Inmoco expands indexer family with motion features

Posted 7 years ago

Motion card integrates amps with full motion control

Posted 7 years ago

Wizard aids easy set-up of embedded motion controllers

Posted 7 years ago

EtherCAT master module for CTC 5300 Blue Fusion controller

Posted 7 years ago

OPC server gives instant access to automation controllers

Posted 7 years ago

Atlas single-axis motion amplifier is multi-talented

Posted 7 years ago

Rotary encoder establishes absolute position at start-up

Posted 7 years ago

Inmoco goes back to BASIC with new programmable servodrive

Posted 7 years ago

Mid-performance, high torque per pound servomotor

Posted 7 years ago

Stepper motors: advanced techniques

Posted 8 years ago

Trombone servo drive range now has increased power

Posted 8 years ago

M4-X DC servomotor range is rugged and high performance

Posted 8 years ago

Achieve smaller, faster, smarter motion control

Posted 8 years ago

Expandable motion control system for extreme conditions

Posted 8 years ago

Elmo Gold Drum HV extends servo drive range to 65kW

Posted 8 years ago

B-Hornet military servo for high-power burst applications

Posted 8 years ago

O.P.S. Optical Encoders can be customised

Posted 8 years ago

ORMEC XD indexer family of servo drives expanded

Posted 8 years ago

Free automation systems control app for iPhone and iPad

Posted 8 years ago

Inmoco's Elmo Gold Servo Drives gain EtherCAT compliance

Posted 8 years ago

Inmoco introduces Elmo's DC Trombone digital servo drive

Posted 8 years ago

Robust linear actuators with integral force measurement

Posted 9 years ago

Energy-efficient IP67 stainless steel servo motors

Posted 11 years ago

Servo drives can be networked with IEEE 1394b

Posted 11 years ago

Wider choice of combined motion control and PLC units

Posted 11 years ago

Electronic cam controller suits labelling and capping machines

Posted 11 years ago

High-resolution encoder offers exceptional versatility

Posted 11 years ago

Elmo Duo controller integrates twin Whistle servo drives

Posted 11 years ago

Compact Guitar servo drive delivers 5kW of power

Posted 11 years ago

Ethernet/IP and Modbus options for multi-axis network manager

Posted 11 years ago

Elmo Solo Whistle saves servo application design time

Posted 12 years ago

New three-axis stepper modules for programmable controller

Posted 12 years ago

Electric linear actuators incorporate force measurement

Posted 12 years ago

Miniature ChipEncoder measures just 7x11mm

Posted 13 years ago

Cost-effective alternative for linear positioning and control

Posted 13 years ago

Rotary actuator includes servo motor, amp and position control

Posted 13 years ago

CANopen and absolute encoder options for digital servo drives

Posted 13 years ago

Programmable encoders feature miniature sensors

Posted 13 years ago

MicroE Systems' Mercury II digital encoder 'sets new benchmark'

Posted 13 years ago

Inmoco introduces ServoWire Motion and Logic Controller

Posted 13 years ago

Inmoco now offers Servotecnica slip rings

Posted 14 years ago

Inmoco launches "world's smallest" 50-nanometre encoder

Posted 14 years ago

High-resolution encoder is claimed to be the world's fastest

Posted 14 years ago

More technical articles
3 days ago
Boxing clever
A new chainflex cable box means big shipping cost savings for customers
3 days ago
New industrial vision online channel sees the light of day
Industrial vision provider IDS is making its expertise as a manufacturer of digital industrial cameras available free of charge and readily accessible on a new platform
3 days ago
Ball screws help protect buildings from earthquakes
Ball screws from NSK are helping to protect structures and people in earthquake zones
3 days ago
ATEX certification for new pneumatic valve island
Pneumatic process control offers numerous benefits, especially in hygienic applications. Bürkert says that its new Type 8652 AirLINE valve island provides users with improved safety features, communications and diagnostics
3 days ago
ABB launches condition-based maintenance service for robots
New service enables users to plan ahead and optimise production performance
3 days ago
What the UK-EU trade deal means for UK vehicle manufacturers
Now the UK has left the EU, the transition period has ended and the two parties have established a new trading relationship, UK-based vehicle manufacturers have some clarity over what they need to do to serve three key markets: Great Britain (England, Scotland and Wales), the EU and Northern Ireland
3 days ago
Farnell publishes Industry 4.0 ebook
New ‘Industry 4.0 Interviews’ ebook is available for free download from Farnell and showcases the opinions of leading global experts on the future of IIoT and Industry 4.0
3 days ago
Can DC motors be used at high temperatures?
There is no need for a heated discussion about it as maxon’s motor expert Andrew Gibson offers a view on the subject
4 days ago
Switching up a gear
Phoenix Contact is expanding its line of unmanaged switches
4 days ago
New Intertronics metering, mixing and dispensing system
Adhesives supplier Intertronics has introduced a new 2-K-DOS metering, mixing and dispensing system, said to be a compact, benchtop unit suitable for materials including silicones, polyurethanes and epoxies