639
SP.FREAD
1
2
3
4
4
6
7
8
7.18
Ot
her inst
ructions
7.18.1
3
SP.FREAD
Setting
Data
Meaning
Setting
Range
Set by
Data Type
+4
+5
File
position
Designate the file position to start reading when binary data
reading is designated by
.
00000000
H
: Starting at the beginning of the file
00000001
H
to FFFFFFFE
H
: From the designated position
(The unit for the value is determined
by word/byte unit designation.)
FFFFFFFF
H
: Setting disabled
When CSV format read is specified at
• For the High Performance model QCPU of which the first 5
digits of the serial number are "01111" or lower, always set
the beginning (0
H
) of the file.
• For the High Performance model QCPU/Process CPU/
Redundant CPU/Universal model QCPU/LCPU of which the
first 5 digits of the serial number are "01112" or higher, set the
file position (Row).
00000000
H
: Read starts at the beginning of the file.
00000001
H
to FFFFFFFE
H
: Read starts at the specified row.
FFFFFFFF
H
: Read continues, starting at the previous read position.
00000000
H
to
FFFFFFFF
H
User
BIN 16 bits
+6
No. of columns
designation
When binary read is specified at
, always set 0.
When read data after CSV format conversion is specified at
, set the number of columns from where data will be read.
0
: No columns. Regarded as one row.
Other than 0: Regarded as the specified number of columns.
0
H
to FFFF
H
(0 to 65535)
User
+7
Data type
specification
0: Word
1: Byte
0,1
User
Head number of the devices storing a file name. A file name is expressed as follows:
Device
Item
Contents/Setting Data
Setting Range
Set by
to
+
File name
character
string
Designate the character string of a file name.
• When omitting an extension, also omit the "." (Period).
• Limit the file name within 8 char 3
characters.
• When 9 or more characters are used, the extension is
ignored regardless of its presence, and "BIN" or "CSV" is
regarded as an extension.
Character
string
User
Head number of the devices for storing the read data.
Device
Item
Contents/Setting Data
Setting Range
Set by
Reading result
(No. of read
data)
Contains the number of actually read data against the data
designated by
+2. The unit on the value depends on data
type specification.
––
System
+1
to
+
Reading data
Read data
––
System
D0
D0
D0
D0
D0
D0
D0
D0
D0
S1
S1
S1
D1
D1
D0
D1
D1