Sel language – IAI America DS-S-C1 User Manual

Page 96

Advertising
background image

94

[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,

0

1

1

1

2

1

3

1

4

1

5

1

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.

12. SEL Language

STR (Change Character String Decimal)

n

o

i

s

n

a

p

x

E

n

o

it

i

d

n

o

c

)

R

O

·

D

N

A

(

t

u

p

n

I

n

o

it

i

d

n

o

c

)

g

a

l

F

·

O

/I

(

d

n

a

m

m

o

C

t

s

o

P

)

g

a

l

F

·

t

r

o

p

t

u

p

t

u

O

(

d

n

a

m

m

o

C

1

d

n

a

r

e

p

O

2

d

n

a

r

e

p

O

l

a

n

o

it

p

O

l

a

n

o

it

p

O

R

T

S

.

o

N

n

m

u

l

o

C

a

t

a

D

Advertising