IAI America XSEL-KE User Manual
Page 220
![background image](/manuals/350328/220/background.png)
205
Part 4 Commands
z VAL (Convert character string data; decimal)
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 VAL
Variable
number
Column
number,
character literal
CC
[Function] Convert the decimal data in the column specified in operand 2 to a binary and assign the
result to the variable specified in operand 1.
Conversion will be performed for the length set by a SLEN command.
If a character-string literal is specified in operand 2, conversion will be performed for the
entire length of the literal.
(Note)
Keep the converting length to 18 characters or less.
>([DPSOH@
6&3<
µ¶ 6HWµ¶LQFROXPQ
SLEN
4
Set the converting length to four bytes.
9$/
$VVLJQZKLFKLVDELQDU\FRQYHUWHGIURPµ¶LQ
column 10, to variable 1.
LET
1
100
Assign 100 to variable 1.
LET
2
20
Assign 20 to variable 2.
6&3<
µ¶ &RS\µ¶WRFROXPQ
6&3<
µ¶ &RS\µ¶WRFROXPQ
SLEN
8
Set the converting length to eight bytes.
9$/
$VVLJQZKLFKLVDELQDU\FRQYHUWHGIURP
µ¶LQWKHFRQWHQWRIYDULDEOHFROXPQWRWKH
content of variable 1 (variable 100).