Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

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

Advertisement

Enumerator
_RDWR_CREATE
_WRITE_APPEND
_RDWR_APPEND
The following figure shows a programming example. The file named 'Temp/f_name.bin' is opened to
append data to it. The file ID is assigned to variable mno.
LD
A
'Temp/f_name.bin'
_WRITE_APPEND
Mode = _WRITE_APPEND

NY-series Instructions Reference Manual (W560)

Use this value to open a file to read and write it. If the file already exists, the contents
is discarded and the file size is set to 0. If the file does not exist, a new file is created.
The file is read and written from the beginning.
Use this value to open a file to append data to it. If the file does not exist, a new file is
created. The data is appended to the end of the file. However, if the file already exists
and it is write-protected, an error occurs and the file is not opened.
Use this value to open a file to read and append data to it. If the file does not exist, a
new file is created. The file is read from the beginning. The data is appended to the
end of the file.
FileOpen_instance
FileOpen
Execute
Done
FileName
Busy
Mode
Error
ErrorID
FileID
The FileOpen instruction opens the file specified by FileName from the SD Memory
Card to append data to it.
The file ID is assigned to variable FileID.
File is opened to append data to it.
Meaning
ST
FileOpen_instance(A, 'Temp/f_name.bin',
abc
def
ghi
jkl
mno
File FileName = 'Temp/f_name.bin'
FileID = mno
The file ID is assigned.
2 Instruction Descriptions
_WRITE_APPEND, abc,
def, ghi, jkl, mno);
2-1255
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents