647
SP.FREAD
1
2
3
4
4
6
7
8
7.18
Ot
her inst
ructions
7.18.1
3
SP.FREAD
(h) When data is read after CSV format conversion, the numerical values that are out of range or the elements other
than numerical values in the object CSV format file are converted into 0
H
.
(i)
When data is read after CSV format conversion, numerical values are read and converted as follows:
(j)
Do not execute this instruction in an interrupt program.
(Otherwise, a malfunction may result.)
Operat
i
on
E
rror
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into
SD0.
Numerical Values in CSV
Format
-32768 to -1
0 to 32767
32768 to 65535
Word device
Without a sign
32768 to 65535
0 to 32767
32768 to 65535
With a sign
-32768 to -1
0 to 32767
-32768 to -1
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
2410
The file name specified in file name character string ( ) or the
subsequent devices does not exist in the specified drive.
––
4004
The device that cannot be specified has been specified.
––
4100
Values designated in control data ( ) and the subsequent devices are
out of the setting range. (Excluding ( +2)
––
The drive specified by drive designation device ( ) contains the
medium other than the ATA card.
An access error occurred in the ATA card.
––
––
When binary data is read, the number of data in the file is less than the
size designated by the number of request read data ( +2).
––
––
––
––
––
The drive specified by drive designation device ( ) contains the
medium other than the SD Memory card.
An access error occurred in the SD Memory card.
––
––
––
––
––
4101
The value specified in number of data blocks to be read ( +2) is out of
the setting range.
The size of read data exceeds that of the reading device.
––
The range of the device specified by or exceeds the range of the
corresponding device.
––
––
––
––
S1
D0
D0
S0
D0
S0
D0
D0
D2