Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
1 Outline
1.3 Cautions on Creation of Fundamental Programs
23
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied Instructions
(Program Flow)
8
Applied Instructions
(Move and
Compare)
9
Applied Instructions
(Arithmetic and
Logical Operation)
10
Applied Instructions
(Rotation and
Shift Operation)
1. Program containing many flags (example of instruction execution complete flag M8029)
If you program the instruction execution completion flag M8029 for two or more sequence instructions which
actuate the flag M8029, you cannot judge easily by which sequence instruction the flag M8029 is controlled.
In addition, the flag M8029 does not turn ON or OFF correctly for each corresponding sequence instruction.
Refer to the next page when you would like to use the flag M8029 in any position other than the position just
under the corresponding sequence instruction.
M8000
M8029
Execution is
completed.
M8029 works as
a flag to indicate
that execution
of DSW is
completed.
M8029 works as
a flag to indicate
that execution
of DPLSY is
completed.
Good example
D0
10
Bad example
M8029 works as
a flag to indicate
that execution
of DSW is
completed.
M8029 works as
a flag to indicate
that execution of
DPLSY (on the
upper side) is
completed.
M8029 works as a
flag to indicate that
execution of DPLSY
(on the lower side)
is completed.
M8000
Execution is
completed.
X000
M0
M8029
M8029
Execution is
completed.
M1
Program for DPLSY (on the upper side)
Program for DSW
DPLSY (on the upper side)
M0
Execution is
completed.
X000
M0
S
1000
Number of
output pulses
Y000
DPLSY
EN
s1
ENO
d
s2
M8029
M0
R
X010
1
DSW
EN
s
ENO
d1
Y010
n
d2
D0
D0
10
MUL_E
EN
_IN
ENO
_IN
Number of output pulses
1000
Number of
output pulses
Y000
DPLSY
EN
s1
ENO
d
s2
1000
Number of
output pulses 2
Y001
DPLSY
EN
s1
ENO
d
s2
M0
S
DPLSY (on the lower side)
M0
R
MUL_E
EN
_IN
ENO
_IN
Number of output pulses
X010
1D0
DSW
EN
s
ENO
d1
Y010
nd2