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 #516 background imageLoading...
Page #516 background image
Part 2: Commands
Moog Animatics SmartMotor Developer's Guide,Rev. L
Page 516 of 909
LFS(value)
Load Float Single
APPLICATION: Data conversion
DESCRIPTION: Get float value from 32-bit IEEE format
EXECUTION: Immediate
CONDITIONAL TO: N/A
LIMITATIONS: N/A
READ/REPORT: RLFS(value)
WRITE: N/A
LANGUAGE ACCESS: Formulas and conditional testing
UNITS: N/A
RANGE OF VALUES:
Input: 32-bit integer, -2147483648 to 2147483647
Output: any floating-point value within 32-bit float range:
±1x10
38
TYPICAL VALUES: N/A
DEFAULT VALUE: N/A
FIRMWARE VERSION: 5.x and later
COMBITRONIC: N/A
DETAILED DESCRIPTION:
The LFS command is used to get the float value from 32-bit IEEE-754 format.
It allows the import of floating-point values from external systems this format may be
needed for interchange.
The 32-bit value input by this function is not a normal integer value. It is an encoded number
that includes the exponent of the floating-point value.
NOTE: The input of this function does not have any usefulness within the
SmartMotor programming language.
The output of this function is a floating-point value that can be used in a formula. The output of
LFS() is directed to DFS(). For details on DFS(), see DFS(value) on page 387.
EXAMPLE:
al[0]=1162934955 '4 byte value in IEEE-754 format
af[0]=LFS(al[0]) 'Convert from IEEE-754 to float
Raf[0] 'Report value of float
Program output is:
3343.666748046
Part 2: Commands: LFS(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