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


 
8 CF-ADP Applied Instructions Explanation
8.6 FNC 303 - FLRD / Data read
72
FX3U-CF-ADP User's Manual
Program Example
Explanation of operation
When X000 turns ON, 4 data points of different types are read from the 1st column in Index 2 in the following
file. Each device shown below stores the read data, and D10 stores the total number of data points.
Channel 2 is used in this program.
Content of file
Sequence program
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 0 0 -444 555
2009/ 9/ 9 23:59:02
2009/ 9/ 9 23:59:04
(CR)(LF)
(CR)(LF)
File ID=K5,The data name is already written.
After the FLRD instruction is executed
Device which stores the read data Value
Read data
Total number of data
D101,D100
H12AB3333
M200
K0=OFF
D10
K5
M201
K1=ON
D200
K-44
Line position from which data is
read.
Index 2 is specified.
D22K1
D23K4
FNC 12
MOV
Column position from which data
is read.
The 1st column is specified.
Data reading.
Only "mixed type" data is
specified.
Total number of read points.
"4 points" is specified.
M8425
CF card is
mounted
M0 M8424
CF-ADP
unit
ready
Specify the data reading type.
"Mixed type" data is specified.
FNC 12
MOV
D21K2
FNC303
FLRD
K5
D20K0
FNC 12
MOV
D20 D100 D10 K2
FNC 12
MOV
M0SET
X000
Line position from which data is
read.
Index 2 is specified.
D32K1
D33K1
FNC 12
MOV
Column position from which data
is read.
The 1st column is specified.
Number of read data points.
"1 point" is specified.
FNC 12
MOV
D31K2
D30K5
FNC 12
MOV
FNC 12
MOV
Specify the data reading type.
The 32-bit hexadecimal type is
specified.
Data reading.
The data stored in the 1st data
type is read.
FNC303
FLRD
K5 D30 D100 D10 K2
To next pageTo next page
The data stored in the 1st
data type is written.
Only "mixed type" data is
specified