Hi,
I am coming to RobotStudio/ABB from Staubli V+ and am looking to create a simple program that allows a single target to be moved dynamically within a program. Below is an abbreviated version of how it could be done in V+ - the first point is called StartPoint, and it is shifted along the World X by a distance ‘xspace’ for each iteration of the loop - hence parts are always picked from one target and dropped in a line - this can easily be extended to 2D and 3D with additional loops. Gripper I/O is OpenI and CloseI; Shift command assumed World Coordinates.
What is the easiest way of doing this in RobotStudio?
Many thanks!
PROMPT "Enter the num. of targets in the x-direction: ", xdim
PROMPT “Enter the target spacing in the x-direction in mm:”, xspace
OpenI
FOR loopx = 0 TO (xdim-1)
SET dropoff = SHIFT(startpoint BY (xspace*loopx))
MOVE pickup
CLOSEI
MOVE dropoff
OPENI
END