36
Gemini GV6K/GT6K Command Reference
[ << ]
Shift from R to L (Bit 32 to Bit 1)
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 Shift R to L (
<<
) operator shifts a binary value from right to left (reducing its value) the number of bits
specified. Zeros are shifted into the most significant bit locations. The number of bits to shift by is specified
with the value immediately to the right of the (
<<
) operator, 32 maximum. The number of places to shift
must be specified in either binary or hexadecimal format. (
The bits in the binary variable are displayed
from 1 to 32, left to right, and shifting from right to left causes bits to be shifted from 32 to 1.
)
Example:
VARB1=b0000
1000
1XX1
<<
b01
Response to
VARB1
is
*VARB1=0010_001X_X1XX_XXXX_XXXX_XXXX_XXX_XX00
Example:
VARB1=b1111
0000
1111
<<
b001
Response to
VARB1
is
*VARB1=0000_1111_XXXX_XXXX_XXXX_XXXX_XXXX_0000
Example:
VARB1=
h0000
E3
<<
hA
Response to
VARB1
is
*VARB1=0000_0001_1111_0000_0000_0000_0000_0000
The total command length must be less than 80 characters. The order of precedence is
left to right
.
[ >> ]
Shift from L to R (Bit 1 to Bit 32)
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 Shift L to R (
>>
) operator shifts a binary value from left to right (increasing its value) the number of
bits specified. Zeros are shifted into the least significant bit locations. The number of bits to shift by is
specified with the value immediately to the right of the (
>>
) operator, 32 maximum. The number of places
to shift must be specified in either binary or hexadecimal format. (
The bits in the binary variable are
displayed from 1 to 32, left to right, and shifting from left to right causes bits to be shifted from 1 to 32.
)
Example:
VARB1=b0000
1000
1XX1
>>
b01
Response to
VARB1
is
*VARB1=0000_0010_001X_X1XX_XXXX_XXXX_XXXX_XXXX
Example:
VARB1=b1111
0000
1111
>>
b001
Response to
VARB1
is
*VARB1=0000_1111_0000_1111_XXXX_XXXX_XXXX_XXXX
Example:
VARB1=
h45FA2
>>
h4
Response to
VARB1
is
*VARB1=0000_0010_1010_1111_0101_0100_0000_0000
The total command length must be less than 80 characters. The order of precedence is
left to right
.
www.comoso.com
Содержание Gemini GT6K
Страница 24: ...www comoso com ...
Страница 40: ...www comoso com ...
Страница 344: ...www comoso com ...
Страница 350: ...www comoso com ...