Galil Motion Control manc 18x 6 Page 14
DMC-18x6 Command Reference
6
$
FUNCTION: Hexadecimal
DESCRIPTION:
The $ operator denotes that the following string is in hexadecimal notation
ARGUMENTS: $nnnnnnnn.mmmm
n is up to eight hexadecimal digits (denoting 32 bits of integer)
m is up to four hexadecimal digits (denoting 16 bits of fraction)
USAGE: DEFAULTS:
While Moving
Yes
Default Value
-
In a Program
Yes
Default Format
-
Command Line
Yes
Controller Usage
ALL
RELATED COMMANDS:
Multiply (shift left)
Divide (shift right)
Print in hexadecimal
EXAMPLES:
x = $7fffffff.0000
;'store 2147483647 in x
y = x & $0000ffff.0000
;'store lower 16 bits of x in y
z = x & $ffff0000.0000 / $10000
;'store upper 16 bits of x in z