Move/Logical Instructions (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT)
Bitwise OR (OR)
dest := sourceA OR sourceB
The OR instruction performs a bitwise OR operation by using the bits in Source A and
Source B and places the result in the Destination.
Operands:
Relay Ladder
Operand
Source A
Source B
Destination
Structured Text
Use OR as an operator within an expression. This expression evaluates sourceA OR
sourceB.
See
Structured Text Programming
structured text.
Function Block
Operand
OR tag
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Type
Format
SINT
Immediate
INT
Tag
DINT
A SINT or INT tag converts to a DINT value by zero-fill.
SINT
Immediate
INT
Tag
DINT
A SINT or INT tag converts to a DINT value by zero-fill.
SINT
Tag
INT
DINT
for information on the syntax of expressions within
Type
FBD_LOGICAL
Description
Value to OR with Source B
Value to OR with Source A
Stores the result
Format:
Description
Structure
OR structure
Chapter 7
319