![Moog SmartMotor Скачать руководство пользователя страница 278](http://html1.mh-extra.com/html/moog/smartmotor/smartmotor_developers-manual_1831639278.webp)
P
ar
t
2: C
omman
d
s
Moog Animatics SmartMotor™ Developer's Guide, Rev. L
Page 278 of 909
ASIN(value)
Arcsine
APPLICATION:
Math function
DESCRIPTION:
Gets the arcsine of the input value
EXECUTION:
Immediate
CONDITIONAL TO:
N/A
LIMITATIONS:
N/A
READ/REPORT:
RASIN(value)
WRITE:
N/A
LANGUAGE ACCESS:
Formulas and conditional testing
UNITS:
Degrees output
RANGE OF VALUES:
Input (floating-point): -1.0 to 1.0
Output in degrees: -90.0 to 90.0 (floating-point)
TYPICAL VALUES:
Input (floating-point): -1.0 to 1.0
Output in degrees: -90.0 to 90.0 (floating-point)
DEFAULT VALUE:
N/A
FIRMWARE VERSION:
5.x and later
COMBITRONIC:
N/A
DETAILED DESCRIPTION:
ASIN takes an input and returns a floating-point arcsine in degrees:
af[1]=ASIN(arg)
where arg may be an integer (e.g., a or aw[0]) or floating-point variable (e.g., af[0]). Integer
or floating-point constants may also be used (e.g., 23 or 23.7, respectively).
This command cannot have within the parenthesis: math operators, other parenthetical
functions, or a Combitronic request from another motor. For example, x=FABS(PA) is
allowed, but x=FABS(PA:3) is not allowed.
The result of this function is a floating-point type. If used in an equation, the operations in the
equation that are processed after this function are automatically promoted to a float. This is
dependent on the mathematical order of operations in the equation. As with other equations
(e.g., x=a+b), the variable to the left of "=" may be an integer variable to accept the result.
However, the value will be truncated to fit to that integer type. For example, the assignment
"aw[0]=" will drop any fractional amount and truncate the result to the range -32768 to 32767
(aw[0]=100.5 will report as 100, and aw[0]=40000.0 will report as -25536).
Although the floating-point variables and their standard binary operations conform to
IEEE-754 double precision, the floating-point square root and trigonometric functions only
produce IEEE-754 single-precision results. For more details, see Variables and Math on page
195.
Part 2: Commands: ASIN(value)
Содержание SmartMotor
Страница 1: ...Developer s Guide Class 5 Later SmartMotor Technology with TM ...
Страница 909: ...PN SC80100003 002 Rev L ...