28
Gemini GV6K/GT6K Command Reference
[ " ]
Begin and End String
Type
Operator
(Other)
Syntax
"<message>"
(see
below
for
possibilities)
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
DWRITE,
VARS,
WRITE,
WRVARS
Product Rev
GT6K 6.0
GV6K 6.0
There are three commands that deal with string variables, or messages. The first of these commands is the
VARS
command. This command sets a string variable equal to a specific message (e.g.,
VARS1="Enter
part
count"
). The message must be placed in quotes for it to be recognized. The same can be said for the
WRITE
and
DWRITE
commands. Their messages must also be placed in quotes (e.g.,
WRITE"Today
is
the
first
day
of
the
rest
of
your
life"
).
Syntax possibilities:
VARSn="<message>"
where
n
equals the string variable number
WRITE"<message>"
DWRITE"<message>"
There are three ASCII characters that cannot be used within the quotes (
:
,
"
, and
;
). These characters can
be specified in the string by using the backslash character (
\
) in combination with the ASCII decimal value
for the character. For example, if you wanted to display the message
"WHY
ASK
WHY"
in quotes, you would
use the following syntax:
WRITE"\34WHY
ASK
WHY\34"
.
An ASCII table is provided in
Appendix B
. 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 (cannot be used with
DWRITE
)
[ \ ]
ASCII Character Designator
Type
Operator
(Other)
Syntax
See
below
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
VARS,
WRITE,
WRVARS
Product Rev
GT6K 6.0
GV6K 6.0
The ASCII Character Designator (
\
) operator is used to place a character in a string that is normally not
represented by a keyboard character. The (
\
) operator can be used within the
VARS
or the
WRITE
commands. The syntax for the (
\
) operator is as follows:
WRITE"\<i>"
, Where
<i>
is the ASCII decimal equivalent of the character to be placed in the string.
VARS1="\<i>"
, Where
<i>
is the ASCII decimal equivalent of the character to be placed in the string.
There are three ASCII characters that cannot be used within the quotes (
:
,
;
, and
"
). These characters must
be specified in the string by using the backslash character (
\
) in combination with the ASCII decimal value
for the character.
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...