Mitsubishi MELSEC-Q/L Programming Manual page 642

Table of Contents

Advertisement

SP.FREAD
Setting
Data
Bit device that turned ON at the completion of the processing.
(
+1 is also turned ON at error completion.)
D2
Device
Item
Completion
D2
signal
D2
Error
completion
+1
D2
signal
Caution
(1) At
(drive designation), only the ATA card drive (2) can be set.(For QCPU)
S0
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)
S0
(2) For CSV setting, the data read are decimal values.
Example
Character "A" (41
Handling range: -32768 to 32767
(3) For binary read, 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) 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 (
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 execution completion (
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
640
Meaning
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 read.
H
) is automatically turned ON at the END processing after the completion of the
D2
) device. Use this device as the error completion flag for this instruction.
D2
+1), and SM721 are not turned ON.
D1
Setting
Set by
Range
Setting Range
Set by
––
System
––
to 7FFFFFFF
.
H
H
+1) is turned ON/OFF in synchronization
D2
Data Type
Bit

Advertisement

Table of Contents
loading

Table of Contents