![Moog SmartMotor Скачать руководство пользователя страница 284](http://html1.mh-extra.com/html/moog/smartmotor/smartmotor_developers-manual_1831639284.webp)
P
ar
t
2: C
omman
d
s
Moog Animatics SmartMotor™ Developer's Guide, Rev. L
Page 284 of 909
ATOF(index)
ASCII to Float
APPLICATION:
Data conversion
DESCRIPTION:
Gets (reads) the ASCII to float conversion
EXECUTION:
Immediate
CONDITIONAL TO:
N/A
LIMITATIONS:
Integer portion of input string must be in 32-bit range
READ/REPORT:
RATOF(index)
WRITE:
N/A
LANGUAGE ACCESS:
Formulas and conditional testing
UNITS:
N/A
RANGE OF VALUES:
-2147483648.000000000 to +2147483647.000000000
TYPICAL VALUES:
-2147483648.000000000 to +2147483647.000000000
DEFAULT VALUE:
N/A
FIRMWARE VERSION:
5.x and later
COMBITRONIC:
N/A
DETAILED DESCRIPTION:
The ATOF command is used to read an ASCII string containing a number in the format:
-123456789.123456789
The string is stored in the ab[index] array. The argument in the ATOF(index) function is the
index of ab[] where the string begins. The parsing ends when a character other than a digit,
decimal point or minus sign is met.
The value returned is a float, which can be assigned to a floating-point variable or an integer.
EXAMPLE:
ab[10]=50
ab[11]=51
ab[12]=48
ab[13]=46
ab[14]=49
ab[15]=0
af[0]=
ATOF
(10)
Raf[0]
END
Program output is:
230.099999999
Part 2: Commands: ATOF(index)
Содержание SmartMotor
Страница 1: ...Developer s Guide Class 5 Later SmartMotor Technology with TM ...
Страница 909: ...PN SC80100003 002 Rev L ...