62
Gemini GV6K/GT6K Command Reference
[ DAT ]
Data Assignment
Type
Data Storage
Syntax
DATi
Units
i = data program #
Range
1-50
Default
n/a
Response
n/a
See Also
DATA,
[
DATP
],
DATPTR,
DATRST,
DATTCH
Product Rev
GT6K 6.0
GV6K 6.0
The
DAT
command recalls data from the data program (
DATP
). The data is loaded into a command field, or
into a variable (
VAR
). As the data is loaded, the internal data pointer to the
DATP
data increments and points
to the next datum for the next
DAT
command.
Syntax:
VARn=DATi
where “
n
” is the variable number, and “
i
” is the data program number,
or
DAT
can be used as a command argument such as
A(DAT1)
If the data is to be loaded into a command field, the
DAT
command must be placed within parentheses (e.g.,
AD(DAT2)
). If the data is loaded into a variable, parentheses are not required. (e.g.,
VAR1=DAT2
).
Rule of
Thumb for command value substitutions: If the command syntax shows that the command field requires a
real number (denoted by
<r>
) or an integer value (denoted by
<i>
), you can use the
DAT
substitution (e.g.,
HOMV(DAT1)
).
The
DAT
command cannot be used in an expression, such as
IF(DAT2
<
5)
or
VAR1=1
+
DAT3
.
Example
:
Refer to the Reset Data Pointer (
DATRST
) command example.
DATA
Data Statement
Type
Data Storage
Syntax
<a_><!>DATA=<r>,<r>,<r>,<r>
Units
r = data value
Range
±
999,999,999.99999999
Default
n/a
Response
n/a
See Also
[ DAT ], [ DATP ], DATPTR, DATRST, DATTCH, MEMORY
Product Rev
GT6K 6.0
GV6K 6.0
The
DATA
command is used only in the data programs (
DATP
) to identify the data statements. The
DATA
command is followed by an equal sign (
=
), and a maximum of four data values. The maximum number of
data statements is limited only by the amount of memory available.
Example
:
Refer to the Reset Data Pointer (
DATRST
) command example.
[ DATP ]
Data Program
Type
Data Storage
Syntax
DATPi
Units
i = data program number
Range
1-50
Default
n/a
Response
n/a
See Also
[ DAT ], DATA, DATPTR, DATRST, DATSIZ, DATTCH, MEMORY
Product Rev
GT6K 6.0
GV6K 6.0
DATP
is not a command, but is the name of the program that is the default for storing data. Fifty such data
programs can be created,
DATP1
-
DATP5Ø
. The program is defined with the
DEF
command, just as any other
program would be, but only the
DATA
and
END
commands are allowed within the program definition.
DATPi
will contain the array of data to be recalled by the
DATi
command. Upon completion of the definition, the
internal data pointer is pointing to the first datum in the data program.
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...