Eof ( End Of A Sequential File Is Detected ) - Mitsubishi QD51 Programming Manual

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
EOF
Function
• Returns -1 (True) if the end of a sequential file is detected.
EOF ( <file number> )
Syntax
file number
IF EOF (1) THEN CLOSE #1
Examples
• The EOF function detects the end of a file specified by <file number> in the sequential file.
Description
• Returns True (-1) at the end of the file, otherwise returns False (0).
11 - 61
End Of File
• • • •
• • • •
REMARK
See the LOC, LOF and OPEN instructions, and Chapter 6.
Specify the file number specified by the OPEN
instruction.
Closes the file when the end of a sequential file,
which has file number 1, is detected.
MELSEC-Q
11 - 61

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents