Cnv_QueGet Function
Returns a point from the specified conveyor's queue.
Syntax
Cnv_QueGet (conveyorNumber [, index ] )
Parameters
- conveyorNumber
- Specify the conveyor number as an integer (1-16).
- Index
- Optional. Integer expression that represents the index of the queue data to acquire.
Return Values
A robot point in the specified conveyor's coordinate system.
Description
Use Cnv_QueGet to retrieve points from the conveyor queue. When queNumber is omitted, the first point in the queue is returned. If the index is specified, the point data of the specified index is returned.
Cnv_QueGet does not delete the point from the queue. Instead, you must use Cnv_QueRemove to delete it.
To track a part as the conveyor moves, you must use Cnv_QueGet in a motion command statement.
For example:
Jump Cnv_QueGet(1) ' this tracks the part
You cannot assign the result from Cnv_QueGet to a point and then track it by moving to the point.
P1 = Cnv_QueGet(1)
Jump P1 ' this does not track the part
When you assign the result from Cnv_QueGet to a point, the coordinate values correspond to the position of the part when the point assignment was executed.
Note
This command will only work if the Conveyor Tracking option is active.
See Also
Cnv_QueLen, Cnv_QueRemove
Cnv_QueGet Function Example
' Jump to the first part in the queue and track it
Jump Cnv_QueGet(1)
On gripper
Wait .1
Jump place
Off gripper
Wait .1
Cnv_QueRemove 1