Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 624

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■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.
Control data
(d1)+0
(d1)+1
(d1)+2
(d1)+3
(d1)+4
(d1)+5
(d1)+6
(d1)+7
Data storage device
(s3)+0
(s3)+1
Total
(s3)+2
Write data
(s3)+3
7 APPLICATION INSTRUCTIONS
622
7.6 Reading/Writing Data Instructions
0000H
Execution/completion type
-
Completion status
K3
Number of data written
-
Not used
K1
File position
Number of columns
K0
K0
Data type
File data (unit: byte)
K3
33H 22H
55H 44H
77H 66H
The position is
00H
shifted by one
word.
00H
22H
33H
44H
55H
66H
77H
00H
00H
00H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents