Cnv_Point Function
Returns a robot point in the specified conveyor's coordinate system derived from sensor coordinates.
Syntax
Cnv_Point (conveyorNumber, sensorX, sensorY [, sensorU])
Parameters
- conveyorNumber
- Specify the conveyor number as an integer (1-16).
- sensorX
- Specify the sensor X coordinate value as a real number value.
- sensorY
- Specify the sensor Y coordinate value as a real number value.
- sensorU
- Optional. Real expression for the sensor U coordinate.
Return Values
Robot point in conveyor coordinate system.
Description
The Cnv_Point function must be used to create points that can be added to a conveyor queue. For vision conveyors, sensorX and sensorY are the vision coordinates from the camera. For sensor conveyors, sensorX and sensorY can be 0, since this is the origin of the conveyor's coordinate system.
Note
This command will only work if the Conveyor Tracking option is active.
See Also
Cnv_Speed
Cnv_Point Function 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