Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

2 Instruction Descriptions
Enumerator
_RDWR_CREATE
_WRITE_APPEND
_RDWR_APPEND
The following figure shows a programming example. The file named 'Temp/f_name' is opened to
append data to it. The file ID is assigned to variable mno.
LD
A
'Temp/f_name.bin'
_WRITE_APPEND
Related System-defined Variables
Name
_Card1Ready
_Card1Protect
_Card1Err
_Card1Access
_Card1PowerFail
2-804
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
Meaning
Data type
SD Memory Card
BOOL
Ready Flag
SD Memory Card Write
BOOL
Protected Flag
SD Memory Card Error
BOOL
Flag
SD Memory Card
BOOL
Access Flag
SD Memory Card
BOOL
Power Interruption Flag
Meaning
ST
FileOpen_instance(A, 'Temp/f_name.bin',
abc
def
ghi
jkl
mno
This flag indicates if the SD Memory Card is physi-
cally inserted and is mounted normally, i.e., if it can
be accessed by instructions and communications
commands.
TRUE: Can be used.
FALSE: Cannot be used.
This flag indicates if the SD Memory Card is write
protected when it is inserted and ready to use.
TRUE: Write protected.
FALSE: Not write protected.
This flag indicates if an unspecified SD Memory
Card (e.g., an SDHC card) is mounted or if the for-
mat is incorrect (i.e., not FAT16 or corrupted).
TRUE: Error.
FALSE: No error.
This flag indicates if the SD Memory Card is cur-
rently being accessed.
TRUE: Being accessed.
FALSE: Not being accessed.
This flag indicates if an error occurred in completing
processing when power was interrupted during SD
Memory Card access. This flag is not cleared auto-
matically.
TRUE: Error.
FALSE: No error.

NJ-series Instructions Reference Manual (W502)

_WRITE_APPEND, abc,
def, ghi, jkl, mno);
Description

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents