7-172
7.11 String Processing Instructions
7.11.5 Hexadecimal ASCII data to 16-/32-bit BIN data conversion
HABIN, DHABIN
Program Example
(1) In the following program, the 4-digit hexadecimal ASCII data set in Var_D20 are converted to
BIN value, and the results are stored to Var_D0.
[Structured ladder]
[ST]
HABINP(SM400,Var_D20,Var_D0);
[Operation]
(2) In the following program, the 8-digit hexadecimal ASCII data set in Var_D20 are converted to
BIN value, and the results are stored to Var_D10.
[Structured ladder]
[ST]
DHABINP(SM400,Var_D20,Var_D10);
[Operation]
41
H
(A)
36
H
(6)
33
H
(3)
46
H
(F)
b8 b7
b0
Var
_
D
0
B
IN
va
l
ue
-22977
"A63F"
b15
R
egar
d
e
d
as
A63F
H
(-22977 i
n
d
ec
i
ma
l
va
l
ue
)
Var
_
D
20
34
H
(4)
46
H
(F)
44
H
(
D
)
32
H
(2)
b8b7
b0
R
egar
d
e
d
as
4F
D
28750
H
(1339197264 i
n
d
ec
i
ma
l
va
l
ue
)
"4F
D
28750"
38
H
(8)
37
H
(7)
35
H
(5)
30
H
(0)
B
IN
va
l
ue
Var
_
D
10
1 3 3 9 1 9 7 2 6 4
b15
Var
_
D
20[1]
Var
_
D
20[2]
Var
_
D
20[0]
Var
_
D
20[3]
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......