Hand[n].Error
Function
To return the error status.
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 |
Related Terms
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

