Chapter 6 Instruction and Flag List
XBC E-Type Main Unit
6-238
Ver. 1
6.34.4 DABIN, DABINP, DDABIN, DDABINP
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)
DABIN(P)
DDABIN(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 binary is saved
STRING
D
Address to save operation result in
INT/DINT
[Flag Setting]
Flag
Description
Device Number
Error
To be set if input ASCII data exceeds operation range
To be set if input ASCII string length exceeds the maximum string length(31)
To be set if other string than sign and 0~9 is in input ASCII string
F110
1) DABIN (Decimal ASCII to Binary)
(1) Converts decimal value saved in ASCII to binary and saves in D.
(2) NULL must be at the end of ASCII string.
(3) The lower byte of the 1
st
word in input ASCII value decides the sign of binary value.
(4) Sign will be of –(h2D) or +(h2B).
(5) Sign +(h2B) can be omitted.
(6) Data D will be saved as signed.
(7) In DABIN, operation range is –32768(h8000) ~ 32767(h7FFF).
(8) ASCII string available for input is the value in ASCII applicable to Sign and 0~9. If any other value is input,
Error will be set.
(D)DABIN
means DABIN
P S
D
(D)DABINP
S
D
10000-digit ASCII code
Sign data
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
D
b15
b 0
Binary16-bit data
End of string (Null)
h32 (2)
h2D (D)
h31 (1)
h35 (5)
h38 (8)
h30 (0)
S
S+1
b15
b 8
b 7
b 0
D
b15
b 0
- 2 5 1 0 8
S+2
h00 (NULL)
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...