629
SP.FWRITE
1
2
3
4
4
6
7
8
7.18
Ot
her inst
ructions
7.18.1
2
SP.FWRIT
E
Operat
i
on
E
rror
Setting
Data
Meaning
Setting
Range
Set by
Data Type
U0
Dummy
––
––
BIN 16 bits
Drive designation
2
User
Head number of the devices storing the control data. The following control data is required.
Device
Item
Contents/Setting Data
Setting Range
Set by
Execution/
completion
type
Designate the execution type.
0000
H
: Write binary data
0100
H
: Write data after CSV format conversion
0000
H
0100
H
User
+1
(Not used)
Used by system
––
System
+2
Writing result
(No. of written
data)
Contains the number of actually written data against the data
designated by
. The unit of the value depends on data type
specified at
+7.
––
System
+3
(Not used)
––
––
––
+4
+5
File
position
Set the file position when binary data writing is specified by
.
00000000
H
:Starting at the beginning of the file
00000001
H
to FFFFFFFE
H
: From the specified position
(The unit of the value depends on data
type specification.)
FFFFFFFF
H
: Addition starts from the end of the file.
When write data after CSV format conversion is specified at
• For the High Performance model QCPU of which the first 5
digits of the serial number are "01111" or lower, always set
the beginning (0
H
) of the file.
• For the High Performance model QCPU/Process CPU/
Redundant CPU/Universal model QCPU of which the first 5
digits of the serial number are "01112" or higher, set the file
position.
00000000
H
to FFFFFFFE
H
: Starting at the beginning of the file
FFFFFFFF
H
: Adding at the end of the file
00000000
H
to
FFFFFFFF
H
User
+6
No. of columns
designation
When binary write is specified at
, always set 0.
When write data after CSV format conversion is specified at
, set the number of columns where data will be written.
0
: No columns. Regarded as one row.
Other than 0
: Set to the specified number of columns.
0
H
to
FFFF
H
(0 to 65535)
User
+7
Data type
specification
0: Word
1: Byte
0,1
User
Head number of the devices storing a file name. A file name is expressed as follows:
Device
Item
Contents/Setting Data
Setting Range
Set by
to
+
File name
character
string
Designate the character string of a file name.
• When omitting an extension, also omit the "." (Period).
• Limit the file name within 8 char 3
characters.
• When 9 or more characters are used, the extension is
ignored regardless of its presence, and "BIN" or "CSV" is
automatically assigned as an extension.
Character
string
User
S0
D0
D0
D0
D0
S2
D0
D0
D0
D0
D0
D0
D0
D0
D0
D0
D0
S1
S1
S1