
WWW.NNC.IR
Macro Reference
515
8
App
end
ice
s
Vision System FH/FZ5 Series
User’s Manual (Z340)
Errno
Gets the error number.
Format
Errno
Parameter
None.
Return value
Returns the error number as an integer value. (Reference:
Description
Gets the error number of the error which occurred in the program.
Use this macro function in the Try-Catch-End Try statement
If a value is assigned to the return value variable or the variable is not used in an expression, a "Syntax error"
error will occur.
Usage Cautions
• None.
Example
Uses the Try Catch-End Try statement in the *MEASUREPROC subroutine of the Unit Macro processing unit
to detect the error occurrence and get the detected error number.
Useable Modules
Unit Calculation Macro / Scene Control Macro / Communication Command Macro / Unit Macro
Supported Versions
Version 3.50 or later
*MEASUREPROC
Try
WORK& = 0
SUMM& = 100 + 200 + 300
ANS& = SUMM& / WORK&
Catch
If Errno = 11 Then
Rem Output the error number and the error content on the system status console window
Print "Error Number = " + Str$(Errno) + ", Division by Zero"
Endif
End Try
Return
Summary of Contents for fh-1 series
Page 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Page 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 881: ...WWW NNC IR...