
WWW.NNC.IR
Macro Reference
773
8
App
end
ice
s
Vision System FH/FZ5 Series
User’s Manual (Z340)
Try Catch End Try
Detects an error occurrence and executes an exception process.
Format
Try
<statement>
Catch
<exceptionStatement>]
End Try
Parameter
Return value
None.
Description
Executes the specified Catch block statement in the <exceptionStatement> parameter if an error is occurred
as a result of the Try block statement execution specified in the <statement> parameter.
If there is no error occurrence as a result of executing all statements in the Try block statement, the process
execution ends without executing the Catch block statement.
Use the Errno function or the Errcmnd$ function in the Catch block statement to get a macro function name
and occurred error number in the Try block statement. (Reference:
(p.513))
Errors in the Catch block statement cannot be detected. If statements in the Catch block can cause an error,
nest the Try Catch-End Try statement to detect the error occurrence.
If the program process is jumped into or out of the Try and Catch block statements using the Goto function in
a statement, unexpected operation may occur.
If neither the Try statement nor the End Try statement is used, either the "CATCH without TRY" or "END TRY
without TRY" error will occur depending on the statement that is used.
If the format is written incorrectly, such as writing the macro function name incorrectly, omitting a comma, or
omitting a half-width space, a "Syntax error" error will occur.
Usage Cautions
• None.
Parameter
name
Data type
Description
<statement>
---
Statement that can make error occurs
<exceptionstatement> ---
Statement that is executed when an error occurred
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...