Boolean Exclusive Or (Bxor); Structured Text; Function Block; Fbd_Boolean_Xor Structure - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Move/Logical Instructions (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT)
Boolean Exclusive OR
(BXOR)
IF operandA XOR operandB THEN
<statement>;
END_IF;
Input Parameter
Data Type
EnableIn
BOOL
In1
BOOL
In2
BOOL
Output Parameter
Data Type
EnableOut
BOOL
Out
BOOL
The BXOR performs an exclusive OR on two boolean inputs.
To perform a bitwise XOR, see
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

Function Block

Operand
BXOR tag

FBD_BOOLEAN_XOR Structure

Description
Enable input. If cleared, the instruction does not execute and outputs are not updated.
Default is set.
First boolean input.
Default is cleared.
Second boolean input.
Default is cleared.
Description
Enable output.
The output of the instruction.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
page
323.
for information on the syntax of expressions within structured text.
Type
FBD_BOOLEAN_XOR
Format
Description
Structure
BXOR structure
Chapter 7
337

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents