468
STR, STRP, DSTR, DSTRP
Program
E
xamp
l
e
(1) The following program converts the BIN 16-bit data stored at D10 when X0 is turned ON in accordance with the digit
designation of D0 and D1, and stores the result from D20 to D23.
[Ladder Mode]
[List Mode]
[Operation]
(2) The following program converts the BIN 32-bit data stored at D10 and D11 when X0 is turned ON in accordance with the
digit designation of D0 and D1, and stores the result at from D20 to D26.
[Ladder Mode]
[List Mode]
[Operation]
Sets
the
data
.
Sets
the
tota
l
number
of
d
i
g
i
ts
.
Sets
the
number
of
d
i
g
i
ts
i
n
dec
i
ma
l
fract
i
on
.
Step
I
nstruct
i
on
De
vi
ce
D21
D22
D23
20
H
(space)
31
H
(1)
32
H
(2)
36
H
(6)
b15
b8b7
b0
37
H
(7)
(2)
2
E
H
(
.
)
D20
00
H
32
H
12672
D10
7
1
D0
D1
1267
.
2
Sets
the
data
.
Sets
the
tota
l
number
of
d
i
g
i
ts
.
Sets
the
number
of
d
i
g
i
ts
i
n
dec
i
ma
l
fract
i
on
.
Step
I
nstruct
i
on
De
vi
ce
D21
D22
D23
20
H
(space)
30
H
(0)
2
E
H
(
.
)
30
H
(0)
b15
b8b7
b0
31
H
(1)
32
H
(2)
D20
00
H
123
4
5678
D10
12
9
D0
D1
33
H
(3)
3
4
H
(
4
)
35
H
(5)
36
H
(6)
37
H
(7)
38
H
(8)
D2
4
D25
D26
D11
D10
0
.
0123
4
5678