VGoCenter Method

Description
Using a feature point that can be detected by the vision system, moves the robot to a position where the feature point is on the center of the camera image.

Syntax
Sub VGoCenter(Sequence As String, LocalNumber As Integer, TargetTolerance As Double)
Sub VGoCenter(Sequence As String, LocalNumber As Integer, TargetTolerance As Double, Parent As Form)
Sub VGoCenter(Sequence As String, LocalNumber As Integer, TargetTolerance As Double, RobotSpeed As Integer, RobotAccel As Integer)
Sub VGoCenter(Sequence As String, LocalNumber As Integer, TargetTolerance As Double, RobotSpeed As Integer, RobotAccel As Integer, Parent As Form)

Parameters

  • Sequence
    A string expression indicating the vision sequence name for the current project.
  • LocalNumber
    An integer indicating the local coordinate number to move the robot to.
    If -1 is specified, the robot moves in the XY plane of the tool rotation
  • TargetTolerance
    A real number indicating the pixel distance at which the vision detection result is considered to match the target position.
    Value range: 0 to 3 pixels
  • Form
    Optional. A .NET form that is the parent of the window.
  • RobotSpeed
    Optional. Integer variable indicating the robot speed (%). Value range: 0 to 100 If omitted, set to “5”.
  • RobotAccel
    Optional. Integer variable indicating the robot acceleration (%). Value range: 0 to 99 If omitted, set to “5”.

See Also
VDefArm Method, VDefGetMotionRange Method, VDefLocal Method, VDefSetMotionRange Method, VDefTool Method

VGoCenter Example
VB Example:

m_spel.VGoCenter("myseq", 1, 1.0)  

C# Example:

m_spel.VGoCenter("myseq", 1, 1.0);