Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 337
Move/Logical Instructions (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT) Chapter 7
Boolean Exclusive OR
(BXOR)
The BXOR performs an exclusive OR on two boolean inputs.
To p er f o r m a b i t w i s e XO R , s e e page 323
.
Operands:
Structured Text
Use XOR as an operator within an expression. The operands must be BOOL values or
expressions that evaluate to BOOL values. This expression evaluates whether only
operandA or only operandB is set (true).
See Appendix B
for information on the syntax of expressions within structured text.
Function Block
FBD_BOOLEAN_XOR Structure
Operand Type Format Description
BXOR tag FBD_BOOLEAN_XOR Structure BXOR structure
IF operandA XOR operandB THEN
<statement>;
END_IF;
Input Parameter Data Type Description
EnableIn BOOL Enable input. If cleared, the instruction does not execute and outputs are not updated.
Default is set.
In1 BOOL First boolean input.
Default is cleared.
In2 BOOL Second boolean input.
Default is cleared.
Output Parameter Data Type Description
EnableOut BOOL Enable output.
Out BOOL The output of the instruction.