Mitsubishi MELSEC Q Series Programming Manual page 796

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
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
Column designation
Data type specification
Starting row
[In the addition mode, make addition from the end of the file.]
Execution type
Column designation
Data type specification
Row 1
Row 2
Present starting row
Row 3
Row 4
Row 5
(h) Do not execute the SP.FWRITE instruction in an interrupt program.
(If execute it, the operation is not guaranteed.)
7-422
= CSV format
*3*5
= 4
H
= Word
Column
Column
1
2
Row 1
1
,
2
,
Row 2
5
,
6
CR LF
= CSV format
File position
*3*5
Write head device
= 3
H
= Word
Number of 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
*3: Unless the "number of write points" is set to an integral multiple of "column 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.
File position
= 0
H
Write head device
= D0
= 6
Number of data
H
Device data
(Data to be written)
Column
Column
3
4
3
,
4
CR LF
*3
= FFFFFFF
H
= D7
*3
= 8
H
Device data
(Data to be written)
K6
K1
Column
4
K2
*5
K3
4
CR LF
K4
K5
K6
K8
K7
*5
K8
K9
K10
K11
K12
K13
K14
(New file is created)
*3
K6
D0
Number of write points
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
(Continuation mode)
D0
D1
D2
D3
D4
D5
D6
D7
Number of write points
D8
D9
D10
D11
D12
D13
D14
D15

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents