Omron SYSMAC FH Series User Manual page 775

Vision sensor vision system
Hide thumbs Also See for SYSMAC FH Series:
Table of Contents

Advertisement

Try Catch End Try
Detects an error occurrence and executes an exception process.
Format
Try
<statement>
Catch
<exceptionStatement>]
End Try
Parameter
Parameter
Data type
name
<statement>
---
<exceptionstatement> ---
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.
Vision System FH/FZ5 Series
User's Manual (Z340)
Statement that can make error occurs
Statement that is executed when an error occurred
WWW.NNC.IR
Description
Errno (p.515)) (Reference:
Errcmnd$
8
773
Macro Reference

Advertisement

Table of Contents
loading

Table of Contents