info@artec.bg +359 889 557 337
Artec Robotics
News item

The RAPID Language for ABB Robots: A Syntax Guide

Home / News / The RAPID Language for ABB Robots: A Syntax Guide

04.03.2025

RAPID is a programming language used to program ABB industrial robots. It's designed for creating the complex movements and tasks the robot has to perform. This is a basic guide to RAPID syntax:

1. Comments

Comments in RAPID start with the ! symbol and continue to the end of the line.

Comment

2. Variables and data types

RAPID supports various data types, such as num (numbers), bool (Boolean values), string (strings), pose (positions) and others.

Variables and data types

3. Procedures and functions

Procedures and functions are defined with the keywords PROC and FUNC respectively.

Procedures and functions

4. Movements

RAPID supports various types of motion, such as MoveJ (joint motion) and MoveL (linear motion).

Movements

5. Conditional statements

RAPID supports the standard conditional statements IF, ELSEIF and ELSE.

Conditional statements

6. Loops

RAPID supports FOR and WHILE loops.

Loops

7. Arrays

Arrays are declared and used as follows:

Arrays

8. Calling procedures and functions

Procedures and functions are called as follows:

Calling procedures and functions

9. Working with tools and coordinate systems

RAPID lets you define and use tools (tool) and coordinate systems (wobj).

Working with tools and coordinate systems

10. Error handling

RAPID supports error handling mechanisms via TRYNEXT and ERROR.

Error handling

11. Modules and including files

RAPID programs can be divided into modules, which are included with MODULE.

Modules and including files

12. System variables and functions

RAPID provides access to system variables and functions, such as ClkRead() for time measurements.

System variables and functions

13. Working with I/O

RAPID allows control of input/output signals via SetDO, SetGO, WaitDI and others.

Working with I/O

14. Multitasking

RAPID supports multitasking, which allows several tasks to run at the same time.

Multitasking

15. Ending the program

The program ends with ENDMODULE or ENDPROC.

Ending the program

This guide provides basic information on the syntax of the RAPID language. For more detailed explanations, advanced techniques and professional support, contact the Artec Robotics team.

On the Artec Robotics “News” page you will find a variety of articles and guides on robotics and automation. Here you'll find useful information about the latest technologies, software solutions and programs that will help you dive deeper into the world of industrial robots and automated systems.

Follow the news from Artec Robotics!

MAKE AN INQUIRY

ABB - RAPID
Contact us

Make an inquiry