6. BASIC INSTRUCTIONS
6
−
43
MELSEC-A
DBIN
Converts BCD data (0 to 99999999) of device specified at (S) into BIN and transfers
the result to the device specified at (D).
Execution Conditions
CAUTION
In some cases of execution of the BIN or DBIN instruction with a NO contact, operation error
occurs due to BCD switch timing. It is recommended, when the BIN or DBIN instruction is used,
that BIN data conversion be executed using the BIN conversion command after data setting.
Operation Error
In the following case, operation error occurs and the error flag turns on.
•
Each digit of source (S) is outside the range of 0 to 9.
Always set to 0.
(S) side BCD 99999999
(D) side BIN 99999999
BIN conversion
T
e
n
millio
n
s
di
g
its
(S)
(S) + 1
Millio
n
s
di
g
its
Hundred
thous
ands
di
gi
ts
T
en t
hous
ands
di
g
its
Thous
ands
di
g
its
Hundreds
di
g
its
T
ens
di
gi
ts
Uni
t di
gi
ts
(D)
(D) + 1
OFF
ON
Executed
per scan
Executed
per scan
Executed
only once
Executed
only once
P
BIN conversion command
K4
BIN X020 D0
M9036
K4
BIN X020 D0
X000
BIN conversion
command
After data setting, X0 is turned ON and data is
read.
Operation error sometimes occurs.
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......