
6.1.3 GetItmTgt - Get the next item target
Usage
GetItmTgt
is used to get the next available
itmtgt
in the item source queue
between the enter and the exit limit of the work area. The RAPID program waits in
this instruction until the next item is possible to reach or the timeout occurs.
Basic examples
Basic examples of the instruction
GetItmTgt
are illustrated below.
Example 1
GetItmTgt PlaceSource, PlaceItem;
Receives a place item from the PlaceSource when there is one that can be used.
Example 2
...
VAR selectiondata neg_y_sort;
neg_y_sort.ShapeType:=BOX;
neg_y_sort.ConsiderType:=BitOr(ITEMS_TO_USE,ITEMS_BYPASS);
neg_y_sort.GeometricData.x:=60;
neg_y_sort.GeometricData.y:=500;
neg_y_sort.GeometricData.z:=10;
neg_y_sort.GeometricData.radius:=0;
neg_y_sort.Offset.OffsetRelation:=FRAME_COORD_DIR;
neg_y_sort.Offset.OffsetPose.trans.x:=0;
neg_y_sort.Offset.OffsetPose.trans.y:=-500;
neg_y_sort.Offset.OffsetPose.trans.z:=0;
neg_y_sort.Offset.OffsetPose.rot.q1:=1;
neg_y_sort.Offset.OffsetPose.rot.q2:=0;
neg_y_sort.Offset.OffsetPose.rot.q3:=0;
neg_y_sort.Offset.OffsetPose.rot.q4:=0;
IF pick_type = 2 THEN pick_type := 1; ELSE
pick_type := 2
ENDIF
GetItmTgt PickSource, PickItem \ItemType:=pick_type \Limit:=100
\Selection:=neg_y_sort;
Retrieves a pick item from the
PickSource
with negative y-sorting and type request.
The type is alternating between two types. The
Limit
argument tells from where
to start the search.
In the example graphic below, the sorting is in positive x-direction, negative
y-direction, and operating on two different object types. The two object types should
Continues on next page
364
Application manual - PickMaster® Twin - PowerPac
3HAC064218-001 Revision: B
© Copyright 2021 ABB. All rights reserved.
6 RAPID reference
6.1.3 GetItmTgt - Get the next item target
Содержание PickMaster Twin - PowerPac
Страница 1: ...ROBOTICS Application manual PickMaster Twin PowerPac ...
Страница 2: ...Trace back information Workspace Main version a394 Checked in 2021 03 25 Skribenta version 5 4 005 ...
Страница 8: ...This page is intentionally left blank ...
Страница 12: ...This page is intentionally left blank ...
Страница 16: ...This page is intentionally left blank ...
Страница 420: ...This page is intentionally left blank ...
Страница 444: ...This page is intentionally left blank ...
Страница 446: ...This page is intentionally left blank ...
Страница 448: ...This page is intentionally left blank ...
Страница 452: ......
Страница 453: ......