Sel language – IAI America DS-S-C1 User Manual
Page 99
![background image](/manuals/350266/99/background.png)
97
12. SEL Language
[Function]
Converts the hexadecimal data in the column in operand 2 to a decimal number and assigns this to the variable
in operand 1. The length set by the SLEN command will be converted. Only the integers will be converted
and the decimal places will be disregarded.
[Example]
SCPY
10
' 1234'
Set ' 1234' in column 10.
SLEN
4
Set the length to 4 bytes.
VAL
1
10
The hexadecimal number ' 1234' in column 10 is converted to the
number 4660 and assigned to variable 1.
LET
1
100
Assign 100 to variable 1.
LET
2
20
Assign 20 to variable 2
SCPY
20
' ABCD'
Copy ' ABCD' to column 20.
SLEN
4
Set the length to 4 bytes.
VALH
*1
*2
The hexadecimal ' ABCD' in column 20 (content of variable 2) will be
converted to the binary number 43982 and assigned to variable 100
(content of variable 1).
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
L
A
V
.
o
N
e
l
b
a
i
r
a
V
.
o
N
n
m
u
l
o
C
●
VALH (Character String Data 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
N
E
L
S
h
t
g
n
e
L
●
SLEN (Set Length)
[Function]
Sets the length for the string command.
SCMP
···
Decimals Invalid
SCPY
···
Decimals Invalid
ISXX
···
Decimals Invalid
STRH
···
Decimals Invalid
VAL,VALH
···
Decimals Invalid
STR
···
Decimals Valid
[Example]
Refer to each of the commands above.