Omron FZ4 Series User Manual page 205

Vision sensor
Table of Contents

Advertisement

Description
When a drive that does not exist has been specified, -1 is returned as the return value.
Specify the <Drive Name> in a manner similar to the following: "C:\".
Example
When the remaining available space on the drive is less than 1KB turn ON the ERROR signal.
if Dskf("C:\")<1024 then putport "ParallelIo",103,1
Checks for the end of file.
Eof (<File No.>)
Parameters
<File No.>
The file number (integer) of the file opened by the Open command.
Return Value
Returns the value of the integer.
The content of the value is as listed below.
0: The end of the file has not been reached
-1: The end of the file has been reached
Description
Check to see if the end of file has been reached for the file specified by <File No.>.
Example
Read in data until the end of the file.
Open "C:\input.dat" FOR INPUT As #1
For I&=0 To 255
   DATA$ = Input$(6,#1)
   DATA$(I&)=DATA$
   If Eof(1)<>0 Then Exit For
Next
Close #1
Erase DATA$()
Free the array variable memory region that was defined by the Dim command.
Erase <Array>[,<Array>...]
Parameters
<Array>
The array variable (array) whose memory is to be freed.
FZ4 User's Manual
Using Custom Command
4
203

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents