780
7 APPLICATION INSTRUCTIONS
7.19 Other Instructions
(D0) Head number of the devices storing the control data. The following control data is required. BIN 16 bits
Device Item Contents/setting data Setting range Set by
(D0) Execution/
completion
type
Designate the execution type.
0000H: Write binary data
0100H: Write data after CSV format conversion
0000H
0100H
User
(D0)+1 (Not used) Used by system System
(D0)+2 Writing result
(No. of written
data)
Contains the number of actually written data against
the data designated by (S2). The unit of the value
depends on data type specified at (D0)+7.
System
(D0)+3 (Not used)
(D0)+4
(D0)+5
File position Set the file position when binary data writing is
specified by (D0).
00000000H: Starting at the beginning of the file
00000001H to FFFFFFFEH: From the designated
position (The unit for the value is determined by word/
byte unit designation.)
FFFFFFFFH: Addition starts from the end of the file.
When write data after CSV format conversion is
specified at (D0)
• For the High Performance model QCPU of which
the first five digits of the serial number are "01111"
or lower, always set the beginning (0H) of the file.
• For the High Performance model QCPU/Process
CPU/Redundant CPU/Universal model QCPU of
which the first five digits of the serial number are
"01112" or higher, set the file position.
00000000H to FFFFFFFEH: Starting at the beginning
of the file
FFFFFFFFH: Adding at the end of the file
00000000H to
FFFFFFFFH
User
(D0)+6 No. of columns
designation
When binary write is specified at (D0), always set 0.
When write data after CSV format conversion is
specified at (D0), 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.
0H to FFFFH (0
to 65535)
User
(D0)+7 Data type
specification
0: Word
1: Byte
0, 1 User
(S1) Head number of the devices storing a file name. A file name is expressed as follows: BIN 16 bits
Device Item Contents/setting data Setting range Set by
(S1) to
(S1)+
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 characters + period + 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
(S2) Head number of the devices storing the data. Written data is expressed as follows: BIN 16 bits
Device Item Contents/setting data Setting range Set by
(S2) No. of request
write data
Designate the number of data to request writing (word
units).
This data should be designated in units of words even
when byte is designated by (D0)+7.
1 to 480
1 to 32767
*3
User
(S2)+1 to
(S2)+
Write data Data to request writing. 0000H to FFFFH
Setting
data
Meaning Setting range Set by Data type