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


 
8 CF-ADP Applied Instructions Explanation
8.5 FNC 302 - FLWR / Data write
62
FX3U-CF-ADP User's Manual
1. When writing additional data to a file
Set the data writing parameters as follows in all of a series of FLWR instructions.
- Line position of writing destination : K-1 (Additional writing)
- Column position : K-1
A series of FLWR instructions is executed, and data in one line is added.
It is not possible to write the same line data additionally to a previously written line.
The time stamp is added at the time of writing if addition of the time stamp is set.
The line position after writing is as follows.
- Line position after writing : Line position next to the written line
- Column position after writing : K1
In a series of FLWR instructions, the user can specify a matching device in in all FLWR instructions,
or specify different devices. When specifying a matching device, it is necessary to change the type
and number of points +3 among FLWR instructions in accordance with each transferred data point
using the MOV instruction, etc. (At this time, do not use a pulse type instruction.)
Program Example
Explanation of operation
When X000 turns ON, the data stored in D101 and D100 (32-bit hexadecimal type), data stored in Y010 (bit
type), data stored in Y011 (bit type), data stored in R100 (16-bit decimal type), and data stored in R101 (16-bit
decimal type) are written respectively to Index 3 additionally 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
S
3
S
3
S
3
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)
Data5Data4Data3Data2
12AB2222
1
2
3
2009/ 9/ 9 23:59:00 1 0 -444 555
(CR)(LF)
12AB3333
0 1 -44 5
23CDFFFF
1 1 -4444 55
2009/ 9/ 9 23:59:02
2009/ 9/10 23:59:00
(CR)(LF)
(CR)(LF)
File ID=K5, The data name is already written.
The time at which the
instruction is executed is
added.
The value of
D101, D100 is
written
additionally.
Y010
(ON = 1)
is written
additionally
.
Y011
(ON = 1)
is written
additionally
.
The value
of R100 is
written
additionally
.
The value
of R101 is
written
additionally
.
Line position after writing : D20=K4
Column position after writing : D21=K1
Line position after data is written by the FLWR instruction
After the FLWR instruction is executed
Before the FLWR instruction is executed