HealthRBInfo Statement

Displays the remaining months before the recommended replacement time for the specified robot parts.

Syntax
HealthRBInfo robotNumber, partType[, jointNumber]

Parameters

robotNumber
Specify an integer (1-16) robot number that returns the number of months remaining until the recommended replacement time.
partType
Specify the part that returns the number of months remaining until the recommended replacement time, either as an integer (0-6) or as one of the constants listed below.

Constant Value Mode
HEALTH_ROBOT_TYPE_ALL 0 Specifies all parts.
HEALTH_ROBOT_TYPE_BATTERY 1 Specifies the batteries.
HEALTH_ROBOT_TYPE_BELT 2 Specifies the timing belts.
HEALTH_ROBOT_TYPE_GREASE 3 Specifies the grease.
HEALTH_ROBOT_TYPE_MOTOR 4 Specifies the motors.
HEALTH_ROBOT_TYPE_GEAR 5 Specifies the reduction gear units.
HEALTH_ROBOT_TYPE_BALL_SCREW_SPLINE 6 Specifies the ball screw spline.
Joint number
Specify the joint that returns the number of months remaining until the recommended replacement time as an integer (1-9). When the batteries are selected for partType, the same value will be returned when any joint is specified because the batteries are common to all joints. If the joint number is not specified, returns values for all the joints. This command is unavailable for the additional axes.

Description
Displays the remaining months before the recommended replacement time for the specified robot parts.

The remaining months are calculated based on the parts consumption rate from the past usage and the amount of change in the consumption rate obtained every operation of a period which is set in HealthCalcPeriod of the Controller.

Returns “-1” when the robot joint does not have the specified parts.

Notes


Since the remaining months are calculated based on the amount of change in the consumption rate obtained every operation of a period which is set in HealthCalcPeriod of the Controller, they cannot be calculated properly in the following cases:

  • If this command is executed when the operating time is less than every operation of a period which is set in HealthCalcPeriod.
  • If this command is executed after the long-term operation stop period of the robot.
  • If this command is executed after the parts consumption alarm is reset after the parts replacement.
  • If the time and date on the Controller is changed.

In above cases, execute the command after operating the Controller more than twice of setting period in HealthCalcPeriod to display the accurate value.


See Also
HealthRBAlarmOn, HealthRateRBInfo

HealthRBInfo Statement Example
The example below displays the remaining months for all parts of all joints on the robot 1.

> HealthRBInfo 1, HEALTH_ROBOT_TYPE_ALL
BATTERY            240.000
BELT                -1.000,   -1.000,   38.689,   95.226
GREASE              -1.000,   -1.000,   21.130,   -1.000
MOTOR              240.000,  240.000,  240.000,  240.000
GEAR               240.000,  224.357,   -1.000,   -1.000
BALL_SCREW_SPLINE   -1.000,   -1.000,  240.000,   -1.000
>

The example below displays the remaining months for the reduction gear units of all joints on the robot 1.

> HealthRBInfo 1, HEALTH_ROBOT_TYPE_GEAR
GEAR               240.000,  224.357,   -1.000,   -1.000
>

The example below displays the remaining months for the Joint #2 motor of the robot 1.

> HealthRBInfo 1, HEALTH_ROBOT_TYPE_MOTOR, 2
MOTOR              224.357
>