HealthRBSpeed Function

Returns the average of the absolute values for speed of the specified joint.

Syntax
HealthRBSpeed ([robotNumber,] jointNumber)

Parameters

robotNumber
Optional. Integer expression (1-16) representing the robot number. If omitted, the current robot number will be used.
Joint number
Specify the joint as an integer value (1-6). This command is unavailable for the additional axes.

Return Values
Real value from 0 to 1.

Description
Returns the average of the absolute values for speed of the specified joint in robot operation from HealthRBStart to HealthRBStop. The result is a real number from 0 to 1. The maximum average speed is "1".

Notes


  • This command does not function in Auto mode.
  • This command does not function in dry run mode (including the virtual controller).

See Also
HealthRBStart, HealthRBStop, AveSpeed

HealthRBSpeed Function Example

Function RobotPartAnalysis
  Real healthSpeed

  Robot 1

  HealthRBStart 1
  Motor On
  Go P0
  Go P1
  Motor Off
  HealthRBStop 1

  healthSpeed = HealthRBSpeed(1,1)
  Print "AveSpeed =", Str$(healthSpeed)
Fend