
Chapter 6 Instruction and Flag List
XBC E-Type Main Unit
6-232
Ver. 1
6.34 String Process Instruction
6.34.1 BINDA, BINDAP, DBINDA, DBINDAP
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)
BINDA(P)
DBINDA(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
Data or address to convert to ASCII
INT/DINT
D
Address to save operation result in
STRING
1) BINDA (Binary to Decimal ASCII)
(1) Converts each digit to ASCII from the upper in regular order when input Binary 16-bit 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) If S is a negative number, sign value of –(h2D) will be output to the first byte of D.
(4) Data S will be regarded as signed.
(5) In BINDA, operation range is –32768(hFFFF) ~ 32767(h7FFF).
(6) For example, if –12345 is specified in S, the result after D will be saved as below;
S
D+1
D+2
D+3
- 1 2 3 4 5
h31 (1)
h2D (-)
h33 (3)
h32 (2)
h35 (5)
h34 (4)
h00
D
b15
b0
b15
b0
b8
b7
S
D+1
D+2
2 3 4 5
h33 (3)
h32 (2)
h35 (5)
h34 (4)
h00
D
b15
b0
b15
b0
b8
b7
(D)BINDA
means BINDA
P S
D
(D)BINDAP
S
D
10,000-digit ASCII code
Sign
100-digit ASCII code
1,000-digit ASCII code
1-digit ASCII code
10-digit ASCII code
S
b15
b 8
b 7
b 0
D
D+1
D+2
D+3
b15
b 8
b 7
b 0
0
0
16-bit Binary data
Содержание 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...