Chapter 6 Instruction and Flag List
XBC E-Type Main Unit
6-240
Ver. 1
6.34.5 HABIN, HABINP, DHABIN, DHABINP
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)
HABIN(P)
DHABIN(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 Hexadecimal ASCII data to convert to binary is saved
STRING
D
Address to save operation result in
WORD/DWORD
[Flag Setting]
Flag
Description
Device Number
Error
To be set if string length exceeds the maximum string length.
To be set if input data exceeds operation range
To be set if other string than 0~F is in string
F110
1) HABIN (Hex ASCII to Binary)
(1) Converts Hexadecimal value saved in ASCII to binary and saves in D.
(2) The end of ASCII string can be identified with NULL.
(3) In HABIN, operation range is h0000 ~ hFFFF.
(4) ASCII string available is the value applicable to 0~F. If any other value is input, Error will be set.
(5) As the first character displaying Hex,‘h’or H’is allowed.
2) DHABIN (Hex ASCII to Binary)
(1) Converts Hexadecimal value saved in ASCII to binary and saves in D.
(2) The end of ASCII string can be identified with NULL.
(3) ASCII string available is the value applicable to 0~F. If any other value is input, Error will be set.
(4) In DHABIN, operation range is h00000000 ~ hFFFFFFFF.
(5) As the first character displaying Hex,‘h’or H’is allowed.
h41 (A)
h35 (5)
S
S+1
b15
b 8 b 7
b 0
D
b15
b 8
b 7
b 0
5A8DH
h00 (NULL)
h44 (D)
h38 (8)
S+2
(D)HABIN
means HABIN
P S
D
(D)HABINP
S
D
3
rd
-digit ASCII code
4
th
-digit ASCII code
1
st
-digit ASCII code
2
nd
-digit ASCII code
S
S+1
b15
b 8
b 7
b 0
D
b15
b 8
b 7
b 0
Binary16-bit data
End of string (Null)
S+2
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...