Instructions

Library
akYtec GmbH · Vahrenwalder Str. 269 A · 30179 Hannover · Germany · Tel.: +49 (0) 511 16 59 672-0 · www.akytec.de
44
6.1.1.4 Exclusive OR (XOR)
Fig. 6.4
The output Q is True if only one of the inputs is True.
Table 6.4 Truth table
I1
I2
Q
0
0
0
0
1
1
1
0
1
1
1
0
Bitwise operation example with integer inputs:
0101 (decimal 5)
XOR 0011 (decimal 3)
= 0110 (decimal 6)
6.1.2 Mathematical operators
There are different operators for different data types:
Table 6.5
Operator
INT
REAL
Addition
ADD
fADD
Subtraction
SUB
fSUB
Multiplication
MUL
fMUL
Division
DIV
fDIV
Modulo operation
MOD
-
Power function
-
fPOW
Absolute value
-
fABS
6.1.2.1 Addition (ADD, fADD)
Fig. 6.5
The function ADD operates with INT variables, the function fADD operates with REAL
variables.
The output value Q is the sum of the input values.
Example: