Mitsubishi Electric MELSEC-Q/L Programming Manual page 784

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

■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:
• 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.
• 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.
Control data
+0
H0000
D0
+1
-
D0
K3
+2
D0
-
+3
D0
+4
K1
D0
+5
D0
+6
K0
D0
D0
+7
K0
Data device
+0
K3
S2
+1
H33 22
S2
Total
H55 44
S2
+2
Data to
be written
+3
H77 66
S2
7 APPLICATION INSTRUCTIONS
782
7.19 Other Instructions
Execution/completion type
(Not used)
Writing result (No. of written data)
(Not used)
Head position of the file to be written
No. of columns designation
Data type specification
File data (in byte unites)
H00
H00
H22
H33
H44
H55
H66
H77
H00
H00
H00
One word
shift

Advertisement

Table of Contents
loading

Table of Contents