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

Скачать
Страница из 124
9 Program Examples
9.2 Program Example 1
83
FX
3U
-CF-ADP User's Manual
1
Introduc
tion
2
S
pecifi
cation
3
Sy
stem
 
Configurati
o
n
4
Ins
tal
lation
5
Wi
rin
g
6
Functi
o
n
s
7
Bef
o
re
 
Programm
ing
8
C
F
-AD
P
 Appl
ied 
Ins
tructi
ons
 
Explanati
o
n
9
Program 
Examples
10
T
roubl
esho
oti
n
g
9.2.3
Device Assignments
Device No.
Contents of operation
X000
Creates a 32-bit decimal type file, and writes data names.
X001
Writes data to the 32-bit decimal type file.
X002
Reads data from the 32-bit decimal type file.
X003
Deletes the 32-bit decimal type file. 
M0
Remains ON while the 32-bit decimal type file is being created.
M1
Remains ON while data is being written to the 32-bit decimal type file.
M2
Remains ON while data is being read from the 32-bit decimal type file.
M3
Remains ON while the 32-bit decimal type file is being deleted.
M20
Turns ON when the 32-bit decimal type file is created successfully or already exists.
M21
Turns ON when data is written successfully to the 32-bit decimal type file.
M22
Turns ON when data is read successfully from the 32-bit decimal type file.
M23
Turns ON when the 32-bit decimal type file is deleted successfully.
M28
Turns ON when forcible writing of buffered data to the CompactFlash
TM
 card is completed
successfully.
M60
Remains ON while a new 32-bit decimal type file is being created.
M61
Remains ON while data names are being written to the 32-bit decimal type file.
D0 to D4
File name
D10
Time stamp setting
D11
Data type
D12
Maximum line position setting
D13
Processing when the maximum line position is reached
D20
Specify the data writing type.
D21
Specify the line position of the writing destination.
D22
Specify the data column position in the writing destination.
D23
Number of written data points.
D24
Writing destination. (Internal buffer inside the CF-ADP/CompactFlash
TM
 card)
D28
Executes forcible writing of buffered data to the CompactFlash
TM
 card after data is written to
the buffer 10 times
D30
Specify the line position of the writing destination.
D31
Specify the data column position in the writing destination.
D40
Specify the data reading type.
D41
Specify the line position  from which data is read.
D42
Column position from which data is read.
D43
Number of read data points.
D50
Number of data points existing in the specified Index
D100/D101
Error code/error code details when existence of a file whose file ID is "1" is confirmed
D102/D103
Error code/error code details when the 32-bit decimal type file is created
D104/D105
Error code/error code details when data names are written to the 32-bit decimal type file
D106/D107
Error code/error code details when data is written to the 32-bit decimal type file
D108/D109
Error code/error code details when buffered data is forcibly written to the CompactFlash
TM
card
D110/D111
Error code/error code details when data is read from the 32-bit decimal type file
D112/D113
Error code/error code details when the 32-bit decimal type file is deleted
D170
File ID information read when the 32-bit decimal type file is created
D200 to D239
Data name data written to the 32-bit decimal type file
D400 to D419
32-bit decimal data written to the 32-bit decimal type file
D430 to D449
32-bit decimal data read from the 32-bit decimal type file