[XOR] Exclusive-OR operation
Description
This instruction generates exclusive OR operations at the input values. The output value is 0, if all input values have the same value. Otherwise, the output value is 1.
The number of IN input parameters can be changed.
Truth table (example of n = 2)
IN1 | IN2 | OUT |
|---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
Parameters
Parameters | Declaration | Data type | Description | Default |
|---|---|---|---|---|
IN1 | Input | BOOL | Input value 1 | 0 |
INn | Input | BOOL | Input value "n" | 0 |
OUT | Output | BOOL | Output value | 0 |