Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 470 of 909
l
The string can be up to eight bytes long and terminated with a NULL value 0. If fewer
than eight digits are found, the termination is required so the command knows the size
of the hex number. If more than eight digits are found, only the first eight are
processed.
l
The result is an integer.
EXAMPLE:
'Value of: 5862
'Hex of: 16E6
'Decimal representation of hex: 049 054 069 054
ab[10]=49
ab[11]=54
ab[12]=69
ab[13]=54
ab[14]=0 'Null character to end value
x=HEX(10) 'Set x to hex value
Rx 'Report x command
Program output is:
5862
RELATED COMMANDS:
R
ATOF(index) ASCII to Float (see page 284)
R
DFS(value) Dump Float, Single (see page 387)
R
LFS(value) Load Float Single (see page 516)
Part 2: Commands: HEX(index)