Appendix c expression assistant – Welltech SIPIVR 6800GS V.2.1 User Manual
Page 106

105
Appendix C Expression Assistant
All of the variables must be declared by the Variable Declaration
component before use it in the call flow.
==, <>, >, <, >=, <= is used to compare integer or floating point number
only.
Basic Operation
Symbol Equivalent Description Example Result
#H
Hexadecimal value #H1A8F
#O
Octal value
#0748
#B
Binary value
#B101110
+
Add
1 + 1
2
-
Subtract
9-5
4
*
Multiply by
3 * 6
18
/
Divide by
9 / 2
4.5
FACT !
Factorial
5!
120
DIV
\
Integer divide by
9 \ 2
4
MOD
Modulo (remainder) 7 MOD 4
3
NOT
Bitwise
NOT
NOT(15)
-16
AND
&
Bitwise AND
#B101 AND #H1E 4
OR
|
Bitwise OR
13 OR 6
15
XOR
Bitwise Exclusive OR 9 XOR 3
10
EQV
Bitwise Equivalence 6 EQV 9
-16
IMP
Bitwise Implication
1 IMP 5
-1
MIN
Minimum
value MIN(10,3,27,15)
3
MAX
Maximum value
MAX(1,9)
9*see note
ABS
Absolute value
ABS(-8)
8
EXP
e to the power of
EXP(3)
20.08
EXP2
2 to the power of
EXP2(3)
8
EXP10
10 to the power of
EXP10(3)
1000
LOG
LN
Natural log
LOG(16)
2.77
LOG2
Log base 2
LOG2(8)
3
LOG10
Log base 10
LOG10(100)
2
CEIL
Round up
CEIL(6.2)
7
RND
Random
number(start from 0)
RND(20)
14.969
INT
Truncate to an
integer
INT(6.8)
6
SGN
SIGN
Sign of expression
(-1, 0, or 1)
SGN(-9)
-1
SQR
SQRT
Square root
SQR(64)
8
Triangle Operation
Symbol Equivalent
Description
Example
Result
COS
Cosine
COS(180) -1
TAN
Tangent
TAN(180) 0
SEC
Secant
SEC(30)
1