Filereadvar - Omron NY532-5400 Reference Manual

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

Advertisement

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.
Instruction
FileReadVar
Read Variable from
File
Variables
Name
Meaning
FileName
File name
ReadVar
Variable to
write
Bit strings
FileName
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
ReadVar
An enumeration, array, array element, structure, or structure member can also be specified.
Function
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.
NY-series Instructions Reference Manual (W560)
Name
FB/FUN
FB
I/O
Description
Input
Name of file to read
In-out
Variable to which to write the
value that was read
Graphic expression
FileReadVar_instance
FileReadVar
Execute
Done
FileName
Busy
ReadVar
Error
ErrorID
Valid range
66 bytes max. (65 sin-
gle-byte alphanumeric
characters plus the final
NULL character)
Depends on data type.
Integers
2 Instruction Descriptions
ST expression
FileReadVar_instance(Execute,
FileName, ReadVar, Done, Busy,
Error, ErrorID);
Unit
Default
---
''
---
---
Times, durations, dates,
and text strings
2
OK
2-1249

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents