beautypg.com

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

Page 187

background image

Page 182

Chapter 4. Programming

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

10

11

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.

STRH (Change Character String Hexadecimal)

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

This manual is related to the following products: