EasyManua.ls Logo

LS Industrial Systems XBC-DR10E - Page 362

LS Industrial Systems XBC-DR10E
542 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 Instruction Details
XBC E-Type Main Unit 6-245 Ve r. 1
6.34.8 STR, STRP, DSTR, DSTRP
Instruction
Area Available
Step
Flag
P M K F L T C S Z D.x
R.x
Con
st
U N D R
Error
(F110)
Zero
(F111)
Carry
(F112)
STR(P)
DSTR(P)
S1
O
O
O
-
O
-
-
-
O
-
-
-
O
O
O
O
4~6 O - -
S2
O
O
O
-
O
O
O
-
O
-
-
O
O
O
O
O
D
O
O
O
-
O
-
-
-
O
-
-
-
O
O
O
O
Operand Description Data Type
S1 Data address (0~28) where S2’ decimal places are saved WORD
S2 Binary data to convert INT/DINT
D
Address to save converted string in
STRING
[Flag Setting]
Flag
Description
Device Number
Error
To be set if specified decimal places are other than 0~28
F110
1) STR (String)
(1) Converts specified Binary 16-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) In STR, if S1 range is other than 0~28, Error Flag will be set.
(4) If decimal places more than Binary16 data are specified, the insufficient part will be filled with 0s.
(5) If input Binary 16-bit data is a negative number, attach h2D(-) to the front of the string.
(D)STR
means STR
P
S1
S2
(D)STRP
S1
S2
D
D
Decimal places
S1
Binary16 data
S2
.
Sign
NULL (End of string)
1
st
string
ASCII code
ASCII code
of Sign
3
rd
string
ASCII code
2
nd
string
ASCII code
5
th
string
ASCII code
4
th
string
ASCII code
7
th
string
ASCII code
6
th
string
ASCII code
D
D+1
D+2
D+3
D+4
3
S1
-32765
S2
.
Sign
h33 (3)
h2D (-)
h2E (.)
h32 (2)
h36 (6)
h37 (7)
h00 (NULL)
h35 (5)
D
D+1
D+2
D+3

Table of Contents

Related product manuals