<< Prev        Next >>

ID : 655

Hand[n].MotorState / SelectHand[m,n].MotorState

Function

To return the motor power status. Use "SelectHand[m,n].MotorState" when an electric gripper and the cooperative control function are used together.

Syntax

Hand[n].MotorState

For the combination use of an electric gripper and the cooperative control function

SelectHand[m,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

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

ID : 655

<< Prev        Next >>