AND NOT Connection
The content of the accumulator is connected with the inverted operand defined in the operand field by a logical AND operation. The result is transferred to the accumulator.
Operator only available in IL programming language.
All operands must be of the same data type.
Valid operands for this operator must be of one of the following data types: (BOOL, WORD, DWORD)
Input 1 |
Input 2 |
Output | |
---|---|---|---|
Signal | 0 |
0 |
1 |
0 |
1 |
1 |
|
1 |
0 |
1 |
|
1 |
1 |
0 |
LD |
var_1 |
(* Load var_1 in accu *) |
ANDN |
var_2 |
(* Perform an AND of accu with inverted var_2; store result in accu *) |
ST |
var_3 |
(* Store accu in var_3 *) |