Mitsubishi MELSEC-Q/L Programming Manual page 634

Table of Contents

Advertisement

SP.FWRITE
(c) When the designated file does not exist, a new file is created and the data is 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 is added and saved.
In such a case, the data that is successfully added/saved remains in the medium.
The error completion is indicated after as much data as possible is added/saved.
(e) When the designated number of columns is "0", the data is stored as single-row data in CSV format file.
Example
When data is written after CSV format conversion and the designated No. of columns is "0":
SP.FWRITE
D10
D11
D12
D13
D14
D15
D16
D17
D20
D21
D22
D099
D100
D101
D102
D103
D104
D105
D106
Data to be written to the file
0 , 10
Data to be read out to EXCEL file
632
U0
K2
D10
D20 D99 M0
H0100
Execution/completion type
Not used
-
Writing result (No. of written data) (In normal completion, it is the same number as the number of
K0
data to be written.)
-
Not used
K0
File position
K0
K0
No. of columns designation
Data type specification
K0
H4241
File name (If a file name consists of 8 or less characters, "00"s are stored in the remaining area.)
H4443
"ABCDE"
H0045
No. of request write data
K7
Write data
K0
K10
K20
K30
K40
K-50
K100
,
,
,
,
20
30
40
-50
* Designation in word units
,
100
CR LF

Advertisement

Table of Contents
loading

Table of Contents