Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
8 Applied Instructions (Move and Compare)
8.10 BIN / Conversion to Binary
164
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Function and operation explanation
1. 16-bit operation(BIN, BINP)
This instruction converts the binary-coded decimal (BCD) data specified by into binary (BIN) data, and
transfers the converted binary data to the device specified by .
The data of the device specified by can be converted if it is within the range from 0 to 9999 (BCD).
The table below shows digit specification for the devices specified by and .
2. 32-bit operation(DBIN, DBINP)
This instruction converts the binary-coded decimal (BCD) data specified by into binary (BIN) data, and
transfers the converted binary data to the device specified by .
The data of the device specified by can be converted if it is within the range from 0 to 99999999
(BCD).
The table below shows digit specification for the devices specified by and .
Number of digits Data range
K1X000 1 0 to 9
K2X000 2 00 to 99
K3X000 3 000 to 999
K4X000 4 0000 to 9999
+1,
Number of digits Data range
K1X000 1 0 to 9
K2X000 2 00 to 99
K3X000 3 000 to 999
K4X000 4 0000 to 9999
K5X000 5 00000 to 99999
K6X000 6 000000 to 999999
K7X000 7 0000000 to 9999999
K8X000 8 00000000 to 99999999
When "K4X000" is specified
(sequence on the right)
X014
to
X017
BIN
PLC
BCD
BIN
9786
Command input
Conversion
source device
Conversion destination
device
BIN
EN
s
ENO
d
X010
to
X013
X004
to
X007
X000
to
X003
DBIN(FNC 19)
PLC
BCD
BIN
97865342
Conversion
source device
Conversion destination
device
DBIN
EN
s
ENO
d
When "K8X000" is specified
(sequence on the right)
X034
to
X037
Command input
X030
to
X033
X024
to
X027
X020
to
X023
X014
to
X017
X010
to
X013
X004
to
X007
X000
to
X003