Parker Automation Gemini GV6K Command Reference Manual page 36

Servo drive/controller
Table of Contents

Advertisement

[ | ]
Boolean Inclusive Or
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 Inclusive Or (
|
operator when used with the
on the two values to the left and right of the operator when used with the
For a logical OR (using
VAR
positive number
positive number
|
positive number
zero or a negative number
|
zero or negative number
zero or negative number
Example:
VAR1=5 | -1
Result:
VAR1=1
For a bitwise OR (using
VARB
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 = 1
0 | 1 = 1
0 | 0 = 0
Example: VARB1=b1001 01X1 XX11 | b1000 1011 10
Response to VARB1 is *VARB1=1001_1111_1X11_XXXX_XXXX_XXXX_XXXX_XXXX
Example: VARB1=h1234 | hFAD31
Response to VARB1 is *VARB1=1111_0101_1111_1110_1000_0000_0000_0000
Example: VARB1=h23 | b1101 001X 001X 1X11
Response to VARB1 is *VARB1=1101_111X_001X_1X11_XXXX_XXXX_XXXX_XXXX
The total command length must be less than 80 characters. The order of precedence is left to right. The
Operation Priority Level (
()
[ ^ ]
Boolean Exclusive Or
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 Exclusive Or (
^
of the operator when used with the
exclusive OR on the two values to the left and right of the operator when used with the
For a logical exclusive OR (using
34
Gemini GV6K/GT6K Command Reference
) operator performs a logical OR on the two values to the left and right of the
or
command. The Boolean Inclusive Or (
VAR
VARI
or
), the possible combinations are as follows:
VARI
positive number
|
zero or negative number
|
), the value on the left side of the
X | X = 1
1 | X = 1
X | 1 = 1
0 | X = X
X | 0 = X
) operators can be used; however, they cannot be nested.
) operator performs a logical exclusive OR on the two values to the left and right
or
command. The Boolean Exclusive Or (
VAR
VARI
or
), the possible combinations are as follows:
VAR
VARI
www.comoso.com
Product
GT6K
GV6K
) performs a bitwise OR
|
command.
VARB
=
1
=
1
=
1
=
0
operator has each of its bits ORed with
|
Product
GT6K
GV6K
) performs a bitwise
^
VARB
Rev
6.0
6.0
Rev
6.0
6.0
command.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents