Cnv_QueAdd Statement
Adds a robot point to a conveyor queue.
Syntax
Cnv_QueAdd conveyorNumber, pointData [, userData ]
Parameters
- conveyorNumber
- Specify the conveyor number as an integer (1-16).
- pointData
- Specify point data to be added to the conveyor queue data.
- userData
- Optional. Real expression used to store user data along with the point.
Description
pointData is added to the end of the specified conveyor's queue. It is registered together with the currently latched conveyor pulse position.
If the distance between pointData and the previous point in the queue is at or below that specified by Cnv_QueReject, the point data will not be added to the queue, and no error will occur.
The maximum queue data value is 1000.
Note
This command will only work if the Conveyor Tracking option is active.
See Also
Cnv_RobotConveyor
Cnv_QueAdd Statement Example
Boolean found
Integer i, numFound
Real x, y, u
Cnv_Trigger 1
VRun FindParts
VGet FindParts.Part.NumberFound, numFound
For i = 1 To numFound
VGet FindParts.Part.CameraXYU(i), found, x, y, u
Cnv_QueAdd 1, Cnv_Point(1, x, y)
Next i