Chapter 6 Instruction Details
XBC E-Type Main Unit
6-246
Ver. 1
2) DSTR (String)
(1) Converts specified Binary 32-bit data S2 with decimal places added to specified position S1, into string
to save in the next number of specified device D.
(2) S1 stands for decimal places.
(3) If S1 range is other than 0~28, Error Flag will be set.
3) Program Example
P00000
STR P1000 P1100 P1200
(Specified total places-1)
th
ASCII code
ASCII code of Sign
(Specified total places-3)
th
ASCII code
(Specified total places-5)
th
ASCII code
(Specified total places-7)
th
ASCII code
(Specified total places-2)
th
ASCII code
(Specified total places-4)
th
ASCII code
(Specified total places-6)
th
ASCII code
b15
b8
b0
b7
(Specified total places-9)
th
ASCII code
00H
(Specified total places-10)
th
ASCII code
(Specified total places-8)
th
ASCII code
Decimal places
S1
Sign
S2+1
Upper 16-bit
Lower 16-bit
S2
32-bit Binary data
b15
b0
b31
b16
D
D+1
D+2
D+3
D+4
D+5
Saved automatically at the end of string
h32 (2)
h2D (-)
h34 (4)
h34 (4)
h38 (8)
h31 (1)
h37 (7)
h2E (.)
b15
b8
b0
b7
h36 (6)
h35 (5)
h34 (4)
h33 (3)
5
S1
.
Sign
-2147483645
S2+1
S2
32-bit Binary data
b15
b0
b31
b16
D
D+1
D+2
D+3
D+4
D+5
Saved automatically at the end of string
0
h00 (NULL)
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...