Parker Automation Gemini GV6K Command Reference Manual page 334

Servo drive/controller
Table of Contents

Advertisement

Binary variables are also used in conjunction with bitwise operators (
:
Example
VARB1=VARB2 | VARB3 & b1111ØØØØ11ØØ1
The expression must be less than 80 characters in length, including the (
expression.
NOTE: When assigning a binary variable, any bit set to "
that is unspecified is set to "
x
All binary variables can be used to set bits for commands that require at least 4 bits of binary information.
For example, the
command requires more than 4 bits of binary information; therefore, the command
OUT
is legal.
OUT(VARB1)
Rule of Thumb for command value substitutions: If the command syntax shows that the command field
requires a binary value (denoted by
Example:
VARB1=b1110 & hA
; Binary variable 1 is set to binary 1110 bitwise
; "AND"ed with hexadecimal A
VARB1=IN.7
; State of onboard input bit 7 assigned to binary variable 1
OUT(VARB2)
; State of all onboard outputs assigned by binary variable 2
VARCLR
Variable Clear
Type
Variable
Syntax
<a_><!>VARCLR
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
DVAR, DVARI, DVARB, VAR, VARB, VARI, VARS
resets all numeric variables (
VARCLR
variables (
) to their factory default values:
VARS
Numeric (
) variables are set to
VAR
Integer (
) variables are set to
VARI
Binary (
) variables are set to
VARB
String (
) variables are set to
VARS
VARI
Integer Variable Assignment
Type
Variable
Syntax
<a_><!>VARI<i><=i>
st
Units
1
i = variable number
nd
2
i = integer number
st
Range
1
i = 1-225
nd
2
i = -2,147,483,647 to +2,147,483,647
Default
n/a
Response
VARI1:
*VARI1=+Ø
See Also
DVARI, INVARI, VARB, VAR, VARCLR, VCVT, WRVARI
Integer variables can be used to store integer number values, with a range from -2,147,483,647 to
+2,147,483,647. The information is assigned to the variable with the equal sign (e.g.,
All variables (numeric [
], binary [
VAR
battery-backed RAM.
Integer variables can be used with mathematical (
VARI1=(3+4-7*4/4+3-2/2)*3
332
Gemini GV6K/GT6K Command Reference
".
), you can use the
<b>
), integer variables (
VAR
0.0
0
bxxxx_xxxx_xxxx_xxxx_xxxx_xxxx_xxxx_xxxx
""
], integer [
], and string [
VARB
VARI
,
,
,
=
+
-
*
. Numeric (
) and integer (
VAR
www.comoso.com
,
,
, and
).
&
|
^
~
or
VARB1=b
VARB1=h
" remains "
" until set to "
x
x
1
substitution.
VARB
), binary variables (
VARI
VARI1=32
]) are automatically stored in
VARS
,
) and bitwise operators (
/
&
) variables can be mixed in the
VARI
) part of the
" or "
". Any bit
0
Product
Rev
GT6K
6.0
GV6K
6.0
), and string
VARB
Product
Rev
GT6K
6.0
GV6K
6.0
).
,
,
,
). For example,
|
^
~

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents