Parker Automation Gemini GV6K Command Reference Manual page 335

Servo drive/controller
Table of Contents

Advertisement

mathematical expressions. The results, if fractional, are truncated. NOTE:
trigonometric operators (
ATAN
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
(e.g.,
). Setting an integer variable to a real number results in a truncation.
VARI1=READ1
All integer 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
variable assignments are also legal; (e.g.,
Integer variables should be used whenever possible to allow faster math operation than numeric
variables (
).
VAR
Mapping inputs to a
variable: It is possible to map the binary value of a group of inputs to an integer
VARI
variable. For details, refer o the
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
substitution.
Example:
VARI1=2*3
D(VARI2)
Indirect Variables: Integer 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 used
VARI(VARI(VARIn))
to clear 50 variables (from 1 to 50).
Example:
VARI51 = 1
REPEAT
VARI(VARI51) = 0
VARI51 = VARI51 + 1 ; Increment counter
UNTIL (VARI51 = 51)
VARS
String Variable Assignment
Type
Variable
Syntax
<a_><!>VARS<i><="message">
Units
i = variable number
message = text string
Range
i = 1-25
Message = up to 50 characters
Default
n/a
Response
VARS1:
*VARS1="HI JOHN"
See Also
', [ \ ], EOT, [ READ ], VAR, VARB, VARCLR, VARI, WRITE,
WRVARS
String variables can be assigned a character string up to 50 characters long. The characters within the string
can be any character except the quote (
immediately followed by a number is okay.
All variables (numeric [
], integer [
VAR
battery-backed RAM.
To place specific control characters that are not directly available on the keyboard within a character string,
use the backslash character (
control characters can be sent.
,
,
,
,
) and square root (
COS
PI
SIN
TAN
VARI(VARI1)=5
command.
INVARI
; Set Variable 1 to 6
; Set the distance value equal to integer variable 2
; Set Integer Variable 51 to 1
; Begin repeat/until loop
; Clear variables (e.g., if VARI51 = 8, then
; VARI(VARI51)=0 is equivalent to VARI8=0)
), the semicolon (
"
], binary [
VARI
VARB
), followed by the control character's ASCII decimal equivalent. Multiple
\
www.comoso.com
cannot be used with
VARI
).
SQRT
VARI1=
,
, or
READ
DAT
TW
is legal. Indirect
A(VARI1)
or
VARI(VARI2)=VARI(VARI4)
), and the colon (
). The backslash character (
;
:
], and string [
]) are automatically stored in
VARS
Command Descriptions
part of the
commands
A
).
VARI
Product
Rev
GT6K
6.0
GV6K
6.0
)
\
333

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents