Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Articles

ABB RobotStudio RAPID Code Example: Pick and Place

Here's a simple example of a picking program in ABB RobotStudio using RAPID programming. This program picks up an object from one location and places it at another.

 

RAPID Code Example: Pick and Place

MODULE PickAndPlace
 VAR robtarget pickPos := [[500, 200, 50], [1,0,0,0], [0,0,1,0]];
 VAR robtarget placePos := [[800, 200, 50], [1,0,0,0], [0,0,1,0]];
 
 VAR speeddata v100 := [100,100,50,100]; ! Speed
 VAR zonedata fine := [0,0,0,0,0,0,0]; ! Precise positioning
 VAR tooldata gripper := [TRUE, [[0,0,50],[1,0,0,0]], "Tool0"];
 
 PROC main()
 MoveJ pickPos, v100, fine, gripper; ! Move to pick position
 SetDO gripper, 1; ! Close gripper (pick object)
 WaitTime 0.5; ! Wait for secure grip
 
 MoveJ placePos, v100, fine, gripper; ! Move to place position
 SetDO gripper, 0; ! Open gripper (release object)
 WaitTime 0.5; ! Wait
 
 MoveJ pickPos, v100, fine, gripper; ! Return to pick position
 ENDPROC
ENDMODULE

Explanation

  1. Defines positions (
    pickPos
    and
    placePos
    ).
  2. Sets speed and accuracy (
    v100
    for speed,
    fine
    for precision).
  3. Uses a gripper tool (
    tooldata gripper
    ).
  4. Executes movements:
    • Moves to the pick position.
    • Activates the gripper to pick the object.
    • Moves to the place position.
    • Releases the object.
    • Returns to the pick position.

This program can be loaded into ABB RobotStudio and executed on a virtual or real robot.

caa February 07 2025 9 reads 0 comments Print

0 comments

Leave a Comment

Please Login to Post a Comment.
  • No Comments have been Posted.

Sign In
Not a member yet? Click here to register.
Forgot Password?
Users Online Now
Guests Online 3
Members Online 0

Total Members: 14
Newest Member: Frank_nKansas