Parker Automation Gemini GV6K Command Reference Manual page 35

Servo drive/controller
Table of Contents

Advertisement

[ / ]
Division
Type
Operator (Mathematical)
Syntax
See Below
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
[ = ], [ () ], [ + ], [ - ], [ * ], [ SQRT ], VAR, VARI, VARB
The division (
) operator divides the value to the left of the operator by the value on the right of the operator.
/
The result of the division is specified to five decimal places (
division operator can only be used in conjunction with the
The total command length must be less than 80 characters. The order of precedence is left to right. The
Operation Priority Level (
()
Examples of valid commands:
[ & ]
Boolean And
Type
Operator (Bitwise)
Syntax
See Below
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
[ = ], [ | ], [ ~ ], [ ^ ], [ << ],[ >> ], VAR, VARI, VARB
The Boolean And (
) operator performs a logical AND on the two values to the left and right of the
&
operator when used with the
two values to the left and right of the operator when used with the
For a logical AND (using
VAR
positive number & positive number
positive number & zero or a negative number
zero or negative number & positive number
zero or negative number & zero or negative number = 0
Example:
VAR1=5 & -1
Result:
VAR1=0
For a bitwise AND (using
VARB
with the corresponding bit of the value on the right side of the operator. Each bit comparison will be
composed of 9 possible combinations:
1 & 1 = 1
1 & 0 = 0
0 & 1 = 0
0 & 0 = 0
Example:
VARB1=b0000 1000 & b1000 1011 1
Response to VARB1 is *VARB1=0000_1000_XXXX_XXXX_XXXX_XXXX_XXXX_XXXX
Example:
VARB1=h32FD & h23
Response to VARB1 is *VARB1=0100_0100_0000_0000_0000_0000_0000_0000
Example:
VARB1=h23 & b1101
Response to VARB1 is *VARB1=0100_XX00_0000_0000_0000_0000_0000_0000
The total command length must be less than 80 characters. The order of precedence is left to right. The
Operation Priority Level (
()
) operators can be used; however, they cannot be nested.
VAR1=1/2/3/4/5/6/7/8/9
VAR2=VAR1-1/(5*3)
VARB1=b111101 / b11001
or
command. The Boolean And (
VAR
VARI
or
), the possible combinations are as follows:
VARI
), the value on the left side of the
X & X = X
1 & X = X
X & 1 = X
0 & X = 0
X & 0 = 0
) operators can be used; however, they cannot be nested.
www.comoso.com
integer variables are truncated). The
VARI
,
and
commands.
VAR
VARI
VARB
DIVISION BY ZERO IS NOT ALLOWED.
) performs a bitwise AND on the
&
command.
VARB
= 1
= 0
= 0
operator has each of its bits ANDed
&
Command Descriptions
Product
Rev
GT6K
6.0
GV6K
6.0
Product
Rev
GT6K
6.0
GV6K
6.0
33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents