Chapter 6 Instruction and Flag List
XBC E-Type Main Unit
6-242
Ver. 1
6.34.6 DABCD, DABCDP, DDABCD, DDABCDP
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)
DABCD(P)
DDABCD(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
Address where decimal ASCII data to convert to BCD is saved
STRING
D
Address to save operation result in
BCD
[Flag Setting]
Flag
Description
Device Number
Error
If ASCII string exceeds BCD range(0~9, h30 ~ h39 in ASCII)
If ASCII string length exceeds 4(DABCD)/8(DDABCD)
F110
1) DABCD (Decimal ASCII to BCD)
(1) Converts decimal value saved in ASCII to BCD and saves in D.
(2) Data D will be saved as unsigned.
(3) In DABCD, operation range is h0000 ~ h9999.
S+1
S+2
h37 (7)
h38 (8)
h35 (5)
h36 (6)
h00 (NULL)
S
b15
b0
b8
b7
S
b15
b0
b8
b4
b12 b11
b3
b7
8
7
6
5
2) DDABCD (Double Decimal ASCII to BCD)
(1) Converts decimal value saved in ASCII to BCD and saves in D.
(2) Data D will be saved as unsigned.
(3) In DDABCD, operation range is h00000000 ~ h99999999.
(D)DABCD
means DABCD
P S
D
(D)DABCDP
S
D
100-digit ASCII code
1000-digit ASCII code
1-digit ASCII code
10-digit ASCII code
S
S+1
b15
b 8
b 7
b 0
b15
b 8
b 7
b 0
1000-digit
100-digit
10-digit
1-digit
D
b12
b11
b 4
b 3
S+2
End of string (Null)
100 digits
D+1
D
1,000,000 digits
100,000 digits
10,000 digits
1,000 digit
1 digit
10 digits
b31
b16
b15
b0
10,000,000 digits
b15
b8
b0
b7
S
S+1
S+2
S+3
1000000-digit ASCII code
10000-digit ASCII code
100-digit ASCII code
1-digit ASCII code
10000000-digit ASCII code
100000-digit ASCII code
0
10-digit ASCII code
1000-digit ASCII code
S+4
Содержание XBC-DN10E
Страница 1: ......
Страница 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...
Страница 52: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 24 Ver 1 3 7 2 XBC DR10E 4 point relay output...
Страница 54: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 26 Ver 1 3 7 3 XBC DN10E 4 point transistor output...
Страница 56: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 28 Ver 1 3 7 4 XBC DR14E 6 point relay output...
Страница 58: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 30 Ver 1 3 7 5 XBC DN14E 6 point transistor output...
Страница 60: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 32 Ver 1 3 7 6 XBC DR20E 8 point relay output...
Страница 62: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 34 Ver 1 3 7 7 XBC DN20E 8 point transistor output...
Страница 64: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 36 Ver 1 3 7 8 XBC DR30E 12 point relay output...
Страница 66: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 38 Ver 1 3 7 9 XBC DN30E 12 point transistor output...