Parker Automation Gemini GV6K Command Reference Manual page 333

Servo drive/controller
Table of Contents

Advertisement

All variables (numeric [
], integer [
VAR
battery-backed RAM.
Variables are also used in conjunction with mathematical (
,
,
), and bitwise operators (
PI
SIN
TAN
Each variable expression must be less than 80 characters in length, including the
expression.
Numeric data can also be read into a variable, through the use of the
).
VAR1=READ1
All variables can be used within commands that require a real or integer value. For example, the
command requires real values for acceleration; therefore, the command
assignments are also legal; (e.g.,
Rule of Thumb for command value substitutions: If the command syntax shows that the command field
requires a real number (denoted by
substitution.
Example:
VAR1=2*PI
; Set Variable 1 to 2 pi
D(VAR2)
; Set the distance value equal to variable 2
Indirect Variables: Numeric variables can be used indirectly. Only one level of indirection is possible
(e.g.,
is not a legal command). The example below shows how indirect variables are
VAR(VAR(VARn))
used to clear 50 variables (from 1 to 50).
Example:
VAR51 = 1
; Set Variable 51 to 1
REPEAT
; Begin repeat/until loop
VAR(VAR51) = 0
; Clear variables (e.g., if VAR51 = 8,
; then VAR(VAR51)=0 is equivalent to VAR8=0)
VAR51 = VAR51 + 1
; Increment counter
UNTIL (VAR51 = 51)
; End repeat/until loop
VARB
Binary Variable Assignment
Type
Variable
Syntax
<a_><!>VARB<i><=bb...bbb> (32 bits)
bit select syntax:
Units
i = variable number
Range
i = 1-125
b = 0, 1, X, or x
Default
n/a
Response
VARB1:
*VARB1=XXXX_XXXX_XXXX_XXXX_XXXX_XXXX_XXXX_XXXX
See Also
DVARB, PLCP, VAR, VARI, VARCLR, VARS, VCVT, WRVARB
Binary variables can be used to store any 32-bit or less binary value. The 32-bit binary value must be in the
form of 32 ones, zeros, or Xs. The information is assigned to the binary variable with the equal sign.
All variables (numeric [
], integer [
VAR
battery-backed RAM.
:
Example
VARB1=b1111ØØØØ1111XXXX1111ØØØØxxxx1111
Notice that the letter "
:
Example
VARB1.14-1
This is a shortcut to change only the state of
:
Example
VARB1=h7F4356A3
Notice that the letter "
], binary [
], and string [
VARI
VARB
,
=
+
,
,
,
). For example,
&
|
^
~
or
VAR(VAR1)=5
VAR(VAR2)=VAR(VAR4)
) or an integer value (denoted by
<r>
VARB<i>.<bit #>-<b>
], binary [
], and string [
VARI
VARB
" is required. The "
" signifies binary:
b
b
VARB1
" is required. The "
" signifies hexadecimal: Ø-9, A-F only.
h
h
www.comoso.com
]) are automatically stored in
VARS
,
,
,
,
), trigonometric (
-
*
/
SQRT
VAR1=(3+4-7*4/4+3-2/1.5)*3
part of the
VAR1=
,
, or
commands (e.g.,
READ
DAT
TW
is legal. Indirect variable
A(VAR1)
).
), you can use the
<i>
Product
GT6K
GV6K
]) are automatically stored in
VARS
's,
's, and
's only.
1
Ø
X
bit #14 to "
".
1
Command Descriptions
,
,
ATAN
COS
.
A
VAR
Rev
6.0
6.0
331

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents