HealthRBAlarmOn Function
Returns the status of the parts consumption alarm for the specified robot parts.
Syntax
HealthRBAlarmOn(robotNumber, partType, jointNumber)
Parameters
- robotNumber
- Specify an integer (1-16) robot number that returns an alarm condition.
- partType
- Specify the parts that return alarm conditions as integer values (1-6) or constants as shown 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 alarm status as an integer value (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
True if the parts consumption alarm is occurring for the specified parts, otherwise False.
The parts consumption alarm occurs when the parts consumption rate obtained by HealthRateRBInfo exceeds 100%.
Returns “-1” when the robot does not have the specified parts.
See Also
HealthRBInfo, HealthRateRBInfo
HealthRBAlarmOn Function Example
The example below determines if the parts consumption alarm is occurring for the grease on the Joint #3 of the robot 1.
Function PrintAlarm4
If HealthRBAlarmOn(1, HEALTH_ROBOT_TYPE_GREASE, 3) = True Then
Print "Robot1 Joint3 Grease NG"
Else
Print "Robot1 Joint3 Grease OK"
EndIf
Fend