![Moog SmartMotor Скачать руководство пользователя страница 516](http://html1.mh-extra.com/html/moog/smartmotor/smartmotor_developers-manual_1831639516.webp)
P
ar
t
2: C
omman
d
s
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)
Содержание SmartMotor
Страница 1: ...Developer s Guide Class 5 Later SmartMotor Technology with TM ...
Страница 909: ...PN SC80100003 002 Rev L ...