Omron CS1G/H-CPUxxH Instructions Manual page 929

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

File Memory Instructions
Note
Description
908
writing data with carriage returns (i.e., bits 08 to 11 of C set to between 8
and D Hex).
2. D1 to D1+3 must be in the same data area.
3. If the specified starting word exceeds the number of words in the data file,
the File Write Error Flag (A34308) will be turned ON and the data won't be
written.
D2: Filename
D2 is the starting address of the words containing the absolute path and file-
name in ASCII. Use ASCII a to z, A to Z, and 0 to 9.
The full path name to the directory containing the data file can be up to 65
characters long, including the starting slash (ASCII 5C). The filename can be
up to 8 characters long, but null characters (ASCII 00) aren't allowed in the
filename because the null character is used to mark the end of the character
string. Do not include the filename extension; the .IOM, .TXT, or .CSV exten-
sion is added automatically.
D2
F1
D2+1
F3
D2+38
F73
1. Be sure that the character string containing the pathname and filename
doesn't exceed the end of the data area.
2. If the specified directory doesn't exist, the File Missing Flag (A34311) will
be turned ON and the file data won't be written.
Write the pathname and filename in ASCII beginning with the leftmost byte of
D2, as shown in the following example for \ABC\XYZ.IOM. (The extension is
added automatically.)
D2
D2+1
D2+2
D2+3
D2+ 4
S: First Source Word
S specifies the starting address containing the data that will be written to the
file memory. Data is read by absolute PLC memory addresses, so
FWRIT(701) will continue reading source data from the next data area if the
number of words being read exceeds the end of the data area specified in S.
During normal instruction processing, FWRIT(701) is used only to start writing
of the file memory. The instruction execution times given toward the end of
this manual are thus the times required to start writing, not to complete it.
Actual writing (transfer) is performed by the file access processing in periph-
eral servicing. Therefore, once FWRIT(701) has been executed, writing is
continuously executed even if the execution condition is OFF in following
cycles. When transfer has been completed, the File Memory Operation Flag
(A34313) will turn OFF. This flag can be used for exclusive control of file mem-
ory instructions.
The time required to complete data transfer for FWRIT(701) will depend on
the amount of data being transferred, the service time allocated to file access
processing, and other conditions. As a guideline, the transfer times for a cycle
time of 10 ms for a file in the root directory with the default service time set-
tings will be 1.97 s (new file) or 1.33 s (existing file) for 1,024 words and 6.64 s
(new file) or 6.12 s (existing file) for 9,999 words.
Store the character string beginning
F2
with the leftmost byte in D2.
F4
The entire pathname and filename can
be up to 74 characters (bytes) long,
including the initial slash character and
F74
ending null character.
*\ *
*A*
D2
5C
*B*
*C*
D2+1
42
*\ *
*X*
D2+2
5C
*Y*
*Z *
D2+3
59
NUL
D2+4
00
Section 3-26
41
43
58
5A

Advertisement

Table of Contents
loading

Table of Contents