HealthRBAnalysis Function
Returns the usable months for the specified parts in a particular robot operation cycle.
Syntax
HealthRBAnalysis(robotNumber, partType, jointNumber)
Parameters
- robotNumber
- Specify the robot number as an integer (1-16).
- partType
- Specify the parts related to the robot as integer values (2-6) or by the constants shown below.
Constant Value Mode 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. - jointNumber
- Specify the joint as an integer value (1-6). This command is unavailable for the additional axes.
Return Values
Real number representing the usable months.
Returns “-1” when the specified parts are not installed on the specified joint.
Description
Simulates the usable months for the specified parts in a particular robot operation cycle. This command calculates how many months the parts can be used if they are new and used for 24 hours a day. The past usage is not considered.
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
HealthRBAnalysis Function Example
Function RobotPartAnalysis
Real month
Robot 1
HealthRBStart 1
Motor On
Go P0
Go P1
Motor Off
HealthRBStop 1
month = HealthRBAnalysis(1, HEALTH_ROBOT_TYPE_BALL_SCREW_SPLINE, 3)
Print "Ball Screw Spline analysis =", Str$(month)
Fend