Programming ABB robots means preparing a program in the RAPID language, which is executed by the robot controller (IRC5 or the newer OmniCore). Most of the code is written offline in RobotStudio, on a virtual controller with a model of the cell, and what is left for the shop floor is calibration, point correction, testing the signals with the PLC and cycle time optimization. The split of work between these two stages determines how long the line stands still during commissioning.
What is RAPID in ABB robot programming?
RAPID is a high-level text language used to program all ABB robots. It has procedures, functions, loops, conditional statements, error handling and interrupts, so it is closer to a programming language than to a list of points taught with a pendant.
A program is divided into modules: program modules (the logic of the workstation) and system modules (data and routines shared by the whole installation). Modules contain procedures (PROC), functions that return a value (FUNC) and interrupt routines (TRAP), which react to an external event without waiting for the current motion to finish.
Robot motion is described by the instructions MoveJ (joint motion, without control of the tool path), MoveL (linear tool motion), MoveC (arc) and MoveAbsJ (a position given by axis angles). Each of them uses several data types, and an error in any of them shows up only on the machine:
| Data type | What it describes | What happens when it is wrong |
|---|---|---|
tooldata | the tool center point (TCP), plus the mass and center of gravity of the gripper | the robot misses the target, and a wrong mass loads the gearboxes and spoils path accuracy |
wobjdata | the coordinate system of the workpiece or fixture | after the fixture is moved, every point has to be corrected instead of a single coordinate system |
robtarget | the position and orientation of the tool at a point | a collision, or a point that cannot be reached in a different axis configuration |
speeddata, zonedata | the speed and the accuracy of passing through a point | a cycle that is too long, or a signal to the PLC sent too early |
The last row is a common source of faults that are hard to find. A fine point is a stop point: the program waits until the robot stands in position. A zone (e.g. z10) creates a fly-by point, and the program executes the next instructions before the robot reaches its destination. If an output such as “open gripper” is set right after such a motion, a part may be dropped a few millimeters before the target. The choice of zones determines both the cycle time and whether the process is repeatable.
One ABB controller can operate several robots. The MultiMove option allows up to four robots and positioners to be coordinated from it, which is used, among other things, when two robots weld the same part rotated by a shared positioner.
How does offline programming of ABB robots in RobotStudio work?
RobotStudio is ABB’s environment for offline programming and simulation, built on a virtual controller. The manufacturer describes this controller as a faithful copy of the software that runs in the robot controller in production, so a program tested in simulation is the same RAPID code that will go into the cabinet.
Offline work starts with the station: a model of the cell from CAD, the robot with the right RobotWare version and options, tools and fixtures. The virtual controller is best created from a backup of the existing controller, because then it has the same configuration as the real one. On such a model the programmer checks:
- reach and axis configurations: whether the robot can reach every point without passing through a singularity;
- collisions: with the fixture, the fence, another robot and the gripper cables;
- cycle time: whether the workstation fits within the line takt time before anyone orders equipment;
- program logic: sequences, error handling and return to the home position.
In RobotStudio you also configure SafeMove, the safety functions built into the controller: zones the robot cannot enter and tool speed supervision. The zones are drawn on the cell model, and the configuration is loaded into the controller.
RobotStudio Basic is free and is enough to work with a virtual controller and to connect to a real controller. Full offline programming and simulation require a paid Premium license.
Simulation does not replace the shop floor. A CAD model rarely matches reality to the millimeter: the fixture stands slightly differently, the gripper cable has a different length, the floor is not perfectly flat. The better the offline program is prepared, the shorter the line downtime at commissioning, but corrections on site always remain.
What does programming an ABB robot on site look like?
On site, the program from RobotStudio goes to the real controller, and the robot technician adapts it to the actual cell. The order of work matters, because each stage builds on the previous one:
- Calibration of the tool and workpiece coordinate systems: measuring the TCP of the gripper or torch and the
wobjdatacoordinate systems of the fixtures. Program points are stored relative to these systems, so an error in calibration shifts all positions at once. - Point correction: adjusting the positions that the simulation did not reproduce exactly, on the FlexPendant in manual mode, at reduced speed.
- Testing the interface with the PLC: checking every signal between the robot and the line controller (ready, program start, type number, gripper confirmations, sensor signals).
- Automatic operation and optimization: choosing speeds and zones, shortening paths, matching the cycle to the line takt time.
- Robustness tests: emergency stop in the middle of a cycle, a missing part, loss of a signal, restart after operator intervention.
- Documentation and backup: an up-to-date controller backup and a description of the signals for maintenance.
Storing points relative to workpiece coordinate systems also matters for maintenance. When the fixture is moved years later, one coordinate system is corrected instead of dozens of points in the program.
This is what our work looked like, among others, on the assembly line for V8 engine cylinder heads for Jaguar Land Rover, where we programmed ABB robots for handling and for quality control with a vision system, using RobotStudio.
Looking for an experienced ABB robot integrator? Get in touch and we will integrate and commission the robot at your plant.
How does an ABB robot program work with a PLC?
In a production cell the order of work is usually decided by the line PLC, while the robot carries out the assigned tasks and reports their result. Data is exchanged over an industrial network (most often PROFINET or EtherNet/IP), and in the RAPID program it is handled by a set of digital and group inputs and outputs.
The challenge is every place where the robot waits for a signal. A WaitDI instruction without a time limit will stop the program forever if a sensor gets dirty or the PLC does not send a confirmation. The operator sees a standing robot with no message, and maintenance looks for the cause blindly. That is why a time limit (\MaxTime) is set at every wait, and the error handler sends a readable fault code to the PLC and to the panel.
The main risks at the interface between the robot and the PLC:
- no time limit on signals: the workstation stands still without diagnostics;
- a signal sent in a zone: the PLC gets the “robot in position” message before the robot has actually arrived;
- no safe return: after an emergency stop the robot does not know where it is, so the operator has to move it out by hand;
- non-compliance with the customer’s standard: automotive groups describe their own signal layout and robot program structure in their specifications, and a program written in a custom way will not pass acceptance.
A program that reports the cause of a stop by itself shortens every future downtime of the workstation. The structure of the sequence on the PLC side is defined by the line controller software, often written to a corporate standard such as VASS.
How does programming ABB robots differ on IRC5 and OmniCore controllers?
The language stays the same: on both controllers you program in RAPID and in RobotStudio. What changes is the platform. OmniCore runs on RobotWare 7, and IRC5 on its earlier versions.
ABB presented OmniCore as the successor to IRC5 and announced the end of IRC5 production. IRC5 controllers moved to the “Classic” status, and the manufacturer declares at least 10 years of service support for them, with spare parts and repairs. For a plant this means two things:
- a new workstation with an ABB robot is already built on OmniCore;
- a fleet of robots on IRC5 can keep working, but when a line is modernized the move to the new controller has to be planned.
Moving a program between generations is not just copying RAPID modules. You have to check the input and output configuration, the RobotWare options, the safety functions and the instructions that behave differently in the new version, and then test the program in RobotStudio and at the workstation.
ABB robots are one of the brands we program alongside KUKA and Fanuc. The suppliers are compared from a plant’s point of view in the post Which industrial robot supplier should you choose for your facility?.
Modernizing a line with ABB robots? We will adapt the RAPID programs and commission the robots at your plant.
FAQ
Sources
- ABB, RobotStudio Desktop (virtual controller, offline programming): https://www.abb.com/global/en/areas/robotics/products/software/robotstudio-suite/robotstudio-desktop
- ABB, press release “ABB launches next-generation Robotics control platform OmniCore”: https://new.abb.com/news/detail/116279/abb-launches-next-generation-robotics-control-platform-omnicore
- ABB, “Tschüss IRC5” (end of IRC5 production, Classic status, service support): https://new.abb.com/products/robotics/de/campaigns/tschuess-irc5
- ABB, “ABB MultiMove functionality” (coordination of up to four robots from one controller).
- ABB, Technical reference manual “RAPID Instructions, Functions and Data types” (MoveL, MoveJ, WaitDI, zonedata, tooldata, wobjdata).
- ABB, product manuals with Visual SafeMove configuration in RobotStudio.




