![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222288.webp)
4
Using
Tool
286
Using Custom Command
FZ4 User's Manual
Return Value
None.
Description
The processing to be carried out when a Macro Error occurs can be defined.
When an error occurs between the Try - Catch commands (<Target Statement for Error Detection>), the
command between the Catch - End Try (<Statement at the time when the Error occurs>) is executed.
The error that occurs between Catch - End Try is not considered to be a target error and normal error
handling is carried out.
Try - Catch - End Try Commands can be nested.
Moving control from outside the select block to the inside or moving control from inside it to the outside
using statements such as the Goto statement is not possible.
The kind of error which occurs between Catch - End Try can be identified by using the Errno command.
The command which generated the error between Catch - End Try can be specified by using the
Errcmnd$ command.
Example
Writing data to a file.
*DATAWRITE
Try
Open "/C0/DATA.DAT" for OUTPUT as #1
Print #1, DATA$
Close
Catch
' In the case where the error is generated by the "Open" command.
If ERRCMND$ = "Open" Then
Print "Unable to open file"
' In the case where the error is generated by the "Print" command.
Elseif ERRCMND$ = "Print" Then
Close
Print "Writing failed"
Endif
End Try
Convert a small letter into a capital letter
UCase$(<character>)
Parameters
<character>
Conversion former character string (character type)
Return Value
Returns the value of the character type.
The contents of the value are character string after the conversion.
Acesst 1.0 6251194
Summary of Contents for FZ4 Series
Page 1: ...User s Manual Cat No Z318 E1 02B Vision Sensor FZ4 Series...
Page 38: ...1 Before Operation 36 Setting Operation Mode FZ4 User s Manual 1 CPU 2 CPUs FZ4 11 H11 only...
Page 330: ...4 Using Tool 328 Remotely Operating the Controller Remote Operation FZ4 User s Manual...
Page 566: ......
Page 648: ...8 Appendixes 646 Manual Revision History FZ4 User s Manual...
Page 654: ...652 FZ4 User s Manual...
Page 655: ......