Mitsubishi MELSEC-Q/L Programming Manual page 636

Table of Contents

Advertisement

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.)
Execution type
No. of columns designation
Data type specification
Starting row
Row 1
Row 2
[In the addition mode, make addition from the end of the file.]
Execution type
No. of columns designation
Data type specification
Row 1
Row 2
Present starting row
Row 3
Row 4
Row 5
*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.)
634
= CSV format
File position
*3*5
Write head device
= 4
H
= Word
No. of request write data
Column
Column
Column
1
2
3
1
,
2
,
3
*3
5
,
6
CR LF
= CSV format
File position
*3*5
Write head device
= 3
H
= Word
No. of request write data
Column
Column
Column
1
2
3
1
,
2
,
3
5
,
6
CR LF
*4
7
,
8
,
9
CR LF
10
,
11
,
12 CR LF
*3
13
,
14 CR LF
= 0H (New file is created)
= D0
*3
= 6
H
Device data
(Data to be written)
Column
4
,
4
CR LF
= FFFFFFF
H
= D7
*3
= 8
H
Device data
(Data to be written)
Column
4
,
4
CR LF
*5
K10
K11
K12
K13
K14
K6
D0
No. of request write data
K1
D1
K2
D2
K3
D3
K4
D4
K5
D5
K6
D6
K5
D7
K7
D8
K8
D9
K9
D10
K10
D11
K11
D12
K12
D13
(Addition mode)
K6
D0
K1
D1
K2
D2
K3
D3
K4
D4
K5
D5
K6
D6
K8
D7
No. of request write data
K7
D8
K8
D9
K9
D10
D11
D12
D13
D14
D15

Advertisement

Table of Contents
loading

Table of Contents