Chapter 7
Move/Logical Instructions (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT)
Boolean OR (BOR)
IF operandA OR operandB THEN
<statement>;
Input Parameter
Data Type
EnableIn
BOOL
In1
BOOL
In2
BOOL
In3
BOOL
In4
BOOL
In5
BOOL
In6
BOOL
In7
BOOL
In8
BOOL
Output Parameter
Data Type
EnableOut
BOOL
Out
BOOL
334
The BOR instruction logically OR as many as eight boolean inputs.
To perform a bitwise OR, see
Operands:
Structured Text
Use OR as an operator within an expression. The operands must be BOOL values or
expressions that evaluate to BOOL values. This expression evaluates whether operandA or
operandB or both are set (true).
See
Appendix B
Function Block
Operand
BOR tag
FBD_BOOLEAN_OR 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.
Third boolean input.
Default is cleared.
Fourth boolean input.
Default is cleared.
Fifth boolean input.
Default is cleared.
Sixth boolean input.
Default is cleared.
Seventh boolean input.
Default is cleared.
Eighth boolean input.
Default is cleared.
Description
Enable output.
The output of the instruction.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
page
319.
for information on the syntax of expressions within structured text.
Type
FBD_BOOLEAN_OR
Format
Description
Structure
BOR structure