WorkQue_Get Function

Returns the point data from the specified work queue.

Syntax
WorkQue_Get(WorkQueNum [, index ] )

Parameters

WorkQueNum
Specifies the work queue number as an integer (1-16).
index
Optional. Integer expression that represents the index of the queue data to acquire.

Return Values
The point data is returned from the specified work queue.

Description
Use WorkQue_Get to acquire the point data from the work queue. If the index is omitted, the first data of the queue data is returned. If the index is specified, the point data of the specified index is returned.

When the auto delete function is enabled by WorkQue_AutoRemove, the point data and the user data are deleted by WorkQue_Get.

When the auto delete is disabled, the point data and the user data are not deleted. To delete them, use WorkQue_Remove.

See Also
WorkQue_AutoRemove, WorkQue_Len, WorkQue_Reject, WorkQue_Remove, WorkQue_Sort

WorkQue_Get Function Example

' Jump to the first part in the queue and track it
Jump WorkQue_Get(1)
On gripper
Wait .1
Jump place
Off gripper
Wait .1
WorkQueRemove 1