7.11 String Processing Instructions
7.11.2 16-/32-bit BIN data to hexadecimal ASCII data conversion
7-157
7
APPLI
C
A
T
IO
N
INSTRUCTIONS
BINHA, DBINHA
BINHA, DBINHA
Function
BINHA(P)
(1) Converts each digit number of hexadecimal notation of the 16-bit BIN data specified for
to
ASCII code data, and stores the results to the device specified for
and the following
devices.
For example, if 02A6
H
is specified for
, the results are stored to the devices from
as
shown below.
(2) The BIN data specified for
can be in the range from 0
H
to FFFF
H
.
(3) The operation results stored to
are processed as 4-digit hexadecimal values.
For this reason, zeros which are significant figures on the left side of the value are
processed as 0. (No zero suppression is performed.)
(4) The data to be stored to the device specified for
[2] differs depending on the ON/OFF
status of SM701 (signal for switching the number of output characters).
When SM701 is OFF......Stores 0
When SM701 is ON .......Does not change
s
d
ASC
II co
d
e for the 4th
d
igit
ASC
II co
d
e for the
3
r
d
d
igit
ASC
II co
d
e for the
2
n
d
d
igit
ASC
II co
d
e for the
1
st
d
igit
b15
b8b7
b0
O
nl
y
w
hen
SM701
is
O
FF
0
b15
b0
16
-
b
it BIN
d
ata
s
d
d
d
[
0
]
[
1
]
[
2
]
s
d
30
H
(0)
32
H
(2)
4
1
H
(A)
36
H
(6)
b15
b8 b7
b0
00
H
b15
b0
02A6
H
s
d
d
d
[
0
]
[
1
]
[
2
]
s
d
d
Содержание MELSEC Q Series
Страница 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Страница 2: ......
Страница 14: ...A 12 MEMO ...
Страница 340: ...6 178 MEMO MTR ...
Страница 708: ...7 368 MEMO ...
Страница 776: ...8 68 MEMO ...
Страница 796: ...9 20 MEMO ...
Страница 804: ...App 8 MEMO ...
Страница 812: ...Index 8 MEMO ...
Страница 815: ......