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 #453 background imageLoading...
Page #453 background image
Part 2: Commands
Moog Animatics SmartMotor Developer's Guide,Rev. L
Page 453 of 909
produce IEEE-754 single-precision results. For more details, see Variables and Math on page
195.
EXAMPLE:
a=9 'Set variable a = 9
af[0]=FSQRT(4) 'Set array variable af[0] = FSQRT(4)
RFSQRT(4)
af[1]=FSQRT(6.5) 'Set array variable af[1] = FSQRT(6.5)
RFSQRT(6.5)
af[2]=FSQRT(8.5) 'Set array variable af[2] = FSQRT(8.5)
RFSQRT(8.5)
af[3]=FSQRT(a) 'Set array variable af[3] = FSQRT(a)
RFSQRT(a)
PRINT(af[0],", ",af[1],", ",af[2],", ",af[3],#13) 'Print variable values
END
Program output is:
2.000000000
2.549509763
2.915475845
3.000000000
2.000000000, 2.549509763, 2.915475845, 3.000000000
RELATED COMMANDS:
R
SQRT(value) Integer Square Root (see page 718)
Part 2: Commands: FSQRT(value)

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