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


 
7 Before Programming
7.4 General Rules for Applied Instructions
44
FX3U-CF-ADP User's Manual
7.4.2 Programming using "Instruction execution complete" flag and "Instruction
execution abnormal end" flag
1) If two or more CF-ADP instructions are used in a program, the "Instruction execution complete" flag
(M8029)
*1
or "Instruction execution abnormal end" flag (M8329) will be turned on or off after execution of
each instruction. However, if the "Instruction execution complete" flag (M8029) and "Instruction execution
abnormal end" flag (M8329) are used together for a program, it is difficult to determine which instruction
turns them ON/OFF and the "Instruction execution complete" flag (M8029) will not be turned on for the
intended instruction.
*1. For an applied instruction for the CF-ADP, the instruction execute complete flag (M8029) indicates
that the instruction has been completed normally.
To use a CF-ADP instructions at a position other than just below the instruction, refer to the
example shown on the next page.
Bad
example:
The M8029 will function
as the "instruction
execution complete" flag
of the lower DSW
instruction.
The M8029 will function
as the "instruction
execution complete" flag
of the upper FLSTRD
instruction.
The M8029 will function
as the "instruction
execution complete" flag
of the lower FLSTRD
instruction.
RST
M0
FNC 22
MUL
D0 K10 D20
M8000
X10 Y10 D0
Completion of
instruction
execution
FNC 72
DSW
K1
X000
M0
SET
M0
H200 D100 K1
FNC305
FLSTRD
M8029
M8029
Completion of instruction execution
M1
H300 D200 K1
FNC305
FLSTRD
Program for upper FLSTRD
instruction
Program for DSW
instruction
Upper FLSTRD instruction
Lower FLSTRD instruction
M0
FNC300
FLCRT
K1 D0 D10 K1
K1
M0
M8029
Completion
of instruction
execution
M1
FNC302
FLWR
K1 D20 D30
RST
M1
M8029
M8329
The M8029 will function
as the "instruction
execution complete" flag
of FLCRT instruction.
The M8029 will function
as the "instruction
execution complete"
flag of FLWR instruction.
Good
example:
Abnormal
completion of
instruction execution
M0
D40
RST
RST
Completion
of instruction
execution
M8329
M1
RST
Abnormal
completion of
instruction execution