![LS Industrial Systems XBC-DN10E User Manual Download Page 218](http://html1.mh-extra.com/html/ls-industrial-systems/xbc-dn10e/xbc-dn10e_user-manual_1943831218.webp)
Chapter 6 Instruction Details
XBC E-Type Main Unit
6-101
Ver. 1
2) DBCD (Binary-Coded Decimal)
(1) It converts specified (S+1,S) device’s BIN Data (0~h05F5E0FF) to BCD so to save in D+1 and D
respectively.
Convert to BCD
S+1 (Higher places)
S (Lower places)
S : h05F5EOFF
0
0
0
0
0
1
0
1
1
1
1
1
0
1
0
1
1
1
1
0
0
0
0
0
1
1
1
1
1
1
1
1
2
31
2
16
2
15
2
0
2
1
2
2
2
3
D : BCD 99999999
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
2
0
2
1
2
2
2
3
2
0
2
1
2
2
2
3
2
0
2
1
2
2
2
3
x10
7
x10
6
x10
5
x10
4
x10
3
x10
2
x10
1
x10
0
D+1 (Higher 4 places)
D (Lower 4 places)
2
0
2
1
2
2
2
3
3) Error
(1) If BIN Data after conversion to BCD exceeds the range displayed, it sets Error Flag(F110).
4) Program Example
(1) Where ‘h1111’ data, which is saved in D00001, after conversion to BCD is output to P0005 if Input Signal
P00020 is On.
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
D00001
0
1
0
0
0
0
1
1
0
1
1
0
1
0
0
1
P0005
h1111
h4369
1
1
1
1
x2
0
x2
4
x2
8
x2
12
BIN data is converted to BCD
2
0
2
1
2
2
2
3
2
0
2
1
2
2
2
3
2
0
2
1
2
2
2
3
2
0
2
1
2
2
2
3
x10
3
x10
2
x10
1
x10
0
BCD D00001 P0005
P00020
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...