Mitsubishi MELSEC-Q/L Programming Manual page 632

Table of Contents

Advertisement

SP.FWRITE
Setting
Data
Head number of the devices storing the data. Written data is expressed as follows:
Device
Item
No. of request
S2
write data
S2
+1
S2
to
Write data
+
S2
Bit device that turned ON at the completion of the processing.
(
+1 is also turned ON at error completion.)
D1
Device
Item
Completion
D1
D1
signal
Error
completion
+1
D1
signal
*2:
Indicates the range applicable only for the Universal model QCPU and LCPU.
Caution
(1) For only QCPU, only the ATA card drive (2) can be set as
Note that when the Flash card is loaded, the SP.FWRITE instruction cannot be used to perform writing.
The SRAM card, standard RAM or standard ROM drive cannot be set.
For only LCPU, only the SD memory card drive (2) can be set as
(2) For CSV setting, the data written are decimal values.
Example
Character "A" (41
Handling range: -32768 to 32767
(3) For binary write, the word-specified file position setting range is 00000000
(4) For the LCPU, this instruction cannot be executed while SM606 (SD memory card forced disable instruction) is ON. Even
if the instruction is attempted to be executed, the command will be ignored.
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 (
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 (
with the processing complete (
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 (
D1
630
Meaning
Contents/Setting Data
Designate the number of data to request writing (word units).
This data should be designated in units of words even when
byte is designated by
+7.
D0
Data to request writing.
Contents/Setting Data
Indicates the completion of the processing.
ON: Completed
OFF: Not completed
Indicates whether the processing is normally completed or
abnormally completed.
ON: Error completion
OFF: Normal completion
)
"65" is written.
H
) is automatically turned ON at the END processing after the completion of the
D1
) device. Use this device as the error completion flag for this instruction.
D1
+1), and SM721 are not turned ON.
D1
Setting Range
1 to 32767
Setting Range
(drive designation).
S0
(drive designation).
S0
to 7FFFFFFF
H
+1) is turned ON/OFF in synchronization
D1
Setting
Set by
Data Type
Range
Set by
1 to 480
*2
BIN 16 bits
User
0000
to
H
FFFF
H
Set by
Bit
––
System
––
and FFFFFFFF
.
H
H

Advertisement

Table of Contents
loading

Table of Contents