1-98
IM 04L51B01-01EN
ConditionalExpression
[a?b:c]
(Syntax) [0001.GT.K001?0002:0003]
(Condition) If the measured value of channel 0001 is greater than constant K001, the
computed result is the measured value of channel 0002. Otherwise, the
computed result is the measured value of channel 0003.
ExamplesofEquationsThatAreNotAllowed
[0001.GT.K001?0002:0003]*K002
Reason: Used in combination with another computing element.
NestedConditionalExpressions
A conditional expression can be written to Expression1, Expression2, and Expression3 in the
equation [Expression1?Expression2:Expression3]. For example, the following expression
is allowed: [Equation1?[Equation2-1?Equation2-2:Equation2-3]:[Equation3-1?Equation3-
2:Equation3-3]].
Expressions can be nested as long as the number of characters of the expression does not
exceed 120 characters.
BitOperation(Releasenumber2andlater)
BIT
(Syntax) BIT.Bnn (0001)
(Condition) Assuming that the channel 0001 data (positive integer) is bit data, the nnth
(B00 to B31) bit is output. If the target bit is 1, the computed result is 1. If the
target bit is 0, the computed result is 0.
The higher digit “0” in “Bnn” cannot be omitted.
(Explanation) The status information (e.g., test information) of a lower-level device can be
extracted via Modbus communication and processed using bit operation. The
result can be used in alarms, event action, and so on.
If the value includes a decimal, the value is rounded to the nearest integer
before performing calculation.
If the input data is 0 or a negative number, the output value is 0.
If the input value is not a number (e.g., ±Over or error), the computed result is
error. The error display varies depending on the Value on Error setting in Math
action settings.
If computation is performed on a communication channel (maximum data
value: 99999999) the valid bit specification is up to B26.
If computation is performed on communication channel raw data (RC), the
valid bit specification is up to B31.
Example when the data value is 3 (0000 0000 0000 0000 0000 0000 0000
0011)
For B01
BIT.B01(RC001) = 1
For B02
BIT.B02(RC001) = 0
1.8ConfiguringMathChannels(/MToption)