6.2.2 GetQueueLevel - Get queue level
Usage
GetQueueLevel is used to get current number of item targets in an item source
fulfilling certain conditions.
Basic example
reg1 := GetQueueLevel(PlaceSource);
reg1 is assigned the current number of item targets in the item source
PlaceSource.
Return value
Data type: num
The current number of item targets in the item source.
Arguments
GetQueueLevel (ItemSource [\ItmType] [\MinLimit] [\MaxLimit])
ItemSource
Data type: itmsrc
The item source that the current number of item targets should be retrieved from.
\ItmType
Data type: num
Only items of the specified type number will be counted.
\MinLimit
Data type: num
Defines the minimum distance to the robot center from where an item will be
counted. A negative value indicates that the limit is upstreams from the robot
center. A positive value indicates that the limit is downstreams. The parameters
does not affect indexed work areas.
\MaxLimit
Data type: num
Defines the maximum distance to the robot center from where an item will be
counted. A negative value indicates that the limit is upstreams from the robot
center. A positive value indicates that the limit is downstreams. The parameter
does not affect indexed work areas.
Error handling
The following recoverable errors can be generated. The errors can be handled in
an error handler. The system variable ERRNO will be set to:
DescriptionError code
itmsrc undefinedERR_ITMSRC_UNDEF
Continues on next page
380 Application manual - PickMaster® Twin - PowerPac
3HAC064218-001 Revision: B
© Copyright 2021 ABB. All rights reserved.
6 RAPID reference
6.2.2 GetQueueLevel - Get queue level