8 CF-ADP Applied Instructions Explanation
8.5 FNC 302 - FLWR / Data write
57
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
8.5.2
Writing data of same type
"m" data points of the same type in one line are written as follows.
Additional writing or overwriting is available.
1. When writing additional data to a file
• Set the data writing parameters (line position and column position) as follows.
- Line position of writing destination : K-1 (Additional writing)
- Column position : K1 (Head)
• When executed once, the FLWR instruction adds data by 1 line. It is not possible to additionally write data
which increases columns in to a previously written line position.
• The time stamp is added at the time of writing if the addition of the time stamp when writing has been set.
• After writing, the line position stores the following value
- Line position after writing : Line position next to the written line position
- Column position after writing : K1
Program Example
• Explanation of operation
When X000 turns ON, the decimal (16-bit) data stored in D10 to D14 is written additionally to the 3rd line
(Index 3) 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
Instruction name
FLWR
S
2
K*
K****
Data type
specification
Line
position
n
Source data
S
2
Data write parameter
S
3
S
1
File ID
Line position
after writing
D
Used channel
number
K**** or K-1
Line position
K****
Column position
K(m) Points
Column
position
D
S
2
+m-1
S
3
S
3
+1
S
3
+2
S
3
+3
S
3
+4
D
+1
K* Writing
destination
Command
input
n
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)
DATE TIME
Index
Data1
(CR)(LF)
Data5
Data4
Data3
Data2
111
1
2
3
2009/ 9/ 9 23:59:00
222
333
-444
555
(CR)(LF)
1111
2222
3333
-44
5
11
22
33
-4444
55
2009/ 9/ 9 23:59:02
2009/ 9/10 23:59:00
(CR)(LF)
(CR)(LF)
File ID=K10, The data name is already written.
The time at which the
instruction is executed is
added.
The value
of D10 is
written
additionally
.
The value
of D11 is
written
additionally
.
The value
of D12 is
written
additionally
.
The value
of D13 is
written
additionally
.
The value
of D14 is
written
additionally
.
Line position after writing : D0=K4
Column position after writing : D1=K1
Line position after data is written by the FLWR instruction
After the FLWR instruction is executed
Before the FLWR instruction is executed