8 CF-ADP Applied Instructions Explanation
8.5 FNC 302 - FLWR / Data write
55
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
The FLWR instruction writes data specified by the device
to a file stored in the CompactFlash
TM
card
specified by the file ID or to the buffer inside the CF-ADP. The FLWR instruction can overwrite data in the line
position specified by the device
+1, and can write additional data (K-1). When the writing destination is
the buffer inside the CF-ADP, the FLWR instruction can only execute additional writing. When writing is
completed, the line position and column position after writing are as follows.
• When data in 1 line is written additionally
- Line position after writing : Written line po K1
- Column position after writing : K1
• When a line having existing data is overwritten
- Line position after writing :
Written line position if data is not written to the final column position of the specified line position
Line position next to the written line position if data is written to the final column position of the line
- Column position after writing:
Column position next to the final written data point K1 if data is written to the final data point in the line
"K1" if data is written to the final data point in the line
Both additional writing and overwriting are executed to the maximum number of lines specified during file
creation. If data is written up to the final column position, the line position after writing varies depending on the
file type and setting.
• When the processing is stopped by the maximum line position in a normal file
Line position value after writing = Maximum line po K1
K-32768 when the maximum line position is "K32767"
• In the case of a normal file in which processing returns to the head of the file from the end of the file (ring
buffer file)
Line position after writing = K1
• In the case of FIFO file
Line position after writing = K1
In either case, the column position after writing is "K1".
S
2
S
3