Fileseek - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

FileSeek

The FileSeek instruction sets a file position indicator in the specified file in the SD Memory Card.
Instruction
FileSeek
Seek File
Variables
Name
Meaning
FileID
File ID
Offset
Offset
Origin
Reference
position
Bit strings
FileID
Offset
Origin
Refer to Function for the enumerators for the enumerated type _eFSEEK_ORIGIN.
Function
The FileSeek instruction sets a file position indicator in the file specified by file ID FileID in the SD Mem-
ory Card. A file position indicator is the position in a file at which to start reading or writing when an
instruction such as the FileRead or FileWrite instruction is executed. For example, to read from the
beginning of a file, set a file position indicator at the beginning of the file with the FileSeek instruction,
and then execute the FileRead instruction. The file position indicator is set at offset Offset from refer-
ence position Origin.
The data type of Origin is enumerated type _eFSEEK_ORIGIN. The meanings of the enumerators are
as follows:
Enumerator
_SEEK_SET
Beginning of file
_SEEK_CUR
Location of current file position indicator
_SEEK_END
End of file
NY-series Instructions Reference Manual (W560)
Name
FB/FUN
FB
I/O
Description
ID of file in which to set file
position indicator
Offset from Origin
Input
Reference position for file
position indicator
OK
Meaning
Graphic expression
FileSeek_instance
FileSeek
Execute
Done
FileID
Busy
Offset
Error
Origin
ErrorID
Valid range
Depends on data type.
_SEEK_SET,
_SEEK_CUR, or
_SEEK_END
Integers
OK
2 Instruction Descriptions
ST expression
FileSeek_instance(Execute,
FileID, Offset, Origin, Done,
Busy, Error, ErrorID);
Unit
Default
---
0
Bytes
_SEEK
---
_SET
Times, durations, dates,
and text strings
2-1261
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents