630
SP.FWRITE
*2:
Indicates the range applicable only for the Universal model QCPU and LCPU.
Caut
i
on
(1) For only QCPU, only the ATA card drive (2) can be set as (drive designation).
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 (drive designation).
(2) For CSV setting, the data written are decimal values.
Character "A" (41
H
) "65" is written.
Handling range: -32768 to 32767
(3) For binary write, the word-specified file position setting range is 00000000
H
to 7FFFFFFF
H
and FFFFFFFF
H
.
(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.
F
unct
i
on
(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.
Setting
Data
Meaning
Setting
Range
Set by
Data Type
Head number of the devices storing the data. Written data is expressed as follows:
BIN 16 bits
Device
Item
Contents/Setting Data
Setting Range
Set by
No. of request
write 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.
1 to 480
1 to 32767
*2
User
+1
to
+
Write data
Data to request writing.
0000
H
to
FFFF
H
Bit device that turned ON at the completion of the processing.
(
+1 is also turned ON at error completion.)
Bit
Device
Item
Contents/Setting Data
Setting Range
Set by
Completion
signal
Indicates the completion of the processing.
ON: Completed
OFF: Not completed
––
System
+1
Error
completion
signal
Indicates whether the processing is normally completed or
abnormally completed.
ON: Error completion OFF: Normal completion
––
S2
S2
D0
S2
S2
D1
D1
D1
D1
S0
S0
Example
D1
D1
D1
D1
D1