EasyManuals Logo

Mitsubishi MELSEC Q Series Programming Manual

Mitsubishi MELSEC Q Series
1296 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #792 background imageLoading...
Page #792 background image
7-418
SP.FWRITE
Function
(1) The designated number of data is written to the designated file.
Set the execution/completion type in the control data to designate whether to write binary
data without any conversion or to convert binary data into CSV format data before writing it.
(For QCPU, writing is only supported for ATA cards. For LCPU, it is only supported for SD
memory cards.)
(2) The execution completion bit device ( ) is automatically turned ON at the END processing
after the completion of the instruction is detected. The bit device is turned OFF at the
execution of the END instruction in the next scan.
Use this bit device as the execution completion flag for the SP.FWRITE instruction.
When this instruction is completed abnormally, the error completion device ( +1) is turned
ON/OFF in synchronization with the processing complete ( ) device. Use this device as the
error completion flag for this instruction.
SM721 is turned ON during the execution of the instruction.
This instruction cannot be executed while SM721 is ON. (If an attempt is made, no
processing is performed.)
When an error is detected at the execution of the instruction (before SM721 is turned ON),
the processing complete device ( ), the error completion device ( +1), and SM721 are
not turned ON.
(3) Be sure to use in units of words to designate the No. of request write data ( ) and the file
position ( +4 and +5).
The following shows the method for writing binary data when No. of request write data and
file position are specified.
D1
D1
D1
D1
D1
S2
D0 D0
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
-
Execution/completion type
(Not used)
Number of written
result data
(Not used)
Designation of the number of columns
Data type specification
H00
File data (in byte unites)
One word
shift
D1+0
H00
H22
H33
H44
H55
H66
H77
H00
H00
H00
Data device
D1+1
D1+2
D1+2
K3
H33 22
H55
44
H77
66
Data to
be written
Total

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC Q Series and is the answer not in the manual?

Mitsubishi MELSEC Q Series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC Q Series
CategoryController
LanguageEnglish

Related product manuals