7-417
SP.FWRITE
1
2
3
4
6
6
7
8
7.18 Other instructions
7.18.12 Writing Data to Designated File (SP.FWRITE)
(4) When writing binary data
(a) If the extension of the target file is omitted, ".BIN" is used as an extension.
(b) When the designated file does not exist, a new file is created and the data is added/
saved from the beginning of the file.
The attributes of this new file are set using the archive attributes.
(c) When the size of the data exceeds that of the existing area in the file during the writing,
the excess data is added/saved.
(d) If the file position specified is greater than the existing file size:
• The High Performance model QCPU of which the first 5 digits of the serial number
are "01111" or lower results in an error.
• The High Performance model QCPU/Process CPU/Redundant CPU/Universal
model QCPU of which the first 5 digits of the serial number are "01112" or higher
performs writing at point 0 and is completed normally.
(e) An error occurs when the saving space becomes full while data is added and saved.
In such a case, the data that is successfully added/saved remains in the medium.
The error completion is indicated after as much data as possible is added/saved.
(5) When writing data after CSV format conversion
(a) If the extension is omitted, ".CSV" is used as an extension.
(b) When the existing file is specified:
[High Performance model QCPU of which the first 5 digits of the serial number are
"01111" or lower]
File contents are all deleted and data are saved, starting at the beginning.
[High Performance model QCPU/Process CPU/Redundant CPU/Universal model
QCPU of which the first 5 digits of the serial number are "01112" or higher]
• When other than FFFFFFFF
H is set at ( +4, +5), file contents are all deleted and
data are saved, starting at the beginning.
• When FFFFFFFF
H is set at ( +4, +5), data are saved, starting at the end of the
file.
(c) When the designated file does not exist, a new file is created and the data is added/
saved from the beginning of the file.
The attributes of this new file are set using the archive attributes.
(d) An error occurs when the saving space becomes full while data is added and saved.
In such a case, the data that is successfully added/saved remains in the medium.
The error completion is indicated after as much data as possible is added/saved.
D0 D0
D0 D0