5-144
5.4 Standard Bitwise Boolean Functions
5.4.1 Boolean AND, boolean OR, boolean exclusive OR, and boolean NOT
AND(_E), OR(_E), XOR(_E), NOT(_E)
(b) The number of pins of variable 's' can be changed in the range from 2 to 27.
(2) OR, OR_E
(a) Performs Boolean OR on bit, word (unsigned)/16-bit string or double word (unsigned)/
32-bit string type data input to variables to bit by bit, and outputs the operation
result from in the same data type as that of variables to .
(Example) Word (unsigned)/16-bit string type data
(b) The number of pins of variable 's' can be changed in the range from 2 to 27.
(3) XOR, XOR_E
(a) Performs Boolean exclusive OR on bit, word (unsigned)/16-bit string or double word
(unsigned)/32-bit string type data input to variables to bit by bit, and outputs the
operation result from in the same data type as that of variables to .
(Example) Word (unsigned)/16-bit string type data
(b) The number of pins of variable 's' can be changed in the range from 2 to 27.
(c) When three or more variables 's' exist, XOR is performed between and first, and
XOR is successively performed between the result and .
When the expression includes , XOR is performed between the result of XOR with
and .
In this manner, XOR is repeated by the number of variables 's' in the order with ,
and so on.
(Example) Bit type data
s1
s27
d
s1
s27
s2 0010000000110 1 00
d
011110011 0 111111
s1
011110011 0001111
Boolean OR
OR
s1
s27
d
s1
s27
s2 111011000 1110000
d
01000110110 110 1 0
s1
101010101 0 1 0 1 0 1 0
Boolean exclusive OR
OR
s1
s2
s3
s4 s3
s4
s5
s6
XOR
TRUE
TRUE
FALSEs1
s2
Result
XOR
TRUE
FALSE
TRUE
s3
Result
XOR
TRUE
TRUE
FALSE
s4
Result
XOR
TRUE
FALSE
TRUE
s5
Result
For 3 INs For 4 INs
Hereafter, XOR is repeated
by the number of S.
For 5 INs