WorkQue_Add Statement
Adds the work queue data (point data and user data) to the specified work queue.
Syntax
WorkQue_Add WorkQueNum, pointData [, userData ]
Parameters
- WorkQueNum
- Specifies the work queue number as an integer (1-16).
- pointData
- Specify the point data to be added to the work queue.
- userData
- Optional. Real expression used to store user data along with the point. If omitted, 0 (real number) is registered as the user data.
Description
pointData and useData are added to the end of the work queue.
When the Sort type is specified by WorkQue_Sort, however, they are registered according to the specified Sort type.
When the double registration prevention distance is set by WorkQue_Reject, the distance from the previously registered point data is calculated. If the point data is less than that distance, the point data and the user data are not added to the work queue. In this case, an error does not occur.
The upper limit of the work queue data is 1000. The work queue data is deleted by WorkQue_Remove when it is finished being used.
See Also
WorkQue_AutoRemove, WorkQue_Len, WorkQue_Reject, WorkQue_Remove, WorkQue_Sort
WorkQueAdd Statement Example
Integer x, y
Real u
P0 = XY(300, 300, 300, 90, 0, 180)
P1 = XY(200, 280, 150, 90, 0, 180)
P2 = XY(200, 330, 150, 90, 0, 180)
P3 = XY(-200, 280, 150, 90, 0, 180)
Pallet 1, P1, P2, P3, 10, 10
x = 1
y = 1
u = 5.3
WorkQue_Add 1, Pallet(1, x, y), u