Справочник Пользователя для Mitsubishi Electronics FX3U-CF-ADP

Скачать
Страница из 124
8 CF-ADP Applied Instructions Explanation
8.5 FNC 302 - FLWR / Data write
59
FX
3U
-CF-ADP User's Manual
1
Introduc
tion
2
S
pecifi
cation
3
Sy
stem
 
Configurati
o
n
4
Ins
tal
lation
5
Wi
rin
g
6
Functi
o
n
s
7
Bef
o
re
 
Programm
ing
8
C
F
-AD
P
 Appl
ied 
Ins
tructi
ons
 
Explanati
o
n
9
Program 
Examples
10
T
roubl
esho
oti
n
g
2. When overwriting data in a previously written line
• Set the data writing parameters (line position and column position of the writing destination) in accordance 
with the written points.
• Only data the same type as the original data can be used for overwriting. When the data type is a character 
string, only a character string not longer than the original character string can be used for overwriting.
• It is not possible to write data additionally after the final data point of a previously written line.
• The time stamp is updated at the time of overwriting.
• The line position after writing is the specified line position. The column position after writing is the column 
position next to the final written data. However, if data is written up to the end of a line, the line position 
after writing is the line position next to the written line position, and the column position after writing is "K1".
Program Example
• Explanation of operation
When X000 turns ON, the decimal (16-bit) data stored in D10 and D11 overwrites the Index 2 in the following
file. The writing destination is the CompactFlash
TM
 card. D0 stores the line position after writing, and D1
stores the column position after writing.
Channel 1 is used in this program. For details on sequence programs, refer to next page.
• Content of file
Data3
Data2
DATE TIME
Index
Data1
(CR)(LF)
Data5
Data4
DATE TIME
Index
Data1
(CR)(LF)
Data5
Data4
Data3
Data2
111
1
2
2009/ 9/ 9 23:59:00
222
333
-444
555
(CR)(LF)
1111
2222
3333
-44
5
2009/ 9/ 9 23:59:02
(CR)(LF)
111
1
2
3
2009/ 9/ 9 23:59:00
222
333
-444
555
(CR)(LF)
1111
2222
1234
2345
5
111
22
33
-4444
55
2009/ 9/10 23:59:30
2009/ 9/ 9 23:59:04
(CR)(LF)
(CR)(LF)
3
111
22
33
-4444
55
2009/ 9/ 9 23:59:04
(CR)(LF)
The time stamp is updated
at the time of overwriting.
The
existing
data is
overwritten
by the
value
stored in
D10.
The
existing
data is
overwritten
by the
value
stored in
D11.
File ID=K10, The data name is already written.
Line position after writing : D0=K2 
Column position after writing : D1=K5
Line position after data is written by the FLWR instruction
  After the FLWR instruction is executed
  Before the FLWR instruction is executed