Filewrite - Omron NY532-5400 Reference Manual

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

Advertisement

FileWrite

The FileWrite instruction writes data to the specified file in the SD Memory Card.
Instruction
FileWrite
Write File
Variables
Name
Meaning
FileID
File ID
WriteBuf[]
Write buffer
(array)
Size
Number of
elements to
write
WriteSize
Number of
written
elements
* If you omit the input parameter, the default value is not applied. A building error will occur.
Bit strings
FileID
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
WriteBuf[]
(array)
Size
WriteSize
Function
The FileWrite instruction writes data to the position of the file position indicator in the file specified by file
ID FileID in the SD Memory Card. The file position indicator is set at the desired location in advance
with the FileSeek instruction. The contents of the write buffer WriteBuf[] is written to the file. The
amount of data that is written is the size of the data type of WriteBuf[] times Size. You can specify an
array of enumerations or structures for WriteBuf[]. The data size that is actually written is output to
WriteSize.
NY-series Instructions Reference Manual (W560)
Name
FB/FUN
FB
I/O
Description
ID of file to write
Write data
Input
Number of elements to write
Output
Number of elements that
were actually written
OK
Arrays of enumerations or structures can also be specified.
OK
OK
Graphic expression
FileWrite_instance
FileWrite
Execute
Done
FileID
Busy
WriteBuf
Error
Size
ErrorID
WriteSize
Valid range
Depends on data type.
Depends on data type.
Integers
2 Instruction Descriptions
ST expression
FileWrite_instance(Execute,
FileID, WriteBuf, Size,
Done, Busy, Error, ErrorID,
WriteSize);
Unit
Default
0
*
---
1
---
---
Times, durations, dates,
and text strings
2-1273
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents