Chapter 4. programming – IAI America S-SEL-E User Manual
Page 186

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,
1
2
3
4
5
6
7
8
9
1
2
3
.
0
0
0
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
8
7
.
6
5
4
.
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)
E x p a n s io n
c o n d itio n
(A N D · O R )
In p u t
c o n d itio n
(I/O · F la g )
C o m m a n d
P o s t
(O u tp u t p o rt · F la g )
C o m m a n d
O p e ra n d 1
O p e ra n d 2
O p tio n a l
O p tio n a l
S T R
C o lu m n n o .
D a ta