Share this

A comprehensive list of commonly used ABB robot commands

2026-04-06 06:00:19 · · #1

ABB robots are intelligent devices widely used in industrial automation. Their instruction systems are rich and diverse, capable of meeting the needs of various complex scenarios.

Basic instructions

1.1 Move command

The Move command is the most basic motion command for ABB robots, used to control the robot's movement trajectory. The basic syntax of the Move command is as follows:

MoveAbs j1, j2, j3, j4, j5, j6, tool0, base0, zone0, ref0;

Where j1 to j6 represent the angles of the robot's six joints, tool0 represents the tool coordinate system, base0 represents the base coordinate system, zone0 represents the motion area, and ref0 represents the reference point.

1.2 MoveC command

The MoveC instruction is used to control the robot to move along a circular arc trajectory. Its basic syntax is as follows:

MoveC p1, p2, p3, j1, j2, j3, j4, j5, j6, tool0, base0, zone0, ref0;

Here, p1, p2, and p3 represent the three control points of the arc, and the other parameters are the same as those of the MoveAbs command.

1.3 MoveJ command

The MoveJ command is used to control the robot's movement along a straight path in joint space. Its basic syntax is as follows:

MoveJ j1, j2, j3, j4, j5, j6, tool0, base0, zone0, ref0;

1.4 MoveL Command

The MoveL command is used to control a robot to move along a linear trajectory. Its basic syntax is as follows:

MoveL p1, tool0, base0, zone0, ref0;

Here, p1 represents the target point, and the other parameters are the same as those in the MoveAbs command.

Logical instructions

2.1 If instruction

The if directive is used to perform conditional judgments. Its basic syntax is as follows:

If (condition) Then

// Code to execute when the condition is true

Else

// Code to execute when the condition is not met

EndIf

Here, condition represents a conditional expression.

2.2 While instruction

The While directive is used to implement loop functionality. Its basic syntax is as follows:

While (condition)

// Loop body code

EndWhile?

2.3 For instruction

The `for` directive is used to implement a loop that iterates a finite number of times. Its basic syntax is as follows:

For i = start TO end STEP step

// Loop body code

EndFor;

Where i represents the loop variable, start represents the loop start value, end represents the loop end value, and step represents the loop step size.

Variable directives

3.1 Variable Declaration

In ABB robot programs, various types of variables can be used to store data. The basic syntax for variable declaration is as follows:

VAR

num:=10; // Declare an integer variable num and assign it the value 10.

str:="Hello, ABB!"; // Declare a string variable str and assign it the value "Hello, ABB!"

arr[10]; // Declare an array variable arr with a length of 10.

END_VAR;

3.2 Variable Assignment

During program execution, values ​​can be assigned to variables. The basic syntax for variable assignment is as follows:

num:=20; // Changes the value of variable num to 20

str:="Welcome to ABB!"; // Changes the value of variable str to "Welcome to ABB!"

3.3 Array Operations

In ABB robot programming, various operations can be performed on arrays, such as accessing and modifying them. The basic syntax for array operations is as follows:

arr[3]:=5; // Modify the value of the 4th element (index starts from 0) of array arr to 5.

num:=arr[3]; // Assign the value of the 4th element of array arr to variable num

System commands

4.1 Wait command

The `wait` command is used to pause the program. Its basic syntax is as follows:

Wait for time.

Where time represents the pause time, in seconds.

4.2 Break command

The `break` instruction is used to exit a loop prematurely. Its basic syntax is as follows:

While (condition)

If (some_condition)

Break

EndIf

EndWhile?

4.3 Continue command

The `continue` directive skips the remaining part of the current loop and proceeds directly to the next iteration. Its basic syntax is as follows:

For i = 1 TO 10

If (i MOD 2 = 0)

Continue;

EndIf

// Code for handling odd number i

EndFor;

Communication instructions

5.1 Rcv command

The Rcv command is used to receive data from other devices. Its basic syntax is as follows:

Rcv device, data;

Here, device represents the data source device, and data represents the received data.

5.2 Snd command

The Snd command is used to send data to other devices. Its basic syntax is as follows:

Snd device, data;

Here, device represents the target device, and data represents the data to be sent.

Read next

Discussing the selection and use of low-voltage circuit breakers

Abstract: Determining the electrical clearance of electrical products must be based on the insulation coordination of th...

Articles 2026-02-22