5.4 Standard Bitwise Boolean Functions
5.4.1 Boolean AND, boolean OR, boolean exclusive OR, and boolean NOT
5-143
5
APPLICATION
FUNCTIONS
AND(_E), OR(_E),
XOR(_E), NOT(_E)
AND(_E), OR(_E), XOR(_E), NOT(_E)
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)
Function
Operation processing
(1) AND, AND_E
(a) Performs Boolean AND 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
AND(_E)
OR(_E)
XOR(_E)
NOT(_E)
_E: With EN/ENO
indicates any of the following
functions.
AND AND_E
OR OR_E
XOR XOR_E
NOT NOT_E
Input argument, EN:
Executing condition (TRUE: Execution, FALSE: Stop) :Bit
s1 to s27:
Input
:ANY_BIT
(s1 only for NOT(_E))
Output argument, ENO:
Output status (TRUE: Normal, FALSE: Error) :Bit
d:
Output :ANY_BIT
Universal
UD
High
Performance
AND_E
(EN, s1, s2
...
s27, d);ENO:=
Structured ladder
ST
EN ENO
s1 d
s2
s27
AND_E
to
s1
s27
d
s1
s27
s2 0010010000110 1 00
d
00100100000001 00
s1
011111111 0001111
Boolean AND
AND