Command Descriptions
65
DATSIZ
Data Program Size
Type
Data Storage
Syntax
<a_><!>DATSIZi<,i>
Units
n/a
Range
1st i = program # 0 - 50 (0 = disable)
2nd i = data element # 1 - 6500
Default
0,1
Response
n/a
See Also
[ DAT ], DATPTR, [ DATP ], DATTCH
Product Rev
GT6K 6.0
GV6K 6.0
The
DATSIZ
command creates a new data program (
DATP
) and establishes the number of data elements the
data program contains.
The
DATSIZ
command syntax is
DATSIZi<,i>
. The first integer (
i
) represents the number of the data
program (1
-
50). You can create up to 50 separate data programs. The data program is automatically given
a specific program name (
DATPi
). If the program number
Ø
is selected, then the
DATTCH
command is
disabled. Before creating a new data program, be sure to delete the existing data program that has the same
name. For example, if you wish to create data program #5 with the
DATSIZ5,144
command and
DATP5
already exists, first delete
DATP5
with the
DEL
DATP5
command and then issue the
DATSIZ5,144
command.
The second integer represents the total number of data elements (up to 6,500) you want in the data
program. Upon issuing the
DATSIZ
command, the data program is created with all the data elements
initialized with a value of zero. (The
DATSIZ
command is equivalent to creating a
DATP
program and
filling it with
DATA=Ø.Ø,Ø.Ø,Ø.Ø,Ø.Ø
commands up to the size indicated in the second integer.)
Each data statement, which contains four data elements, uses 43 bytes of memory. This amount of memory
is subtracted from the memory allocated for user programs (see
MEMORY
command). Use the
TDIR
command to determine the amount of remaining memory for user program storage.
The data program has a tabular structure, where the data elements are stored 4 to a line. Each line of data
elements is called a
data statement
. Each element is numbered in sequential order from left to right (1 - 4)
and top to bottom (1 - 4, 5 - 8, 9 - 12, etc.). You can use the
TPROG
DATPi
command ("
i
" represents the
number of the data program) to display all the data elements of the data program. For example, if you issue
the
DATSIZ1,13
command, data program #1 (called
DATP1
) is created with 13 data elements initialized to
zero. The response to the
TPROG
DATP1
command is depicted below. Each line (
data statement
) begins
with
DATA=
, and each data element is separated with a comma.
*DATA=Ø.Ø,Ø.Ø,Ø.Ø,Ø.Ø
*DATA=Ø.Ø,Ø.Ø,Ø.Ø,Ø.Ø
*DATA=Ø.Ø,Ø.Ø,Ø.Ø,Ø.Ø
*DATA=Ø.Ø
The
DATSIZ
,
DATTCH
, and
DAT
commands will typically be used as a teach mode in this manner:
1. Issue
the
DATSIZ
command to create (or recall) the data program.
2. Store variable data (e.g., position, acceleration, velocity, etc.) to numeric variables (
VAR
).
3. Use
DATTCH
commands to store the data from the numeric variables into the data program. You can use
the data pointer (
DATPTR
) command to select any data element in the data program, and to determine
the number by which the pointer increments after each value from the
DATTCH
command is stored.
NOTE: If the
DATTCH
command is issued without having issued the
DATSIZ
command, an error will
result.
4. Use
the
DAT
commands to read the stored data from the data program into the variable parameters of
your motion program. You can use the
DATPTR
command to select any data element in the data
program, and to determine the number by which the pointer increments after each
DAT
command.
Any use of the
DATTCH
and
DAT
commands will reference the current active data program (
DATP
) specified
by the first integer of the last
DATSIZ
or
DATPTR
command. If you want to use the
DATSIZ
command to
www.comoso.com
Summary of Contents for Gemini GT6K
Page 24: ...www comoso com ...
Page 40: ...www comoso com ...
Page 344: ...www comoso com ...
Page 350: ...www comoso com ...