622
7 APPLICATION INSTRUCTIONS
7.6 Reading/Writing Data Instructions
■Writing binary data
• If the extension of the target file is omitted, the extension will be ".BIN".
• If a file that does not exist is specified, it will be created and data will be saved to the beginning of the file. The newly
created file has the archive attribute.
• When an existing file is specified, data will be saved to the beginning of the file. If the size of data exceeds the size of the
existing area in the file during writing, the excess data is additionally stored.
• If the specified position exceeds the existing file size, 0 point of data is written and the processing completes successfully.
• If the media runs out of free space during additional saving of data, an error occurs. In this case, the data already added
and saved successfully is held as is and as much remaining data as possible is added and saved before termination with
an error.
• In 16-bit binary data write mode, when the number of request write data and file position are specified, data is written as
follows.
0000H
-
K3
(d1)+0
(d1)+1
(d1)+2
(d1)+3
(d1)+4
(d1)+5
(d1)+6
(d1)+7
K1
K0
K0
-
00H(s3)+0
00H
22H
33H
44H
55H
66H
77H
00H
00H
00H
(s3)+1
(s3)+2
(s3)+3
K3
33H 22H
55H
44H
77H 66H
File position
Control data
Execution/completion type
Completion status
Number of data written
Not used
Number of columns
Data type
File data (unit: byte)
The position is
shifted by one
word.
Data storage device
Write data
Total