Справочник Пользователя для Mitsubishi Electronics Mitsubishi Digital Electronics Video Gaming Accessories FX3U-CF-ADP

Скачать
Страница из 124
9 Program Examples
9.2 Program Example 1
82
FX
3U
-CF-ADP User's Manual
9.2
Program Example 1
9.2.1
Operation details
• When X000 turns ON, the following file is created.
If a file whose file ID is "1" already exists in the CompactFlash
TM 
card, file creation and data name writing 
are aborted.
- File ID = 1
- File name = DWORD_01
- Data type = Decimal type (32 bit)
• When X001 turns ON, 10 data points of 32-bit decimal type stored in D400 to D419 are written additionally 
to the internal buffer of the CF-ADP. When the number of times of additional writing to the internal buffer 
reaches 10, later data will be written additionally to the file "DWORD_01" stored in the CompactFlash
TM
 
card.
• When X002 turns ON, 10 data points of 32-bit decimal type are read from the final line in the 32-bit decimal 
type file "DWORD_01".
Data reading should be executed after data writing.
• When X003 turns ON, the 32-bit decimal type file "DWORD_01" is deleted.
9.2.2
Example of a 32-bit decimal type file in "csv" format after writing
When a "csv" file is created and then data is written to the file 20 times, its contents are as shown below.
Numeric values are stored in shaded areas.
700000
690000
680000
670000
660000
650000
640000
630000
620000
610000
800000
790000
780000
770000
760000
750000
740000
730000
720000
710000
0
2009/ 9/ 9 23:59:00
0
2009/ 9/ 9 23:59:28
0
0
0
0
100000 300000 500000
1
10
100
1000
10000
2
20
200
2000
20000
3
30
300
3000
30000
4
40
400
4000
40000
5
50
500
5000
50000
6
60
600
6000
60000
7
70
700
7000
70000
8
80
800
8000
80000
9
90
900
9000
90000
9
90
900
9000
90000
8
80
800
8000
80000
7
70
700
7000
70000
6
60
600
6000
60000
5
50
500
5000
50000
4
40
400
4000
40000
3
30
300
3000
30000
2
20
200
2000
20000
1
10
100
1000
10000
10
100
1000
10000
100000
2009/ 9/ 9 23:59:02
2009/ 9/ 9 23:59:04
2009/ 9/ 9 23:59:06
2009/ 9/ 9 23:59:08
2009/ 9/ 9 23:59:10
2009/ 9/ 9 23:59:20
2009/ 9/ 9 23:59:22
2009/ 9/ 9 23:59:24
2009/ 9/ 9 23:59:26
2009/ 9/ 9 23:59:30
2009/ 9/ 9 23:59:32
2009/ 9/ 9 23:59:34
2009/ 9/ 9 23:59:36
2009/ 9/ 9 23:59:38
2009/ 9/ 9 23:59:40
2009/ 9/ 9 23:59:42
2009/ 9/ 9 23:59:44
2009/ 9/ 9 23:59:46
100000
90000
290000 490000
200000
80000
280000 480000
300000
70000
270000 470000
400000
60000
260000 460000
500000
50000
250000 450000
600000
40000
240000 440000
700000
30000
230000 430000
800000
20000
220000 420000
900000
10000
210000 410000
0
200000 400000 600000
900000 190000 390000 590000
800000 180000 380000 580000
700000 170000 370000 570000
600000 160000 360000 560000
500000 150000 350000 550000
400000 140000 340000 540000
300000 130000 330000 530000
200000 120000 320000 520000
100000 110000 310000 510000
Index
DATE TIME
Device1
Device7
Device6
Device10
Device8
Device9
Device5
Device4
Device3
Device2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20