HealthRBInfo Function
Returns 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 (1-6) or as one of the constants listed below.
Constant Value Mode 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. This command is unavailable for the additional axes.
Return Values
Real number representing the remaining months before the recommended replacement time. (Unit: month)
Returns “-1” when the robot does not have the specified parts.
Description
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.
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 Function Example
The example below outputs the alarm when the recommended replacement time for the Joint #3 ball screw spline on the robot 1 is in less than one month.
Function AlarmCheck
Real month
month = HealthRBInfo(1, HEALTH_ROBOT_TYPE_BALL_SCREW_SPLINE, 3)
If month < 1 Then
Print "Alarm ON"
EndIf
Fend