468
STR, STRP, DSTR, DSTRP
Program Example
(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 total number of digits.
Sets the number of digits in decimal fraction.
Step Instruction Device
D21
D22
D23
20
H
(space)31
H
(1)
32
H
(2)36
H
(6)
b15 b8b7 b0
37
H
(7)
(2)
2E
H
(.)
D20
00
H
32
H
12672D10
7
1
D0
D1
1267.2
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