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


 
9 Program Examples
9.2 Program Example 1
83
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
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