782
7 APPLICATION INSTRUCTIONS
7.19 Other Instructions
■When writing binary data
• If the extension of the target file is omitted, ".BIN" is used as an extension.
• 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.
• 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.
• If the file position specified is greater than the existing file size:
• 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.
The following shows the method for writing binary data when No. of request write data and file position are specified.
• The High Performance model QCPU of which the first five 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 five digits of the serial number are
"01112" or higher performs writing at point 0 and is completed normally.
Head position of the file to be written
Control data
H0000
-
K3
D0
+0
D0
+1
D0
+2
D0
+3
D0
+4
D0
+5
D0
+6
D0
+7
K1
K0
K0
-
Execution/completion type
(Not used)
Writing result (No. of written data)
(Not used)
No. of columns designation
Data type specification
H00
File data (in byte unites)
One word
shift
S2
+0
H00
H22
H33
H44
H55
H66
H77
H00
H00
H00
Data device
S2
+1
S2
+2
S2
+3
K3
H33 22
H55
44
H77 66
Data to
be written
Total