634
SP.FWRITE
(g) When data is added by 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:
[Specify the file to which data will be written.] (If a file exists, delete it and create a new file again.)
[In the addition mode, make addition from the end of the file.]
*3:
Unless the "No. of request write data" is set to an integral multiple of "No. of columns designation", the column numbers will be
random.
*4:
Since the last data is always followed by the line feed code, addition normally starts at the beginning of the new row in the
addition mode.
*5:
If, in the addition mode, "column designation" is changed from that in the previous writing, the column numbers are shifted.
(h) Do not execute the SP.FWRITE instruction in an interrupt program.
(If execute it, the operation is not guaranteed.)
Start
i
ng
ro
w
1
,
2
,
3
,
4
CR
LF
Ro
w
1
Co
l
umn
1
Co
l
umn
2
Co
l
umn
3
Co
l
umn
4
5
,
6
CR
LF
Ro
w
2
De
vi
ce
data
(Data
to
be
w
r
i
tten)
K
6
K
1
K
2
K
3
K4
K
5
K
6
K
5
K
7
K
8
K
9
K
10
K
11
K
12
D0
D1
D2
D3
D
4
D5
D6
D7
D8
D9
D10
D11
D12
D13
N
o
.
of
request
w
r
i
te
data
*3
E
xecut
i
on
type
N
o
.
of
co
l
umns
des
i
gnat
i
on
Data
type
spec
i
f
i
cat
i
on
=
CSV
format
= 4
H
*3*5
=
Word
Fil
e
pos
i
t
i
on
Wr
i
te
head
de
vi
ce
N
o
.
of
request
w
r
i
te
data
=
0
H
(
N
e
w
f
il
e
i
s
created)
=
D0
=
6
H
*3
1
,
2
,
3
,
4
CR
LF
Ro
w
1
Co
l
umn
1
Co
l
umn
2
Co
l
umn
3
Co
l
umn
4
5
,
6
CR
LF
Ro
w
2
De
vi
ce
data
(Data
to
be
w
r
i
tten)
K
6
K
1
K
2
K
3
K4
K
5
K
6
K
8
K
7
K
8
K
9
K
10
K
11
K
12
D0
D1
D2
D3
D
4
D5
D6
D7
D8
D9
D10
D11
D12
D13
N
o
.
of
request
w
r
i
te
data
Present
start
i
ng
ro
w
7
,
8
,
9
CR
LF
Ro
w
3
10
,
11
,
12
CR
LF
Ro
w 4
13
,
1
4
CR
LF
Ro
w
5
K
13
D1
4
K
1
4
D15
*
4
*5
*3
E
xecut
i
on
type
N
o
.
of
co
l
umns
des
i
gnat
i
on
Data
type
spec
i
f
i
cat
i
on
=
CSV
format
=
3
H
*3*5
=
Word
Fil
e
pos
i
t
i
on
Wr
i
te
head
de
vi
ce
N
o
.
of
request
w
r
i
te
data
= FFFFFFF
H
(Add
i
t
i
on
mode)
=
D7
=
8
H
*3