RotationDirection Property
Applies To
Vision Objects: ImageOp, Contour
Description
For ImageOp, this property sets or returns the direction of rotation when rotating.
For Contour, this property sets the direction of rotation for contour lines to be output.
Usage
VGet Sequence.Object.RotationDirection, var
VSet Sequence.Object.RotationDirection, value
- Sequence
- Name of a sequence or string variable containing a sequence name.
- Object
- Name of an object or string variable containing an object name. The object must exist in the specified sequence.
- var
- Integer variable that will contain the value of the property.
- value
- Integer value or expression for the new value of the property.
Values
- 1 - CCW
- Vision constant: VISION_ROTATIONDIR_CCW
- 2 - CW
- Vision constant: VISION_ROTATIONDIR_CW
Default: 1
Remarks
For ImageOp, the RotationDirection sets the direction of rotation for the image.
If RotationDirection is set to CCW, the direction of rotation is counter-clockwise when the angle set as the RotationAngle is a positive value. If RotationDirection is set to CW, the direction of rotation is clockwise when the angle set as the RotationAngle is a positive value.
For Contour, the RotationDirection sets the direction of rotation for contour lines.
This only applies when the ContourMode is set to Blob or Arc. If RotationDirection is set to CCW, a trajectory traced in a counter-clockwise direction around the workpiece is output. If RotationDirection is set to CW, a trajectory traced in a clockwise direction around the workpiece is output.
See Also
Contour Object