8-14
8.3 Writing Data to Specified File
SP_FWRITE
(c) When the specified file does not exist, a new file is created and the data are additionally
saved from the beginning of the file.
The attributes of this new file are set using the archive attributes.
(d) An error occurs when the saving space becomes full while data are additionally saved.
In such a case, the data that are additionally saved successfully remains in the medium.
The error completion is indicated after additionally saving the data as much as possible.
(e) When the specified number of columns is 0, the data are stored as single-column data
in CSV format file.
When data are written after CSV format conversion and the specified number of
columns is 0.
Example
Data
to
b
e
rea
d
out
to
E
X
CEL
f
il
e
Data
to
b
e
w
r
i
tten
to
the
f
il
e
0100
H
Var
_
D
10
Var
_
D
17
Var
_
D
20
Var
_
D
99
Var
_
D
106
-
K0
K0
K0
K0
K0
4241
H
4443
H
0045
H
K7
K0
K10
K20
K30
K40
K-50
K100
0 , 10
20
40
30
,
,
-50
100
,
,
,
CR LF
-
S
P
_FWRITE
EN
s
1
s
2
EN
D
d1
d2
s
3
K2
Var
_
D
20
Var
_
D
99
Var
_
D
10
Var
_M0
E
xecut
i
on
/
comp
l
et
i
on
t
y
pe
N
ot
use
d
N
um
b
er
of
w
r
i
tten
resu
l
t
d
ata
(I
n
norma
l
comp
l
et
i
on
,
i
t
i
s
the
same
num
b
er
as
the
num
b
er
of
d
ata
to
b
e
w
r
i
tten
.)
S
pec
i
f
i
cat
i
on
of
the
num
b
er
of
co
l
umns
Data
t
y
pe
spec
i
f
i
cat
i
on
Fil
e
name
(I
f
a
f
il
e
name
cons
i
sts
of
8
or
l
ess
characters
, "00"
s
are
f
ill
e
d i
n
the
rema
i
n
i
ng
area
.)
"A
B
C
D
E"
N
um
b
er
of
d
ata
to
b
e
w
r
i
tten
Data
to
b
e
w
r
i
tten
N
ot
use
d
*S
pec
i
f
i
cat
i
on
i
n
un
i
t
of
w
or
d
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......