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


 
9 Program Examples
9.4 Program Example 3
98
FX3U-CF-ADP User's Manual
9.4.3 Sequence Program
This program example describes the sequence program for channel 1 (ch1).
Rewrite the channel No. with the actual system configuration to be used.
For explanation of operations, refer to Subsection 9.4.1.
For device assignments, refer to Subsection 9.4.2.
M10SET
X010
Remains ON while the error
information (error flag) of the CF-
ADP is being read.
Command to read
the error information
of the CF-ADP
M30RST
Turns ON when the error
information (error flag) of the CF-
ADP is read successfully.
K1D130H400
FNC305
FLSTRD
M8405
CF card
is
mounted
M10 M8404
CF-ADP
unit ready
Remains ON
while the error
information (error
flag) of the CF-
ADP is being read
Error information of the CF-ADP
are read.
K1D132H500
FNC305
FLSTRD
M8405
CF card
is
mounted
M64 M8404
CF-ADP
unit ready
Turns ON when
the error
information of the
CF-ADP is read
normally.
Up to 5 error codes of the CF-
ADP are read (and stored in
D130 to D141).
END
Y0
M40
Turns ON when the CompactFlash
TM
card is unmounted.
Y1
M41
Turns ON when the CompactFlash
TM
card is full.
Y2
M42
Turns ON when an error occurs in the CF-ADP.
Y3
M43
Turns ON when the CF-ADP hardware is defective
Y4
M44
Turns ON when the CompactFlash
TM
card is defective
Turns ON when the
CompactFlash
TM
card is
unmounted.
Turns ON when the
CompactFlash
TM
card is full.
Turns ON when an error occurs
in the CF-ADP.
Turns ON when the CF-ADP
hardware is defective.
Turns ON when the
CompactFlash
TM
card is
defective.
D126D8418
D127D8417
FNC 12
MOV
The error code is stored.
Turns ON when the error
information of the CF-ADP is
read normally.
The error code details are stored.
FNC 12
MOV
M64SET
M10RST
M10RST
M8029
M8329
D128D8418
D129D8417
FNC 12
MOV
The error code is stored.
Turns ON when the error
information (error flag) of the CF-
ADP is read successfully.
The error code details are stored.
FNC 12
MOV
M30SET
M64RST
M64RST
M8029
M8329
K4M40D130
FNC 12
MOV
Error Error information of the CF-
ADP.
Remains ON while the error
information (error flag) of the CF-
ADP is being read.
Remains ON while the error
information (error flag) of the CF-
ADP is being read
Turns ON when the error
information of the CF-ADP is
read normally.
Turns ON when the error
information of the CF-ADP is
read normally.
Execution
completion
Abnormal
end
Execution
completion
Abnormal
end