34
Gemini GV6K/GT6K Command Reference
[ | ]
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
Product Rev
GT6K 6.0
GV6K 6.0
The Boolean Inclusive Or (
|
) operator performs a logical OR on the two values to the left and right of the
operator when used with the
VAR
or
VARI
command. The Boolean Inclusive Or (
|
) performs a bitwise OR
on the two values to the left and right of the operator when used with the
VARB
command.
For a logical OR (using
VAR
or
VARI
), the possible combinations are as follows:
positive
number
|
positive number
=
1
positive number
|
zero or a negative number
=
1
zero or negative number
|
positive number
=
1
zero or negative number
|
zero or negative number
=
0
Example:
VAR1=5
|
-1
Result:
VAR1=1
For a bitwise OR (using
VARB
), the value on the left side of the
|
operator has each of its bits
ORed
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 X
|
X
=
1
1
|
0
=
1 1
|
X
=
1
0
|
1
=
1 X
|
1
=
1
0
|
0
=
0 0
|
X
=
X
X
|
0
=
X
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 (
()
) operators can be used; however, they cannot be nested.
[ ^ ]
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
Product Rev
GT6K 6.0
GV6K 6.0
The Boolean Exclusive Or (
^
) operator performs a logical exclusive OR on the two values to the left and right
of the operator when used with the
VAR
or
VARI
command. The Boolean Exclusive Or (
^
) performs a bitwise
exclusive OR on the two values to the left and right of the operator when used with the
VARB
command.
For a logical exclusive OR (using
VAR
or
VARI
), the possible combinations are as follows:
www.comoso.com
Содержание Gemini GV6K
Страница 24: ...www comoso com...
Страница 40: ...www comoso com...
Страница 344: ...www comoso com...
Страница 350: ...www comoso com...