1-96
IM 04L51B01-01EN
CLOG Computation
Only data of I/O channels, math channels, and communication channels can be used in
CLOG computations. Up to 30 channels can be written in the parentheses.
In the explanation below, an expression containing a computing element cannot be written
to e1, etc. In addition, only one CLOG computation can be specified in a single computing
expression.
CLOG.SUM()
Sum value
(Syntax) CLOG.SUM(e1.e2.e4-e6)
(Condition) Determines the sum of the data of channels e1, e2, e4, e5, and e6 that are
measured at the same time.
CLOG.MAX()
Maximum value
(Syntax) CLOG.MAX(e1.e2.e4-e6)
(Condition) Determines the maximum value among the data of channels e1, e2, e4, e5,
and e6 that are measured at the same time.
CLOG.MIN()
Minimum value
(Syntax) CLOG.MIN(e1.e2.e5.e7)
(Condition) Determines the minimum value among the data of channels e1, e2, e5, and
e7 that are measured at the same time.
CLOG.AVE()
Average value
(Syntax) CLOG.AVE(e1-e6)
(Condition) Determines the average value among the data of channels e1 to e6 that are
measured at the same time.
CLOG.P-P()
Maximum – minimum value
(Syntax) CLOG.P-P(e1.e2.e5.e7)
(Condition) Determines the difference between the maximum and minimum values among
the data of channels e1, e2, e5, and e7 that are measured at the same time.
CLOG.PAVE()(Releasenumber4andlater)
(Syntax) CLOG.PAVE(e1.e2.e3.e4.e5.e6.e7)
(Condition) Determines the average value by excluding input that falls outside a given
width from the pattern (SP) during program operation. For e1 to e4 only,
constants and variable constants can be used.
e1: Calculation method switch flag (decimals rounded, computed as CLOG.
AVE if zero)
e2: Loop number (decimals truncated)
e3: Effective width for ramp
e4: Effective width for soak
e5, e6, e7: Channels for calculating the average
ExpressionExample
CLOG.MAX(0001.0002.A004-A006)+K001*SQR(0002)
ExamplesofEquationsThatAreNotAllowed
CLOG.AVE(0001.0003.0005)+CLOG.AVE(0002.0004.0006)
Reason: CLOG appears twice in one equation.
CLOG.AVE(001.ABS(001))
Reason: A computing element is used inside the parentheses.
1.8ConfiguringMathChannels(/MToption)