9-4
IM 04P02B01-01E
Explanation
Computing Equation
Follow the rules below when writing computing equations.
• Use up to 120 characters to write equations.
• The precedence of computing terms can be specified using parentheses.
• Specify the channels in the equation using 2-digit channel numbers.
Example: 01, 0A
• Specify the constants (K), communication input data (C), and remote control input
terminal status (D) in the computing equation using 2-digit numbers.
Example: K01, C01, D01
• The data value for its own channel and channels that are greater in number than its
own channel are substituted with the data from the previous scan.
Order of Precedence in Computations
The order of precedence of computation in equations is as follows:
Type
Operator
(high order of precedence)
Function
ABS(), SQR(), LOG(), EXP(), TLOG.MAX(),
TLOG.MIN(), TLOG.P-P(), TLOG.SUM(),
TLOG.AVE()
Power
**
Logical negation
NOT
Multiplication and division
*, /
Addition and subtraction
+, –
Greater than and less than
.GT., .LT., GE., LE.
Equal and not equal
.EQ., .NE.
Logical product
AND
Logical sum and exclusive logical sum
OR, XOR
(low order of precedence)
Data That Can Be Used in Equations
In TLOG computation, the measured values of measurement channels or computed
values of computation channels can only be used. For all other computations, all of the
data types below can be used.
• Measured Values on Measurement Channels
Specified by the channel No. For channels that have linear scaling enabled, the
scaled values are used in the computation.
Pen model: 01 to 04, dot model: 01 to 24
• Computed Values on Computation Channels
Specified by the channel No.
Pen model: 0A, 0B, 0C, 0D, 0E, 0F, 0G, 0J
Dot model: 0A, 0B, 0C, 0D, 0E, 0F, 0G, 0J, 0K, 0M, 0N, 0P, 1A, 1B, 1C, 1D, 1E, 1F,
1G, 1J, 1K, 1M, 1N, 1P
• Constants (K01 to K30)
Enter the values as K01 to K30 in the equations.
Range of values (maximum significant digits is 5):
–9.9999E+29 to –1.0000E–30, 0, 1.0000E–30 to 9.9999E+29
• Communication Input Data (Pen model: C01 to C08, dot model: C01 to C24)
Enter the data as C01 to C24 in the equations.
Range of values (maximum significant digits is 5):
–9.9999E+29 to –1.0000E–30, 0, 1.0000E–30 to 9.9999E+29
For the procedure of setting the communication input data, see the
µ
R10000/
µ
R20000
Communication Interface User’s Manual (IM04P01B01-17E)
.
9.2 Setting the Computing Equation