Learn ABB-ROBOTSTUDIO-RAPID-EXTENSIONS with Real Code Examples
Updated Nov 27, 2025
Code Sample Descriptions
1
Custom Move with Sensor Check
IF SensorSignal = TRUE THEN
MoveJ [[500,0,400],[1,0,0,0]], v100, z50, tool0;
ENDIF;
Move the robot to a target position only if a sensor input is active.
2
Modular Gripper Control
PROC ControlGripper()
SetDO gripperOpen, TRUE;
WaitTime 1;
SetDO gripperOpen, FALSE;
ENDPROC
ControlGripper();
Custom procedure to open and close a gripper with delay and safety checks.
3
Event-Driven Motion
WaitUntil DI1 = TRUE;
MoveL [[300,100,200],[1,0,0,0]], v50, z10, tool0;
Move the robot linearly when an external event occurs.