1-24
IM 04P02B01-01E
1.6
Computation Function (/M1 Option)
Computation Function
Computing equations can be set up using measured values and other computed values
as variables in computation-dedicated channels, and the computation can be executed.
The computed result can be recorded. Computation is performed every scan interval.
Channels Dedicated to Computations
The computation-dedicated channels below can be used.
Model
Number of Channels
Channel Names
Pen model
8
0A, 0B, 0C, 0D, 0E, 0F, 0G, and 0J
Dot model
24
0A, 0B, 0C, 0D, 0E, 0F, 0G, 0J, 0K, 0M, 0N, and 0P
1A, 1B, 1C, 1D, 1E, 1F, 1G, 1J, 1K, 1M, 1N, and 1P
Types of Computations
In the table below, y represents the computed result. X and n represent the measured
value, a constant, etc.
Type
Syntax in the Equation
Description
Four arithmetic ope, –, *, /
Determines addition, subtraction, multiplication, and division.
Power
**
Determines the power. y = X
n
Square root
SQR()
Determines the square root.
Absolute value
ABS()
Determines the absolute value.
Common logarithm
LOG()
Determines the common logarithm. y=log
10
x
Exponent
EXP()
Determines the exponent. y = e
x
Relational computation
.LT., .LE., .GT., .GE.,
Determines <,
≤
, >, or
≥
of two elements and outputs “0” or “1.”
.EQ., .NE.
Logical computation
AND, OR, XOR, NOT
Determines the AND (logical product), OR (logical sum),
XOR (exclusive logical sum) of two elements,
NOT (negation) of an element and outputs “0” or “1.”
TLOG computation
TLOG.SUM(), TLOG.
Determines the sum (SUM), the maximum (MAX),
MAX(), TLOG.MIN(),
the minimum (MIN), the average (AVE),
TLOG.AVE(),
and the maximum – minimum (P-P) at specified time
TLOG.P-P(),
intervals. There are three timers for setting the interval.
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 scaling enabled, the scaled
values are used in the computation.
• Computed Values on Computation Channels
Specified by the channel No.
• Constants (K01 to K30)
The values assigned to K01 to K30 can be used as constants.
Range of values (maximum significant digits is 5):
–9.9999E+29 to –1.0000E–30, 0, 1.0000E–30 to 9.9999E+29