UM-0085-B09
DT80 Range User Manual
Page 71
RG
Operands:
•
An expression operand can be either
•
a numeric constant, e.g.
27
or
-2.95
or
2.222e-6
or
0x3fff
(hexadecimal)
•
one of the special constants
PI
(3.1415927) or
E
(2.7182818)
•
a channel variable, e.g.
17CV
•
a reference to another channel, e.g.
&1TK
or
&"Reactor Temp"
•
a sub-expression in parentheses, e.g.
(1CV+1)
or
(COS(D2R(3CV))+1)
. The sub-expression will be
evaluated first and the result will become the operand.
Operators
The following operators are supported. In the following table the placeholders x, y, etc. can be any of the operand types
listed above.
Operator
Description
Type
x
+
y
addition
*
x
-
y
subtraction
*
x
*
y
multiplication
*
x
/
y
division
F
x
^
y
x
raised to power
y
F
x
%
y
x
modulo
y
(remainder after division)
*
x
<
y
1 if
x
less than
y
, otherwise 0
I
x
<=
y
1 if
x
less than or equal to
y
, otherwise 0
I
x
>
y
1 if
x
greater than
y
, otherwise 0
I
x
>=
y
1 if
x
greater than or equal to
y
, otherwise 0
I
x
=
y
1 if
x
equals
y
, otherwise 0
I
x
!=
y
1 if
x
equals
y
, otherwise 0
I
x
AND
y
1 if
x
is non-zero and
y
is non-zero, otherwise 0
I
x
OR
y
1 if
x
is non-zero or
y
is non-zero, otherwise 0
I
x
XOR
y
1 if
x
is non-zero or
y
is non-zero but not both, otherwise 0
I
a
?
x
:
y
x
if
a
is non-zero, otherwise
y
*
-
x
negative
x
*
NOT
x
1 if
x
is zero, otherwise 0
I
ABS(
x
)
absolute value of
x
*
SQRT(
x
)
square root of
x
F
LOG(
x
)
base 10 logarithm of
x
F
LN(
x
)
base e logarithm of
x
F
SIN(
x
)
sine of
x
(
x
is in radians)
F
COS(
x
)
cosine of
x
(
x
is in radians)
F
TAN(
x
)
tangent of
x
(
x
is in radians)
F
ASIN(
x
)
arcsine of
x
(result is in radians)
F
ACOS(
x
)
arccosine of
x
(result is in radians)
F
ATAN(
x
)
arctangent of
x
(result is in radians)
F
S
n
(
x
)
apply span #
n
F
SR
n
(
x
)
apply reversed span #
n
F
Y
n
(
x
)
apply polynomial #
n
F
T
n
(
x
)
apply thermistor scaling #
n
F
F
n
(
x
)
apply intrinsic function #
n
F
D2R(
x
)
x
/ 57.29576 (convert degrees to radians)
F
R2D(
x
)
x
* 57.29576 (convert radians to degrees)
F
XY2MAG(
x
,
y
)
convert rectangular coordinates
x,y
to polar magnitude coordinate
F
XY2DIR(
x
,
y
)
convert rectangular coordinates
x,y
to polar direction coordinate (in radians, 0-2π)
F
MAGDIR2X(
mag
,
dir
)
convert polar coordinates
mag,dir
to rectangular x coordinate (
mag
in radians)
F
MAGDIR2Y(
mag
,
dir
)
convert polar coordinates
mag,dir
to rectangular y coordinate (
mag
in radians)
F
Содержание DT80
Страница 29: ...UM 0085 B09 DT80 Range User Manual Page 29 RG The DT80 File System P114 ...
Страница 184: ...UM 0085 B09 DT80 Range User Manual Page 184 RG Figure 71 DT80 communications options ...
Страница 185: ...UM 0085 B09 DT80 Range User Manual Page 185 RG Figure 72 DT80 communications options integrated modem models ...