![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222207.webp)
4
Using
Tool
FZ4 User's Manual
Using Custom Command
205
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
Return
Gets the error class during exception handling.
Errno
Parameters
None.
Return Value
Returns the value of the integer.
The content of the value is the Error No. that is fetched.
Description
Gets the Error No. when a Macro Error occurs.
The respective Macro Error error numbers are listed below.
Error No.
1
NEXT without FOR
2
Syntax error
3
RETURN without GOSUB
5
Illegal function call
6
Overflow
7
Out of memory
8
Undefined line number
9
Subscript out of range
11
Division by Zero
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: ......