640
SP.FREAD
Caut
i
on
(1) At (drive designation), only the ATA card drive (2) can be set.(For QCPU)
Note that when the Flash card is loaded, the SP.FREAD instruction cannot be used to perform read.
The SRAM card, standard RAM or standard ROM drive cannot be set.
At (drive designation), only the SD Memory card drive (2) can be set.(For LCPU)
(2) For CSV setting, the data read are decimal values.
Character "A" (41
H
) "65" is read.
Handling range: -32768 to 32767
(3) For binary read, the word-specified file position setting range is 00000000
H
to 7FFFFFFF
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) Data is read from the designated file.
Set the execution/completion type in the control data to designate whether to read binary data without any conversion or
to convert binary data into CSV format data before reading it. (For QCPU, reading 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 execution completion ( ) 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
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
––
D2
D2
D2
D2
S0
S0
Example
D2
D2
D2
D1
D1