637
SP.FWRITE
1
2
3
4
4
6
7
8
7.18 Other instructions
7.18.12 SP.FWRITE
(2) When X10 is turned ON, the following program creates a file named "ABCD.CSV" in the memory card inserted to drive 2,
and writes four bytes of data (00
H
, 01
H
, 02
H
, and 03
H
) as two-column table data in CSV format.
• Assume that 8 points from are reserved for the control data devices.
[Ladder Mode]
[List Mode]
• The written file is displayed as follows:
D0
Sets the number of request write data
Normal completion display
Sets the execution/completion type
Sets the designation of the number of columns
Sets the file name
Sets the data type specified
Error completion display
Sets the data to be written.
Step Instruction Device
Contents of the file
to be written
0
0
0
0
0
,
CR
LF
1
2
3
,
,
,
,
,
,
,
CR
CR
CR
LF
LF
LF
Data to be read to the EXCEL file