<< Prev        Next >>

ID : 653

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

Function

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

Syntax

Hand[n].Error

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

SelectHand[m,n].Error

Return Value

Return an error code by integer type decimal expression data.

Description

The hand error status is returned. If the value is 0, the status is normal (no error). If it is other than 0, the status is error and the value is the present error code.

Return value Hand status
-1(True) Error code of the present error
0(False) No error

Attention

-

Example

'!TITLE "Acquire an error code of an electric gripper"
' Acquire an error code of an electric gripper and display it on the message output window
Sub Sample_HandError

Dim aaa as Integer

' Assign an error code to aaa
aaa = Hand[0].Error

' Display the latest electric gripper error code on the message output screen
PrintDbg aaa


End Sub

ID : 653

<< Prev        Next >>