Mitsubishi Electronics E60 Video Game Controller User Manual


 
BCD
- 110 -
{ BCD ... BIN BCD conversion (16-bit)
Usable device
Bit device Word device
Con-
stant
Pointer Level
X Y M L SM F T C D R Z K H P N
Digit
desig-
nation
No. of
steps
Index
S
D
3
Setting data
D
BIN data or No. of device
where BIN data is stored.
S
No. of device to store
BCD data.
BCD conversion command
BCD
BCD
S D
Function
The BIN data (0 to 9999) of the device designated with S is BCD converted and transmitted to the
device designated with D.
S side BIN 9999
D side BCD 9999
3276816384 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1
8000 4000 2000 1000 800 400 200 100 80 40 20 10 8 4 2 1
00 00 0000 11111111
00 00 00 0011111111
1000th place
100th place
10th place 1st place
BCD conversion
Always set to 0
(Note 1) A minus value cannot be converted correctly.
Execution conditions
The execution conditions for BCD are as follow.
BCD
ON
Executed per scan
Executed per scan
BCD command OFF