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 #512 background imageLoading...
Page #512 background image
WWW.NNC.IR
Macro Reference
510
Vision System FH/FZ5 Series
User’s Manual (Z340)
Eof
Examines the end of the file.
Format
Eof(<fileNo>)
Parameter
Return value
Returns an integer value that notifies if the end of the file is reached.
• 0: The end of the file is reached
• -1: The end of file is not reached
Description
Check if the end of the file of the file number specified in the <fileNo> is reached.
If an unopened file number is specified in the <fileNo> parameter, an "Illegal function call" error will occur.
If a value outside the range of 0 to 15 is specified in the <fileNo> parameter, an "Illegal function call" error will
occur.
If an incorrect data type is specified for a parameter, a "Type mismatch" error will occur.
If a value outside the range -2147483648 to 2147483647 is specified as an integer parameter, an "Overflow"
error will occur.
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.
Example
Reads the data until the end of the file.
Parameter
name
Data type Description
<fileNo> Integer type File number (0 to 15) of the examined file end.
Dim ALLDATA$(255)
Rem Open the file
Open "E:\input.dat" For Input As #1
For I&=0 to 255
Rem Read line by line from the top of the file
Input #1, DATA$
ALLDATA$(I&) = DATA$
Rem Check if the end of the file is reached
If Eof(1) <> 0 Then
Exit For
Endif

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