beautypg.com

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

Page 97

background image

95

[Function]

Copies the data in operand 2 which has been converted to a hexadecimal character string to the column in
operand 1. Uses zero-suppress to match only the integers to the length set by the SLEN command.
Even if the data is longer than the set length, the setting by the SLEN command will take precedence.

[Example]

SLEN

5

STRH

1

255

Set format for a 5 digit integer.
The following will be set in column 1~5,

1

2

3

4

5

F

F

LET

1

10

LET

2

987. 6543

SLEN

2. 3

STRH

*1

*2

Assign 10 to variable 1.
Assign 987. 6543 to variable 2.
Set format for a 2 digit integer with 3 decimals.
The following will be set in column 10~11,

0

1

1

1

D

B

.3, the decimal segment of the SLEN command, and .6543 in variable 2 will be ignored.
The integer expressed in hexadecimal notation is ' 3DB'. However, 3 in the third digit will be cut
off since the length is set to 2 digits.

12. SEL Language

STRH (Change Character String Hexadecimal)

n

o

i

s

n

a

p

x

E

n

o

i

t

i

d

n

o

c

)

R

O

·

D

N

A

(

t

u

p

n

I

n

o

i

t

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

i

t

p

O

l

a

n

o

i

t

p

O

H

R

T

S

.

o

N

n

m

u

l

o

C

a

t

a

D