334 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 7 Move/Logical Instructions (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT)
Boolean OR (BOR)
The BOR instruction logically OR as many as eight boolean inputs.
To perform a bitwise OR, see page 319
.
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
for information on the syntax of expressions within structured text.
Function Block
FBD_BOOLEAN_OR Structure
Operand Type Format Description
BOR tag FBD_BOOLEAN_OR Structure BOR structure
IF operandA OR operandB THEN
<statement>;
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.
In3 BOOL Third boolean input.
Default is cleared.
In4 BOOL Fourth boolean input.
Default is cleared.
In5 BOOL Fifth boolean input.
Default is cleared.
In6 BOOL Sixth boolean input.
Default is cleared.
In7 BOOL Seventh boolean input.
Default is cleared.
In8 BOOL Eighth boolean input.
Default is cleared.
Output Parameter Data Type Description
EnableOut BOOL Enable output.
Out BOOL The output of the instruction.