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