![background image](http://html1.mh-extra.com/html/ls-industrial-systems/xbc-dn10e/xbc-dn10e_user-manual_1943831353.webp)
Chapter 6 Instruction and Flag List
XBC E-Type Main Unit
6-236
Ver. 1
6.34.3 BCDDA, BCDDAP, DBCDDA, DBCDDAP
Instruction
Area Available
Step
Flag
P M K
F
L
T
C
S
Z D.x R.x
Con
st
U N D
R
Error
(F110)
Zero
(F111)
Carry
(F112)
BCDDA(P)
DBCDDA(P)
S
O O O O O O O
-
O
-
-
O O O O O
2~4
O
-
-
D
O O O
-
O O O
-
O
-
-
-
O O O O
Operand
Description
Data Type
S
BCD data or address to convert to ASCII
BCD
D
Address to save operation result in
STRING
[Flag Setting]
Flag
Description
Device Number
Error
If input BCD data exceeds operation range
F110
1) BCDDA (BCD to Decimal ASCII)
(1) Converts each digit to ASCII from the upper in regular order when input binary data is in decimal.
(2) The value converted to ASCII will be saved in starting D by 2 digits per word in regular order.
(3) In BCDDA, operation range is h0000 ~ h9999. Error shall be set if any value exceeds BCD data range.
(4) For example, h9105 is specified in S, the result after D will be saved as below.
h31 (1)
h39 (9)
h35 (5)
h30 (0)
b15
b 8 b 7
b 0
D
D+1
D+2
b15
b 8 b 7
b 0
h00
9
1
0
5
S
b12 b11
b 4 b 3
(D)BCDDA
means BCDDA
P S
D
(D)BCDDAP
S
D
100-digit ASCII code
1000-digit ASCII code
1-digit ASCII code
10-digit ASCII code
b15
b 8
b 7
b 0
D
D+1
D+2
Only if Off
b15
b 8
b 7
b 0
0
1000-digit
100-digit
10-digit
1-digit
S
b12
b11
b 4
b 3
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...