<< Prev        Next >>

Hand[n].Error

Function

To return the error status.

Syntax

Hand[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

Related Terms

Attention

Error code

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

<< Prev        Next >>