<< Prev        Next >>

ID : 3679

DestPos

Function

To return the current motion statement target position by position type data.

Syntax

DestPos

Return Value

Return the current motion instruction target position by Position Type data.

Description

The current motion instruction target position is returned by Position Type data.

The current position (command position) is returned when the robot is stopped.

Related Terms

CurPos, CurTrn, CurJnt, DestTrn, DestJnt

Attention

If a motion is interrupted by "MotionSkip" commands that stop the motion by a motion instruction, the target position is modified at the time of interruption.

Example

'!TITLE "Acquiring Motion Instruction Target Position"
' Acquire the motion instruction target position by P type
Sub Sample_DestPos

  Dim aaa As Position

  TakeArm Keep = 1

  aaa = P( 200, 0, 30, 180, 0, 180, -1 )

  ' Move to aaa position asynchronously
  Move P, aaa, Next

  Do

    ' Display the current coordinate position and target position
    ' coordinates on the message output window
    PrintDbg CurPos, DestPos

    ' Wait for 200ms (0.2s) motion
    Delay 200

   ' Until the motion is completed
  Loop Until( MotionComplete )

End Sub

ID : 3679

<< Prev        Next >>