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 #849 background imageLoading...
Page #849 background image
2-801
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
SD Memory Card Instructions
2
FileReadVar
• If more than four SD Memory Card instructions that do not have a FileID variable (i.e., FileWrite-
Var, FileReadVar, FileCopy, DirCreate, FileRemove, DirRemove, and FileRename) are executed
at the same time.
• The value of FileName exceeds the maximum number of bytes allowed in a file name.
• An error that prevents access occurs during SD Memory Card access.
This sample reads the contents of the file ‘File1.dat’ and stores it in array variable Var1.
Sample Programming
Processing completed.
Execution condition
Processing
Read size
Variable Data type Initial value Comment
LD
OperatingEnd
Trigger
Operating
Var1
RS_instance
FileReadVar_instance
False
False
False
[1000(0)]
BOOL
BOOL
BOOL
ARRAY[0..999] OF INT
RS
FileReadVar
FileReadVar_instance.Done
FileReadVar_instance.Error
Determine if execution of the FileReadVar instruction is completed.
Accept trigger.
Execute FileReadVar instruction.
OperatingEnd
Operating
OperatingEnd
Trigger
_Card1Ready
RS
Set Q1
Reset1
RS_instance
Operating
‘File1.dat’
Var1
Operating
FileReadVar_instance.Done
Processing after normal end.
Inline ST
Inline ST
1 // Processing after normal end.
2 ;
Operating
FileReadVar_instance.Error
Processing after error end.
1 // Processing after error end.
2 ;
FileReadVar
Execute Done
FileName Busy
ReadVar
Error
ErrorID
FileReadVar_instance
_Card1Ready
BOOL
SD Memory Card Ready Flag
Variable Data type Comment
Internal Variables
External Variables

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