HealthRateCtrlInfo Function
Returns the consumption rate of the specified Controller parts.
Syntax
HealthRateCtrlInfo(partType)
Parameters
- partType
- Specify the part that returns the number of months remaining until the recommended replacement time, either as an integer (1) or as one of the constants listed below.
Constant Value Mode HEALTH_CONTROLLER_TYPE_BATTERY 1 Specifies the batteries.
Return Values
Real number representing the current parts consumption rate, when regarding the recommended replacement time as 100%. (Unit: %)
Description
This command calculates the parts consumption rate based on the actual operating condition.
Notes
The recommended replacement time is the recommended time to replace the parts calculated based on statistics.
Replacement may be required before the consumption rate reaches 100%.
In addition, the parts will not become immediately unusable when the consumption rate reaches 100%.
However, it is recommended to replace the parts soon as the possibility of breakage increases after the consumption rate reaches 100%.
See Also
HealthCtrlAlarmOn, HealthCtrlInfo,
HealthRateCtrlInfo Function Example
The example below outputs the alarm when the consumption rate for the Controller batteries reaches 90%.
Function AlarmCheck
Real HealthRate
HealthRate = HealthRateCtrlInfo (HEALTH_CONTROLLER_TYPE_BATTERY)
If HealthRate > 90 Then
Print "Alarm ON"
EndIf
Fend