Mitsubishi MELSEC-Q/L Programming Manual page 633

Table of Contents

Advertisement

(3) Be sure to use in units of words to designate the No. of request write data ( ) and the file position (
The following shows the method for writing binary data when No. of request write data and file position are specified.
Total
Data to
be written
(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 saved from the beginning of the file.
The attributes of this new file are set using the archive attributes.
(c) When the designated file exists, the data is saved from the beginning of the file.
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/LCPU 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/LCPU of which the first 5
digits of the serial number are "01112" or higher]
• When other than FFFFFFFF
the beginning.
• When FFFFFFFF
Control data
+0
H0000
D0
Execution/completion type
D0
+1
-
(Not used)
+2
K3
D0
Writing result (No. of written data)
+3
-
D0
(Not used)
K1
D0
+4
+5
D0
Head position of the file to be written
+6
D0
K0
No. of columns designation
D0
+7
K0
Data type specification
Data device
+0
K3
S2
+1
H33 22
S2
+2
H55 44
S2
S2
+3
H77 66
is set at (
+4,
D0
H
is set at (
+4,
+5), data are saved, starting at the end of the file.
D0
D0
H
S2
File data (in byte unites)
H00
One word
H00
shift
H22
H33
H44
H55
H66
H77
H00
H00
H00
+5), file contents are all deleted and data are saved, starting at
D0
SP.FWRITE
+4 and
+5).
D0
D0
1
2
3
4
4
6
7
8
631

Advertisement

Table of Contents
loading

Table of Contents