
[19] String Operation
422
z
STR (Convert character string; decimal)
Command, declaration
Extension
condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
E
N, Cnd
Cmnd
Operand 1
Operand 2
Pst
Optional Optional STR
Column
number
Data CC
Applicable models
All models [Refer to Section 5.1 for details of models]
{
[Function]
Copy to the column specified in operand 1 a decimal character string converted
from the data specified in operand 2.
The data will be adjusted to the length set by a SLEN command.
If the data exceeds the specified length, it will be cut off at the length set by a
SLEN command.
If the entire data has been converted within the length set by a SLEN command,
the output will turn ON.
(Note)
If the data specified in operand 2 is a 10 digit integer including eight or more valid
digits, conversion of the values in the eighth and subsequent digits will not be
guaranteed (the values through the seventh digits will be converted properly.)
[Example]
SLEN
5.3
Set a length consisting of five integer digits and
three decimal digits.
STR
1
123
The following values will be set in columns 1 to 9:
1
2
3
4
5
6
7
8
9
1
2
3
.
0
0
0
LET
1
10
Assign 10 to variable 1.
LET
102
987.6543 Assign 987.6543 to variable 102.
SLEN
2.3
Set a length consisting of two integer digits and
three decimal digits.
STR
*1
*102
The following values will be set in columns 10 to
15:
10
11
12 13 14 15
8
7
.
6
5
4
Since the data exceeds the specified length, 87
without 9 in the 100s place is set in the integer
part, while 654 with 3 in the fourth decimal place
rounded is set in the fraction part.
Summary of Contents for PSEL
Page 2: ......
Page 10: ......
Page 18: ...8 Part 1 Installation ...
Page 37: ...27 Part 1 Installation 2 2 axis specification with battery ...
Page 382: ...372 Appendix Micro cylinder RCL Series Current limiting value ratio Push force N ...
Page 476: ...466 Appendix ...
Page 480: ...470 ...
Page 485: ...475 ...
Page 487: ...INTELLIGENT ACTUATOR SEL Language Programming Manual Eighth Edition ...
Page 488: ......
Page 490: ......
Page 494: ......
Page 518: ...24 ...
Page 526: ...32 ...
Page 831: ... 11 Actuator Control Declaration 337 Example DFIF 1 170 ...
Page 1060: ......
Page 1061: ......