334
Gemini GV6K/GT6K Command Reference
For example, to set the string for variable #1 equal to
HI
MOM<cr>
, use the command
VARS1="HI
MOM\13"
where
\13
corresponds to the carriage return character.
Common characters and their ASCII equivalent value:
Character Description
ASCII
Decimal
Value
<lf>
Line Feed
10
<cr>
Carriage Return
13
"
Quote 34
:
Colon 58
;
Semi-colon 59
\
Backslash 92
You can copy one
VARS
to another
VARS
.
VARSn=VARSm
may be used, as well as variable substitution for
“
n
” or “
m
”.
Example
:
VARS1="Enter velocity >"
; Assign a message to string variable #1
VAR2=READ1
; Transmit string variable 1, and wait for numeric
; data entered in the format of !'<data>.
; Once numeric data is received, place it in
; numeric variable 2.
; Example of data entry is to type "!'10.0", which
; will assign numeric variable 2 the value 10.00
VCVT
Variable Type Conversion
Type
Operator (Mathematical)
Syntax
See below
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
VAR, VARB, VARI
Product Rev
GT6K 6.0
GV6K 6.0
Using
VCVT
operator, you can convert numeric (
VAR
or
VARI
) values to binary (
VARB
) values, and vice
versa. The operation is a signed operation as the binary value is interpreted as a two's complement number,
with the least significant bit (LSB) on the left and the most significant bit (MSB) on the right. A
don't care
(
X
) in a binary value will be interpreted as a zero (
Ø
).
If the mathematical statement's result is a numeric value, then
VCVT
converts binary values to numeric
values. If the statement's result is a binary value, then
VCVT
converts numeric values to binary values.
You can also convert real (
VAR
) values to integer (
VARI
) values (real values are truncated in the process).
NOTE
: Numeric variables (
VAR
) have insufficient range to convert a full 32-bit binary variable (
VARB
). For
example, executing the
VARB1=h00000004
command and then the
VAR1=VCVT(VARB1)
command yields
an
INVALID DATA
error.
www.comoso.com
Summary of Contents for Gemini GV6K
Page 24: ...www comoso com...
Page 40: ...www comoso com...
Page 344: ...www comoso com...
Page 350: ...www comoso com...