EasyManuals Logo

Omron SYSMAC FH Series User Manual

Omron SYSMAC FH Series
882 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #775 background imageLoading...
Page #775 background image
WWW.NNC.IR
Macro Reference
773
8
Appendices
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: XErrno (p.515)) (Reference: XErrcmnd$
(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

Table of Contents

Other manuals for Omron SYSMAC FH Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC FH Series and is the answer not in the manual?

Omron SYSMAC FH Series Specifications

General IconGeneral
BrandOmron
ModelSYSMAC FH Series
CategoryIndustrial Equipment
LanguageEnglish

Related product manuals