UD70
Issue code: 70nu2
Reference
7-7
ARCTAN
Syntax
result = ARCTAN (expression)
This mathematical function returns the arctangent of the expression
in radians.
Example
x = ARCTAN(0.8)
This returns the value 0.674740942 radians.
See also
TAN
instruction.
AVERAGE
Syntax
result% = AVERAGE (
input expression%, number of samples%)
This signal-processing function returns the running average of the input for
the desired number of samples. The number of samples must be a constant
integer value. The input expression is also an integer.
This function can be used only in the
SPEED, CLOCK
or
ENCODER
tasks.
AVERAGE
requires execution on a regular timebase.
If a step change of 0 to 1000 is applied to parameter #1.21, the output of the
averager will be as follows (assuming a 5ms clock timebase).
Example
CLOCK{
input% = #1.21
#1.22 = AVERAGE (input%, 4)
}
See also
FILTER
instruction.
Содержание UD70
Страница 6: ......
Страница 14: ...UD70 Issue code 70nu2 2 6 Installation...
Страница 42: ...UD70 Issue code 70nu2 4 20 DPL programming...
Страница 98: ...UD70 Issue code 70nu2 7 22 Reference...
Страница 142: ...UD70 Issue code 70nu2 9 6 Diagnostics...