7-211
STR(P),DSTR(P)
1
2
3
4
6
6
7
8
7.11 Character string processing instructions
7.11.9 Conversion from BIN 16-bit or 32-bit to character string (STR(P),DSTR(P))
(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 total number of digits.
Sets the number of digits in decimal fraction.
Step Instruction Device
D21
D22
D23
20
H
(space)30
H
(0)
2E
H
(.)30
H
(0)
b15 b8b7 b0
31
H
(1)32
H
(2)
D20
00
H
12345678D10
12
9
D0
D1
33
H
(3)34
H
(4)
35
H
(5)36
H
(6)
37
H
(7)38
H
(8)
D24
D25
D26
D11 D10
0.012345678