Mitsubishi Electronics E60 Video Game Controller User Manual


 
D–
- 93 -
Execution conditions
The execution conditions for D- are as shown below.
Subtraction command OFF
D-
ON
Executed per scan
Executed per scan
Program example
(1) Program to subtract the D0, 1 data from the D10, 11 data when X1 turns ON, and output the
results to D99, 100. Program to subtract the D0, 1 data from D10, 11 data when X2 turns ON, and
output the results to D97, 98.
D-
D0
D10
D99
X1
10
D-
D0D10 D97
X2
15
Subtract D0, 1 from D10,11,
and store the results in D99,100
Subtract D0, 1 from D10,11,
and store the results in D97,98
Coding
No. of
steps
Com-
mand
Device
10 LD X1
11 D- D10 D0 D99
15 LD X2
16 D- D10 D0 D97
20