- 58 -
8-5. Formula Settings “Formula”
Set a formula used when “Formula” is selected for Kind in "calculation settings".
Up to 12 formulas, which are shared by all channels, can be registered using a character string consisting of 50 characters
at maximum.
1. Calculation type
Arithmetic operation
Four arithmetic operations
are performed.
Symbol
Example
Note
Ad
X
+
Y
Subtraction -
X
-
Y
Multiplication *
X
*
Y
Division /
X
/
Y
Remainder %
X
%
Y
Power ^
X
^
Y
*
X
and
Y
represent formula or numeric value.
Comparison operation
Result is expressed by 1
(true) or 0 (false).
Symbol
Example
Note
Equal ==
X
==
Y
Unequal !=
X
!=
Y
Greater than
>>
X
>>
Y
Less than
<<
X
<<
Y
Greater than or equal to
>=
X
>=
Y
Less than or equal to
<=
X
<=
Y
*
X
and
Y
represent formula or numeric value.
Logical operation
Logical operation is
performed and either 1 or 0
is returned as a result.
Symbol
Example
Note
Logical AND
AND
X
AND
Y
Parenthesize formula target
Logical OR
OR
X
OR
Y
Parenthesize formula target
Exclusive OR
XOR
X
XOR
Y
Parenthesize formula target
Negation NOT
NOT(
X
)
Parenthesize negation
target
*
X
and
Y
represent formula or numeric value.
X
and
Y
should indicate 0 or 1.
General calculation functions
Function calculation is
performed.
Symbol
Example
Note
Round up to whole number
CEL
CEL(
X
)
Round down to whole number
FLR
FLR(
X
)
Absolute value
ABS
ABS(
X
)
Square root
SQR
SQR(
X
)
Power of e
EXP
EXP(
X
)
Natural logarithm (bottom e)
LOG
LOG(
X
)
Common logarithm
(bottom 10)
LOG10
LOG10(
X
)
*
X
represents formula or numeric value.