Create Pick&Place program¶
The following chapter contains variants of a Pick&Place program that build on each other:
- Create a basic Pick&Place program
- Extension: Movement Optimization
- Extension: Add loop
- Extension: Add input parameters
- Extension: Add case distinction and user dialog
Create a basic Pick&Place program¶
What you will learn
- Gripping and placing workpieces
- Parameterize robot movements
- Use of loops and conditions
- Use of input parameters and user dialogs
Error message during program execution
If individual waypoints in the programs are too far apart, the robot can no longer perform the movement. This results in an error message ("Command Error"). This can be corrected by reducing the distances between the waypoints or by inserting intermediate points.
Video Tutorial¶
Step-by-step Guide¶
-
Go to the Programs section.
-
Klick on
and name the program. -
Drag a
Move Cartesian
function block into the program and name it "Home Position". -
In this function block, parameterize the desired starting position using the Trajectory Wizard.
Approach position¶
-
Now add another
Move Cartesian
block and define the following two waypoints:a) The approach position above the workpiece to be gripped.
b) The gripping position directly on the workpiece.
For the approach position this could look like this:
-
To grip the workpiece, now drag the function block
Simulator Gripper - Close
into the program. -
Execute the program to be able to determine the placing position with the workpiece in the next step.
Placing position¶
-
For the placing position: Duplicate the last
Move Cartesian
block and drag it to the end of the program. -
Parameterize the function block.
-
In the Trajectory Wizard, replace the gripping position (second waypoint) with the first approach point for the placing position. This must be in front of the machine.
-
Define a second approach point directly above the placing point, as well as the placing point itself.
-
Now drag
Simulator Gripper - Open
into the program. -
Duplicate the previous
Move Cartesian
block and delete the existing waypoints except for the approach positions. -
Swap the two approach positions to move the robot out of the machine.
-
Now copy the block
Home Position
from step 3 so that the robot returns to it at the end. -
Ready! You have just created your first Pick&Place program. (You can download the program here. At "My Programs" -> you can load external programs into drag&bot.)
Further information:¶
Homeposition
The home position is the start and end position of a program. These should identical so that a program can be restarted immediately after it has ended.