481
ASC, ASCP
1
2
3
4
4
6
7
8
7.11
Char
acter
string processing inst
ructions
7.11.1
3
ASC, ASCP
[Operation]
: Head number of the devices where BIN data to be converted to a character string is stored (BIN 16 bits)
: Head number of the devices where the converted character string will be stored (character string)
n
: Number of characters to be stored (BIN 16 bits)
F
unct
i
on
(1) Converts the BIN 16-bit data stored in the area starting from the device designated by to ASCII by treating the BIN
data in hexadecimal representation. Then, stores the converted data into the area starting from the device designated by
, for the number of characters specified by n.
(2) The use of n to set the number of characters causes the BIN data range designated by and the character string
storage device range designated by to be set automatically.
7.11.13 ASC, ASCP
Conversion from hexadecimal BIN to ASCII
7.11.13
ASC, ASCP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
––
––
––
n
––
D11
20
H
(space)
20
H
(space)
31
H
(1)
2
E
H
(
.
)
b15
b8b7
b0
D12
32
H
(2)
33
H
(3)
3
4
H
(
4
)
35
H
(5)
D13
4
5
H
(
E
)
2D
H
(
-
)
30
H
(0)
D1
4
D15
32
H
(2)
D16
00
I
gnored
1
.
2 3
4
5
E
0
-
2
I
gnored
D101
D100
D10
1
.
2 3
4
5
E -
2
Process
High
performance
Redundant Universal
LCPU
Bas
i
c
Command
Command
ASC
ASCP
n
n
ASC
ASCP
S
D
S
D
S
D
S
D
S
D
+
1
+
2
+
3
+
6
When
"
15
" i
s
set
for
n
1
H
2
H
3
H
4
H
+
1
+4
+
5
+
7
5
H
6
H
7
H
8
H
F
H
E
H
D
H
C
H
A
H
9
H
B
H
6
H
B
IN
data
+
1
+
2
+
3
+
1
+
2
+
3
ASC
II
code
for
the
1st
d
i
g
i
t
ASC
II
code
for
the
2nd
d
i
g
i
t
ASC
II
code
for
the
3rd
d
i
g
i
t
ASC
II
code
for
the
4
th
d
i
g
i
t
b15
b8b7
b0
ASC
II
code
for
the
1st
d
i
g
i
t
ASC
II
code
for
the
2nd
d
i
g
i
t
ASC
II
code
for
the
3rd
d
i
g
i
t
ASC
II
code
for
the
4
th
d
i
g
i
t
ASC
II
code
for
the
1st
d
i
g
i
t
ASC
II
code
for
the
2nd
d
i
g
i
t
3
4
H
(
4
)
33
H
(3)
32
H
(2)
31
H
(1)
38
H
(8)
37
H
(7)
36
H
(6)
35
H
(5)
44
H
(D)
4
6
H
(
F
)
4
2
H
(B)
00
H
4
3
H
(C)
4
5
H
(
E
)
36
H
(6)
39
H
(9)
4
th
d
i
g
i
t
3rd
d
i
g
i
t 2nd
d
i
g
i
t 1st
d
i
g
i
t
4
th
d
i
g
i
t
3rd
d
i
g
i
t 2nd
d
i
g
i
t 1st
d
i
g
i
t
4
th
d
i
g
i
t
3rd
d
i
g
i
t 2nd
d
i
g
i
t 1st
d
i
g
i
t
b15
b12
b8
b11
b7
b
4
b0
b3
S
D
S
D
D
D
b15
b12
b8
b11
b7
b
4
b0
b3
b15
b8b7
b0
D
D
D
D
D
D
D
D
S
S
S
S
N
umber
of
characters
des
i
gnated
by
n
S
D