Parker Automation Gemini GV6K Command Reference Manual page 65

Servo drive/controller
Table of Contents

Advertisement

Example:
DEF DATP5
; Define data program 5
DATA=1,2,3,4
; Enter data
DATA=5.62,6.52,7.12,8.47
END
; End program definition
A(DAT5)
; Load data from data program 5 and store in axis acceleration.
; Axis acceleration = 1
V(DAT5)
; Load data from data program 5 and store in axis velocity.
; Axis velocity = 2
D(DAT5)
; Load data from data program 5 and store in axis distance.
; Axis distance = 3
A(DAT5)
; Load data from data program 5 and store in axis acceleration.
; Axis acceleration = 4
A(DAT5)
; Load data from data program 5 and store in axis acceleration.
; Axis acceleration = 5.62
DATPTR
Set Data Pointer
Type
Data Storage
Syntax
<a_><!>DATPTRi,i,i
Units
n/a
Range
1st i = program # 1 to 50
2nd i = data element # 1 to 6500
3rd i = increment setting of 1 to 100
Default
1,1,1
Response
n/a
See Also
[ DAT ], DATA, [ DATP ], DATSIZ, DATTCH, [ DPTR ], TDPTR
The
command moves the internal data pointer to a specific data element in the specified data
DATPTR
program (
). This command also establishes the number of data elements by which the pointer
DATPi
increments after writing each data element from a
the
command.
DAT
The data program selected with the first integer in the
Subsequent
,
, and
DATTCH
TDPTR
command to ascertain the current active data program, as well as the current location of the data
TDPTR
pointer and the increment setting (see
The
command can be used to compare the current pointer location (the number of the data element to
DPTR
which the data pointer is pointing) against another value or variable, or to assign the pointer location
number to a variable.
As an example, suppose data program #1 (
the data pointer is configured to start at the first data element and increment 1 data element after every
value is stored (
DATTCH
DATPTR1,1,1
assigned (
,
,
VAR1=2
VAR2=4
values of
through
VAR1
VAR4
program and the pointer will stop at data element #5. The response to the
be as depicted below (the text is highlighted to illustrate the location of the data pointer after the
command is executed). The response to the
DATTCH1,2,3,4
*DATA=2.0,4.0,8.0,64.0
*DATA=0.0,0.0,0.0,0.0
*DATA=0.0,0.0,0.0,0.0
*DATA=0.0,0.0,0.0
Once you have stored (taught) the variables to the data program, you can use the
point to the data elements and then use the
your motion program.
During the process of writing data (
element in the program, it automatically wraps around to the first datum in the program and a warning
; Enter data
DATTCH
DATPTR
commands will reference the active data program. You can use the
DPTR
command description for details).
TDPTR
) is configured to hold 15 data elements (
DATP1
), and the values of numeric variables #1 through #4 are already
,
). If you then enter the
VAR3=8
VAR4=64
will be assigned respectively to the first four data elements in the data
data assignment command to read the stored variables to
DAT
) or recalling data (
DATTCH
www.comoso.com
command, or after recalling a data element with
command becomes the active data program.
DATTCH1,2,3,4
TPROG DATP1
command would be
TDPTR
DATPTR
), if the pointer reaches the last data
DAT
Command Descriptions
Product
Rev
GT6K
6.0
GV6K
6.0
),
DATSIZ1,15
command, the
command would
*TDPTR1,5,1.
command to
63

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents