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


 
8 CF-ADP Applied Instructions Explanation
8.5 FNC 302 - FLWR / Data write
57
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
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
S2
K*
K****
Data type
specification
Line
position
n
Source data
S2
Data write parameter
S3S1
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
S2
+m-1
S3
S3
+1
S3
+2
S3
+3
S3
+4
D
+1
K* Writing
destination
Command
input
n
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)
DATE TIMEIndex Data1
(CR)(LF)
Data5Data4Data3Data2
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