Hand[n].MotorState
Function
To return the motor power status.
Syntax
Hand[n].MotorState
Return value
Return the motor power status of the electric gripper by integer type data.
Description
Motor power status of the electric gripper is returned.
| Return value | Hand status |
|---|---|
| -1(True) | Motor power On |
| 0(False) | Motor power Off |
Related Terms
Attention
-
Example
'!TITLE "Acquire the motor power state of an electric gripper"
' Acquire the motor power state of an electric gripper and display it on the message output window
Sub Sample_HandMotorState
Dim aaa as Integer
' Turn on the motor power of an electric gripper
Hand[0].Motor On
' Assign the motor power state of electric gripper 0 to aaa
aaa = Hand[0].MotorState
' Display the value "-1" which describe the motor power ON on the message output window.
PrintDbg aaa
End Sub

