449
BINHA, BINHAP, DBINHA, DBINHAP
1
2
3
4
4
6
7
8
7.11
Char
acter
string processing inst
ructions
7.11.2
B
INHA, BINH
AP, D
B
INHA, DBINH
A
P
[Operation]
Conducts ASCII output of Y40 to Y48 by using the PR instruction when X0 goes ON.
Because SM701 is OFF, the PR instruction will output ASCII code until 00
H
is encountered.
(2) The following program uses the PR instruction to output the decimal value of the 32-bit BIN data at W10 and W11 in
ASCII code to Y40 to Y48.
[Ladder Mode]
[List Mode]
[Operation]
Conducts ASCII output of Y40 to Y48 by using the PR instruction when X0 goes ON.
Because SM701 is OFF, the PR instruction will output ASCII code until 00
H
is encountered.
: BIN data to be converted to ASCII (BIN 16/32 bits)
: Head number of the devices where the conversion result will be stored (character string)
BINHA, BINHAP
Conversion from BIN 16-bit data to hexadecimal ASCII
DBINHA, DBINHAP
Conversion from BIN 32-bit data to hexadecimal ASCII
7.11.2
BINHA, BINHAP, DBINHA, DBINHAP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
––
D1
D2
D3
20
H
(space)
20
H
(space)
35
H
(5)
31
H
(1)
b15
b8 b7
b0
32
H
(2)
36
H
(6)
00
H
D0
5126
W0
B
IN v
a
l
ue
PR
i
s
output
.
Y4
0
to
Y4
8
Step
I
nstruct
i
on
De
vi
ce
D1
D2
D3
2D
H
(
)
20
H
(space)
20
H
(space)
20
H
(space)
b15
b8 b7
b0
33
H
(3)
38
H
(8)
D0
PR
Y4
0
to
Y4
8
3
4
H
(
4
)
32
H
(2)
35
H
(5)
36
H
(6)
33
H
(3)
00
H
i
s
output
.
3 8
4
2 5 6 3
W11
B
IN v
a
l
ue
W10
D
4
D5
-
38
4
2563
Process
High
performance
Redundant Universal
LCPU
Bas
i
c
Command
Command
P
S
D
S
D
BINHAP, DBINHAP
BINHA, DBINHA
i
nd
i
cates
an
i
nstruct
i
on
symbo
l
of
B
INH
A
/
DB
INH
A
.
S
D
S
D