User guide

Page 181
Chapter 4. Programming
[Function] Copies the data in Operand 2 which has been converted to a decimal character string to the column in Operand
1. Uses zero-suppress to match this to the length set by the SLEN command.
Even if the data is longer than the length, the length set by the SLEN command takes precedence.
[Example] SLEN 5. 3
STR 1 123
Set the length to a 5 digit integer with 3 decimals.
The following will be set in column 1~9,
123456789
123 .000
LET 1 10
LET 2 987. 6543
SLEN 2. 3
STR *1 *2
Assign 10 to variable 1.
Assign 987. 6543 to variable 2.
Set the length to a 2 digit integer with 3 decimals.
The following will be set in column 10~15,
10 11 12 13 14 15
87.654
. Since the data was longer than the set length, 9 in the 100s place and 3 in the 4th decimal place are cut
off.
STR (Change Character String Decimal)
Expansion
condition
(AND · OR)
Input
condition
(I/O · Flag)
Command
Post
(Output port · Flag)
Command Operand 1 Operand 2
Optional Optional STR Column no. Data