GetRobotPos Method

Description
Returns the current robot position.

Syntax
Function GetRobotPos( PosType As SpelRobotPosType, Arm As Integer, Tool As Integer, Local As Integer) As Single()

Parameters

  • PosType
    Specifies the position data type.
  • Arm
    Integer expression that specifies the robot arm.
  • Tool
    Integer expression that specifies the robot tool.
  • Local
    Integer expression that specifies local.

Return Value
Single data type array containing 9 elements. The data returned depends on the specified PosType.
World X, Y, Z, U, V, W, R, S, T
Joint J1, J2, J3, J4, J5, J6, J7, J8, J9
Pulse Pls1, Pls2, Pls3, Pls4, Pls5, Pls6, Pls7, Pls8, Pls9

See Also
GetPoint Method

GetRobotPos Example
VB Example:

Dim values() As Single  
values = m_spel.GetRobotPos(SpelRobotPosType.World, 0, 0, 0)  

C# Example:

float[] values;  
values = m_spel.GetRobotPos(SpelRobotPosType.World, 0, 0, 0);