Description
You can use the "EXCLUSIVE OR logic operation" instruction to query the result of a signal state query according to the EXCLUSIVE OR truth table.
With an "EXCLUSIVE OR logic operation" instruction, the signal state is "1" when the signal state of one of the two specified operands is "1". When more than two operands are queried, the common RLO is "1" if an odd number of the queried operands returns the result "1".
Parameters
The following table shows the parameters of the instruction "EXCLUSIVE OR logic operation":
|
Parameters |
Declaration |
Data type |
Memory area |
Description |
|
|---|---|---|---|---|---|
|
S7-1200 |
S7-1500 |
||||
|
<Operand> |
Input |
BOOL |
I, Q, M, D, L or constant |
I, Q, M, D, L, T, C or constant |
The operand indicates the bit whose signal state will be queried. |
Example
The following example shows how the instruction works:
The "TagOut" output is set, when the signal state of either operand "TagIn_1" or "TagIn_2" is "1". When both operands return the signal state "1" or "0", the output "TagOut" is reset.
See also
EXCLUSIVE OR truth table (S7-1200, S7-1500)
Adding additional inputs and outputs to FBD elements (S7-1200, S7-1500)
Overview of the valid data types
System memory areas (S7-1200)
Insert input (S7-1200, S7-1500)
Inserting FBD elements
Editing FBD elements
Inserting operands in FBD instructions
Memory areas (S7-1500)