5.4 Standard Bitwise Boolean Functions
5.4.1 Boolean AND, boolean OR, boolean exclusive OR, and boolean NOT
5-145
5
APPLICATION
FUNCTIONS
AND(_E), OR(_E),
XOR(_E), NOT(_E)
AND(_E), OR(_E), XOR(_E), NOT(_E)
(4) NOT, NOT_E
Performs Boolean NOT on bit, word (unsigned)/16-bit string or double word (unsigned)/32-
bit string type data input to variable bit by bit, and outputs the operation result from in
the same data type as that of variable .
(Example) Word (unsigned)/16-bit string type data
(5) The value to be input to variables to is bit, word (unsigned)/16-bit string or double
word (unsigned)/32-bit string type data.
Operation result
(1) Function without EN/ENO
An operation is executed and the operation value is output from .
(2) Function with EN/ENO
The following table shows the executing conditions and operation results.
*1 When FALSE is output from ENO, the data output from is undefined.
In this case, create a program so that the data output from is not used.
EN ENO
TRUE (Operation execution) TRUE Operation output value
FALSE (Operation stop)
FALSE
*1
Undefined value
s1
d
s1
d 1001010011110000
s1
0110101100001111
NOT
s1
s27
d
d
d
d