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


 
8 CF-ADP Applied Instructions Explanation
8.5 FNC 302 - FLWR / Data write
65
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 area
Set the data writing parameters (line position and column position) in accordance with the written points.
Use matching settings in a series of FLWR instructions. However, even if matching settings are used, data
is written to a column position continuing from the final data of the previous instruction.
Only data of 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 add data additionally after the final data of an already 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 point. 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 data stored in M15 (bit type), data stored in M16 (bit type), and data stored in R200
(16-bit decimal type) overwrites respectively the Index 1 in the following file. The writing destination is the
CompactFlash
TM
card. D20 stores the line position after writing, and D21 stores the column position after
writing.
Channel 2 is used in this program. For details on sequence programs, refer to next page.
Content of file
DATE TIMEIndex Data1 (CR)(LF)Data5Data4Data3Data2
12AB2222
1
2
2009/ 9/ 9 23:59:00 1 0 -444 555 (CR)(LF)
12AB3333 0 1 -44 5
2009/ 9/ 9 23:59:02
(CR)(LF)
DATE TIMEIndex Data1 (CR)(LF)Data5Data4Data3
Data2
12AB3333
2
3
1
2009/ 9/ 9 23:59:02 0 1 -44 5
(CR)(LF)
23CDFFFF
1 1 -4444 55
12AB2222
1 1 4 555
2009/ 9/ 9 23:59:04
2009/ 9/10 10:10:10
(CR)(LF)
(CR)(LF)
File ID=K5, The data name is already written.
The time stamp is updated at
the time of overwriting.
The
existing
data is
overwritten
by the M15
(ON=1).
The
existing
data is
overwritten
by the M16
(ON=1).
The
existing
data is
overwritten
by the
value
stored in
R200.
Line position after writing : D20=K1
Column position after writing : D21=K5
Line position after data is written by the FLWR instruction
3
23CDFFFF 1 1 -4444 55
2009/ 9/ 9 23:59:04
(CR)(LF)
After the FLWR instruction is executed
Before the FLWR instruction is executed