Example 2) When specifying a writing position from the head of a file
<Saved data>
File name: DATA1
Specified writing position
(Set value 1h is specified.)
Example 3) When specifying a writing position from the end of a file
<Saved data>
File name: DATA1
Specified writing position
(Set value 2h is specified.)
The end of the original file
The saved data is written from the specified
writing position, and the additional data is
added from the end of the file.
■
[D2+2]: Specification of options
Specified
bits
Description
bit0 to 7 Line break
Line break setting for lines other than the end of the file when outputting to a CSV
file.
0: Line break is not used except at the end of the file.
1 to 255: Insert a line break at each of the specified number of comma-separated
data pieces.
When U10 (ASCII) or U11 (BIN) is specified for [D2] saving method, the line break
setting is invalid.
bit 8 Postfix
Specifies the data to be added to the end of the write data when outputting to a
CSV file.
0: Insert a line break (0Dh+0Ah).
1: Insert a comma (2Ch).
However, lines with line breaks do not have a trailing comma.
bit 9
Zero
suppression
When outputting to a CSV file, specify whether to perform zero suppression or
not.
0: Do not perform zero suppression.
1: Perform zero suppression. (Delete unnecessary zeros, and output right-aligned
data.)
Bit10 to 15 Reserved for system (Zero is set.)
Example of option settings
● The following table shows how data is written depending on the value of bits 0 to 7 of [D2+2]
for the writing format [D2] = 7 (HEX 16 bits), bit 9 of [D2+2] = 0 (Do not perform zero
suppression), and written data "1 2 3 4 5".
18.3 CWT (File Data Write Instruction)
WUME-FP7CPUPGR-12 18-9