Mitsubishi Electronics E60 Video Game Controller User Manual


 
- 91 -
Execution conditions
The execution conditions for - are as shown below.
Subtraction command OFF
-
ON
Executed per scan
Executed per scan
Program example
(1) Program to subtract the BIN data D10 from D3 and output to D20.
Coding
No. of
steps
Com-
mand
Device
10 LD M0
11 - D3 D10 D20
D10
D3 D20
M0
(ON)
10
-
15
(2) Program to BCD output the difference of the timer T3 setting value and current value to D20.
Coding
No. of
steps
Com-
mand
Device
10 LD X3
11 OUT T3
K18000
13 LD M0
14 MOV
K18000
D2
17 - D2 T3 D3
21 BCD D3 D20
X3
(ON)
10
T3 K18000
M0
MOV
K18000 D2
-
T3D2
D3
BCD D3
D20
13
24