How to take control of a robot arm
British industry is adopting more and more sophisticated automation as it strives to build a competitive manufacturing edge over its global competitors. Here Gerard Bush of INMOCO lifts the curtain on motion control for articulated robot arms.Automation engineers are increasingly called upon to provide two dimensional positioning systems, say for 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 provides a better solution. They 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 coordinates can seem a bit daunting for a first timer.
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.
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 which translate the combined shoulder and elbow rotations into the X and Y coordinates of the load point. 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 in the top set of equations opposite.
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 coordinates 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 coordinates; what we want to calculate is the two joint angles. So we need to use 'inverse kinematics', and this is more complicated. 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 in the bottom set of equations opposite.
These 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 to 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 dramatically 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. Here's how it works. You program in the starting and ending XY coordinates, plus several intermediate coordinates 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", or "move from station #3 to station #8", etc. 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.
In summary, then, 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 practise 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.
Other News from Intelligent Motion Cont

Latest news about Robotics
- Omron joins forces with OnRobot for collaborative robotic solutions
- After a tough two years, industrial robots are back on track
- 3D printed plastic grippers save packaging manufacturers 85% on costs
- European manufacturing breakthrough stifled by overengineered industrial robots
- DIY automation with low cost robotic touchscreen test
- Omron launches next generation SCARA robots to handle heaviest payloads
- Get the right recipe to leave the others behind
- ABB launches next generation cobots to unlock automation for new sectors and first-time users
- Universal Robots to demonstrate how to ensure dispensing consistency with cobots
- ABB launches podcast series exploring robotics and automation
- Omron launches next generation SCARA robots
- Ballet dancer Merritt Moore chooses a cobot as her new dance partner
- Robolink DP for all flexible automated applications
- Robotic production line for Pets Choice
- Advanced robotics for industrial manufacturing
- Next generation production line for Pets Choice
- Universal Robots launches vast online knowledge bank
- IP44 robolink from Igus defies water
- Hire a robot from just £63.99 per day
- Igus demonstrates Robolink in splash water applications
- Robot range is quickly extended with the new 7th axis from Igus
- Re-energising European battery cell production
- Omron appoints Reeco Automation as solution partner for collaborative robots
- Cobots key to the future of manufacturing
- Universal Robots launches SME automation month for October
- A key consideration for a successful robot installation
- ABB offers Augmented Reality on a smartphone to simplify robot installations
- Long reach with a high payload: Fanuc expands m-900 series
- Robot palletiser increases throughput and reduces costs
- Fanuc expands range of handling robots
- ABB’s new 3D inspection robot system makes quality control testing ten times faster
- UK’s only dedicated Universal Robots training centre to reopen after Covid-19 lockdown is eased
- Automatica and Munich School of Robotics and Machine Intelligence (MSRM) initiate AI platform munich_i
- Cobots maximise return on investment
- Festo gives the future of safe automation a hand
- Omron launches HD-1500 mobile robot with 1500kg payload capacity
- New cobot offers solution for post-lockdown manufacturing
- Fanuc UK to host dedicated automation event for injection moulders
- RS Components joins forces with VEX Robotics to set summer STEM coding challenge
- ABB makes manufacturing more sustainable by recycling and remanufacturing thousands of old robots
- Entry-level robots to kick-start new factory automation projects
- Fast entry into low-cost automation using a digital twin in intuitive robot control
- UNLOCK A NEW LEVEL OF FLEXIBILITY FOR FINISHING APPLICATIONS
- Robots speed up the production of Covid-19 tests
- Collaborative robot brings game-changing industrial performance
- ABB’s robot training masterclasses now available online
- Universal Robots offers free online consultations to Pharma companies
- UR10 cobot from RARUK Automation saves labour costs at BWI
- Do you need a collaborative robot?
- RARUK opens dedicated Universal Robots training centre
- Robots play key role in the manufacture of EV battery packs
- Safe in the robotic arms of Mitsubishi Electric
- Tending to excel with a robot ‘handshake’
- Mitsubishi launches new robot model at SPS 2019
- Mobile robot moves payloads up to 250kg
- Collaborative or cooperative: which type of robot suits your needs best?
- New support offering helps to raise productivity
- Robot versus knot – it’s a tie
- LG Motion expands into collaborative robotics
- Food cutting becomes a piece of cake
- Mitsubishi introduces range of high performance delta robots
- Can robots transform your business?
- UK Robot Pioneers win Queen’s Award for Enterprise for Innovation
- British made robots already helping UK manufacturers
- New additions bring greater robot dexterity
- Robot arms are getting everywhere
- In the future you’ll be talking to your robots
- Innovation lab shows the benefits of robots
- New dresspack configurator for virtually any robot
- Three-way concept for tool changer for all robot brands
- Yaskawa and Reeco partner in cobots
- Igus introduces delta robots at under £5,000
- Universal Robots launches new flagship cobot range
- Applied Automation adds new cobot product lines
- New cobot offers flexible and reliable support
- Optimise your production
- Should robots pay taxes?
- Standards for safety when using collaborative robots
- Should robots be taxed?
- Fanuc launches SCARA robot range for assembly, packing and material handling
- Small and cost-effective: low-cost robolink robot arm in a compact design
- Cobot force control with high sensitivity
- Collaborative automation – a guide to common applications
- Universal Robots draw the crowds in Regent Street
- ABB extends the YuMi family
- Easy transition from ‘helping hand’ to full automation
- New White Paper: Cobots – a catalyst for reshoring
- Mitsubishi extends robot range with first collaborative robot
- Six-axis robot turns 3D printing into an art form
- Automata slashes the cost of robotics
- RARUK Automation highlights robots at Advanced Engineering
- Seminar provides step-by-step guide to improving your productivity with robots
- Dual gripper speeds output and relieves tedium
- Innovative Collaborative Robot sets new benchmark
- Omron debuts world’s fastest and first 4 arm Delta robot
- Resist the urge to blame the robots
- Schunk publishes its new lathe chuck catalogue
- New collaborative robot products and applications showcased at Northern Manufacturing
- Yaskawa MotoLogix hooks up with Routeco
- Universal Robots receives ‘Best Design’ award
- Mabey puts cutting-edge ABB robots to work
- Motoman robots plus AirGrip equals a better grip on bottles
- New robot lends precision and reliability to the production of hearing aids
- One stop shop for robotics and motion
- The future is bright for robotics
- A simple guide to robot safety
- Free online training in robot programming
- Cobots driving efficiency improvements
- Low-cost robotic range simplifies complex tasks
- Collaborative robots provide burger flipping assistance
- Low cost robotic range from RS Components
- Simple guide to robot safety
- Universal Robots now certified for cleanroom applications
- Cobots key for product testing
- Open source robotics
- Low-cost robotic range available from RS simplifies complex tasks
- Seminar provides step-by-step guide to improving your productivity with robots
- Igus expands robolink D modular kit with plastic gearing
- Universal Robots racks up the benefits at Etalex
- Igus robolink D 5-axis articulated arms now available pre-assembled
- RARUK Automation appoints robot sales engineer
- Twin robots learn to live and work with each other
- Yaskawa investing in Europe for future growth
- Igus extends robolink with direct drive arms
- Universal ‘co-bots’ boosted by next-generation robot programming
- Igus humanoid open platform robot
- UCB life scientists use robots to test cells by the billion
- X-STK confirmed as Preferred Partner for Universal Robots
- ABB Robotics introduces Connected Services to improve UK productivity
- Hands up if you know one robot arm from another
- Harder, better, faster
- Robot programming via PLC is key in food plant
- Benefits of Rodriguez-supplied technologies filter through at FDC
- Delta robot with open-architecture controller
- Teradyne announces new Universal Robots president
- Universal Robots now certified for applications in cleanroom environments
- Robot automates SIM card packaging
- Low cost robots help students get up to speed
- Collaborative robots meet machine tending needs
- Igus robolink robots tend machine tools
- Omron acquires Adept’s classy robots for fast-moving automation
- Collaborative robots boost production and prevent errors
- Foodie fads spark robot rethink
- UCB life scientists use robots to test cells by the billion
- The breakthrough of smart robots at Automatica 2016
- ABB to showcase latest robotic innovations at MACH 2016
- ABB introduces its first SCARA robot family
- Mitsubishi demonstrates MELFA SafePlus robotic safety
- From distributor to preferred partner
- AUTOMATICA 2016: Innovations for the food industry
- Applied Automation to distribute Universal Robots
- Second tea packing system ordered
- Second tea packing system ordered
- COMAU and B&R assimilate robotics into machine control
- London start-up simplifies robotic automation at a 10th of the cost
- Life sciences focus for AUTOMATICA 2016 in Munich
- 10,000 Comau robots controlled by B&R
- Modular system for safe robotics
- Path tracing robot with pattern recognition
- Safety considerations with CoBots
- Direct drive robotic arms support lean automation
- Omron acquires Adept Technology
- Fanuc robotic golf cell highlights precision and vision
- Omron demos path tracing delta robot with freehand pattern recognition
- Robot delivers 18 month ROI
- First Fanuc MC410iC/185 robot in the field at Askew & Barrett
- Aerotech introduces RCP-DELTA robot and controller
- Fanuc unveils world's highest payload collaborative robot
- Robots are on the march
- Schunk has a hand in precision gripping
- Unlocking the potential of robotic automation
- Robot 'first timer' meets exponential growth in demand
- Superior operating performance and reduced operating costs
- Sweetcorn Factory First for FANUC
- Busting the myths around robotics
- ABB acquires Gomtec to expand collaborative robotics portfolio
- Igus to offer €1500 industrial robot
- Teradyne announces Universal Robots acquisition
- Flexible product gripper
- Flexible, light-weight table-top robot
- Lightweight, table-top robot for collaborative working
- Getting a grip on collaborative robots
- Putting safety first when working with robots
- Robotics in the supply chain will enhance humans, not replace them
- Browse robot videos by company, technology or industry
- Robotics update brings the best of the web
- Using robots for bespoke and low volume processes
- robolink helps robots break free
- En route to robot safety
- Measuring robot works tirelessly outdoors
- Adaptive robot gripper system
- RA Rodriguez introduces third generation robots
- Robot gripper based on the human hand
- Tiny gripper accomplishes 3mm stroke in 0.03s
- HANNOVER MESSE showcases latest generation of industrial robots
- Picked to perfection
- Top tips for staying safe when working alongside robots
- Universal Robots launches third generation products
- New resource for industrial robot information
- Lightweight robots incorporate absolute encoders and adjustable safety
- Service robots revolutionise clean-up of the Sydney Harbor Bridge
- "Farming intelligence" creates greater value
- AUTOMATICA 2014: Focus on automobile production
- Innovations in life sciences
- Robots for metalworking
- Service Robots - Clever colleagues at work
- Service Robots - intelligent and autonomous
- Service robots in the medical industry
- Working with robots simply as automation components
- Table tennis star takes on fast, flexible KUKA robot
- Improving the state of UK manufacturing
- Mitsubishi Electric robot emulates intuitive human cake icing movements
- An innovative approach to automating ultrasonic testing
- Universal robot is a star attraction at Honda's Technical Festival
- The brains behind an effective robot solution
- The robot revolution that never quite happened...
- Table tennis legend to take on KUKA robot
- Robot transformations
- FANUC paint shop robots boost installed UK base
- An innovative approach to automation for production of airbag control sensors
- KUKA announces Siemens cooperation
- Next generation of high speed pickers
- Robot helps to get MS sufferer back to work
- Mitsubishi Electric robot picks stem cells
- Novel energy chain system increases uptime for Jaguar Land Rover
- Performance robot is food safe
- Robotics integrates with vision, motion and PLC in single platform
- Innovative robot design set to revolutionise the market
- Increase production flexibility with a robot arm tool changer
- Transforming your sustainability with robotic automation
- Huge uptake reported for automation grant
- Innovation in lightweight, low cost robotics
- Automation Brings Everything Together in the Electrical Industry
- ABB doubles investment in training centre
- Getting to grips with the bionic FinGripper
- Pick and place delta robots
- Robot night shift gives ALM a competitive edge
- Seeing your name in lights, thanks to KUKA robots
- Economical, flexible robot found after 10 year search
- Aerotech launches Cartesius T-style robots
- Automation transforms forge's finishing facility
- Compact high-speed robot requires minimal workspace
- It's time for the UK to embrace robots
- Modular robots were inspired by nature
- Robot arm tool changer is faster and stronger
- Robot range completed by six-axis launch
- Robot retrofits: Axis 1 safety
- Save assembly time and costs
- ABB robots featured in "Terminator Salvation" movie
- Bionic penguins mimic real life movement
- Energy and data supply for robotics