Mitsubishi Electronics FX3U-CF-ADP Video Gaming Accessories User Manual


 
8 CF-ADP Applied Instructions Explanation
8.5 FNC 302 - FLWR / Data write
59
FX3U-CF-ADP User's Manual
1
Introduction
2
Specification
3
System
Configuration
4
Installation
5
Wiring
6
Functions
7
Before
Programming
8
CF-ADP Applied
Instructions
Explanation
9
Program
Examples
10
Troubleshooting
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
Data3Data2DATE TIMEIndex Data1 (CR)(LF)Data5Data4
DATE TIMEIndex Data1 (CR)(LF)Data5Data4Data3Data2
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 552009/ 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