
287
Part 4 Commands
SPUT (Set character)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional Optional SPUT Column
number
Data CP
[Function] Set the data specified in operand 2 in the column specified in operand 1.
[Example]
SPUT
5
10
Set 10 (LF) in column 5.
LET
1
100
Assign 100 to variable 1.
LET
2
50
Assign 50 to variable 2.
SPUT
*1
*2
Set the content of variable 2 (50 (‘2’)) in the content of
variable 1 (column 100).
288
Part 4 Commands
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)
Optional Optional STR Column
number
Data CC
[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 is longer than the specified length, the
value in the 100s place, or 9, is rounded off and the
resulting 87 is set as the integer part, while the value in
the fourth decimal place, or 3, is rounded and the
resulting 654 is set as the decimal part.
291
Содержание X-SEL PX
Страница 1: ...Operation ManualSeventh Edition X SEL Controller PX QX Type Tenth Edition ...
Страница 2: ......
Страница 8: ......
Страница 14: ......
Страница 39: ...15 Part 1 Installation Reference Circuit Diagram Surge absorber Solenoid valve Controller 0 V 15 ...
Страница 410: ...383 Appendix 386 ...
Страница 452: ...425 Appendix 5 428 ...
Страница 559: ......