Panasonic FP7 Series Command Reference Manual page 1102

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

18.3 CWT (File Data Write Instruction)
Operand
Items
Options
D2+2
(Note 2)
D2+3
Writing position
(file pointer)
Number of bytes
from the
D2+4
beginning or end
of the file
(Note 3)
D2+5
Number of written
data
D2+6
(Note 1)
Refer to "[D2+1]: Specification of writing mode".
(Note 2)
Refer to "[D2+2]: Specification of options".
(Note 3)
Refer to "[D2+3] and [D2+4]: Specification of writing position".
[D2+1]: Specification of write mode
Example 1: When the addition a file is specified
File name: DATA1
18-8
Description
1: Add mode
2: Write position
specification mode 1
3: Write position
specification mode 2
● This is effective when the write position specification mode is selected for
[D2+1].
● The setting of the writing position (file pointer) indicates the position in
bytes from the head of the stored file.
● In the case of writing position specification mode 1, when completing
writing to an SD memory card, the end position of the newly-saved data
counting from the head of the file is stored in the areas [D2+3] and [D2+4].
● In the case of writing position specification mode 2, when completing
writing to an SD memory card, the end position of the newly-saved data
counting from the end of the file is stored in the areas [D2+3] and [D2+4].
Stores the number of data items that could be written after writing to the file.
Example 1: If the number of data items to be written is 40 and the file has 100
free spaces, 40 is stored for the number of written data.
Example 2: If the number of data items to be written is 40 and the file has 30
free spaces, 30 is stored for the number of written data.
Example 3: If the number of characters to be written is 40 and the file has free
space for 100 characters, 40 is stored for the number of characters written.
Example 4: If the number of characters to be written is 40 and the file has free
space for 30 characters, 30 is stored for the number of characters written.
<Saved data>
+
Writes additional data from the end of the file.
When no file exists, a new one is created.
Writes data from the position after the number
of bytes stored in [S2+3] and [S2+4] from the
head of the file.
Writes data from the position after the number
of bytes stored in [S2+3] and [S2+4] from the
end of the file.
-
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents