IAI America XSEL-KE User Manual
Page 219

204
Part 4 Commands
z STRH (Convert character string; hexadecimal)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional Optional
STRH
Column
number
Data CC
[Function] Copy to the column specified in operand 1 a hexadecimal character string converted from the
data specified in operand 2.
Only the integer part will be adjusted to the length set by a SLEN command.
If the data exceeds the specified length, it will be cut off at the length set by a SLEN
command.
If the entire data has been converted within the length set by a SLEN command, the output
will turn ON.
(Note)
If the data specified in operand 2 is a negative value, eight columns will be required to covert
the entire data.
[Example]
SLEN
5
Set a format consisting of five integer digits.
STRH
1
255
The following values will be set in columns 1 to 5:
1
2
3
4
5
E
F
LET
1
10
Assign 10 to variable 1.
LET
102
987.6543 Assign 987.6543 to variable 102.
SLEN
2.3
Set a length consisting of two integer digits and three
decimal digits.
STRH
*1
*102
The following values will be set in columns 10 and 11:
10 11
D
B
³´LQWKH6/(1FRPPDQGDQG³´LQYDULDEOH
which are the decimal part, will be ignored.
The integer part is express
HGDVµ'%¶LQKH[DGHFLPDO
Since the length is two digi
WVKRZHYHU³´LQWKHWKLUG
digit will be cut off.