Robot.MotorTempStatus Property

Returns an Integer value that indicates the temperature status of a motor.

...Robot.MotorTempStatus ( robot, motor )

Prerequisites

The motor must support temperature sensing and motor temperature monitoring must be enabled.  Motor temperature monitoring is enabled by setting Max motor temperature (DataID 10110) to a non-zero value.

Parameters

robot

An optional numeric expression that specifies the robot to be accessed (1-n).  If this value is 0 or unspecified, the Selected robot will be accessed.

motor

A required numeric expression that specifies the motor to be accessed (1-n).

Remarks

This property returns an Integer code that indicates the temperature status of a motor.

This value permits a program to determine if a motor's temperature is within its normal operating range without needing to know the configuration parameters for the motor. If required, the specific motor temperature value can be accessed by reading the Motor temperature (DataID 12110) parameter.

Table 19-81 describes the codes returned by this property.

Table 19-81: MotorTempStatus Property, Codes

Returned Code Description

-1

Temperature monitoring is not enabled for this motor. Use parameter Max motor temperature (DataID 10110) to enable temperature monitoring.

0

The motor's temperature is within its normal operating range.

1

The motor's temperature is within the warning temperature range. See Warning motor temperature (DataID 10111) to set the warning temperature value.

2

The motor's temperature has exceeded its maximum permitted value.

See the Motor Temperature Sensing section in the Controller Software Setup chapter of the PreciseFlex™ PreciseFlex Library for details on the operation of supported motor temperature sensors.

Examples

Dim temp As Integer
temp = Robot.MotorTempStatus(1, 2)
If temp > 0 Then
   If temp > 1 Then
       Controller.SystemMessage("Motor temperature too high")
   Else
       Controller.SystemMessage
("Motor temperature warning")
   End If
End If

See Also

Robot Class