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 #847 background imageLoading...
Page #847 background image
2-799
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
SD Memory Card Instructions
2
FileReadVar
FileReadVar
The FileReadVar instruction reads the contents of the specified file on the SD Memory Card as binary
data and writes it to a variable.
The FileReadVar instruction reads the contents of the file specified by FileName from the SD Memory
Card as binary data. The contents that is read is assigned to variable to write ReadVar. You can specify
an enumeration, array, array element, structure, or structure member for ReadVar.
The following figure shows a programming example. Here, the contents of the file called
‘Temp/f_name.bin’ is read and written to the array variable abc[].
Instruction Name FB/FUN Graphic expression ST expression
FileReadVar Read Variable from
File
FB FileReadVar_instance(Execute,
FileName, ReadVar, Done, Busy,
Error, ErrorID);
Variables
Name Meaning I/O Description Valid range Unit Default
FileName File name Input Name of file to read Depends on data type.
--- ''
ReadVar Variable to
write
In-out Variable to which to write the
value that was read
Depends on data type.
--- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
FileName OK
ReadVar
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
An enumeration, array, array element, structure, or structure member can also be specified.
Function
FileReadVar
Execute Done
FileName Busy
ReadVar
Error
ErrorID
FileReadVar_instance
FileReadVar_instance(A, ‘Temp/f_name.bin’, abc,
def, ghi, jkl, mno);
LD
ST
A
’Temp/f_name.bin’
abc
abc
def
ghi
jkl
mno
FileReadVar
Execute Done
FileName Busy
ReadVar
Error
ErrorID
FileReadVar_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