EasyManuals Logo

Omron NJ501-1500 User Manual

Omron NJ501-1500
990 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 #868 background imageLoading...
Page #868 background image
2 Instruction Descriptions
2-820
NJ-series Instructions Reference Manual (W502)
The following figure shows a programming example. If the write buffer def[] is BYTE data, 100 bytes of
data is written to the file.
• Execution of this instruction is continued until processing is completed even if the value of Execute
changes to FALSE or the execution time exceeds the task period. The value of Done changes to
TRUE when processing is completed. Use this to confirm normal completion of processing.
• Refer to Using this Section on page 2-2 for a timing chart for Execute, Done, Busy, and Error.
• You must use the FileOpen instruction to obtain the value for FileID before you execute this instruc-
tion.
• Data is written in byte increments. The lower bytes are written before the upper bytes (little endian).
Related System-defined Variables
Name Meaning Data type Description
_Card1Ready SD Memory Card
Ready Flag
BOOL This flag indicates if the SD Memory Card is
physically 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.
_Card1Protect SD Memory Card Write
Protected Flag
BOOL 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.
_Card1Err SD Memory Card Error
Flag
BOOL This flag indicates if an unspecified SD Mem-
ory Card (e.g., an SDHC card) is mounted or if
the format is incorrect (i.e., not FAT16 or cor-
rupted).
TRUE: Error.
FALSE: No error.
_Card1Access SD Memory Card
Access Flag
BOOL This flag indicates if the SD Memory Card is
currently being accessed.
TRUE: Being accessed.
FALSE: Not being accessed.
_Card1PowerFail SD Memory Card
Power Interruption Flag
BOOL This flag indicates if an error occurred in com-
pleting processing when power was interrupted
during SD Memory Card access. This flag is
not cleared automatically.
TRUE: Error.
FALSE: No error.
Precautions for Correct Use
FileWrite_instance(A, abc, def[0], UINT#100, ghi,
jkl, mno, pqr, stu);
LD ST
abc
def[0]
jkl
mno
pqr
stu
ghi
UINT#100
A
FileWrite
Execute Done
FileID Busy
WriteBuf Error
Size ErrorID
WriteSize
FileWrite_instance

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ501-1500 and is the answer not in the manual?

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals