Mitsubishi MELSEC Q Series Programming Manual page 792

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

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 (
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 (
ON/OFF in synchronization with the processing complete (
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 (
not turned ON.
(3) Be sure to use in units of words to designate the No. of request write data (
position (
The following shows the method for writing binary data when No. of request write data and
file position are specified.
7-418
D1
+4 and
+5).
D0
D0
Control data
D0+0
H0000
Execution/completion type
D0+1
-
(Not used)
Number of written
D0+2
K3
result data
D0+3
-
(Not used)
K1
D0+4
Head position of the file to be written
D0+5
D0+6
-
Designation of the number of columns
D0+7
K0
Data type specification
Data device
D1+0
K3
D1+1
H33 22
Total
D1+2
H55 44
Data to
be written
D1+2
H77 66
) is automatically turned ON at the END processing
D1
) device. Use this device as the
D1
), the error completion device (
File data (in byte unites)
H00
One word
shift
H00
H22
H33
H44
H55
H66
H77
H00
H00
H00
+1) is turned
D1
+1), and SM721 are
D1
) and the file
S2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents