EasyManuals Logo

Moog SmartMotor User Manual

Moog SmartMotor
909 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #284 background imageLoading...
Page #284 background image
Part 2: Commands
Moog Animatics SmartMotor Developer's Guide,Rev. L
Page 284 of 909
ATOF(index)
ASCII to Float
APPLICATION: Data conversion
DESCRIPTION: Gets (reads) the ASCIIto 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 ATOFcommand is used to read an ASCIIstring 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)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Moog SmartMotor and is the answer not in the manual?

Moog SmartMotor Specifications

General IconGeneral
BrandMoog
ModelSmartMotor
CategoryServo Drives
LanguageEnglish

Related product manuals