RobotStudio event

Measure the path's length

Hello, 
I would like to measure the length of the path that is followed by the tool...is it possible to do it in someway?
Thank you.


Comments

  • lemster68
    lemster68 ✭✭✭
    The distance function, Dist() will calculate the distance between two points.
    Lee Justice
  • I know that function but it only gives the distance between the 2 point but not the lenght of the path that the tool follows from one point to the other 
  • lemster68
    lemster68 ✭✭✭
    I think that is the best that you have available.  I can imagine that a joint move could have the tcp moving along a longer path than merely the straight line distance in cartesian space.
    Lee Justice
  • There is a new function in RW 6.09. From the Rapid reference Manual

    2.132 PathLengthGet - Reads the current path-length value of the counter

    Usage

    PathLengthGet is used to read the current value of the counter that measures the path-length travelled by the robot’s TCP.

    The returned value is in millimeters and is always measured relative the work object.

    This function can be called at any time, but it is advisable that it is called when the robot is standing still to get a predictable behavior.

    The path-length value is read for the TCP robot in actual or connected motion task.

    Example 1

    PathLengthStart;
    MoveJ p10, v1000, z50, L10tip;
    ...
    MoveL p40, v1000, fine, L10tip;
    PathLengthStop;
    TPWrite "PathLengthGet: "+ValToStr(PathLengthGet());
    PathLengthReset;

    This example read out the value of the counter that measures the path-length
    travelled by the robot’s TCP. The value is then written to the FlexPendant.
  • Thank you!!!