Mitsubishi Electronics E60 Video Game Controller User Manual


 
DSFR
- 169 -
Program example
(1) Program to shift the details of D683 to 689 to the right when M10 turns ON.
Coding
No. of
steps
Com-
mand
Device
10 LD M10
11 DSFR D683 K7
D683
DSFR
K7
M10
10
(Pulse coding)
15
Before execution
After execution
0
D683
0
Designation range of DSFR command
D689 D688 D687 D686 D685 D684
-100
-100 503
503
600
600 -336
-336
3802
3802
-32765
-32765
5003
Right shift of data with DSFR command
(2) Program to shift the details of R6 to 9 to the right when M6 turns ON.
Coding
No. of
steps
Com-
mand
Device
10 LD M6
11 DSFR R6 K4
R6
DSFR
K4
M6
10
(Pulse coding)
15
Before execution
After execution
0
R5
-200
Designation range of DSFR command
R11 R10 R9 R8 R7 R6
-200
100 0
100
200
200 503
503
760
760
-3276
500
500
Right shift of data with DSFR command