<
Toc
>
<
Ind
>
53
All Rights Reserved. Copyright © 2000, Yokogawa Electric Corporation
TI 04L01A01-02E
4.1.2
Available Operators
General Arithmetic Operators
Operation
Operator
Syntax
(Example)
Description
Summation
+
31 : 1 + 2
Adds the value of Ch. 1 to the value of Ch. 2, and sets the result
in Ch. 32.
Subtraction
-
32 : 2 - 1
Subtracts the value of Ch.1 from the value of Ch.2, and sets the
result in Ch.32.
Multiplication
*
33 : 3 * K1
Multiplies the value of Ch.3 by the value of constant K1, and
sets the result in Ch.33.
Basic four
arithmetic
operations
Division
/
34 : 4 / K10
Divides the value of Ch.4 by the value of constant K10, and sets
the result in Ch.34.
Square root
SQR
35 : SQR(1)
Sets the square root of the value of Ch.1, in Ch.35.
Absolute
ABS
36 : ABS(2)
Sets the absolute value of Ch.2, in Ch.36.
Common logarithm
LOG
37 : LOG(3)
Sets the common logarithm of the value of Ch.3, in Ch.37.
Exponential
EXP
38 : EXP(4)
Raises e (the base of a natural logarithm) to the power given by
the value of Ch.4, and sets the result in Ch.38.
Power
**
39 :5**K20
Sets Ch.5 to the constant 20 power, in Ch.39.
Relational Operators
Operation
Operator
Syntax
(Example)
If…
Then…
e1 = e2
31 = 1
=
.EQ.
31 : e1.EQ.e2
e1
≠
e2
31 = 0
e1
≠
e2
32 = 1
≠
.NE.
32 : e1.NE.e2
e1 = e2
32 = 0
e1
>
e2
33 = 1
>
.GT.
33 : e1.GT.e2
e1
≦
e2
33 = 0
e1
<
e2
34 = 1
<
.LT.
34 : e1.LT.e2
e1
≧
e2
34 = 0
e1
≧
e2
35 = 1
≧
.GE.
35 : e1.GE.e2
e1
<
e2
35 = 0
e1
≦
e2
36 = 1
≦
.LE.
36 : e1.LE.e2
e1
>
e2
36 = 0
Logical operators
Operation
Operator
Syntax
(Example)
If…
Then…
e1 = 0, e2 = 0
31 = 0
e1
≠
0, e2 = 0
31 = 0
e1 = 0, e2
≠
0
31 = 0
Logical AND
AND
31 : e1ANDe2
e1
≠
0, e2
≠
0
31 = 1
e1 = 0, e2 = 0
31 = 0
e1
≠
0, e2 = 0
31 = 1
e1 = 0, e2
≠
0
31 = 1
Logical OR
OR
31 : e1ORe2
e1
≠
0, e2
≠
0
31 = 1
e1 = 0, e2 = 0
31 = 0
e1
≠
0, e2 = 0
31 = 1
e1 = 0, e2
≠
0
31 = 1
Exclusive OR
XOR
31 : e1XORe2
e1
≠
0, e2
≠
0
31 = 0
e1 = 0
31 = 1
Logical NOT
NOT
31 : NOTe1
e1
≠
0
31 = 0
Statistic Operators
Each statistical operator calculates one statistic of the time series value of a specified channel.
Operation
Operator
Syntax (Example)
Description
Maximum
MAX
31 : TLOG.MAX(1)
Set the maximum value of Ch.1 in Ch.31.
Minimum
MIN
32 : TLOG.MIN(2)
Set the minimum value of Ch.2 in Ch.32.
Maximum-Minimum
P-P
33 : TLOG.P-P(3)
Set the P-P value of Ch.3 in Ch.33.
Average
AVE
34 : TLOG.AVE(4)
Set the average value of Ch.4 in Ch.34.
Total
SUM
35 : TLOG.SUM(5)
Set the total of value of Ch.5 in Ch.35.